private void DebugWindow_FormClosing(object sender, FormClosingEventArgs e) { if (timer1!=null) if (timer1.Enabled) timer1.Stop(); DebugWindow.form = null; }
private void statusStrip1_MouseDoubleClick(object sender, MouseEventArgs e) { #if DEBUG if (debug_window != null) { if (debug_window.Visible) debug_window.Close(); } debug_window = new DebugWindow(); debug_window.Show(); #endif }
public FormMain() { #if DEBUG debug_window = new DebugWindow(); debug_window.Show(); #endif InitializeComponent(); if (System.Environment.OSVersion.Platform != PlatformID.Win32NT) { this.MaximumSize = new System.Drawing.Size(450, this.MaximumSize.Height); this.MinimumSize = new System.Drawing.Size(this.MaximumSize.Width, this.MinimumSize.Height); } if (!initializeCaptureDeviceList()) { //throw new ApplicationException("no capture devices found"); } app_start_time = DateTime.Now; }
public DebugWindow() { InitializeComponent(); form = this; font_listbox = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Regular); }