Example #1
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         UseWebSvc      = false;
         _ConfigFactory = new ConfigFactory(App.Product);
         _Config        = (Config)_ConfigFactory.Item(new string[] { Environment.UserName, Environment.MachineName });
         _Trace         = new winTrace();
     }
     catch (Exception ex) { ReportError(ex); Application.Exit(); }
 }
Example #2
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         Mediator.SqlCommandTimeout = global::Tsort.Properties.Settings.Default.SQLCommandTimeout;
         UseWebSvc      = global::Tsort.Properties.TsortSettings.Default.UseWebSvc;
         _ConfigFactory = new ConfigFactory(App.Product);
         _Config        = (Config)_ConfigFactory.Item(new string[] { Environment.UserName, Environment.MachineName });
         _Trace         = new winTrace();
     }
     catch (Exception ex) { ReportError(ex); Application.Exit(); }
 }