/// <summary> /// Initializes a new instance of the <see cref="MainForm"/> class. /// </summary> /// <remarks>Documented by Dev02, 2008-03-10</remarks> public MainForm() { InitializeComponent(); //upgrade settings if (!Settings.Default.Upgraded) { try { Settings.Default.Upgrade(); } catch { } Settings.Default.Upgraded = true; Settings.Default.Save(); } //load recent window size from settings Size windowsize = Settings.Default.WindowSize; if (!windowsize.IsEmpty) { this.Size = windowsize; } //add tracelistener tracelistener = new LogTraceListener(); tracelistener.LogMessageAdded += new EventHandler(tracelistener_LogMessageAdded); System.Diagnostics.Trace.Listeners.Add(tracelistener); BusinessLayer.WorkingThreadFinished += new EventHandler(BusinessLayer_WorkingThreadFinished); BusinessLayer.ProgressChanged += new BusinessLayer.ProgressChangedEventHandler(BusinessLayer_ProgressChanged); }
/// <summary> /// Initializes a new instance of the <see cref="MainForm"/> class. /// </summary> /// <remarks>Documented by Dev02, 2008-03-10</remarks> public MainForm() { InitializeComponent(); //upgrade settings if (!Settings.Default.Upgraded) { try { Settings.Default.Upgrade(); } catch { } Settings.Default.Upgraded = true; Settings.Default.Save(); } //load recent window size from settings Size windowsize = Settings.Default.WindowSize; if (!windowsize.IsEmpty) this.Size = windowsize; //add tracelistener tracelistener = new LogTraceListener(); tracelistener.LogMessageAdded += new EventHandler(tracelistener_LogMessageAdded); System.Diagnostics.Trace.Listeners.Add(tracelistener); BusinessLayer.WorkingThreadFinished += new EventHandler(BusinessLayer_WorkingThreadFinished); BusinessLayer.ProgressChanged += new BusinessLayer.ProgressChangedEventHandler(BusinessLayer_ProgressChanged); }