Ejemplo n.º 1
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         Mediator.SqlCommandTimeout = int.Parse(global::Argix.Properties.Settings.Default.SQLCommandTimeout);
         _Mediator      = new SQLMediator(global::Argix.Properties.ArgixSettings.Default.SQLConnection);
         _ConfigFactory = new ConfigFactory(App.Product);
         _Config        = (Config)_ConfigFactory.Item(new string[] { Environment.UserName, Environment.MachineName });
         ArgixTrace.AddListener(new DBTraceListener((LogLevel)_Config.TraceLevel, _Mediator, "uspLogEntryNew", "Argix08"));
     }
     catch (Exception ex) { ReportError(ex); Application.Exit(); }
 }
Ejemplo n.º 2
0
 //Interface
 static App()
 {
     //Class constructor: get application configuration
     try {
         //Mediator.SqlCommandTimeout = global::Argix.Properties.Settings.Default.SQLCommandTimeout;
         _Mediator      = new SQLMediator(global::Argix.Properties.Settings.Default.SQLConnection);
         _ConfigFactory = new ConfigFactory(App.Product);
         _Config        = (Config)_ConfigFactory.Item(new string[] { Environment.UserName, Environment.MachineName });
         ArgixTrace.AddListener(new DBTraceListener((LogLevel)App.Config.TraceLevel, App.Mediator, App.USP_TRACE, App.EventLogName));
     }
     catch (Exception ex) { ReportError(ex, true, LogLevel.Error); Application.Exit(); }
 }
Ejemplo n.º 3
0
 //Interface
 /// <summary>Constructor</summary>
 public winTrace()
 {
     //Constructor
     InitializeComponent();
     ArgixTrace.AddListener(new ArgixTextBoxListener(LogLevel.Debug, this.txtTrace));
 }