private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FileTree)); this.vTree = new vTreeView(); this.TreeImages = new ImageList(this.components); this.TreeMenu = new ContextMenuStrip(this.components); this.mnuTreeLines = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.mnu_RefreshIngestTree = new ToolStripMenuItem(); this.TreeMenu.SuspendLayout(); base.SuspendLayout(); this.vTree.AccessibleName = "TreeView"; this.vTree.AccessibleRole = AccessibleRole.List; this.vTree.ContextMenuStrip = this.TreeMenu; this.vTree.Dock = DockStyle.Fill; this.vTree.ImageList = this.TreeImages; this.vTree.Location = new Point(0, 0); this.vTree.Name = "vTree"; this.vTree.ScrollPosition = new Point(0, 0); this.vTree.SelectedNode = null; this.vTree.Size = new Size(397, 498); this.vTree.TabIndex = 0; this.vTree.Text = "vTreeView1"; this.vTree.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.NodeMouseUp += new vTreeViewMouseEventHandler(this.vTree_NodeMouseUp); this.TreeImages.ImageStream = (ImageListStreamer)Resources.FileTree.Tree_ImageStream; this.TreeImages.TransparentColor = Color.Transparent; this.TreeImages.Images.SetKeyName(0, "global.png"); this.TreeImages.Images.SetKeyName(1, "person2.png"); this.TreeImages.Images.SetKeyName(2, "year.png"); this.TreeImages.Images.SetKeyName(3, "month.png"); this.TreeImages.Images.SetKeyName(4, "day.png"); ToolStripItemCollection items = this.TreeMenu.Items; ToolStripItem[] mnuRefreshIngestTree = new ToolStripItem[] { this.mnuTreeLines, this.toolStripMenuItem1, this.mnu_RefreshIngestTree }; this.TreeMenu.Items.AddRange(mnuRefreshIngestTree); this.TreeMenu.Name = "TreeMenu"; this.TreeMenu.Size = new Size(153, 76); this.mnuTreeLines.Name = "mnuTreeLines"; this.mnuTreeLines.Size = new Size(152, 22); this.mnuTreeLines.Text = "Tree Lines"; this.mnuTreeLines.Click += new EventHandler(this.mnuTreeLines_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(149, 6); this.mnu_RefreshIngestTree.Name = "mnu_RefreshIngestTree"; this.mnu_RefreshIngestTree.Size = new Size(152, 22); this.mnu_RefreshIngestTree.Text = "Refresh List"; this.mnu_RefreshIngestTree.Click += new EventHandler(this.mnu_RefreshIngestTree_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.vTree); base.Name = "FileTree"; base.Size = new Size(397, 498); base.Load += new EventHandler(this.FileTree_Load); this.TreeMenu.ResumeLayout(false); base.ResumeLayout(false); }
public Menu(vTreeView tv, ICollection <IPlugin> plugins, Panel pnl) { PluginPanel = pnl; menuTree = tv; menuTree.NodeMouseUp += new vTreeViewMouseEventHandler(menuTree_NodeMouseUp); Plugins = plugins; _Plugins = new Dictionary <string, IPlugin>(); foreach (IPlugin plugin in Plugins) { _Plugins.Add(plugin.PluginName, plugin); } InitTreeMenu(); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SetCtrl)); this.SetHeaderPanel = new Panel(); this.btn_ResetSets = new vButton(); this.lblLine = new Label(); this.DatePanel = new Panel(); this.ToDate = new vDateTimePicker(); this.lbl_EndDate = new Label(); this.FromDate = new vDateTimePicker(); this.lbl_StartDate = new Label(); this.btn_FindSet = new vButton(); this.txtSetID = new vTextBox(); this.lbl_SetID = new Label(); this.vTree = new vTreeView(); this.TreeMenu = new ContextMenuStrip(this.components); this.mnu_NewSetFile = new ToolStripMenuItem(); this.clearSetSearchToolStripMenuItem = new ToolStripMenuItem(); this.mnu_TreeLines = new ToolStripMenuItem(); this.expandAllToolStripMenuItem = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.mnu_RefreshSets = new ToolStripMenuItem(); this.TreeImages = new ImageList(this.components); this.SetHeaderPanel.SuspendLayout(); this.DatePanel.SuspendLayout(); this.TreeMenu.SuspendLayout(); base.SuspendLayout(); this.SetHeaderPanel.Controls.Add(this.btn_ResetSets); this.SetHeaderPanel.Controls.Add(this.lblLine); this.SetHeaderPanel.Controls.Add(this.DatePanel); this.SetHeaderPanel.Controls.Add(this.btn_FindSet); this.SetHeaderPanel.Controls.Add(this.txtSetID); this.SetHeaderPanel.Controls.Add(this.lbl_SetID); this.SetHeaderPanel.Dock = DockStyle.Top; this.SetHeaderPanel.Location = new Point(0, 0); this.SetHeaderPanel.Name = "SetHeaderPanel"; this.SetHeaderPanel.Size = new Size(290, 161); this.SetHeaderPanel.TabIndex = 1; this.btn_ResetSets.AllowAnimations = true; this.btn_ResetSets.BackColor = Color.Transparent; this.btn_ResetSets.Location = new Point(11, 102); this.btn_ResetSets.Name = "btn_ResetSets"; this.btn_ResetSets.RoundedCornersMask = 15; this.btn_ResetSets.RoundedCornersRadius = 0; this.btn_ResetSets.Size = new Size(128, 30); this.btn_ResetSets.TabIndex = 7; this.btn_ResetSets.Text = "Reset"; this.btn_ResetSets.UseVisualStyleBackColor = false; this.btn_ResetSets.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.btn_ResetSets.Click += new EventHandler(this.btn_ResetSets_Click); this.lblLine.BackColor = Color.Gray; this.lblLine.Location = new Point(9, 141); this.lblLine.Name = "lblLine"; this.lblLine.Size = new Size(272, 1); this.lblLine.TabIndex = 6; this.DatePanel.Controls.Add(this.ToDate); this.DatePanel.Controls.Add(this.lbl_EndDate); this.DatePanel.Controls.Add(this.FromDate); this.DatePanel.Controls.Add(this.lbl_StartDate); this.DatePanel.Location = new Point(3, 31); this.DatePanel.Name = "DatePanel"; this.DatePanel.Size = new Size(286, 61); this.DatePanel.TabIndex = 4; this.ToDate.BackColor = Color.White; this.ToDate.BorderColor = Color.Black; this.ToDate.Culture = new CultureInfo(""); this.ToDate.DefaultDateTimeFormat = DefaultDateTimePatterns.Custom; this.ToDate.DropDownMaximumSize = new Size(1000, 1000); this.ToDate.DropDownMinimumSize = new Size(10, 10); this.ToDate.DropDownResizeDirection = SizingDirection.None; this.ToDate.FormatValue = ""; this.ToDate.Location = new Point(142, 34); this.ToDate.MaxDate = new DateTime(2100, 1, 1, 0, 0, 0, 0); this.ToDate.MinDate = new DateTime(1900, 1, 1, 0, 0, 0, 0); this.ToDate.Name = "ToDate"; this.ToDate.ShowGrip = false; this.ToDate.Size = new Size(128, 23); this.ToDate.TabIndex = 15; this.ToDate.Text = "07/14/2014 17:46:50"; this.ToDate.UseThemeBackColor = false; this.ToDate.UseThemeDropDownArrowColor = true; this.ToDate.Value = new DateTime(2017, 08, 03); this.ToDate.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.lbl_EndDate.AutoSize = true; this.lbl_EndDate.Location = new Point(9, 39); this.lbl_EndDate.Name = "lbl_EndDate"; this.lbl_EndDate.Size = new Size(74, 13); this.lbl_EndDate.TabIndex = 14; this.lbl_EndDate.Text = "To Date/Time"; this.FromDate.BackColor = Color.White; this.FromDate.BorderColor = Color.Black; this.FromDate.Culture = new CultureInfo(""); this.FromDate.DefaultDateTimeFormat = DefaultDateTimePatterns.Custom; this.FromDate.DropDownMaximumSize = new Size(1000, 1000); this.FromDate.DropDownMinimumSize = new Size(10, 10); this.FromDate.DropDownResizeDirection = SizingDirection.None; this.FromDate.FormatValue = ""; this.FromDate.Location = new Point(142, 5); this.FromDate.MaxDate = new DateTime(2100, 1, 1, 0, 0, 0, 0); this.FromDate.MinDate = new DateTime(1900, 1, 1, 0, 0, 0, 0); this.FromDate.Name = "FromDate"; this.FromDate.ShowGrip = false; this.FromDate.Size = new Size(128, 23); this.FromDate.TabIndex = 13; this.FromDate.Text = "07/14/2014 17:46:50"; this.FromDate.UseThemeBackColor = false; this.FromDate.UseThemeDropDownArrowColor = true; this.FromDate.Value = new DateTime(2017, 08, 03); this.FromDate.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.lbl_StartDate.AutoSize = true; this.lbl_StartDate.Location = new Point(9, 10); this.lbl_StartDate.Name = "lbl_StartDate"; this.lbl_StartDate.Size = new Size(84, 13); this.lbl_StartDate.TabIndex = 12; this.lbl_StartDate.Text = "From Date/Time"; this.btn_FindSet.AllowAnimations = true; this.btn_FindSet.BackColor = Color.Transparent; this.btn_FindSet.Location = new Point(145, 102); this.btn_FindSet.Name = "btn_FindSet"; this.btn_FindSet.RoundedCornersMask = 15; this.btn_FindSet.RoundedCornersRadius = 0; this.btn_FindSet.Size = new Size(128, 30); this.btn_FindSet.TabIndex = 3; this.btn_FindSet.Text = "Find Sets"; this.btn_FindSet.UseVisualStyleBackColor = false; this.btn_FindSet.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.btn_FindSet.Click += new EventHandler(this.btn_FindSet_Click); this.txtSetID.BackColor = Color.White; this.txtSetID.BoundsOffset = new Size(1, 1); this.txtSetID.ControlBorderColor = Color.FromArgb(39, 39, 39); this.txtSetID.DefaultText = ""; this.txtSetID.Location = new Point(145, 6); this.txtSetID.MaxLength = 64; this.txtSetID.Name = "txtSetID"; this.txtSetID.PasswordChar = '\0'; this.txtSetID.ScrollBars = ScrollBars.None; this.txtSetID.SelectionLength = 0; this.txtSetID.SelectionStart = 0; this.txtSetID.Size = new Size(128, 23); this.txtSetID.TabIndex = 2; this.txtSetID.TextAlign = HorizontalAlignment.Left; this.txtSetID.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.lbl_SetID.AutoSize = true; this.lbl_SetID.Location = new Point(9, 11); this.lbl_SetID.Name = "lbl_SetID"; this.lbl_SetID.Size = new Size(70, 13); this.lbl_SetID.TabIndex = 0; this.lbl_SetID.Text = "Set Name/ID"; this.vTree.AccessibleName = "TreeView"; this.vTree.AccessibleRole = AccessibleRole.List; this.vTree.BorderColor = Color.Transparent; this.vTree.ContextMenuStrip = this.TreeMenu; this.vTree.Dock = DockStyle.Fill; this.vTree.ImageList = this.TreeImages; this.vTree.Location = new Point(0, 161); this.vTree.Name = "vTree"; this.vTree.ScrollPosition = new Point(0, 0); this.vTree.SelectedNode = null; this.vTree.ShowRootLines = true; this.vTree.Size = new Size(290, 363); this.vTree.TabIndex = 2; this.vTree.UseThemeBorderColor = false; this.vTree.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.NodeMouseUp += new vTreeViewMouseEventHandler(this.vTree_NodeMouseUp); ToolStripItemCollection items = this.TreeMenu.Items; ToolStripItem[] mnuNewSetFile = new ToolStripItem[] { this.mnu_NewSetFile, this.clearSetSearchToolStripMenuItem, this.mnu_TreeLines, this.expandAllToolStripMenuItem, this.toolStripMenuItem1, this.mnu_RefreshSets }; TreeMenu.Items.AddRange(mnuNewSetFile); this.TreeMenu.Name = "TreeMenu"; this.TreeMenu.Size = new Size(234, 120); this.mnu_NewSetFile.Name = "mnu_NewSetFile"; this.mnu_NewSetFile.Size = new Size(233, 22); this.mnu_NewSetFile.Text = "Add New File to Selected Set..."; this.mnu_NewSetFile.Visible = false; this.mnu_NewSetFile.Click += new EventHandler(this.mnu_NewSetFile_Click); this.clearSetSearchToolStripMenuItem.Name = "clearSetSearchToolStripMenuItem"; this.clearSetSearchToolStripMenuItem.Size = new Size(233, 22); this.clearSetSearchToolStripMenuItem.Text = "Clear Set Search"; this.mnu_TreeLines.Name = "mnu_TreeLines"; this.mnu_TreeLines.Size = new Size(233, 22); this.mnu_TreeLines.Text = "Tree Lines"; this.mnu_TreeLines.Click += new EventHandler(this.mnu_TreeLines_Click); this.expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem"; this.expandAllToolStripMenuItem.Size = new Size(233, 22); this.expandAllToolStripMenuItem.Text = "Expand All"; this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(230, 6); this.mnu_RefreshSets.Name = "mnu_RefreshSets"; this.mnu_RefreshSets.Size = new Size(233, 22); this.mnu_RefreshSets.Text = "Refresh Sets"; this.mnu_RefreshSets.Click += new EventHandler(this.mnu_RefreshSets_Click); this.TreeImages.ImageStream = (ImageListStreamer)Resources.SetCtrl.TreeImages_ImageStream; this.TreeImages.TransparentColor = Color.Transparent; this.TreeImages.Images.SetKeyName(0, "group.png"); this.TreeImages.Images.SetKeyName(1, "groups.png"); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.White; base.Controls.Add(this.vTree); base.Controls.Add(this.SetHeaderPanel); base.Name = "SetCtrl"; base.Size = new Size(290, 524); base.Load += new EventHandler(this.SetCtrl_Load); this.SetHeaderPanel.ResumeLayout(false); this.SetHeaderPanel.PerformLayout(); this.DatePanel.ResumeLayout(false); this.DatePanel.PerformLayout(); this.TreeMenu.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(AcctCtrl)); this.vTree = new vTreeView(); this.TreeMenu = new ContextMenuStrip(this.components); this.mnu_RefreshDeptTree = new ToolStripMenuItem(); this.mnu_ShowTreeLines = new ToolStripMenuItem(); this.mnu_ClearAccountList = new ToolStripMenuItem(); this.TreeImages = new ImageList(this.components); this.SearchPanel = new Panel(); this.btn_ResetList = new vButton(); this.btn_Find = new vButton(); this.txtLastName = new vTextBox(); this.lbl_LastName = new Label(); this.txtBadgeNumber = new vTextBox(); this.lbl_BadgeNumber = new Label(); this.vAcctList = new vListBox(); this.AcctImages = new ImageList(this.components); this.TreeMenu.SuspendLayout(); this.SearchPanel.SuspendLayout(); this.SuspendLayout(); this.vTree.AccessibleName = "TreeView"; this.vTree.AccessibleRole = AccessibleRole.List; this.vTree.BorderColor = Color.White; this.vTree.ContextMenuStrip = this.TreeMenu; this.vTree.Dock = DockStyle.Left; this.vTree.ImageList = this.TreeImages; this.vTree.Location = new Point(0, 0); this.vTree.Name = "vTree"; this.vTree.ScrollPosition = new Point(0, 0); this.vTree.SelectedNode = (vTreeNode)null; this.vTree.Size = new Size(189, 402); this.vTree.TabIndex = 0; this.vTree.Text = "vTreeView1"; this.vTree.UseThemeBackColor = false; this.vTree.UseThemeBorderColor = false; this.vTree.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.NodeMouseUp += new vTreeViewMouseEventHandler(this.vTree_NodeMouseUp); this.TreeMenu.Items.AddRange(new ToolStripItem[3] { (ToolStripItem)this.mnu_RefreshDeptTree, (ToolStripItem)this.mnu_ShowTreeLines, (ToolStripItem)this.mnu_ClearAccountList }); this.TreeMenu.Name = "TreeMenu"; this.TreeMenu.Size = new Size(171, 70); this.mnu_RefreshDeptTree.Name = "mnu_RefreshDeptTree"; this.mnu_RefreshDeptTree.Size = new Size(170, 22); this.mnu_RefreshDeptTree.Text = "Refresh"; this.mnu_RefreshDeptTree.Click += new EventHandler(this.mnu_RefreshDeptTree_Click); this.mnu_ShowTreeLines.Name = "mnu_ShowTreeLines"; this.mnu_ShowTreeLines.Size = new Size(170, 22); this.mnu_ShowTreeLines.Text = "Show Lines"; this.mnu_ShowTreeLines.Click += new EventHandler(this.mnu_ShowTreeLines_Click); this.mnu_ClearAccountList.Name = "mnu_ClearAccountList"; this.mnu_ClearAccountList.Size = new Size(170, 22); this.mnu_ClearAccountList.Text = "Clear Account List"; this.mnu_ClearAccountList.Click += new EventHandler(this.mnu_ClearAccountList_Click); this.TreeImages.ImageStream = (ImageListStreamer)Resources.AcctCtrl.TreeImages_ImageStream; this.TreeImages.TransparentColor = Color.Transparent; this.TreeImages.Images.SetKeyName(0, "global.png"); this.TreeImages.Images.SetKeyName(1, "dept1.png"); this.TreeImages.Images.SetKeyName(2, "substation.png"); this.TreeImages.Images.SetKeyName(3, "unassigned.png"); this.SearchPanel.Controls.Add((Control)this.btn_ResetList); this.SearchPanel.Controls.Add((Control)this.btn_Find); this.SearchPanel.Controls.Add((Control)this.txtLastName); this.SearchPanel.Controls.Add((Control)this.lbl_LastName); this.SearchPanel.Controls.Add((Control)this.txtBadgeNumber); this.SearchPanel.Controls.Add((Control)this.lbl_BadgeNumber); this.SearchPanel.Dock = DockStyle.Top; this.SearchPanel.Location = new Point(189, 0); this.SearchPanel.Name = "SearchPanel"; this.SearchPanel.Size = new Size(250, 100); this.SearchPanel.TabIndex = 1; this.btn_ResetList.AllowAnimations = true; this.btn_ResetList.BackColor = Color.Transparent; this.btn_ResetList.Location = new Point(10, 67); this.btn_ResetList.Name = "btn_ResetList"; this.btn_ResetList.RoundedCornersMask = (byte)15; this.btn_ResetList.RoundedCornersRadius = 0; this.btn_ResetList.Size = new Size(106, 24); this.btn_ResetList.TabIndex = 5; this.btn_ResetList.Text = "Reset List"; this.btn_ResetList.UseVisualStyleBackColor = false; this.btn_ResetList.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.btn_ResetList.Click += new EventHandler(this.btn_ResetList_Click); this.btn_Find.AllowAnimations = true; this.btn_Find.BackColor = Color.Transparent; this.btn_Find.Image = (Image)Properties.Resources.search; this.btn_Find.ImageAlign = ContentAlignment.MiddleLeft; this.btn_Find.Location = new Point(122, 67); this.btn_Find.Name = "btn_Find"; this.btn_Find.RoundedCornersMask = (byte)15; this.btn_Find.RoundedCornersRadius = 0; this.btn_Find.Size = new Size(116, 24); this.btn_Find.TabIndex = 4; this.btn_Find.Text = "Find"; this.btn_Find.UseVisualStyleBackColor = false; this.btn_Find.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.btn_Find.Click += new EventHandler(this.btn_Find_Click); this.txtLastName.BackColor = Color.White; this.txtLastName.BoundsOffset = new Size(1, 1); this.txtLastName.ControlBorderColor = Color.FromArgb(39, 39, 39); this.txtLastName.DefaultText = ""; this.txtLastName.Location = new Point(122, 37); this.txtLastName.MaxLength = 32; this.txtLastName.Name = "txtLastName"; this.txtLastName.PasswordChar = char.MinValue; this.txtLastName.ScrollBars = ScrollBars.None; this.txtLastName.SelectionLength = 0; this.txtLastName.SelectionStart = 0; this.txtLastName.Size = new Size(116, 23); this.txtLastName.TabIndex = 3; this.txtLastName.TextAlign = HorizontalAlignment.Left; this.txtLastName.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.lbl_LastName.Location = new Point(7, 42); this.lbl_LastName.Name = "lbl_LastName"; this.lbl_LastName.Size = new Size(110, 13); this.lbl_LastName.TabIndex = 2; this.lbl_LastName.Text = "Last Name"; this.txtBadgeNumber.BackColor = Color.White; this.txtBadgeNumber.BoundsOffset = new Size(1, 1); this.txtBadgeNumber.ControlBorderColor = Color.FromArgb(39, 39, 39); this.txtBadgeNumber.DefaultText = ""; this.txtBadgeNumber.Location = new Point(122, 8); this.txtBadgeNumber.MaxLength = 12; this.txtBadgeNumber.Name = "txtBadgeNumber"; this.txtBadgeNumber.PasswordChar = char.MinValue; this.txtBadgeNumber.ScrollBars = ScrollBars.None; this.txtBadgeNumber.SelectionLength = 0; this.txtBadgeNumber.SelectionStart = 0; this.txtBadgeNumber.Size = new Size(116, 23); this.txtBadgeNumber.TabIndex = 1; this.txtBadgeNumber.TextAlign = HorizontalAlignment.Left; this.txtBadgeNumber.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.lbl_BadgeNumber.Location = new Point(7, 13); this.lbl_BadgeNumber.Name = "lbl_BadgeNumber"; this.lbl_BadgeNumber.Size = new Size(110, 13); this.lbl_BadgeNumber.TabIndex = 0; this.lbl_BadgeNumber.Text = "Badge Number"; this.vAcctList.BorderColor = Color.White; this.vAcctList.Dock = DockStyle.Fill; this.vAcctList.ImageList = this.AcctImages; this.vAcctList.ItemHeight = 24; this.vAcctList.Location = new Point(189, 100); this.vAcctList.Name = "vAcctList"; this.vAcctList.RoundedCornersMaskListItem = (byte)15; this.vAcctList.Size = new Size(250, 302); this.vAcctList.TabIndex = 2; this.vAcctList.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vAcctList.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vAcctList.SelectedItemChanged += new EventHandler(this.vAcctList_SelectedItemChanged); this.vAcctList.DoubleClick += new EventHandler(this.vAcctList_DoubleClick); this.AcctImages.ImageStream = (ImageListStreamer)Resources.AcctCtrl.AcctImages_ImageStream; this.AcctImages.TransparentColor = Color.Transparent; this.AcctImages.Images.SetKeyName(0, "people.png"); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.White; this.Controls.Add((Control)this.vAcctList); this.Controls.Add((Control)this.SearchPanel); this.Controls.Add((Control)this.vTree); this.Name = "AcctCtrl"; this.Size = new Size(439, 402); this.Load += new EventHandler(this.AcctCtrl_Load); this.Resize += new EventHandler(this.AcctCtrl_Resize); this.TreeMenu.ResumeLayout(false); this.SearchPanel.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FileTree)); this.imageList1 = new ImageList(this.components); this.PanelHeader = new Panel(); this.lblDOY = new Label(); this.lbl_DayOfYear = new Label(); this.vTree = new vTreeView(); this.TreeMenu = new ContextMenuStrip(this.components); this.mnu_ClearSelection = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.mnu_RefreshView = new ToolStripMenuItem(); this.mnu_TreeLines = new ToolStripMenuItem(); this.PanelHeader.SuspendLayout(); this.TreeMenu.SuspendLayout(); base.SuspendLayout(); this.imageList1.ImageStream = (ImageListStreamer)Resources.FileTree.imageList1_ImageStream; this.imageList1.TransparentColor = Color.Transparent; this.imageList1.Images.SetKeyName(0, "catalog.png"); this.imageList1.Images.SetKeyName(1, "year.png"); this.imageList1.Images.SetKeyName(2, "month.png"); this.imageList1.Images.SetKeyName(3, "day.png"); this.PanelHeader.Controls.Add(this.lblDOY); this.PanelHeader.Controls.Add(this.lbl_DayOfYear); this.PanelHeader.Dock = DockStyle.Top; this.PanelHeader.Location = new Point(0, 0); this.PanelHeader.Name = "PanelHeader"; this.PanelHeader.Size = new Size(321, 34); this.PanelHeader.TabIndex = 0; this.lblDOY.AutoSize = true; this.lblDOY.Location = new Point(158, 11); this.lblDOY.Name = "lblDOY"; this.lblDOY.Size = new Size(13, 13); this.lblDOY.TabIndex = 5; this.lblDOY.Text = "0"; this.lbl_DayOfYear.AutoSize = true; this.lbl_DayOfYear.Location = new Point(16, 11); this.lbl_DayOfYear.Name = "lbl_DayOfYear"; this.lbl_DayOfYear.Size = new Size(81, 13); this.lbl_DayOfYear.TabIndex = 4; this.lbl_DayOfYear.Text = "Day of the Year"; this.vTree.AccessibleName = "TreeView"; this.vTree.AccessibleRole = AccessibleRole.List; this.vTree.BorderColor = Color.Transparent; this.vTree.ContextMenuStrip = this.TreeMenu; this.vTree.Dock = DockStyle.Fill; this.vTree.ImageList = this.imageList1; this.vTree.Location = new Point(0, 34); this.vTree.Name = "vTree"; this.vTree.ScrollPosition = new Point(0, 0); this.vTree.SelectedNode = null; this.vTree.Size = new Size(321, 418); this.vTree.TabIndex = 1; this.vTree.Text = "vTreeView1"; this.vTree.UseThemeBorderColor = false; this.vTree.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.vTree.NodeMouseUp += new vTreeViewMouseEventHandler(this.vTree_NodeMouseUp); ToolStripItemCollection items = this.TreeMenu.Items; ToolStripItem[] mnuClearSelection = new ToolStripItem[] { this.mnu_ClearSelection, this.toolStripMenuItem1, this.mnu_RefreshView, this.mnu_TreeLines }; this.TreeMenu.Items.AddRange(mnuClearSelection); this.TreeMenu.Name = "TreeMenu"; this.TreeMenu.Size = new Size(153, 76); this.mnu_ClearSelection.Name = "mnu_ClearSelection"; this.mnu_ClearSelection.Size = new Size(152, 22); this.mnu_ClearSelection.Text = "Clear Selection"; this.mnu_ClearSelection.Click += new EventHandler(this.mnu_ClearSelection_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(149, 6); this.mnu_RefreshView.Name = "mnu_RefreshView"; this.mnu_RefreshView.Size = new Size(152, 22); this.mnu_RefreshView.Text = "Refresh View"; this.mnu_RefreshView.Click += new EventHandler(this.mnu_RefreshView_Click); this.mnu_TreeLines.Name = "mnu_TreeLines"; this.mnu_TreeLines.Size = new Size(152, 22); this.mnu_TreeLines.Text = "Tree Lines"; this.mnu_TreeLines.Click += new EventHandler(this.mnu_TreeLines_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.White; base.Controls.Add(this.vTree); base.Controls.Add(this.PanelHeader); base.Name = "FileTree"; base.Size = new Size(321, 452); base.Load += new EventHandler(this.FileTree_Load); this.PanelHeader.ResumeLayout(false); this.PanelHeader.PerformLayout(); this.TreeMenu.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(VMMgr)); this.statusStrip1 = new StatusStrip(); this.vSplitContainer1 = new vSplitContainer(); this.MenuTree = new vTreeView(); this.TreeImages = new ImageList(this.components); this.PluginPanel = new Panel(); this.HeaderPanel = new Panel(); this.LogoPic = new PictureBox(); this.btnHelp = new vButton(); this.lbl_StudioTitle = new Label(); this.pictureBox1 = new PictureBox(); this.vSplitContainer1.Panel1.SuspendLayout(); this.vSplitContainer1.Panel2.SuspendLayout(); this.vSplitContainer1.SuspendLayout(); this.HeaderPanel.SuspendLayout(); ((ISupportInitialize)this.LogoPic).BeginInit(); ((ISupportInitialize)this.pictureBox1).BeginInit(); base.SuspendLayout(); this.statusStrip1.Location = new Point(0, 540); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(784, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; this.vSplitContainer1.AllowAnimations = true; this.vSplitContainer1.Dock = DockStyle.Fill; this.vSplitContainer1.Location = new Point(0, 45); this.vSplitContainer1.Name = "vSplitContainer1"; this.vSplitContainer1.Orientation = Orientation.Horizontal; this.vSplitContainer1.Panel1.BackColor = Color.White; this.vSplitContainer1.Panel1.BorderColor = Color.Silver; this.vSplitContainer1.Panel1.Controls.Add(this.MenuTree); this.vSplitContainer1.Panel1.Location = new Point(0, 0); this.vSplitContainer1.Panel1.Name = "Panel1"; this.vSplitContainer1.Panel1.Size = new Size(247, 495); this.vSplitContainer1.Panel1.TabIndex = 1; this.vSplitContainer1.Panel2.BackColor = Color.White; this.vSplitContainer1.Panel2.BorderColor = Color.Silver; this.vSplitContainer1.Panel2.Controls.Add(this.PluginPanel); this.vSplitContainer1.Panel2.Location = new Point(254, 0); this.vSplitContainer1.Panel2.Name = "Panel2"; this.vSplitContainer1.Panel2.Size = new Size(530, 495); this.vSplitContainer1.Panel2.TabIndex = 2; this.vSplitContainer1.Size = new Size(784, 495); this.vSplitContainer1.SplitterDistance = 250; this.vSplitContainer1.StyleKey = "Splitter"; this.vSplitContainer1.TabIndex = 2; this.vSplitContainer1.Text = "vSplitContainer1"; this.vSplitContainer1.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.MenuTree.AccessibleName = "TreeView"; this.MenuTree.AccessibleRole = AccessibleRole.List; this.MenuTree.Dock = DockStyle.Fill; this.MenuTree.ImageList = this.TreeImages; this.MenuTree.ItemHeight = 20; this.MenuTree.Location = new Point(0, 0); this.MenuTree.Name = "MenuTree"; this.MenuTree.ScrollPosition = new Point(0, 0); this.MenuTree.SelectedNode = null; this.MenuTree.ShowRootLines = true; this.MenuTree.Size = new Size(247, 495); this.MenuTree.TabIndex = 0; this.MenuTree.TreeIndent = 25; this.MenuTree.VIBlendScrollBarsTheme = VIBLEND_THEME.OFFICE2010SILVER; this.MenuTree.VIBlendTheme = VIBLEND_THEME.OFFICE2010SILVER; this.TreeImages.ImageStream = (ImageListStreamer)Resources.VMMgr.TreeImages_ImageStream; this.TreeImages.TransparentColor = Color.Transparent; this.TreeImages.Images.SetKeyName(0, "networkcomputer.png"); this.TreeImages.Images.SetKeyName(1, "org.png"); this.TreeImages.Images.SetKeyName(2, "building.png"); this.TreeImages.Images.SetKeyName(3, "accounts.png"); this.TreeImages.Images.SetKeyName(4, "assets.png"); this.TreeImages.Images.SetKeyName(5, "manufacturer.png"); this.TreeImages.Images.SetKeyName(6, "link.png"); this.TreeImages.Images.SetKeyName(7, "activedirectory.png"); this.TreeImages.Images.SetKeyName(8, "settings.png"); this.TreeImages.Images.SetKeyName(9, "settings32.png"); this.TreeImages.Images.SetKeyName(10, "cloud.png"); this.TreeImages.Images.SetKeyName(11, "tools.png"); this.TreeImages.Images.SetKeyName(12, "sys_settings2.png"); this.TreeImages.Images.SetKeyName(13, "camera.png"); this.TreeImages.Images.SetKeyName(14, "storage.png"); this.TreeImages.Images.SetKeyName(15, "emailCfg.png"); this.TreeImages.Images.SetKeyName(16, "license.png"); this.TreeImages.Images.SetKeyName(17, "systemlogs.png"); this.TreeImages.Images.SetKeyName(18, "account_logs.png"); this.TreeImages.Images.SetKeyName(19, "reports.png"); this.TreeImages.Images.SetKeyName(20, "reports2.png"); this.TreeImages.Images.SetKeyName(21, "device.png"); this.TreeImages.Images.SetKeyName(22, "restore.png"); this.TreeImages.Images.SetKeyName(23, "camera.png"); this.PluginPanel.AutoScroll = true; this.PluginPanel.Dock = DockStyle.Fill; this.PluginPanel.Location = new Point(0, 0); this.PluginPanel.Name = "PluginPanel"; this.PluginPanel.Size = new Size(530, 495); this.PluginPanel.TabIndex = 0; this.HeaderPanel.BackColor = Color.FromArgb(64, 64, 64); this.HeaderPanel.BackgroundImageLayout = ImageLayout.Stretch; this.HeaderPanel.Controls.Add(this.LogoPic); this.HeaderPanel.Controls.Add(this.btnHelp); this.HeaderPanel.Controls.Add(this.lbl_StudioTitle); this.HeaderPanel.Controls.Add(this.pictureBox1); this.HeaderPanel.Dock = DockStyle.Top; this.HeaderPanel.Location = new Point(0, 0); this.HeaderPanel.Name = "HeaderPanel"; this.HeaderPanel.Size = new Size(784, 45); this.HeaderPanel.TabIndex = 0; this.LogoPic.BackColor = Color.Transparent; this.LogoPic.Dock = DockStyle.Right; this.LogoPic.Image = Properties.Resources.logo; this.LogoPic.Location = new Point(535, 0); this.LogoPic.Margin = new Padding(4); this.LogoPic.Name = "LogoPic"; this.LogoPic.Padding = new Padding(0, 6, 4, 6); this.LogoPic.Size = new Size(249, 45); this.LogoPic.SizeMode = PictureBoxSizeMode.StretchImage; this.LogoPic.TabIndex = 0; this.LogoPic.TabStop = false; this.btnHelp.AllowAnimations = true; this.btnHelp.BackColor = Color.Transparent; this.btnHelp.Image = Properties.Resources.help; this.btnHelp.Location = new Point(273, 3); this.btnHelp.Name = "btnHelp"; this.btnHelp.PaintBorder = false; this.btnHelp.PaintDefaultBorder = false; this.btnHelp.PaintDefaultFill = false; this.btnHelp.RoundedCornersMask = 15; this.btnHelp.RoundedCornersRadius = 0; this.btnHelp.Size = new Size(40, 40); this.btnHelp.TabIndex = 3; this.btnHelp.UseVisualStyleBackColor = false; this.btnHelp.VIBlendTheme = VIBLEND_THEME.VISTABLUE; this.btnHelp.Click += new EventHandler(this.btnHelp_Click); this.lbl_StudioTitle.AutoSize = true; this.lbl_StudioTitle.BackColor = Color.Transparent; this.lbl_StudioTitle.ForeColor = Color.White; this.lbl_StudioTitle.Location = new Point(51, 7); this.lbl_StudioTitle.Name = "lbl_StudioTitle"; this.lbl_StudioTitle.Size = new Size(168, 13); this.lbl_StudioTitle.TabIndex = 2; this.lbl_StudioTitle.Text = "System Configuration and Settings"; this.pictureBox1.BackColor = Color.Transparent; this.pictureBox1.Image = Properties.Resources.studio_2; this.pictureBox1.Location = new Point(4, 4); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new Size(40, 38); this.pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage; this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(784, 562); base.Controls.Add(this.vSplitContainer1); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.HeaderPanel); base.Icon = (Icon)Resources.VMMgr.VMMgrIcon; this.MinimumSize = new Size(800, 600); base.Name = "VMMgr"; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "C3 Sentinel Studio"; base.FormClosing += new FormClosingEventHandler(this.VMMgr_FormClosing); base.Load += new EventHandler(this.VMMgr_Load); this.vSplitContainer1.Panel1.ResumeLayout(false); this.vSplitContainer1.Panel2.ResumeLayout(false); this.vSplitContainer1.ResumeLayout(false); this.HeaderPanel.ResumeLayout(false); this.HeaderPanel.PerformLayout(); ((ISupportInitialize)this.LogoPic).EndInit(); ((ISupportInitialize)this.pictureBox1).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }