public Window_Main() { try { InitializeComponent(); //-- attach Events this.FormClosed += FormClose; this.FormClosing += Form1_FormClosing; // if (SupportedProcessVersion()) { //-- Initialize Collector and Handler Thread if (!Program.SingleThreaded) { A_Initialize.Th_ICollector.New_ICollector(); } A_Initialize.Th_Handler.New_Handler(); // if (A_Tools.Version.AppVersion.isOutdated()) // !!!!! REENABLE THIS!!!!!! { Window_Outdated WO = new Window_Outdated(); WO.ShowDialog(); } //-- Access Validation if (!A_Tools.Authentification.Validation.IsValidated()) // !!!!! REENABLE THIS!!!!!! { ; } // System.Timers.Timer UpdateUI = new System.Timers.Timer(250); UpdateUI.Elapsed += RefreshUI; UpdateUI.Start(); d3helperform = this; Load_CustomFonts(); } } catch (Exception e) { A_Handler.Log.ExceptionLogEntry newEntry = new A_Handler.Log.ExceptionLogEntry(e, DateTime.Now, A_Enums.ExceptionThread.MainWindow); lock (A_Handler.Log.Exception.ExceptionLog) A_Handler.Log.Exception.ExceptionLog.Add(newEntry); } }
public Window_Main() { try { InitializeComponent(); //-- attach Events this.FormClosed += FormClose; this.FormClosing += Form1_FormClosing; // if (SupportedProcessVersion()) { //-- Initialize Collector and Handler Thread if(!Program.SingleThreaded) A_Initialize.Th_ICollector.New_ICollector(); A_Initialize.Th_Handler.New_Handler(); // if (A_Tools.Version.AppVersion.isOutdated()) // !!!!! REENABLE THIS!!!!!! { Window_Outdated WO = new Window_Outdated(); WO.ShowDialog(); } //-- Access Validation if (!A_Tools.Authentification.Validation.IsValidated()) // !!!!! REENABLE THIS!!!!!! ; // System.Timers.Timer UpdateUI = new System.Timers.Timer(250); UpdateUI.Elapsed += RefreshUI; UpdateUI.Start(); d3helperform = this; Load_CustomFonts(); } } catch (Exception e) { A_Handler.Log.ExceptionLogEntry newEntry = new A_Handler.Log.ExceptionLogEntry(e, DateTime.Now, A_Enums.ExceptionThread.MainWindow); lock (A_Handler.Log.Exception.ExceptionLog) A_Handler.Log.Exception.ExceptionLog.Add(newEntry); } }
public static void addExceptionLogEntry(System.Exception e, A_Enums.ExceptionThread exceptionthread) { ExceptionLogEntry.addExceptionLogEntry(e, exceptionthread); }