//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(); } }
//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(); } }