Esempio n. 1
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         DataAccess     = Convert.ToInt32(global::Argix.Properties.Settings.Default.DataAccess);
         _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(); }
 }
Esempio n. 2
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         UseWebSvc = global::Argix.CustomerSvc.Settings.Default.UseWebSvc;
         try {
             _ConfigFactory = new ConfigFactory(App.AssemblyProduct);
             _Config        = (Config)_ConfigFactory.Item(new string[] { Environment.UserName, Environment.MachineName });
         }
         catch (ApplicationException ex) { ReportError(ex, true, LogLevel.None); }
         _Trace = new winTrace();
     }
     catch (Exception ex) { ReportError(ex, true, LogLevel.None); }
 }