示例#1
0
 private void DebugWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (timer1!=null)
         if (timer1.Enabled)
             timer1.Stop();
     DebugWindow.form = null;
 }
示例#2
0
文件: Form1.cs 项目: Ch0wW/XBSlink
        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
        }
示例#3
0
文件: Form1.cs 项目: Ch0wW/XBSlink
        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;
        }
示例#4
0
 public DebugWindow()
 {
     InitializeComponent();
     form = this;
     font_listbox = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Regular);
 }