Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:17] smayr |
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:19] (current) smayr |
||
---|---|---|---|
Line 5: | Line 5: | ||
* ModuleAPI: < | * ModuleAPI: < | ||
* NoahDataInterfaces: | * NoahDataInterfaces: | ||
+ | |||
+ | == Operations == | ||
+ | Check if Noah is installed: | ||
+ | <code csharp> | ||
+ | /// | ||
+ | /// < | ||
+ | /// Verify whether Noah 4 is installed. | ||
+ | /// </ | ||
+ | /// < | ||
+ | /// | ||
+ | public static bool IsNoahInstalled() | ||
+ | { | ||
+ | try | ||
+ | { | ||
+ | // This method tries to create an instance of ModuleAPI. If this fails, Noah is not installed. | ||
+ | Himsa.Noah.Modules.ModuleAPI api = new Himsa.Noah.Modules.ModuleAPI(); | ||
+ | return true; | ||
+ | } | ||
+ | catch (System.IO.FileNotFoundException exc) | ||
+ | { | ||
+ | MessageBox.Show(" | ||
+ | return false; | ||
+ | } | ||
+ | } | ||
+ | </ |