/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.fileItem = new System.Windows.Forms.MenuItem(); this.openFileItem = new System.Windows.Forms.MenuItem(); this.openURLFileItem = new System.Windows.Forms.MenuItem(); this.openMJEPGFileItem = new System.Windows.Forms.MenuItem(); this.openMMSFileItem = new System.Windows.Forms.MenuItem(); this.openLocalFileItem = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.exitFileItem = new System.Windows.Forms.MenuItem(); this.motionItem = new System.Windows.Forms.MenuItem(); this.noneMotionItem = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.detector1MotionItem = new System.Windows.Forms.MenuItem(); this.detector2MotionItem = new System.Windows.Forms.MenuItem(); this.detector3MotionItem = new System.Windows.Forms.MenuItem(); this.detector3OptimizedMotionItem = new System.Windows.Forms.MenuItem(); this.ofd = new System.Windows.Forms.OpenFileDialog(); this.timer = new System.Timers.Timer(); this.statusBar = new System.Windows.Forms.StatusBar(); this.fpsPanel = new System.Windows.Forms.StatusBarPanel(); this.panel = new System.Windows.Forms.Panel(); this.cameraWindow = new motion.CameraWindow(); ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit(); this.panel.SuspendLayout(); this.SuspendLayout(); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileItem, this.motionItem }); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.openFileItem, this.openURLFileItem, this.openMJEPGFileItem, this.openMMSFileItem, this.openLocalFileItem, this.menuItem1, this.exitFileItem }); this.fileItem.Text = "&File"; // // openFileItem // this.openFileItem.Index = 0; this.openFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.openFileItem.Text = "&Open"; this.openFileItem.Click += new System.EventHandler(this.openFileItem_Click); // // openURLFileItem // this.openURLFileItem.Index = 1; this.openURLFileItem.Text = "Open JPEG &URL"; this.openURLFileItem.Click += new System.EventHandler(this.openURLFileItem_Click); // // openMJEPGFileItem // this.openMJEPGFileItem.Index = 2; this.openMJEPGFileItem.Text = "Open M&JPEG URL"; this.openMJEPGFileItem.Click += new System.EventHandler(this.openMJEPGFileItem_Click); // // openMMSFileItem // this.openMMSFileItem.Index = 3; this.openMMSFileItem.Text = "Open &MMS Stream"; this.openMMSFileItem.Click += new System.EventHandler(this.openMMSFileItem_Click); // // openLocalFileItem // this.openLocalFileItem.Index = 4; this.openLocalFileItem.Text = "Open &Local Device"; this.openLocalFileItem.Click += new System.EventHandler(this.openLocalFileItem_Click); // // menuItem1 // this.menuItem1.Index = 5; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 6; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click); // // motionItem // this.motionItem.Index = 1; this.motionItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.noneMotionItem, this.menuItem2, this.detector1MotionItem, this.detector2MotionItem, this.detector3MotionItem, this.detector3OptimizedMotionItem }); this.motionItem.Text = "&Motion"; this.motionItem.Popup += new System.EventHandler(this.motionItem_Popup); // // noneMotionItem // this.noneMotionItem.Index = 0; this.noneMotionItem.Text = "&None"; this.noneMotionItem.Click += new System.EventHandler(this.noneMotionItem_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "-"; // // detector1MotionItem // this.detector1MotionItem.Index = 2; this.detector1MotionItem.Text = "Detector &1"; this.detector1MotionItem.Click += new System.EventHandler(this.detector1MotionItem_Click); // // detector2MotionItem // this.detector2MotionItem.Index = 3; this.detector2MotionItem.Text = "Detector &2"; this.detector2MotionItem.Click += new System.EventHandler(this.detector2MotionItem_Click); // // detector3MotionItem // this.detector3MotionItem.Index = 4; this.detector3MotionItem.Text = "Detector &3"; this.detector3MotionItem.Click += new System.EventHandler(this.detector3MotionItem_Click); // // detector3OptimizedMotionItem // this.detector3OptimizedMotionItem.Index = 5; this.detector3OptimizedMotionItem.Text = "Detector 3 - Optimized"; this.detector3OptimizedMotionItem.Click += new System.EventHandler(this.detector3OptimizedMotionItem_Click); // // ofd // this.ofd.Filter = "AVI files (*.avi)|*.avi"; this.ofd.Title = "Open movie"; // // timer // this.timer.Interval = 1000D; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 321); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(408, 24); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 391; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.cameraWindow); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(408, 321); this.panel.TabIndex = 2; // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Location = new System.Drawing.Point(41, 37); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size(322, 242); this.cameraWindow.TabIndex = 1; // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(408, 345); this.Controls.Add(this.panel); this.Controls.Add(this.statusBar); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu; this.Name = "MainForm"; this.Text = "Motion detector"; this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing); ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent( ) { this.components = new System.ComponentModel.Container( ); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager( typeof( MainForm ) ); this.mainMenu = new System.Windows.Forms.MainMenu( this.components ); this.fileItem = new System.Windows.Forms.MenuItem( ); this.openFileItem = new System.Windows.Forms.MenuItem( ); this.openURLFileItem = new System.Windows.Forms.MenuItem( ); this.openMJEPGFileItem = new System.Windows.Forms.MenuItem( ); this.openLocalFileItem = new System.Windows.Forms.MenuItem( ); this.menuItem1 = new System.Windows.Forms.MenuItem( ); this.exitFileItem = new System.Windows.Forms.MenuItem( ); this.motionItem = new System.Windows.Forms.MenuItem( ); this.noneMotionItem = new System.Windows.Forms.MenuItem( ); this.menuItem2 = new System.Windows.Forms.MenuItem( ); this.detector1MotionItem = new System.Windows.Forms.MenuItem( ); this.detector2MotionItem = new System.Windows.Forms.MenuItem( ); this.detector3MotionItem = new System.Windows.Forms.MenuItem( ); this.detector3OptimizedMotionItem = new System.Windows.Forms.MenuItem( ); this.detector4MotionItem = new System.Windows.Forms.MenuItem( ); this.menuItem3 = new System.Windows.Forms.MenuItem( ); this.detectorSaveItem = new System.Windows.Forms.MenuItem( ); this.motionAlarmItem = new System.Windows.Forms.MenuItem( ); this.helpItem = new System.Windows.Forms.MenuItem( ); this.aboutHelpItem = new System.Windows.Forms.MenuItem( ); this.ofd = new System.Windows.Forms.OpenFileDialog( ); this.timer = new System.Timers.Timer( ); this.statusBar = new System.Windows.Forms.StatusBar( ); this.fpsPanel = new System.Windows.Forms.StatusBarPanel( ); this.panel = new System.Windows.Forms.Panel( ); this.cameraWindow = new motion.CameraWindow( ); ( (System.ComponentModel.ISupportInitialize) ( this.timer ) ).BeginInit( ); ( (System.ComponentModel.ISupportInitialize) ( this.fpsPanel ) ).BeginInit( ); this.panel.SuspendLayout( ); this.SuspendLayout( ); // // mainMenu // this.mainMenu.MenuItems.AddRange( new System.Windows.Forms.MenuItem[] { this.fileItem, this.motionItem, this.helpItem} ); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange( new System.Windows.Forms.MenuItem[] { this.openFileItem, this.openURLFileItem, this.openMJEPGFileItem, this.openLocalFileItem, this.menuItem1, this.exitFileItem} ); this.fileItem.Text = "&File"; // // openFileItem // this.openFileItem.Index = 0; this.openFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.openFileItem.Text = "&Open"; this.openFileItem.Click += new System.EventHandler( this.openFileItem_Click ); // // openURLFileItem // this.openURLFileItem.Index = 1; this.openURLFileItem.Text = "Open JPEG &URL"; this.openURLFileItem.Click += new System.EventHandler( this.openURLFileItem_Click ); // // openMJEPGFileItem // this.openMJEPGFileItem.Index = 2; this.openMJEPGFileItem.Text = "Open M&JPEG URL"; this.openMJEPGFileItem.Click += new System.EventHandler( this.openMJEPGFileItem_Click ); // // openLocalFileItem // this.openLocalFileItem.Index = 3; this.openLocalFileItem.Text = "Open &Local Device"; this.openLocalFileItem.Click += new System.EventHandler( this.openLocalFileItem_Click ); // // menuItem1 // this.menuItem1.Index = 4; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 5; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler( this.exitFileItem_Click ); // // motionItem // this.motionItem.Index = 1; this.motionItem.MenuItems.AddRange( new System.Windows.Forms.MenuItem[] { this.noneMotionItem, this.menuItem2, this.detector1MotionItem, this.detector2MotionItem, this.detector3MotionItem, this.detector3OptimizedMotionItem, this.detector4MotionItem, this.menuItem3, this.detectorSaveItem, this.motionAlarmItem} ); this.motionItem.Text = "&Motion"; this.motionItem.Popup += new System.EventHandler( this.motionItem_Popup ); // // noneMotionItem // this.noneMotionItem.Index = 0; this.noneMotionItem.Text = "&None"; this.noneMotionItem.Click += new System.EventHandler( this.noneMotionItem_Click ); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "-"; // // detector1MotionItem // this.detector1MotionItem.Index = 2; this.detector1MotionItem.Text = "Detector &1"; this.detector1MotionItem.Click += new System.EventHandler( this.detector1MotionItem_Click ); // // detector2MotionItem // this.detector2MotionItem.Index = 3; this.detector2MotionItem.Text = "Detector &2"; this.detector2MotionItem.Click += new System.EventHandler( this.detector2MotionItem_Click ); // // detector3MotionItem // this.detector3MotionItem.Index = 4; this.detector3MotionItem.Text = "Detector &3"; this.detector3MotionItem.Click += new System.EventHandler( this.detector3MotionItem_Click ); // // detector3OptimizedMotionItem // this.detector3OptimizedMotionItem.Index = 5; this.detector3OptimizedMotionItem.Text = "Detector 3 - Optimized"; this.detector3OptimizedMotionItem.Click += new System.EventHandler( this.detector3OptimizedMotionItem_Click ); // // detector4MotionItem // this.detector4MotionItem.Index = 6; this.detector4MotionItem.Text = "Detector &4"; this.detector4MotionItem.Click += new System.EventHandler( this.detector4MotionItem_Click ); // // menuItem3 // this.menuItem3.Index = 7; this.menuItem3.Text = "-"; // // detectorSaveItem // this.detectorSaveItem.Index = 8; this.detectorSaveItem.Text = "&Save on motion"; this.detectorSaveItem.Click += new System.EventHandler( this.detectorSaveItem_Click ); // // motionAlarmItem // this.motionAlarmItem.Checked = true; this.motionAlarmItem.Index = 9; this.motionAlarmItem.Text = "&Enable motion alarm"; this.motionAlarmItem.Click += new System.EventHandler( this.motionAlarmItem_Click ); // // helpItem // this.helpItem.Index = 2; this.helpItem.MenuItems.AddRange( new System.Windows.Forms.MenuItem[] { this.aboutHelpItem} ); this.helpItem.Text = "&Help"; // // aboutHelpItem // this.aboutHelpItem.Index = 0; this.aboutHelpItem.Text = "&About"; this.aboutHelpItem.Click += new System.EventHandler( this.aboutHelpItem_Click ); // // ofd // this.ofd.Filter = "AVI files (*.avi)|*.avi"; this.ofd.Title = "Open movie"; // // timer // this.timer.Interval = 1000; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler( this.timer_Elapsed ); // // statusBar // this.statusBar.Location = new System.Drawing.Point( 0, 323 ); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange( new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel} ); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size( 408, 22 ); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 391; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add( this.cameraWindow ); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point( 0, 0 ); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size( 408, 323 ); this.panel.TabIndex = 2; // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Location = new System.Drawing.Point( 41, 38 ); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size( 322, 242 ); this.cameraWindow.TabIndex = 1; // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size( 5, 13 ); this.ClientSize = new System.Drawing.Size( 408, 345 ); this.Controls.Add( this.panel ); this.Controls.Add( this.statusBar ); this.Icon = ( (System.Drawing.Icon) ( resources.GetObject( "$this.Icon" ) ) ); this.Menu = this.mainMenu; this.Name = "MainForm"; this.Text = "Motion Detector"; this.Closing += new System.ComponentModel.CancelEventHandler( this.MainForm_Closing ); ( (System.ComponentModel.ISupportInitialize) ( this.timer ) ).EndInit( ); ( (System.ComponentModel.ISupportInitialize) ( this.fpsPanel ) ).EndInit( ); this.panel.ResumeLayout( false ); this.ResumeLayout( false ); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.fileItem = new System.Windows.Forms.MenuItem(); this.openLocalFileItem = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.exitFileItem = new System.Windows.Forms.MenuItem(); this.timer = new System.Timers.Timer(); this.statusBar = new System.Windows.Forms.StatusBar(); this.fpsPanel = new System.Windows.Forms.StatusBarPanel(); this.panel = new System.Windows.Forms.Panel(); this.label6 = new System.Windows.Forms.Label(); this.resizeFactorUpDown = new System.Windows.Forms.NumericUpDown(); this.invertCursorCheckBox = new System.Windows.Forms.CheckBox(); this.enableClickCheckBox = new System.Windows.Forms.CheckBox(); this.controlCursorCheckBox = new System.Windows.Forms.CheckBox(); this.thresholdLabel = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.thresholdTrackBar = new System.Windows.Forms.TrackBar(); this.txtb_clientID = new System.Windows.Forms.TextBox(); this.lbl_clientID = new System.Windows.Forms.Label(); this.btn_Connect = new System.Windows.Forms.Button(); this.btn_sleep = new System.Windows.Forms.Button(); this.txtb_display = new System.Windows.Forms.TextBox(); this.cameraWindow = new motion.CameraWindow(); ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit(); this.panel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.resizeFactorUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).BeginInit(); this.SuspendLayout(); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileItem }); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.openLocalFileItem, this.menuItem1, this.exitFileItem }); this.fileItem.Text = "&File"; // // openLocalFileItem // this.openLocalFileItem.Index = 0; this.openLocalFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this.openLocalFileItem.Text = "&Start"; this.openLocalFileItem.Click += new System.EventHandler(this.openLocalFileItem_Click); // // menuItem1 // this.menuItem1.Index = 1; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 2; this.exitFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlX; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click); // // timer // this.timer.Interval = 1000D; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 377); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(700, 26); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 683; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.txtb_display); this.panel.Controls.Add(this.btn_sleep); this.panel.Controls.Add(this.btn_Connect); this.panel.Controls.Add(this.lbl_clientID); this.panel.Controls.Add(this.txtb_clientID); this.panel.Controls.Add(this.label6); this.panel.Controls.Add(this.resizeFactorUpDown); this.panel.Controls.Add(this.invertCursorCheckBox); this.panel.Controls.Add(this.enableClickCheckBox); this.panel.Controls.Add(this.controlCursorCheckBox); this.panel.Controls.Add(this.thresholdLabel); this.panel.Controls.Add(this.label1); this.panel.Controls.Add(this.thresholdTrackBar); this.panel.Controls.Add(this.cameraWindow); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(700, 377); this.panel.TabIndex = 2; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.SystemColors.Control; this.label6.Location = new System.Drawing.Point(7, 262); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(193, 13); this.label6.TabIndex = 24; this.label6.Text = "Image Height and Width Resize Factor:"; // // resizeFactorUpDown // this.resizeFactorUpDown.Location = new System.Drawing.Point(208, 260); this.resizeFactorUpDown.Maximum = new decimal(new int[] { 4, 0, 0, 0 }); this.resizeFactorUpDown.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.resizeFactorUpDown.Name = "resizeFactorUpDown"; this.resizeFactorUpDown.Size = new System.Drawing.Size(42, 20); this.resizeFactorUpDown.TabIndex = 1; this.resizeFactorUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.resizeFactorUpDown.Value = new decimal(new int[] { 3, 0, 0, 0 }); this.resizeFactorUpDown.ValueChanged += new System.EventHandler(this.resizeFactorUpDown_ValueChanged); // // invertCursorCheckBox // this.invertCursorCheckBox.AutoSize = true; this.invertCursorCheckBox.Enabled = false; this.invertCursorCheckBox.Location = new System.Drawing.Point(10, 311); this.invertCursorCheckBox.Name = "invertCursorCheckBox"; this.invertCursorCheckBox.Size = new System.Drawing.Size(147, 17); this.invertCursorCheckBox.TabIndex = 22; this.invertCursorCheckBox.Text = "Invert Cursor Movements"; this.invertCursorCheckBox.UseVisualStyleBackColor = true; this.invertCursorCheckBox.CheckedChanged += new System.EventHandler(this.invertCursorCheckBox_CheckedChanged); // // enableClickCheckBox // this.enableClickCheckBox.AutoSize = true; this.enableClickCheckBox.Enabled = false; this.enableClickCheckBox.Location = new System.Drawing.Point(109, 288); this.enableClickCheckBox.Name = "enableClickCheckBox"; this.enableClickCheckBox.Size = new System.Drawing.Size(85, 17); this.enableClickCheckBox.TabIndex = 21; this.enableClickCheckBox.Text = "Enable Click"; this.enableClickCheckBox.UseVisualStyleBackColor = true; this.enableClickCheckBox.CheckedChanged += new System.EventHandler(this.enableClickCheckBox_CheckedChanged); // // controlCursorCheckBox // this.controlCursorCheckBox.AutoSize = true; this.controlCursorCheckBox.Location = new System.Drawing.Point(10, 287); this.controlCursorCheckBox.Name = "controlCursorCheckBox"; this.controlCursorCheckBox.Size = new System.Drawing.Size(92, 17); this.controlCursorCheckBox.TabIndex = 20; this.controlCursorCheckBox.Text = "Control Cursor"; this.controlCursorCheckBox.UseVisualStyleBackColor = true; this.controlCursorCheckBox.CheckedChanged += new System.EventHandler(this.controlCursorCheckBox_CheckedChanged); // // thresholdLabel // this.thresholdLabel.AutoSize = true; this.thresholdLabel.Location = new System.Drawing.Point(219, 341); this.thresholdLabel.Name = "thresholdLabel"; this.thresholdLabel.Size = new System.Drawing.Size(111, 13); this.thresholdLabel.TabIndex = 4; this.thresholdLabel.Text = "Current threshold: 220"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Location = new System.Drawing.Point(7, 341); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(105, 13); this.label1.TabIndex = 3; this.label1.Text = "Brightness threshold:"; // // thresholdTrackBar // this.thresholdTrackBar.Location = new System.Drawing.Point(10, 357); this.thresholdTrackBar.Maximum = 255; this.thresholdTrackBar.Minimum = 100; this.thresholdTrackBar.Name = "thresholdTrackBar"; this.thresholdTrackBar.Size = new System.Drawing.Size(320, 45); this.thresholdTrackBar.SmallChange = 5; this.thresholdTrackBar.TabIndex = 0; this.thresholdTrackBar.TickFrequency = 5; this.thresholdTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.thresholdTrackBar.Value = 220; this.thresholdTrackBar.Scroll += new System.EventHandler(this.thresholdTrackBar_Scroll); // // txtb_clientID // this.txtb_clientID.Location = new System.Drawing.Point(99, 10); this.txtb_clientID.Name = "txtb_clientID"; this.txtb_clientID.Size = new System.Drawing.Size(188, 20); this.txtb_clientID.TabIndex = 25; // // lbl_clientID // this.lbl_clientID.AutoSize = true; this.lbl_clientID.Location = new System.Drawing.Point(10, 10); this.lbl_clientID.Name = "lbl_clientID"; this.lbl_clientID.Size = new System.Drawing.Size(50, 13); this.lbl_clientID.TabIndex = 26; this.lbl_clientID.Text = "Client ID:"; // // btn_Connect // this.btn_Connect.Location = new System.Drawing.Point(27, 36); this.btn_Connect.Name = "btn_Connect"; this.btn_Connect.Size = new System.Drawing.Size(75, 23); this.btn_Connect.TabIndex = 27; this.btn_Connect.Text = "Connect"; this.btn_Connect.UseVisualStyleBackColor = true; this.btn_Connect.Click += new System.EventHandler(this.btn_Connect_Click); // // btn_sleep // this.btn_sleep.Location = new System.Drawing.Point(157, 36); this.btn_sleep.Name = "btn_sleep"; this.btn_sleep.Size = new System.Drawing.Size(75, 23); this.btn_sleep.TabIndex = 28; this.btn_sleep.Text = "Wake"; this.btn_sleep.UseVisualStyleBackColor = true; this.btn_sleep.Click += new System.EventHandler(this.btn_sleep_Click_1); // // txtb_display // this.txtb_display.Location = new System.Drawing.Point(10, 71); this.txtb_display.Multiline = true; this.txtb_display.Name = "txtb_display"; this.txtb_display.Size = new System.Drawing.Size(259, 179); this.txtb_display.TabIndex = 29; // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Enabled = false; this.cameraWindow.Location = new System.Drawing.Point(336, -2); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size(341, 419); this.cameraWindow.TabIndex = 0; this.cameraWindow.Click += new System.EventHandler(this.cameraWindow_Click); this.cameraWindow.MouseClick += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseClick); this.cameraWindow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseDown); this.cameraWindow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseMove); this.cameraWindow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseUp); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(700, 403); this.Controls.Add(this.panel); this.Controls.Add(this.statusBar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Menu = this.mainMenu; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Remote Mouse Application"; this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); this.Load += new System.EventHandler(this.MainForm_Load); ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit(); this.panel.ResumeLayout(false); this.panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.resizeFactorUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.fileItem = new System.Windows.Forms.MenuItem(); this.openFileItem = new System.Windows.Forms.MenuItem(); this.openURLFileItem = new System.Windows.Forms.MenuItem(); this.openMJEPGFileItem = new System.Windows.Forms.MenuItem(); this.openMMSFileItem = new System.Windows.Forms.MenuItem(); this.openLocalFileItem = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.exitFileItem = new System.Windows.Forms.MenuItem(); this.helpItem = new System.Windows.Forms.MenuItem(); this.aboutHelpItem = new System.Windows.Forms.MenuItem(); this.ofd = new System.Windows.Forms.OpenFileDialog(); this.timer = new System.Timers.Timer(); this.statusBar = new System.Windows.Forms.StatusBar(); this.fpsPanel = new System.Windows.Forms.StatusBarPanel(); this.panel = new System.Windows.Forms.Panel(); this.label6 = new System.Windows.Forms.Label(); this.resizeFactorUpDown = new System.Windows.Forms.NumericUpDown(); this.invertCursorCheckBox = new System.Windows.Forms.CheckBox(); this.enableClickCheckBox = new System.Windows.Forms.CheckBox(); this.controlCursorCheckBox = new System.Windows.Forms.CheckBox(); this.thresholdLabel = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.thresholdTrackBar = new System.Windows.Forms.TrackBar(); this.cameraWindow = new motion.CameraWindow(); ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit(); this.panel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.resizeFactorUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).BeginInit(); this.SuspendLayout(); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileItem, this.helpItem }); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.openFileItem, this.openURLFileItem, this.openMJEPGFileItem, this.openMMSFileItem, this.openLocalFileItem, this.menuItem1, this.exitFileItem }); this.fileItem.Text = "&File"; // // openFileItem // this.openFileItem.Index = 0; this.openFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.openFileItem.Text = "&Open"; this.openFileItem.Click += new System.EventHandler(this.openFileItem_Click); // // openURLFileItem // this.openURLFileItem.Index = 1; this.openURLFileItem.Text = "Open JPEG &URL"; this.openURLFileItem.Click += new System.EventHandler(this.openURLFileItem_Click); // // openMJEPGFileItem // this.openMJEPGFileItem.Index = 2; this.openMJEPGFileItem.Text = "Open M&JPEG URL"; this.openMJEPGFileItem.Click += new System.EventHandler(this.openMJEPGFileItem_Click); // // openMMSFileItem // this.openMMSFileItem.Index = 3; this.openMMSFileItem.Text = "Open &MMS Stream"; this.openMMSFileItem.Click += new System.EventHandler(this.openMMSFileItem_Click); // // openLocalFileItem // this.openLocalFileItem.Index = 4; this.openLocalFileItem.Text = "Open &Local Device"; this.openLocalFileItem.Click += new System.EventHandler(this.openLocalFileItem_Click); // // menuItem1 // this.menuItem1.Index = 5; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 6; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click); // // helpItem // this.helpItem.Index = 1; this.helpItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.aboutHelpItem }); this.helpItem.Text = "&Help"; // // aboutHelpItem // this.aboutHelpItem.Index = 0; this.aboutHelpItem.Text = "&About"; this.aboutHelpItem.Click += new System.EventHandler(this.aboutHelpItem_Click); // // ofd // this.ofd.Filter = "AVI files (*.avi)|*.avi"; this.ofd.Title = "Open movie"; // // timer // this.timer.Interval = 1000; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 406); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(344, 26); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 327; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.label6); this.panel.Controls.Add(this.resizeFactorUpDown); this.panel.Controls.Add(this.invertCursorCheckBox); this.panel.Controls.Add(this.enableClickCheckBox); this.panel.Controls.Add(this.controlCursorCheckBox); this.panel.Controls.Add(this.thresholdLabel); this.panel.Controls.Add(this.label1); this.panel.Controls.Add(this.thresholdTrackBar); this.panel.Controls.Add(this.cameraWindow); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(344, 406); this.panel.TabIndex = 2; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.SystemColors.Control; this.label6.Location = new System.Drawing.Point(7, 262); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(193, 13); this.label6.TabIndex = 24; this.label6.Text = "Image Height and Width Resize Factor:"; // // resizeFactorUpDown // this.resizeFactorUpDown.Location = new System.Drawing.Point(208, 260); this.resizeFactorUpDown.Maximum = new decimal(new int[] { 4, 0, 0, 0 }); this.resizeFactorUpDown.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.resizeFactorUpDown.Name = "resizeFactorUpDown"; this.resizeFactorUpDown.Size = new System.Drawing.Size(42, 20); this.resizeFactorUpDown.TabIndex = 1; this.resizeFactorUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.resizeFactorUpDown.Value = new decimal(new int[] { 3, 0, 0, 0 }); this.resizeFactorUpDown.ValueChanged += new System.EventHandler(this.resizeFactorUpDown_ValueChanged); // // invertCursorCheckBox // this.invertCursorCheckBox.AutoSize = true; this.invertCursorCheckBox.Enabled = false; this.invertCursorCheckBox.Location = new System.Drawing.Point(10, 311); this.invertCursorCheckBox.Name = "invertCursorCheckBox"; this.invertCursorCheckBox.Size = new System.Drawing.Size(147, 17); this.invertCursorCheckBox.TabIndex = 22; this.invertCursorCheckBox.Text = "Invert Cursor Movements"; this.invertCursorCheckBox.UseVisualStyleBackColor = true; this.invertCursorCheckBox.CheckedChanged += new System.EventHandler(this.invertCursorCheckBox_CheckedChanged); // // enableClickCheckBox // this.enableClickCheckBox.AutoSize = true; this.enableClickCheckBox.Enabled = false; this.enableClickCheckBox.Location = new System.Drawing.Point(109, 288); this.enableClickCheckBox.Name = "enableClickCheckBox"; this.enableClickCheckBox.Size = new System.Drawing.Size(85, 17); this.enableClickCheckBox.TabIndex = 21; this.enableClickCheckBox.Text = "Enable Click"; this.enableClickCheckBox.UseVisualStyleBackColor = true; this.enableClickCheckBox.CheckedChanged += new System.EventHandler(this.enableClickCheckBox_CheckedChanged); // // controlCursorCheckBox // this.controlCursorCheckBox.AutoSize = true; this.controlCursorCheckBox.Location = new System.Drawing.Point(10, 287); this.controlCursorCheckBox.Name = "controlCursorCheckBox"; this.controlCursorCheckBox.Size = new System.Drawing.Size(92, 17); this.controlCursorCheckBox.TabIndex = 20; this.controlCursorCheckBox.Text = "Control Cursor"; this.controlCursorCheckBox.UseVisualStyleBackColor = true; this.controlCursorCheckBox.CheckedChanged += new System.EventHandler(this.controlCursorCheckBox_CheckedChanged); // // thresholdLabel // this.thresholdLabel.AutoSize = true; this.thresholdLabel.Location = new System.Drawing.Point(219, 341); this.thresholdLabel.Name = "thresholdLabel"; this.thresholdLabel.Size = new System.Drawing.Size(111, 13); this.thresholdLabel.TabIndex = 4; this.thresholdLabel.Text = "Current threshold: 220"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Location = new System.Drawing.Point(7, 341); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(105, 13); this.label1.TabIndex = 3; this.label1.Text = "Brightness threshold:"; // // thresholdTrackBar // this.thresholdTrackBar.Location = new System.Drawing.Point(10, 357); this.thresholdTrackBar.Maximum = 255; this.thresholdTrackBar.Minimum = 100; this.thresholdTrackBar.Name = "thresholdTrackBar"; this.thresholdTrackBar.Size = new System.Drawing.Size(320, 45); this.thresholdTrackBar.SmallChange = 5; this.thresholdTrackBar.TabIndex = 0; this.thresholdTrackBar.TickFrequency = 5; this.thresholdTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.thresholdTrackBar.Value = 220; this.thresholdTrackBar.Scroll += new System.EventHandler(this.thresholdTrackBar_Scroll); // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Enabled = false; this.cameraWindow.Location = new System.Drawing.Point(10, 10); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size(320, 240); this.cameraWindow.TabIndex = 0; this.cameraWindow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseMove); this.cameraWindow.MouseClick += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseClick); this.cameraWindow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseDown); this.cameraWindow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cameraWindow_MouseUp); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(344, 432); this.Controls.Add(this.panel); this.Controls.Add(this.statusBar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Menu = this.mainMenu; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Laser Tracking and Control"; this.Load += new System.EventHandler(this.MainForm_Load); this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing); ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit(); this.panel.ResumeLayout(false); this.panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.resizeFactorUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent( ) { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.fileItem = new System.Windows.Forms.MenuItem(); this.openFileItem = new System.Windows.Forms.MenuItem(); this.openLocalFileItem = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.exitFileItem = new System.Windows.Forms.MenuItem(); this.motionItem = new System.Windows.Forms.MenuItem(); this.noneMotionItem = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.detector1MotionItem = new System.Windows.Forms.MenuItem(); this.detector2MotionItem = new System.Windows.Forms.MenuItem(); this.detector3MotionItem = new System.Windows.Forms.MenuItem(); this.detector3OptimizedMotionItem = new System.Windows.Forms.MenuItem(); this.detector4MotionItem = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.aboutFrameDifference = new System.Windows.Forms.MenuItem(); this.aboutBackgroundDifference = new System.Windows.Forms.MenuItem(); this.helpItem = new System.Windows.Forms.MenuItem(); this.aboutHelpItem = new System.Windows.Forms.MenuItem(); this.ofd = new System.Windows.Forms.OpenFileDialog(); this.timer = new System.Timers.Timer(); this.statusBar = new System.Windows.Forms.StatusBar(); this.fpsPanel = new System.Windows.Forms.StatusBarPanel(); this.panel = new System.Windows.Forms.Panel(); this.cameraWindow = new motion.CameraWindow(); ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit(); this.panel.SuspendLayout(); this.SuspendLayout(); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileItem, this.motionItem, this.helpItem }); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.openFileItem, this.openLocalFileItem, this.menuItem1, this.exitFileItem }); this.fileItem.Text = "&File"; // // openFileItem // this.openFileItem.Index = 0; this.openFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.openFileItem.Text = "&Open"; this.openFileItem.Click += new System.EventHandler(this.openFileItem_Click); // // openLocalFileItem // this.openLocalFileItem.Index = 1; this.openLocalFileItem.Text = "Open &Local Device"; this.openLocalFileItem.Click += new System.EventHandler(this.openLocalFileItem_Click); // // menuItem1 // this.menuItem1.Index = 2; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 3; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click); // // motionItem // this.motionItem.Index = 1; this.motionItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.noneMotionItem, this.menuItem2, this.detector1MotionItem, this.detector2MotionItem, this.detector3MotionItem, this.detector3OptimizedMotionItem, this.detector4MotionItem, this.menuItem3, this.aboutFrameDifference, this.aboutBackgroundDifference }); this.motionItem.Text = "&Motion"; this.motionItem.Popup += new System.EventHandler(this.motionItem_Popup); // // noneMotionItem // this.noneMotionItem.Index = 0; this.noneMotionItem.Text = "&None"; this.noneMotionItem.Click += new System.EventHandler(this.noneMotionItem_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "-"; // // detector1MotionItem // this.detector1MotionItem.Index = 2; this.detector1MotionItem.Text = "Detector &1--Frame Difference"; this.detector1MotionItem.Click += new System.EventHandler(this.detector1MotionItem_Click); // // detector2MotionItem // this.detector2MotionItem.Index = 3; this.detector2MotionItem.Text = "Detector &2--Background frame Subtraction"; this.detector2MotionItem.Click += new System.EventHandler(this.detector2MotionItem_Click); // // detector3MotionItem // this.detector3MotionItem.Index = 4; this.detector3MotionItem.Text = "Detector &3--Frame difference combine Background Subtraction"; this.detector3MotionItem.Click += new System.EventHandler(this.detector3MotionItem_Click); // // detector3OptimizedMotionItem // this.detector3OptimizedMotionItem.Index = 5; this.detector3OptimizedMotionItem.Text = "Detector 4--Optimized(Pixellate the frame)"; this.detector3OptimizedMotionItem.Click += new System.EventHandler(this.detector3OptimizedMotionItem_Click); // // detector4MotionItem // this.detector4MotionItem.Index = 6; this.detector4MotionItem.Text = "Detector &5--Add Blob Counter(A.Forge.net)"; this.detector4MotionItem.Click += new System.EventHandler(this.detector4MotionItem_Click); // // menuItem3 // this.menuItem3.Index = 7; this.menuItem3.Text = "-"; // // aboutFrameDifference // this.aboutFrameDifference.Index = 8; this.aboutFrameDifference.Text = "About Frame Difference"; this.aboutFrameDifference.Click += new System.EventHandler(this.aboutFrameDifference_Click); // // aboutBackgroundDifference // this.aboutBackgroundDifference.Index = 9; this.aboutBackgroundDifference.Text = "About Background Difference"; this.aboutBackgroundDifference.Click += new System.EventHandler(this.aboutBackgroundDifference_Click); // // helpItem // this.helpItem.Index = 2; this.helpItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.aboutHelpItem }); this.helpItem.Text = "&Help"; this.helpItem.Click += new System.EventHandler(this.helpItem_Click); // // aboutHelpItem // this.aboutHelpItem.Index = 0; this.aboutHelpItem.Text = "&About"; this.aboutHelpItem.Click += new System.EventHandler(this.aboutHelpItem_Click); // // ofd // this.ofd.Filter = "AVI files (*.avi)|*.avi"; this.ofd.Title = "Open movie"; // // timer // this.timer.Interval = 1000D; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 669); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(961, 22); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 944; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.cameraWindow); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(961, 669); this.panel.TabIndex = 2; // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Location = new System.Drawing.Point(27, 16); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size(900, 616); this.cameraWindow.TabIndex = 1; this.cameraWindow.Click += new System.EventHandler(this.cameraWindow_Click); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(961, 691); this.Controls.Add(this.panel); this.Controls.Add(this.statusBar); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu; this.Name = "MainForm"; this.Text = "Motion Detector"; this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing); this.Load += new System.EventHandler(this.MainForm_Load); ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.fileItem = new System.Windows.Forms.MenuItem(); this.openFileItem = new System.Windows.Forms.MenuItem(); this.openURLFileItem = new System.Windows.Forms.MenuItem(); this.openMJEPGFileItem = new System.Windows.Forms.MenuItem(); this.openMMSFileItem = new System.Windows.Forms.MenuItem(); this.openLocalFileItem = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.exitFileItem = new System.Windows.Forms.MenuItem(); this.helpItem = new System.Windows.Forms.MenuItem(); this.aboutHelpItem = new System.Windows.Forms.MenuItem(); this.ofd = new System.Windows.Forms.OpenFileDialog(); this.timer = new System.Timers.Timer(); this.statusBar = new System.Windows.Forms.StatusBar(); this.fpsPanel = new System.Windows.Forms.StatusBarPanel(); this.panel = new System.Windows.Forms.Panel(); this.Left = new System.Windows.Forms.Button(); this.Right = new System.Windows.Forms.Button(); this.Stop = new System.Windows.Forms.Button(); this.Back = new System.Windows.Forms.Button(); this.Go = new System.Windows.Forms.Button(); this.ColorTrackingOn = new System.Windows.Forms.Button(); this.pixelsPerStepLabel = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.pixelsPerStepTrackBar = new System.Windows.Forms.TrackBar(); this.thresholdLabel = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.thresholdTrackBar = new System.Windows.Forms.TrackBar(); this.cameraWindow = new motion.CameraWindow(); ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit(); this.panel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pixelsPerStepTrackBar)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).BeginInit(); this.SuspendLayout(); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileItem, this.helpItem}); // // fileItem // this.fileItem.Index = 0; this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.openFileItem, this.openURLFileItem, this.openMJEPGFileItem, this.openMMSFileItem, this.openLocalFileItem, this.menuItem1, this.exitFileItem}); this.fileItem.Text = "&File"; // // openFileItem // this.openFileItem.Index = 0; this.openFileItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.openFileItem.Text = "&Open"; this.openFileItem.Click += new System.EventHandler(this.openFileItem_Click); // // openURLFileItem // this.openURLFileItem.Index = 1; this.openURLFileItem.Text = "Open JPEG &URL"; this.openURLFileItem.Click += new System.EventHandler(this.openURLFileItem_Click); // // openMJEPGFileItem // this.openMJEPGFileItem.Index = 2; this.openMJEPGFileItem.Text = "Open M&JPEG URL"; this.openMJEPGFileItem.Click += new System.EventHandler(this.openMJEPGFileItem_Click); // // openMMSFileItem // this.openMMSFileItem.Index = 3; this.openMMSFileItem.Text = "Open &MMS Stream"; this.openMMSFileItem.Click += new System.EventHandler(this.openMMSFileItem_Click); // // openLocalFileItem // this.openLocalFileItem.Index = 4; this.openLocalFileItem.Text = "Open &Local Device"; this.openLocalFileItem.Click += new System.EventHandler(this.openLocalFileItem_Click); // // menuItem1 // this.menuItem1.Index = 5; this.menuItem1.Text = "-"; // // exitFileItem // this.exitFileItem.Index = 6; this.exitFileItem.Text = "E&xit"; this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click); // // helpItem // this.helpItem.Index = 1; this.helpItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.aboutHelpItem}); this.helpItem.Text = "&Help"; // // aboutHelpItem // this.aboutHelpItem.Index = 0; this.aboutHelpItem.Text = "&About"; this.aboutHelpItem.Click += new System.EventHandler(this.aboutHelpItem_Click); // // ofd // this.ofd.Filter = "AVI files (*.avi)|*.avi"; this.ofd.Title = "Open movie"; // // timer // this.timer.Interval = 1000; this.timer.SynchronizingObject = this; this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 606); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.fpsPanel}); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(325, 22); this.statusBar.TabIndex = 1; // // fpsPanel // this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.fpsPanel.Name = "fpsPanel"; this.fpsPanel.Width = 308; // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.Left); this.panel.Controls.Add(this.Right); this.panel.Controls.Add(this.Stop); this.panel.Controls.Add(this.Back); this.panel.Controls.Add(this.Go); this.panel.Controls.Add(this.ColorTrackingOn); this.panel.Controls.Add(this.pixelsPerStepLabel); this.panel.Controls.Add(this.label2); this.panel.Controls.Add(this.pixelsPerStepTrackBar); this.panel.Controls.Add(this.thresholdLabel); this.panel.Controls.Add(this.label1); this.panel.Controls.Add(this.thresholdTrackBar); this.panel.Controls.Add(this.cameraWindow); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(325, 606); this.panel.TabIndex = 2; // // Left // this.Left.Location = new System.Drawing.Point(42, 507); this.Left.Name = "Left"; this.Left.Size = new System.Drawing.Size(75, 23); this.Left.TabIndex = 13; this.Left.Text = "Left"; this.Left.UseVisualStyleBackColor = true; this.Left.Click += new System.EventHandler(this.Left_Click); // // Right // this.Right.Location = new System.Drawing.Point(205, 507); this.Right.Name = "Right"; this.Right.Size = new System.Drawing.Size(75, 23); this.Right.TabIndex = 12; this.Right.Text = "Right"; this.Right.UseVisualStyleBackColor = true; this.Right.Click += new System.EventHandler(this.Right_Click); // // Stop // this.Stop.Location = new System.Drawing.Point(123, 507); this.Stop.Name = "Stop"; this.Stop.Size = new System.Drawing.Size(75, 23); this.Stop.TabIndex = 11; this.Stop.Text = "Stop"; this.Stop.UseVisualStyleBackColor = true; this.Stop.Click += new System.EventHandler(this.Stop_Click); // // Back // this.Back.Location = new System.Drawing.Point(123, 555); this.Back.Name = "Back"; this.Back.Size = new System.Drawing.Size(75, 23); this.Back.TabIndex = 10; this.Back.Text = "Back"; this.Back.UseVisualStyleBackColor = true; this.Back.Click += new System.EventHandler(this.Back_Click); // // Go // this.Go.Location = new System.Drawing.Point(123, 457); this.Go.Name = "Go"; this.Go.Size = new System.Drawing.Size(75, 23); this.Go.TabIndex = 9; this.Go.Text = "Go"; this.Go.UseVisualStyleBackColor = true; this.Go.Click += new System.EventHandler(this.Go_Click); // // ColorTrackingOn // this.ColorTrackingOn.Location = new System.Drawing.Point(123, 362); this.ColorTrackingOn.Name = "ColorTrackingOn"; this.ColorTrackingOn.Size = new System.Drawing.Size(75, 57); this.ColorTrackingOn.TabIndex = 8; this.ColorTrackingOn.Text = "Color Tracking On"; this.ColorTrackingOn.UseVisualStyleBackColor = true; this.ColorTrackingOn.Click += new System.EventHandler(this.ColorTrackingOn_Click); // // pixelsPerStepLabel // this.pixelsPerStepLabel.AutoSize = true; this.pixelsPerStepLabel.Location = new System.Drawing.Point(99, 301); this.pixelsPerStepLabel.Name = "pixelsPerStepLabel"; this.pixelsPerStepLabel.Size = new System.Drawing.Size(13, 13); this.pixelsPerStepLabel.TabIndex = 7; this.pixelsPerStepLabel.Text = "8"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(10, 301); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(88, 13); this.label2.TabIndex = 6; this.label2.Text = "Color Tolerance :"; // // pixelsPerStepTrackBar // this.pixelsPerStepTrackBar.Location = new System.Drawing.Point(13, 315); this.pixelsPerStepTrackBar.Maximum = 30; this.pixelsPerStepTrackBar.Name = "pixelsPerStepTrackBar"; this.pixelsPerStepTrackBar.Size = new System.Drawing.Size(297, 45); this.pixelsPerStepTrackBar.TabIndex = 5; this.pixelsPerStepTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.pixelsPerStepTrackBar.Value = 8; this.pixelsPerStepTrackBar.Scroll += new System.EventHandler(this.pixelsStepTrackBar_Scroll); // // thresholdLabel // this.thresholdLabel.AutoSize = true; this.thresholdLabel.Location = new System.Drawing.Point(99, 245); this.thresholdLabel.Name = "thresholdLabel"; this.thresholdLabel.Size = new System.Drawing.Size(13, 13); this.thresholdLabel.TabIndex = 4; this.thresholdLabel.Text = "2"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Location = new System.Drawing.Point(10, 245); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(83, 13); this.label1.TabIndex = 3; this.label1.Text = "Stable Counter :"; // // thresholdTrackBar // this.thresholdTrackBar.Location = new System.Drawing.Point(13, 261); this.thresholdTrackBar.Maximum = 30; this.thresholdTrackBar.Name = "thresholdTrackBar"; this.thresholdTrackBar.Size = new System.Drawing.Size(297, 45); this.thresholdTrackBar.TabIndex = 2; this.thresholdTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.thresholdTrackBar.Value = 2; this.thresholdTrackBar.Scroll += new System.EventHandler(this.thresholdTrackBar_Scroll); // // cameraWindow // this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace; this.cameraWindow.Camera = null; this.cameraWindow.Location = new System.Drawing.Point(0, 0); this.cameraWindow.Name = "cameraWindow"; this.cameraWindow.Size = new System.Drawing.Size(320, 240); this.cameraWindow.TabIndex = 1; this.cameraWindow.Click += new System.EventHandler(this.cameraWindow_Click_1); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(325, 628); this.Controls.Add(this.panel); this.Controls.Add(this.statusBar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Menu = this.mainMenu; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Laser Following Camera"; this.Load += new System.EventHandler(this.MainForm_Load); this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing); ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit(); this.panel.ResumeLayout(false); this.panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pixelsPerStepTrackBar)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.thresholdTrackBar)).EndInit(); this.ResumeLayout(false); }