Example #1
0
 /// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ViewStructure));
     this.camerasTree = new CameraViewer.CamerasTreeView();
     this.imageList   = new System.Windows.Forms.ImageList(this.components);
     this.viewGrid    = new CameraViewer.ViewGrid();
     this.contextMenu = new System.Windows.Forms.ContextMenu();
     this.menuItem1   = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // camerasTree
     //
     this.camerasTree.AllowDrop = true;
     this.camerasTree.Anchor    = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                   | System.Windows.Forms.AnchorStyles.Left);
     this.camerasTree.CameraImage         = 1;
     this.camerasTree.CameraSelectedImage = 1;
     this.camerasTree.CamerasOnly         = true;
     this.camerasTree.ImageList           = this.imageList;
     this.camerasTree.Location            = new System.Drawing.Point(10, 10);
     this.camerasTree.Name      = "camerasTree";
     this.camerasTree.Size      = new System.Drawing.Size(180, 160);
     this.camerasTree.Sorted    = true;
     this.camerasTree.TabIndex  = 0;
     this.camerasTree.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.camerasTree_ItemDrag);
     //
     // imageList
     //
     this.imageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // viewGrid
     //
     this.viewGrid.AllowDrop = true;
     this.viewGrid.Anchor    = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                 | System.Windows.Forms.AnchorStyles.Left)
                                | System.Windows.Forms.AnchorStyles.Right);
     this.viewGrid.Cols        = ((short)(2));
     this.viewGrid.ContextMenu = this.contextMenu;
     this.viewGrid.Location    = new System.Drawing.Point(200, 10);
     this.viewGrid.Name        = "viewGrid";
     this.viewGrid.Rows        = ((short)(2));
     this.viewGrid.Size        = new System.Drawing.Size(220, 160);
     this.viewGrid.TabIndex    = 1;
     this.viewGrid.DragDrop   += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragDrop);
     this.viewGrid.DragOver   += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragOver);
     //
     // contextMenu
     //
     this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "Clear";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // ViewStructure
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.viewGrid,
         this.camerasTree
     });
     this.Name      = "ViewStructure";
     this.Size      = new System.Drawing.Size(430, 180);
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragDrop);
     this.DragOver += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragOver);
     this.ResumeLayout(false);
 }
Example #2
0
 /// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
     this.mainMenu = new System.Windows.Forms.MainMenu();
     this.fileItem = new System.Windows.Forms.MenuItem();
     this.closeFileItem = new System.Windows.Forms.MenuItem();
     this.menuItem8 = new System.Windows.Forms.MenuItem();
     this.exitFileItem = new System.Windows.Forms.MenuItem();
     this.viewItem = new System.Windows.Forms.MenuItem();
     this.camerasBarViewItem = new System.Windows.Forms.MenuItem();
     this.menuItem2 = new System.Windows.Forms.MenuItem();
     this.fitToScreenViewItem = new System.Windows.Forms.MenuItem();
     this.fullScreenViewItem = new System.Windows.Forms.MenuItem();
     this.camerasItem = new System.Windows.Forms.MenuItem();
     this.addGroupCamerasItem = new System.Windows.Forms.MenuItem();
     this.editGroupCamerasItem = new System.Windows.Forms.MenuItem();
     this.deleteGroupCamerasItem = new System.Windows.Forms.MenuItem();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this.addCameraCamerasItem = new System.Windows.Forms.MenuItem();
     this.editCameraCamerasItem = new System.Windows.Forms.MenuItem();
     this.deleteCameraCamerasItem = new System.Windows.Forms.MenuItem();
     this.menuItem3 = new System.Windows.Forms.MenuItem();
     this.openCameraCamerasItem = new System.Windows.Forms.MenuItem();
     this.viewsItem = new System.Windows.Forms.MenuItem();
     this.addGroupViewsItem = new System.Windows.Forms.MenuItem();
     this.editGroupViewsItem = new System.Windows.Forms.MenuItem();
     this.deleteGroupViewsItem = new System.Windows.Forms.MenuItem();
     this.menuItem5 = new System.Windows.Forms.MenuItem();
     this.addViewViewsItem = new System.Windows.Forms.MenuItem();
     this.editViewViewsItem = new System.Windows.Forms.MenuItem();
     this.deleteViewViewsItem = new System.Windows.Forms.MenuItem();
     this.menuItem6 = new System.Windows.Forms.MenuItem();
     this.openViewViewsItem = new System.Windows.Forms.MenuItem();
     this.helpItem = new System.Windows.Forms.MenuItem();
     this.aboutHelpItem = new System.Windows.Forms.MenuItem();
     this.statusBar = new System.Windows.Forms.StatusBar();
     this.infoPanel = new System.Windows.Forms.StatusBarPanel();
     this.bpsPanel = new System.Windows.Forms.StatusBarPanel();
     this.fpsPanel = new System.Windows.Forms.StatusBarPanel();
     this.toolBarImageList = new System.Windows.Forms.ImageList(this.components);
     this.toolBar = new System.Windows.Forms.ToolBar();
     this.closeViewButton = new System.Windows.Forms.ToolBarButton();
     this.sep1 = new System.Windows.Forms.ToolBarButton();
     this.camerasBarButton = new System.Windows.Forms.ToolBarButton();
     this.sep2 = new System.Windows.Forms.ToolBarButton();
     this.fitToScreenButton = new System.Windows.Forms.ToolBarButton();
     this.fullScreenButton = new System.Windows.Forms.ToolBarButton();
     this.sep3 = new System.Windows.Forms.ToolBarButton();
     this.aboutButton = new System.Windows.Forms.ToolBarButton();
     this.mainPanel = new System.Windows.Forms.Panel();
     this.multiplexer = new CameraViewer.Multiplexer();
     this.cameraContextMenu = new System.Windows.Forms.ContextMenu();
     this.closeCameraItem = new System.Windows.Forms.MenuItem();
     this.menuItem4 = new System.Windows.Forms.MenuItem();
     this.fitToScreenCameraItem = new System.Windows.Forms.MenuItem();
     this.fullScreenCameraItem = new System.Windows.Forms.MenuItem();
     this.viewContextMenu = new System.Windows.Forms.ContextMenu();
     this.fitToSreenItem = new System.Windows.Forms.MenuItem();
     this.fullScreenItem = new System.Windows.Forms.MenuItem();
     this.splitter = new System.Windows.Forms.Splitter();
     this.camerasTree = new CameraViewer.CamerasTreeView();
     this.camerasContextMenu = new System.Windows.Forms.ContextMenu();
     this.addGroupItem = new System.Windows.Forms.MenuItem();
     this.editGroupItem = new System.Windows.Forms.MenuItem();
     this.deleteGroupItem = new System.Windows.Forms.MenuItem();
     this.sep1Item = new System.Windows.Forms.MenuItem();
     this.addCameraItem = new System.Windows.Forms.MenuItem();
     this.editCameraItem = new System.Windows.Forms.MenuItem();
     this.deleteCameraItem = new System.Windows.Forms.MenuItem();
     this.sep2Item = new System.Windows.Forms.MenuItem();
     this.openCameraItem = new System.Windows.Forms.MenuItem();
     this.sep3Item = new System.Windows.Forms.MenuItem();
     this.addViewItem = new System.Windows.Forms.MenuItem();
     this.editViewItem = new System.Windows.Forms.MenuItem();
     this.deleteViewItem = new System.Windows.Forms.MenuItem();
     this.sep4Item = new System.Windows.Forms.MenuItem();
     this.openViewItem = new System.Windows.Forms.MenuItem();
     this.iconsList = new System.Windows.Forms.ImageList(this.components);
     this.timer = new System.Timers.Timer();
     this.menuItem7 = new System.Windows.Forms.MenuItem();
     this.cameraInfoItem = new System.Windows.Forms.MenuItem();
     ((System.ComponentModel.ISupportInitialize)(this.infoPanel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bpsPanel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit();
     this.mainPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                              this.fileItem,
                                                                              this.viewItem,
                                                                              this.camerasItem,
                                                                              this.viewsItem,
                                                                              this.helpItem});
     //
     // fileItem
     //
     this.fileItem.Index = 0;
     this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                              this.closeFileItem,
                                                                              this.menuItem8,
                                                                              this.exitFileItem});
     this.fileItem.Text = "&File";
     //
     // closeFileItem
     //
     this.closeFileItem.Index = 0;
     this.closeFileItem.Text = "&Close view";
     this.closeFileItem.Click += new System.EventHandler(this.closeFileItem_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 1;
     this.menuItem8.Text = "-";
     //
     // exitFileItem
     //
     this.exitFileItem.Index = 2;
     this.exitFileItem.Text = "E&xit";
     this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click);
     //
     // viewItem
     //
     this.viewItem.Index = 1;
     this.viewItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                              this.camerasBarViewItem,
                                                                              this.menuItem2,
                                                                              this.fitToScreenViewItem,
                                                                              this.fullScreenViewItem});
     this.viewItem.Text = "&View";
     //
     // camerasBarViewItem
     //
     this.camerasBarViewItem.Index = 0;
     this.camerasBarViewItem.Text = "&Cameras Bar";
     this.camerasBarViewItem.Click += new System.EventHandler(this.camerasBarViewItem_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 1;
     this.menuItem2.Text = "-";
     //
     // fitToScreenViewItem
     //
     this.fitToScreenViewItem.Index = 2;
     this.fitToScreenViewItem.Shortcut = System.Windows.Forms.Shortcut.F10;
     this.fitToScreenViewItem.Text = "Fit to screen";
     this.fitToScreenViewItem.Click += new System.EventHandler(this.fitToScreenViewItem_Click);
     //
     // fullScreenViewItem
     //
     this.fullScreenViewItem.Index = 3;
     this.fullScreenViewItem.Shortcut = System.Windows.Forms.Shortcut.F11;
     this.fullScreenViewItem.Text = "Full screen";
     this.fullScreenViewItem.Click += new System.EventHandler(this.fullScreenViewItem_Click);
     //
     // camerasItem
     //
     this.camerasItem.Index = 2;
     this.camerasItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                 this.addGroupCamerasItem,
                                                                                 this.editGroupCamerasItem,
                                                                                 this.deleteGroupCamerasItem,
                                                                                 this.menuItem1,
                                                                                 this.addCameraCamerasItem,
                                                                                 this.editCameraCamerasItem,
                                                                                 this.deleteCameraCamerasItem,
                                                                                 this.menuItem3,
                                                                                 this.openCameraCamerasItem});
     this.camerasItem.Text = "&Cameras";
     this.camerasItem.Popup += new System.EventHandler(this.camerasItem_Popup);
     //
     // addGroupCamerasItem
     //
     this.addGroupCamerasItem.Index = 0;
     this.addGroupCamerasItem.Text = "Add group";
     this.addGroupCamerasItem.Click += new System.EventHandler(this.addGroupCamerasItem_Click);
     //
     // editGroupCamerasItem
     //
     this.editGroupCamerasItem.Index = 1;
     this.editGroupCamerasItem.Text = "Edit group";
     this.editGroupCamerasItem.Click += new System.EventHandler(this.editGroupCamerasItem_Click);
     //
     // deleteGroupCamerasItem
     //
     this.deleteGroupCamerasItem.Index = 2;
     this.deleteGroupCamerasItem.Text = "Delete group";
     this.deleteGroupCamerasItem.Click += new System.EventHandler(this.deleteGroupCamerasItem_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index = 3;
     this.menuItem1.Text = "-";
     //
     // addCameraCamerasItem
     //
     this.addCameraCamerasItem.Index = 4;
     this.addCameraCamerasItem.Text = "&Add camera";
     this.addCameraCamerasItem.Click += new System.EventHandler(this.addCameraCamerasItem_Click);
     //
     // editCameraCamerasItem
     //
     this.editCameraCamerasItem.Index = 5;
     this.editCameraCamerasItem.Text = "&Edit camera";
     this.editCameraCamerasItem.Click += new System.EventHandler(this.editCameraCamerasItem_Click);
     //
     // deleteCameraCamerasItem
     //
     this.deleteCameraCamerasItem.Index = 6;
     this.deleteCameraCamerasItem.Text = "&Delete camera";
     this.deleteCameraCamerasItem.Click += new System.EventHandler(this.deleteCameraCamerasItem_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 7;
     this.menuItem3.Text = "-";
     //
     // openCameraCamerasItem
     //
     this.openCameraCamerasItem.Index = 8;
     this.openCameraCamerasItem.Text = "&Open camera";
     this.openCameraCamerasItem.Click += new System.EventHandler(this.openCameraCamerasItem_Click);
     //
     // viewsItem
     //
     this.viewsItem.Index = 3;
     this.viewsItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this.addGroupViewsItem,
                                                                               this.editGroupViewsItem,
                                                                               this.deleteGroupViewsItem,
                                                                               this.menuItem5,
                                                                               this.addViewViewsItem,
                                                                               this.editViewViewsItem,
                                                                               this.deleteViewViewsItem,
                                                                               this.menuItem6,
                                                                               this.openViewViewsItem});
     this.viewsItem.Text = "&Views";
     this.viewsItem.Popup += new System.EventHandler(this.viewsItem_Popup);
     //
     // addGroupViewsItem
     //
     this.addGroupViewsItem.Index = 0;
     this.addGroupViewsItem.Text = "Add group";
     this.addGroupViewsItem.Click += new System.EventHandler(this.addGroupViewsItem_Click);
     //
     // editGroupViewsItem
     //
     this.editGroupViewsItem.Index = 1;
     this.editGroupViewsItem.Text = "Edit group";
     this.editGroupViewsItem.Click += new System.EventHandler(this.editGroupViewsItem_Click);
     //
     // deleteGroupViewsItem
     //
     this.deleteGroupViewsItem.Index = 2;
     this.deleteGroupViewsItem.Text = "Delete group";
     this.deleteGroupViewsItem.Click += new System.EventHandler(this.deleteGroupViewsItem_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 3;
     this.menuItem5.Text = "-";
     //
     // addViewViewsItem
     //
     this.addViewViewsItem.Index = 4;
     this.addViewViewsItem.Text = "&Add view";
     this.addViewViewsItem.Click += new System.EventHandler(this.addViewViewsItem_Click);
     //
     // editViewViewsItem
     //
     this.editViewViewsItem.Index = 5;
     this.editViewViewsItem.Text = "&Edit view";
     this.editViewViewsItem.Click += new System.EventHandler(this.editViewViewsItem_Click);
     //
     // deleteViewViewsItem
     //
     this.deleteViewViewsItem.Index = 6;
     this.deleteViewViewsItem.Text = "&Delete view";
     this.deleteViewViewsItem.Click += new System.EventHandler(this.deleteViewViewsItem_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 7;
     this.menuItem6.Text = "-";
     //
     // openViewViewsItem
     //
     this.openViewViewsItem.Index = 8;
     this.openViewViewsItem.Text = "&Open view";
     this.openViewViewsItem.Click += new System.EventHandler(this.openViewViewsItem_Click);
     //
     // helpItem
     //
     this.helpItem.Index = 4;
     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);
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 351);
     this.statusBar.Name = "statusBar";
     this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
                                                                                  this.infoPanel,
                                                                                  this.bpsPanel,
                                                                                  this.fpsPanel});
     this.statusBar.ShowPanels = true;
     this.statusBar.Size = new System.Drawing.Size(560, 22);
     this.statusBar.TabIndex = 0;
     //
     // infoPanel
     //
     this.infoPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.infoPanel.Width = 404;
     //
     // bpsPanel
     //
     this.bpsPanel.Width = 70;
     //
     // fpsPanel
     //
     this.fpsPanel.Width = 70;
     //
     // toolBarImageList
     //
     this.toolBarImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.toolBarImageList.ImageSize = new System.Drawing.Size(24, 24);
     this.toolBarImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolBarImageList.ImageStream")));
     this.toolBarImageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar
     //
     this.toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar.AutoSize = false;
     this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
                                                                                this.closeViewButton,
                                                                                this.sep1,
                                                                                this.camerasBarButton,
                                                                                this.sep2,
                                                                                this.fitToScreenButton,
                                                                                this.fullScreenButton,
                                                                                this.sep3,
                                                                                this.aboutButton});
     this.toolBar.DropDownArrows = true;
     this.toolBar.ImageList = this.toolBarImageList;
     this.toolBar.Name = "toolBar";
     this.toolBar.ShowToolTips = true;
     this.toolBar.Size = new System.Drawing.Size(560, 33);
     this.toolBar.TabIndex = 1;
     this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
     //
     // closeViewButton
     //
     this.closeViewButton.ImageIndex = 4;
     this.closeViewButton.ToolTipText = "Close current view";
     //
     // sep1
     //
     this.sep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // camerasBarButton
     //
     this.camerasBarButton.ImageIndex = 0;
     this.camerasBarButton.ToolTipText = "Show/hide cameras tree";
     //
     // sep2
     //
     this.sep2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // fitToScreenButton
     //
     this.fitToScreenButton.ImageIndex = 1;
     this.fitToScreenButton.ToolTipText = "Fit to screen";
     //
     // fullScreenButton
     //
     this.fullScreenButton.ImageIndex = 2;
     this.fullScreenButton.ToolTipText = "Full screen";
     //
     // sep3
     //
     this.sep3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // aboutButton
     //
     this.aboutButton.ImageIndex = 3;
     this.aboutButton.ToolTipText = "About";
     //
     // mainPanel
     //
     this.mainPanel.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                             this.multiplexer,
                                                                             this.splitter,
                                                                             this.camerasTree});
     this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.mainPanel.Location = new System.Drawing.Point(0, 33);
     this.mainPanel.Name = "mainPanel";
     this.mainPanel.Size = new System.Drawing.Size(560, 318);
     this.mainPanel.TabIndex = 2;
     //
     // multiplexer
     //
     this.multiplexer.BackColor = System.Drawing.SystemColors.AppWorkspace;
     this.multiplexer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.multiplexer.CamerasContextMenu = this.cameraContextMenu;
     this.multiplexer.ContextMenu = this.viewContextMenu;
     this.multiplexer.Dock = System.Windows.Forms.DockStyle.Fill;
     this.multiplexer.Location = new System.Drawing.Point(179, 0);
     this.multiplexer.Name = "multiplexer";
     this.multiplexer.Size = new System.Drawing.Size(381, 318);
     this.multiplexer.TabIndex = 2;
     //
     // cameraContextMenu
     //
     this.cameraContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                       this.closeCameraItem,
                                                                                       this.menuItem4,
                                                                                       this.fitToScreenCameraItem,
                                                                                       this.fullScreenCameraItem,
                                                                                       this.menuItem7,
                                                                                       this.cameraInfoItem});
     this.cameraContextMenu.Popup += new System.EventHandler(this.cameraContextMenu_Popup);
     //
     // closeCameraItem
     //
     this.closeCameraItem.Index = 0;
     this.closeCameraItem.Text = "Close view";
     this.closeCameraItem.Click += new System.EventHandler(this.closeCameraItem_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index = 1;
     this.menuItem4.Text = "-";
     //
     // fitToScreenCameraItem
     //
     this.fitToScreenCameraItem.Index = 2;
     this.fitToScreenCameraItem.Shortcut = System.Windows.Forms.Shortcut.F10;
     this.fitToScreenCameraItem.Text = "Fit to screen";
     this.fitToScreenCameraItem.Click += new System.EventHandler(this.fitToScreenViewItem_Click);
     //
     // fullScreenCameraItem
     //
     this.fullScreenCameraItem.Index = 3;
     this.fullScreenCameraItem.Shortcut = System.Windows.Forms.Shortcut.F11;
     this.fullScreenCameraItem.Text = "Full screen";
     this.fullScreenCameraItem.Click += new System.EventHandler(this.fullScreenViewItem_Click);
     //
     // viewContextMenu
     //
     this.viewContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                     this.fitToSreenItem,
                                                                                     this.fullScreenItem});
     //
     // fitToSreenItem
     //
     this.fitToSreenItem.Index = 0;
     this.fitToSreenItem.Shortcut = System.Windows.Forms.Shortcut.F10;
     this.fitToSreenItem.Text = "Fit to screen";
     this.fitToSreenItem.Click += new System.EventHandler(this.fitToScreenViewItem_Click);
     //
     // fullScreenItem
     //
     this.fullScreenItem.Index = 1;
     this.fullScreenItem.Shortcut = System.Windows.Forms.Shortcut.F11;
     this.fullScreenItem.Text = "Full screen";
     this.fullScreenItem.Click += new System.EventHandler(this.fullScreenViewItem_Click);
     //
     // splitter
     //
     this.splitter.Location = new System.Drawing.Point(176, 0);
     this.splitter.Name = "splitter";
     this.splitter.Size = new System.Drawing.Size(3, 318);
     this.splitter.TabIndex = 1;
     this.splitter.TabStop = false;
     //
     // camerasTree
     //
     this.camerasTree.CameraImage = 2;
     this.camerasTree.CameraSelectedImage = 2;
     this.camerasTree.CamerasFolderSelectedImage = 1;
     this.camerasTree.ContextMenu = this.camerasContextMenu;
     this.camerasTree.Dock = System.Windows.Forms.DockStyle.Left;
     this.camerasTree.HideSelection = false;
     this.camerasTree.ImageList = this.iconsList;
     this.camerasTree.Name = "camerasTree";
     this.camerasTree.Size = new System.Drawing.Size(176, 318);
     this.camerasTree.Sorted = true;
     this.camerasTree.TabIndex = 0;
     this.camerasTree.ViewImage = 5;
     this.camerasTree.ViewSelectedImage = 5;
     this.camerasTree.ViewsFolderImage = 3;
     this.camerasTree.ViewsFolderSelectedImage = 4;
     this.camerasTree.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.camerasTree_KeyPress);
     this.camerasTree.DoubleClick += new System.EventHandler(this.camerasTree_DoubleClick);
     //
     // camerasContextMenu
     //
     this.camerasContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                        this.addGroupItem,
                                                                                        this.editGroupItem,
                                                                                        this.deleteGroupItem,
                                                                                        this.sep1Item,
                                                                                        this.addCameraItem,
                                                                                        this.editCameraItem,
                                                                                        this.deleteCameraItem,
                                                                                        this.sep2Item,
                                                                                        this.openCameraItem,
                                                                                        this.sep3Item,
                                                                                        this.addViewItem,
                                                                                        this.editViewItem,
                                                                                        this.deleteViewItem,
                                                                                        this.sep4Item,
                                                                                        this.openViewItem});
     this.camerasContextMenu.Popup += new System.EventHandler(this.camerasContextMenu_Popup);
     //
     // addGroupItem
     //
     this.addGroupItem.Index = 0;
     this.addGroupItem.Text = "Add group";
     this.addGroupItem.Click += new System.EventHandler(this.addGroupItem_Click);
     //
     // editGroupItem
     //
     this.editGroupItem.Index = 1;
     this.editGroupItem.Text = "Edit group";
     this.editGroupItem.Click += new System.EventHandler(this.editGroupItem_Click);
     //
     // deleteGroupItem
     //
     this.deleteGroupItem.Index = 2;
     this.deleteGroupItem.Text = "Delete group";
     this.deleteGroupItem.Click += new System.EventHandler(this.deleteGroupItem_Click);
     //
     // sep1Item
     //
     this.sep1Item.Index = 3;
     this.sep1Item.Text = "-";
     //
     // addCameraItem
     //
     this.addCameraItem.Index = 4;
     this.addCameraItem.Text = "Add camera";
     this.addCameraItem.Click += new System.EventHandler(this.addCameraItem_Click);
     //
     // editCameraItem
     //
     this.editCameraItem.Index = 5;
     this.editCameraItem.Text = "Edit camera";
     this.editCameraItem.Click += new System.EventHandler(this.editCameraItem_Click);
     //
     // deleteCameraItem
     //
     this.deleteCameraItem.Index = 6;
     this.deleteCameraItem.Text = "Delete camera";
     this.deleteCameraItem.Click += new System.EventHandler(this.deleteCameraItem_Click);
     //
     // sep2Item
     //
     this.sep2Item.Index = 7;
     this.sep2Item.Text = "-";
     //
     // openCameraItem
     //
     this.openCameraItem.Index = 8;
     this.openCameraItem.Text = "Open camera";
     this.openCameraItem.Click += new System.EventHandler(this.openCameraItem_Click);
     //
     // sep3Item
     //
     this.sep3Item.Index = 9;
     this.sep3Item.Text = "-";
     //
     // addViewItem
     //
     this.addViewItem.Index = 10;
     this.addViewItem.Text = "Add view";
     this.addViewItem.Click += new System.EventHandler(this.addViewItem_Click);
     //
     // editViewItem
     //
     this.editViewItem.Index = 11;
     this.editViewItem.Text = "Edit view";
     this.editViewItem.Click += new System.EventHandler(this.editViewItem_Click);
     //
     // deleteViewItem
     //
     this.deleteViewItem.Index = 12;
     this.deleteViewItem.Text = "Delete view";
     this.deleteViewItem.Click += new System.EventHandler(this.deleteViewItem_Click);
     //
     // sep4Item
     //
     this.sep4Item.Index = 13;
     this.sep4Item.Text = "-";
     //
     // openViewItem
     //
     this.openViewItem.Index = 14;
     this.openViewItem.Text = "Open view";
     this.openViewItem.Click += new System.EventHandler(this.openViewItem_Click);
     //
     // iconsList
     //
     this.iconsList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.iconsList.ImageSize = new System.Drawing.Size(16, 16);
     this.iconsList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("iconsList.ImageStream")));
     this.iconsList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // timer
     //
     this.timer.Interval = 1000;
     this.timer.SynchronizingObject = this;
     this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed);
     //
     // menuItem7
     //
     this.menuItem7.Index = 4;
     this.menuItem7.Text = "-";
     //
     // cameraInfoItem
     //
     this.cameraInfoItem.Index = 5;
     this.cameraInfoItem.Text = "Camera info";
     this.cameraInfoItem.Click += new System.EventHandler(this.cameraInfoItem_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(560, 373);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.mainPanel,
                                                                   this.toolBar,
                                                                   this.statusBar});
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximumSize = new System.Drawing.Size(2000, 2000);
     this.Menu = this.mainMenu;
     this.MinimumSize = new System.Drawing.Size(320, 240);
     this.Name = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Camera Vision";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.Load += new System.EventHandler(this.MainForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.infoPanel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bpsPanel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit();
     this.mainPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit();
     this.ResumeLayout(false);
 }
Example #3
0
 /// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ViewStructure));
     this.camerasTree = new CameraViewer.CamerasTreeView();
     this.imageList = new System.Windows.Forms.ImageList(this.components);
     this.viewGrid = new CameraViewer.ViewGrid();
     this.contextMenu = new System.Windows.Forms.ContextMenu();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // camerasTree
     //
     this.camerasTree.AllowDrop = true;
     this.camerasTree.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left);
     this.camerasTree.CameraImage = 1;
     this.camerasTree.CameraSelectedImage = 1;
     this.camerasTree.CamerasOnly = true;
     this.camerasTree.ImageList = this.imageList;
     this.camerasTree.Location = new System.Drawing.Point(10, 10);
     this.camerasTree.Name = "camerasTree";
     this.camerasTree.Size = new System.Drawing.Size(180, 160);
     this.camerasTree.Sorted = true;
     this.camerasTree.TabIndex = 0;
     this.camerasTree.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.camerasTree_ItemDrag);
     //
     // imageList
     //
     this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // viewGrid
     //
     this.viewGrid.AllowDrop = true;
     this.viewGrid.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right);
     this.viewGrid.Cols = ((short)(2));
     this.viewGrid.ContextMenu = this.contextMenu;
     this.viewGrid.Location = new System.Drawing.Point(200, 10);
     this.viewGrid.Name = "viewGrid";
     this.viewGrid.Rows = ((short)(2));
     this.viewGrid.Size = new System.Drawing.Size(220, 160);
     this.viewGrid.TabIndex = 1;
     this.viewGrid.DragDrop += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragDrop);
     this.viewGrid.DragOver += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragOver);
     //
     // contextMenu
     //
     this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                 this.menuItem1});
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.Text = "Clear";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // ViewStructure
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.viewGrid,
                                                                   this.camerasTree});
     this.Name = "ViewStructure";
     this.Size = new System.Drawing.Size(430, 180);
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragDrop);
     this.DragOver += new System.Windows.Forms.DragEventHandler(this.viewGrid_DragOver);
     this.ResumeLayout(false);
 }