public static void UpdateToolbarText(ToolStrip toolStrip) { toolStrip.SuspendLayout(); foreach (ToolStripItem item in toolStrip.Items) { if (item is IStatusUpdate) { ((IStatusUpdate)item).UpdateText(); } } toolStrip.ResumeLayout(); }
public static ToolStripDropDownButton addInLuoiItem(ToolStrip toolStripBar, TreeList treeList) { toolStripBar.SuspendLayout(); ToolStripSeparator InLuoiSep = new System.Windows.Forms.ToolStripSeparator(); InLuoiSep.Name = "InLuoiSep"; InLuoiSep.Size = new System.Drawing.Size(200, 20); ToolStripDropDownButton inLuoi = new System.Windows.Forms.ToolStripDropDownButton(); inLuoi.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText; inLuoi.Image = FWImageDic.PRINT_IMAGE20; inLuoi.ImageTransparentColor = System.Drawing.Color.Magenta; inLuoi.Name = "inLuoi"; inLuoi.Size = new System.Drawing.Size(200, 20); inLuoi.Text = "In danh sách"; ToolStripMenuItem itemIn = new ToolStripMenuItem("In"); itemIn.Name = "in"; itemIn.DisplayStyle = ToolStripItemDisplayStyle.Text; itemIn.Size = new System.Drawing.Size(200, 20); itemIn.Click += delegate(object sender, EventArgs e) { if (treeList != null) { treeList.Print(); } }; inLuoi.DropDownItems.Add(itemIn); ToolStripMenuItem itemXemTruoc = new ToolStripMenuItem("Xem trước"); itemXemTruoc.Name = "xemTruoc"; itemXemTruoc.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXemTruoc.Size = new System.Drawing.Size(200, 20); itemXemTruoc.Click += delegate(object sender, EventArgs e) { HelpMsgBox._showWaitingMsg(delegate() { if (treeList != null) { treeList.ShowPrintPreview(); } }); }; inLuoi.DropDownItems.Add(itemXemTruoc); toolStripBar.Items.Add(InLuoiSep); toolStripBar.Items.Add(inLuoi); toolStripBar.ResumeLayout(false); toolStripBar.PerformLayout(); return inLuoi; }
public ToolStrip1() { ToolStrip toolStrip = new ToolStrip(); toolStrip.SuspendLayout(); toolStrip.Dock = DockStyle.Top; var tb = zForm.CreateToolStripTextBox(backColor: SystemColors.Control, width: 100); tb.Enabled = false; toolStrip.Items.Add(tb); toolStrip.Items.Add(zForm.CreateToolStripLabel("tata")); toolStrip.Items.Add(zForm.CreateToolStripLabelSeparator(100)); toolStrip.Items.Add(zForm.CreateToolStripTextBox("toto")); toolStrip.ResumeLayout(false); this.SuspendLayout(); this.ClientSize = new Size(1000, 300); this.Controls.Add(toolStrip); this.ResumeLayout(false); this.PerformLayout(); }
public virtual void Clear() { if (IsReadOnly) { throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); } if (Count == 0) { return; } ToolStripOverflow overflow = null; if (_owner != null && !_owner.IsDisposingItems) { _owner.SuspendLayout(); overflow = _owner.GetOverflow(); if (overflow != null) { overflow.SuspendLayout(); } } try { while (Count != 0) { RemoveAt(Count - 1); } } finally { if (overflow != null) { overflow.ResumeLayout(false); } if (_owner != null && !_owner.IsDisposingItems) { _owner.ResumeLayout(); } } }
internal static bool RevertMergeInternal(ToolStrip targetToolStrip, ToolStrip sourceToolStrip, bool revertMDIControls) { bool flag = false; if (targetToolStrip == null) { throw new ArgumentNullException("targetToolStrip"); } if (targetToolStrip == sourceToolStrip) { throw new ArgumentException(System.Windows.Forms.SR.GetString("ToolStripMergeImpossibleIdentical")); } bool flag2 = false; if (sourceToolStrip != null) { foreach (MergeHistory history in targetToolStrip.MergeHistoryStack) { flag2 = history.MergedToolStrip == sourceToolStrip; if (flag2) { break; } } if (!flag2) { return false; } } if (sourceToolStrip != null) { sourceToolStrip.SuspendLayout(); } targetToolStrip.SuspendLayout(); try { Stack<ToolStrip> stack = new Stack<ToolStrip>(); flag2 = false; while ((targetToolStrip.MergeHistoryStack.Count > 0) && !flag2) { flag = true; MergeHistory history2 = targetToolStrip.MergeHistoryStack.Pop(); if (history2.MergedToolStrip == sourceToolStrip) { flag2 = true; } else if (!revertMDIControls && (sourceToolStrip == null)) { if (IsSpecialMDIStrip(history2.MergedToolStrip)) { stack.Push(history2.MergedToolStrip); } } else { stack.Push(history2.MergedToolStrip); } while (history2.MergeHistoryItemsStack.Count > 0) { MergeHistoryItem item = history2.MergeHistoryItemsStack.Pop(); switch (item.MergeAction) { case MergeAction.Insert: item.IndexCollection.Insert(Math.Min(item.Index, item.IndexCollection.Count), item.TargetItem); break; case MergeAction.Remove: item.IndexCollection.Remove(item.TargetItem); item.PreviousIndexCollection.Insert(Math.Min(item.PreviousIndex, item.PreviousIndexCollection.Count), item.TargetItem); break; } } } while (stack.Count > 0) { Merge(stack.Pop(), targetToolStrip); } } finally { if (sourceToolStrip != null) { sourceToolStrip.ResumeLayout(); } targetToolStrip.ResumeLayout(); } return flag; }
/// <summary> /// Gắn item Xuất dữ liệu ra excel và gắn vào toolStrip. /// Dùng trong Quản lý Danh Mục /// </summary> public static ToolStripDropDownButton addXuatRaFileItem(ToolStrip toolStripBar, GridView gridView) { toolStripBar.SuspendLayout(); ToolStripDropDownButton xuatRaFile = new System.Windows.Forms.ToolStripDropDownButton(); xuatRaFile.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText; xuatRaFile.Image = FWImageDic.EXPORT_TO_FILE_IMAGE20; xuatRaFile.ImageTransparentColor = System.Drawing.Color.Magenta; xuatRaFile.Name = "xuatRaFile"; xuatRaFile.Size = new System.Drawing.Size(200, 20); xuatRaFile.Text = "Xuất ra file"; ToolStripMenuItem itemXuatRaExcel2007 = new ToolStripMenuItem("Xuất ra file Excel 2007"); itemXuatRaExcel2007.Name = "itemXuatRaExcel2007"; itemXuatRaExcel2007.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXuatRaExcel2007.Size = new System.Drawing.Size(200, 20); itemXuatRaExcel2007.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "xlsx"); }; xuatRaFile.DropDownItems.Add(itemXuatRaExcel2007); ToolStripMenuItem itemXuatRaExcel2003 = new ToolStripMenuItem("Xuất ra file Excel 97 - 2003"); itemXuatRaExcel2003.Name = "itemXuatRaExcel2003"; itemXuatRaExcel2003.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXuatRaExcel2003.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "xls"); }; xuatRaFile.DropDownItems.Add(itemXuatRaExcel2003); ToolStripMenuItem itemXuatRaPDF = new ToolStripMenuItem("Xuất ra file PDF"); itemXuatRaPDF.Name = "itemXuatRaPDF"; itemXuatRaPDF.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXuatRaPDF.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "pdf"); }; xuatRaFile.DropDownItems.Add(itemXuatRaPDF); ToolStripMenuItem itemXuatRaHTML = new ToolStripMenuItem("Xuất ra file HTML"); itemXuatRaHTML.Name = "itemXuatRaHTML"; itemXuatRaHTML.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXuatRaHTML.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "htm"); }; xuatRaFile.DropDownItems.Add(itemXuatRaHTML); ToolStripMenuItem itemXuatRaRTF = new ToolStripMenuItem("Xuất ra file RTF"); itemXuatRaRTF.Name = "itemXuatRaRTF"; itemXuatRaRTF.DisplayStyle = ToolStripItemDisplayStyle.Text; itemXuatRaRTF.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "rtf"); }; xuatRaFile.DropDownItems.Add(itemXuatRaRTF); toolStripBar.Items.Add(xuatRaFile); toolStripBar.ResumeLayout(false); toolStripBar.PerformLayout(); return xuatRaFile; }
/// <summary> /// Gắn nút cho phép import dữ liệu từ excel file và gắn vào toolStripBar.( giống như các màn hình danh mục) /// </summary> public static ToolStripDropDownButton addImportXLSFileItem(ToolStrip toolStripBar, GridView gridView) { if (gridView is PLGridView) { toolStripBar.SuspendLayout(); ToolStripDropDownButton importXLSFile = new System.Windows.Forms.ToolStripDropDownButton(); importXLSFile.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText; //TODO: importXLSFile.Image = FWImageDic.EXPORT_TO_FILE_IMAGE20; importXLSFile.ImageTransparentColor = System.Drawing.Color.Magenta; importXLSFile.Name = "ImportXLSFile"; importXLSFile.Size = new System.Drawing.Size(200, 20); importXLSFile.Text = "Nhập từ file"; ToolStripMenuItem xlsFileMau = new ToolStripMenuItem("Xuất File mẫu để vào dữ liệu"); xlsFileMau.Name = "xlsFileMau"; xlsFileMau.DisplayStyle = ToolStripItemDisplayStyle.Text; xlsFileMau.Size = new System.Drawing.Size(200, 20); xlsFileMau.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "xlsx"); }; importXLSFile.DropDownItems.Add(xlsFileMau); ToolStripMenuItem itemChonFileImport = new ToolStripMenuItem("Chọn File chứa dữ liệu nhập"); itemChonFileImport.Name = "itemChonFileImport"; itemChonFileImport.DisplayStyle = ToolStripItemDisplayStyle.Text; itemChonFileImport.Click += delegate(object sender, EventArgs e) { HelpGrid.exportFile(gridView, "xls"); }; importXLSFile.DropDownItems.Add(itemChonFileImport); toolStripBar.Items.Add(importXLSFile); toolStripBar.ResumeLayout(false); toolStripBar.PerformLayout(); return importXLSFile; } return null; }
/// <devdoc> /// doesn't do a null check on source... if it's null we unmerge everything /// </devdoc> internal static bool RevertMergeInternal(ToolStrip targetToolStrip, ToolStrip sourceToolStrip, bool revertMDIControls) { bool result = false; if (targetToolStrip == null) { throw new ArgumentNullException("targetToolStrip"); } if (targetToolStrip == sourceToolStrip) { throw new ArgumentException(SR.GetString(SR.ToolStripMergeImpossibleIdentical)); } bool foundToolStrip = false; if (sourceToolStrip != null) { // we have a specific toolstrip to pull out. // make sure the sourceToolStrip is even merged into the targetToolStrip foreach (MergeHistory history in targetToolStrip.MergeHistoryStack) { foundToolStrip = (history.MergedToolStrip == sourceToolStrip); if (foundToolStrip) { break; } } // PERF: if we dont have the toolstrip in our merge history, bail. if (!foundToolStrip) { //Debug.WriteLine("source toolstrip not contained within target " + history.MergedToolStrip.Name); return false; } } if( sourceToolStrip != null ) { sourceToolStrip.SuspendLayout(); } targetToolStrip.SuspendLayout(); try { //Debug.WriteLine("Reverting merge, playing back history for all merged toolstrip "); Stack<ToolStrip> reApply = new Stack<ToolStrip>(); foundToolStrip = false; while (targetToolStrip.MergeHistoryStack.Count > 0 && !foundToolStrip) { result = true; // we unmerge something... MergeHistory history = targetToolStrip.MergeHistoryStack.Pop(); if (history.MergedToolStrip == sourceToolStrip) { foundToolStrip = true; } else if (!revertMDIControls && sourceToolStrip == null) { // VSWhidbey 352431: Calling ToolStripManager.RevertMerge should not pull out MDIControlStrip && MDIWindowListStrip. if (IsSpecialMDIStrip(history.MergedToolStrip)) { reApply.Push(history.MergedToolStrip); } } else { reApply.Push(history.MergedToolStrip); } //Debug.WriteLine("unmerging " + history.MergedToolStrip.Name); Debug.Indent(); while (history.MergeHistoryItemsStack.Count > 0) { MergeHistoryItem historyItem = history.MergeHistoryItemsStack.Pop(); switch (historyItem.MergeAction) { case MergeAction.Remove: historyItem.IndexCollection.Remove(historyItem.TargetItem); // put it back historyItem.PreviousIndexCollection.Insert(Math.Min(historyItem.PreviousIndex, historyItem.PreviousIndexCollection.Count), historyItem.TargetItem); break; case MergeAction.Insert: historyItem.IndexCollection.Insert(Math.Min(historyItem.Index, historyItem.IndexCollection.Count), historyItem.TargetItem); // no need to put it back, inserting it in a new collection, moved it at the correct location break; } } Debug.Unindent(); } // re-apply the merges of the toolstrips we had to unmerge first. while (reApply.Count > 0) { ToolStrip mergeAgain = reApply.Pop(); Merge(mergeAgain, targetToolStrip); } } finally { if( sourceToolStrip != null ) { sourceToolStrip.ResumeLayout(); } targetToolStrip.ResumeLayout(); } return result; //ToolStripMergeNode.SynchronizeFromToolStripMergeNode(targetToolStrip.Items, targetToolStrip.MergeItems); }
//private TextBox _textBox; private void CreateControls() { // backColor: Color.DodgerBlue _topToolsPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, height: 35); _topToolsPanel.SuspendLayout(); //_editPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, backColor: Color.DeepPink, height: 300); _editPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, height: 300); _editPanel.SuspendLayout(); //_textBox = zForm.CreateTextBox(dockStyle: DockStyle.Fill, multiline: true); //_editPanel.Controls.Add(_textBox); //_bottomPanel = zForm.CreatePanel(DockStyle.Fill, Color.Brown); //_bottomPanel.SuspendLayout(); //_resultTab = CreateResultTab(); // Color.Transparent _resultTab = PanelTabControl.Create(DockStyle.Fill); _resultTab.SuspendLayout(); //_statusPanel = zForm.CreatePanel(DockStyle.Bottom, Color.Chocolate, height: 20); //_statusPanel.SuspendLayout(); //_bottomToolsPanel = CreateBottomToolsPanel(); _bottomToolStrip = new ToolStrip(); _bottomToolStrip.SuspendLayout(); //backColor: Color.Chocolate _bottomToolsPanel = zForm.CreatePanel(dockStyle: DockStyle.Bottom, height: 20); _bottomToolsPanel.SuspendLayout(); _bottomToolsPanel.Controls.Add(_bottomToolStrip); MenuStrip menu = new MenuStrip(); menu.SuspendLayout(); this.MainMenuStrip = menu; }
public static bool RevertMerge (ToolStrip targetToolStrip, ToolStrip sourceToolStrip) { if (sourceToolStrip == null) throw new ArgumentNullException ("sourceToolStrip"); List<ToolStripItem> items_to_move = new List<ToolStripItem> (); // Find every ToolStripItem who's Owner is the source toolstrip // - If it's a TSMI, see if any of the subitems need to be moved back foreach (ToolStripItem tsi in targetToolStrip.Items) { if (tsi.Owner == sourceToolStrip) items_to_move.Add (tsi); else if (tsi is ToolStripMenuItem) foreach (ToolStripItem menuitem in (tsi as ToolStripMenuItem).DropDownItems) foreach (ToolStripMenuItem tsmi in sourceToolStrip.Items) if (menuitem.Owner == tsmi.DropDown) items_to_move.Add (menuitem); } // If we didn't find anything, return false if (items_to_move.Count == 0 && targetToolStrip.HiddenMergedItems.Count == 0) return false; // Put back all the target's items removed in the merge while (targetToolStrip.HiddenMergedItems.Count > 0) { targetToolStrip.RevertMergeItem (targetToolStrip.HiddenMergedItems[0]); targetToolStrip.HiddenMergedItems.RemoveAt (0); } sourceToolStrip.SuspendLayout (); targetToolStrip.SuspendLayout (); // Revert everything while (items_to_move.Count > 0) { sourceToolStrip.RevertMergeItem (items_to_move[0]); items_to_move.Remove (items_to_move[0]); } sourceToolStrip.ResumeLayout (); targetToolStrip.ResumeLayout (); sourceToolStrip.IsCurrentlyMerged = false; targetToolStrip.IsCurrentlyMerged = false; sourceToolStrip.CurrentlyMergedWith = null; targetToolStrip.CurrentlyMergedWith = null; return true; }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> /// private void InitializeComponent() { _toolStrip = new System.Windows.Forms.ToolStrip(); _backButton = new System.Windows.Forms.ToolStripButton(); _forwardButton = new System.Windows.Forms.ToolStripButton(); _refreshButton = new System.Windows.Forms.ToolStripButton(); _stopButton = new System.Windows.Forms.ToolStripButton(); _urlComboBox = new System.Windows.Forms.ToolStripComboBox(); _goButton = new System.Windows.Forms.ToolStripButton(); _tabControl = new System.Windows.Forms.TabControl(); _webBrowserTabPage = new System.Windows.Forms.TabPage(); _webBrowser = new System.Windows.Forms.WebBrowser(); _webServicesTabPage = new System.Windows.Forms.TabPage(); _webServicesView = new AIMS.Libraries.Scripting.ScriptControl.ReferenceDialog.WebServicesView(); _referenceNameLabel = new System.Windows.Forms.Label(); _referenceNameTextBox = new System.Windows.Forms.TextBox(); _addButton = new System.Windows.Forms.Button(); _cancelButton = new System.Windows.Forms.Button(); _namespaceTextBox = new System.Windows.Forms.TextBox(); _namespaceLabel = new System.Windows.Forms.Label(); _label2 = new System.Windows.Forms.Label(); _txtName = new System.Windows.Forms.TextBox(); _toolStrip.SuspendLayout(); _tabControl.SuspendLayout(); _webBrowserTabPage.SuspendLayout(); _webServicesTabPage.SuspendLayout(); this.SuspendLayout(); // // toolStrip // _toolStrip.CanOverflow = false; _toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _backButton, _forwardButton, _refreshButton, _stopButton, _urlComboBox, _goButton }); _toolStrip.Location = new System.Drawing.Point(0, 0); _toolStrip.Name = "toolStrip"; _toolStrip.Size = new System.Drawing.Size(543, 25); _toolStrip.Stretch = true; _toolStrip.TabIndex = 0; _toolStrip.Text = "toolStrip"; _toolStrip.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.ToolStripPreviewKeyDown); _toolStrip.Enter += new System.EventHandler(this.ToolStripEnter); _toolStrip.Leave += new System.EventHandler(this.ToolStripLeave); // // backButton // _backButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _backButton.Enabled = false; _backButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserBefore; _backButton.ImageTransparentColor = System.Drawing.Color.Magenta; _backButton.Name = "backButton"; _backButton.Size = new System.Drawing.Size(23, 22); _backButton.Text = "Back"; _backButton.Click += new System.EventHandler(this.BackButtonClick); // // forwardButton // _forwardButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _forwardButton.Enabled = false; _forwardButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserAfter; _forwardButton.ImageTransparentColor = System.Drawing.Color.Magenta; _forwardButton.Name = "forwardButton"; _forwardButton.Size = new System.Drawing.Size(23, 22); _forwardButton.Text = "forward"; _forwardButton.Click += new System.EventHandler(this.ForwardButtonClick); // // refreshButton // _refreshButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _refreshButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserRefresh; _refreshButton.ImageTransparentColor = System.Drawing.Color.Magenta; _refreshButton.Name = "refreshButton"; _refreshButton.Size = new System.Drawing.Size(23, 22); _refreshButton.Text = "Refresh"; _refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // stopButton // _stopButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _stopButton.Enabled = false; _stopButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserCancel; _stopButton.ImageTransparentColor = System.Drawing.Color.Magenta; _stopButton.Name = "stopButton"; _stopButton.Size = new System.Drawing.Size(23, 22); _stopButton.Text = "Stop"; _stopButton.ToolTipText = "Stop"; _stopButton.Click += new System.EventHandler(this.StopButtonClick); // // urlComboBox // _urlComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; _urlComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.AllUrl; _urlComboBox.AutoSize = false; _urlComboBox.FlatStyle = System.Windows.Forms.FlatStyle.Standard; _urlComboBox.Name = "urlComboBox"; _urlComboBox.Size = new System.Drawing.Size(361, 21); _urlComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UrlComboBoxKeyDown); _urlComboBox.SelectedIndexChanged += new System.EventHandler(this.UrlComboBoxSelectedIndexChanged); // // goButton // _goButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_RunProgramIcon; _goButton.ImageTransparentColor = System.Drawing.Color.Magenta; _goButton.Name = "goButton"; _goButton.Size = new System.Drawing.Size(40, 22); _goButton.Text = "Go"; _goButton.Click += new System.EventHandler(this.GoButtonClick); // // tabControl // _tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _tabControl.Controls.Add(_webBrowserTabPage); _tabControl.Controls.Add(_webServicesTabPage); _tabControl.Location = new System.Drawing.Point(0, 28); _tabControl.Name = "tabControl"; _tabControl.SelectedIndex = 0; _tabControl.Size = new System.Drawing.Size(543, 181); _tabControl.TabIndex = 1; // // webBrowserTabPage // _webBrowserTabPage.Controls.Add(_webBrowser); _webBrowserTabPage.Location = new System.Drawing.Point(4, 22); _webBrowserTabPage.Name = "webBrowserTabPage"; _webBrowserTabPage.Padding = new System.Windows.Forms.Padding(3); _webBrowserTabPage.Size = new System.Drawing.Size(535, 155); _webBrowserTabPage.TabIndex = 0; _webBrowserTabPage.Text = "WSDL"; _webBrowserTabPage.UseVisualStyleBackColor = true; // // webBrowser // _webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; _webBrowser.Location = new System.Drawing.Point(3, 3); _webBrowser.MinimumSize = new System.Drawing.Size(20, 20); _webBrowser.Name = "webBrowser"; _webBrowser.Size = new System.Drawing.Size(529, 149); _webBrowser.TabIndex = 0; _webBrowser.TabStop = false; _webBrowser.CanGoForwardChanged += new System.EventHandler(this.WebBrowserCanGoForwardChanged); _webBrowser.CanGoBackChanged += new System.EventHandler(this.WebBrowserCanGoBackChanged); _webBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.WebBrowserNavigated); _webBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.WebBrowserNavigating); // // webServicesTabPage // _webServicesTabPage.Controls.Add(_webServicesView); _webServicesTabPage.Location = new System.Drawing.Point(4, 22); _webServicesTabPage.Name = "webServicesTabPage"; _webServicesTabPage.Padding = new System.Windows.Forms.Padding(3); _webServicesTabPage.Size = new System.Drawing.Size(535, 155); _webServicesTabPage.TabIndex = 1; _webServicesTabPage.Text = "Available Web Services"; _webServicesTabPage.UseVisualStyleBackColor = true; // // webServicesView // _webServicesView.Dock = System.Windows.Forms.DockStyle.Fill; _webServicesView.Location = new System.Drawing.Point(3, 3); _webServicesView.Name = "webServicesView"; _webServicesView.Size = new System.Drawing.Size(529, 149); _webServicesView.TabIndex = 0; // // referenceNameLabel // _referenceNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _referenceNameLabel.Location = new System.Drawing.Point(-26, 263); _referenceNameLabel.Name = "referenceNameLabel"; _referenceNameLabel.Size = new System.Drawing.Size(20, 13); _referenceNameLabel.TabIndex = 2; _referenceNameLabel.Text = "&Reference Name:"; _referenceNameLabel.UseCompatibleTextRendering = true; _referenceNameLabel.Visible = false; // // referenceNameTextBox // _referenceNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _referenceNameTextBox.Location = new System.Drawing.Point(0, 300); _referenceNameTextBox.Name = "referenceNameTextBox"; _referenceNameTextBox.Size = new System.Drawing.Size(12, 20); _referenceNameTextBox.TabIndex = 4; _referenceNameTextBox.Visible = false; // // addButton // _addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); _addButton.Enabled = false; _addButton.Location = new System.Drawing.Point(468, 226); _addButton.Name = "addButton"; _addButton.Size = new System.Drawing.Size(73, 21); _addButton.TabIndex = 6; _addButton.Text = "&Add"; _addButton.UseCompatibleTextRendering = true; _addButton.UseVisualStyleBackColor = true; _addButton.Click += new System.EventHandler(this.AddButtonClick); // // cancelButton // _cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); _cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; _cancelButton.Location = new System.Drawing.Point(468, 251); _cancelButton.Name = "cancelButton"; _cancelButton.Size = new System.Drawing.Size(73, 21); _cancelButton.TabIndex = 7; _cancelButton.Text = "Cancel"; _cancelButton.UseCompatibleTextRendering = true; _cancelButton.UseVisualStyleBackColor = true; _cancelButton.Click += new System.EventHandler(this.CancelButtonClick); // // namespaceTextBox // _namespaceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _namespaceTextBox.Location = new System.Drawing.Point(129, 253); _namespaceTextBox.Name = "namespaceTextBox"; _namespaceTextBox.Size = new System.Drawing.Size(333, 20); _namespaceTextBox.TabIndex = 5; // // namespaceLabel // _namespaceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); _namespaceLabel.Location = new System.Drawing.Point(11, 252); _namespaceLabel.Name = "namespaceLabel"; _namespaceLabel.Size = new System.Drawing.Size(128, 20); _namespaceLabel.TabIndex = 3; _namespaceLabel.Text = "&Namespace:"; _namespaceLabel.UseCompatibleTextRendering = true; // // label2 // _label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); _label2.Location = new System.Drawing.Point(11, 227); _label2.Name = "label2"; _label2.Size = new System.Drawing.Size(128, 20); _label2.TabIndex = 9; _label2.Text = "&File Name:"; _label2.UseCompatibleTextRendering = true; // // txtName // _txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _txtName.Location = new System.Drawing.Point(129, 226); _txtName.Name = "txtName"; _txtName.Size = new System.Drawing.Size(333, 20); _txtName.TabIndex = 3; // // AddWebReferenceDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(543, 285); this.Controls.Add(_txtName); this.Controls.Add(_label2); this.Controls.Add(_cancelButton); this.Controls.Add(_namespaceTextBox); this.Controls.Add(_namespaceLabel); this.Controls.Add(_addButton); this.Controls.Add(_referenceNameTextBox); this.Controls.Add(_referenceNameLabel); this.Controls.Add(_tabControl); this.Controls.Add(_toolStrip); this.MinimumSize = new System.Drawing.Size(300, 200); this.Name = "AddWebReferenceDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Add Web Reference"; this.Resize += new System.EventHandler(this.AddWebReferenceDialogResize); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AddWebReferenceDialogFormClosing); _toolStrip.ResumeLayout(false); _toolStrip.PerformLayout(); _tabControl.ResumeLayout(false); _webBrowserTabPage.ResumeLayout(false); _webServicesTabPage.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(LiveOutlook.LiveApp.FrmMain)); ToolTip = new System.Windows.Forms.ToolTip(components); lblStatus = new System.Windows.Forms.ToolStripStatusLabel(); statusStrip = new System.Windows.Forms.StatusStrip(); lblLoggedInLive = new System.Windows.Forms.ToolStripStatusLabel(); lblPCUserLive = new System.Windows.Forms.ToolStripStatusLabel(); lblUsersOnlineLive = new System.Windows.Forms.ToolStripStatusLabel(); pblive = new System.Windows.Forms.ToolStripProgressBar(); toolStrip = new System.Windows.Forms.ToolStrip(); tsbtnAppointments = new System.Windows.Forms.ToolStripButton(); tsbtnEnrollement = new System.Windows.Forms.ToolStripButton(); tsbtnVisit = new System.Windows.Forms.ToolStripButton(); fileMenu = new System.Windows.Forms.ToolStripMenuItem(); exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); viewMenu = new System.Windows.Forms.ToolStripMenuItem(); toolBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); windowsMenu = new System.Windows.Forms.ToolStripMenuItem(); cascadeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); tileVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); tileHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); arrangeIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); menuStrip = new System.Windows.Forms.MenuStrip(); patientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); appointmentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); enroToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); facilityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); usersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); reportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); visitsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); activePatientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); defaultersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); userToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); changePasswordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); statusStrip.SuspendLayout(); toolStrip.SuspendLayout(); menuStrip.SuspendLayout(); SuspendLayout(); lblStatus.Name = "lblStatus"; lblStatus.Size = new System.Drawing.Size(161, 17); lblStatus.Spring = true; lblStatus.Text = "Ready"; lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[5] { lblStatus, lblLoggedInLive, lblPCUserLive, lblUsersOnlineLive, pblive }); statusStrip.Location = new System.Drawing.Point(0, 431); statusStrip.Name = "statusStrip"; statusStrip.Size = new System.Drawing.Size(764, 22); statusStrip.TabIndex = 2; statusStrip.Text = "StatusStrip"; lblLoggedInLive.Name = "lblLoggedInLive"; lblLoggedInLive.Size = new System.Drawing.Size(161, 17); lblLoggedInLive.Spring = true; lblLoggedInLive.Text = "logged in as Amme"; lblPCUserLive.Name = "lblPCUserLive"; lblPCUserLive.Size = new System.Drawing.Size(161, 17); lblPCUserLive.Spring = true; lblPCUserLive.Text = "Ke\\dkoske"; lblUsersOnlineLive.Name = "lblUsersOnlineLive"; lblUsersOnlineLive.Size = new System.Drawing.Size(161, 17); lblUsersOnlineLive.Spring = true; lblUsersOnlineLive.Text = "5 users online"; pblive.Name = "pblive"; pblive.Size = new System.Drawing.Size(100, 16); toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[3] { tsbtnAppointments, tsbtnEnrollement, tsbtnVisit }); toolStrip.Location = new System.Drawing.Point(0, 24); toolStrip.Name = "toolStrip"; toolStrip.Size = new System.Drawing.Size(764, 25); toolStrip.TabIndex = 1; toolStrip.Text = "ToolStrip"; tsbtnAppointments.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnAppointments.Image = LiveOutlook.Properties.Resources.cale; tsbtnAppointments.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnAppointments.Name = "tsbtnAppointments"; tsbtnAppointments.Size = new System.Drawing.Size(23, 22); tsbtnAppointments.Text = "toolStripButton1"; tsbtnAppointments.ToolTipText = "Manage Appointments"; tsbtnAppointments.Click += new System.EventHandler(tsbtnAppointments_Click); tsbtnEnrollement.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnEnrollement.Image = LiveOutlook.Properties.Resources.Accept; tsbtnEnrollement.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnEnrollement.Name = "tsbtnEnrollement"; tsbtnEnrollement.Size = new System.Drawing.Size(23, 22); tsbtnEnrollement.Text = "toolStripButton2"; tsbtnEnrollement.ToolTipText = "Manage Patients"; tsbtnEnrollement.Click += new System.EventHandler(tsbtnEnrollement_Click); tsbtnVisit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnVisit.Image = LiveOutlook.Properties.Resources.ReportGraph; tsbtnVisit.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnVisit.Name = "tsbtnVisit"; tsbtnVisit.Size = new System.Drawing.Size(23, 22); tsbtnVisit.Text = "toolStripButton3"; tsbtnVisit.ToolTipText = "Reporting"; tsbtnVisit.Click += new System.EventHandler(tsbtnVisit_Click); fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[1] { exitToolStripMenuItem }); fileMenu.ImageTransparentColor = System.Drawing.SystemColors.ActiveBorder; fileMenu.Name = "fileMenu"; fileMenu.Size = new System.Drawing.Size(37, 20); fileMenu.Text = "&File"; exitToolStripMenuItem.Name = "exitToolStripMenuItem"; exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22); exitToolStripMenuItem.Text = "E&xit"; exitToolStripMenuItem.Click += new System.EventHandler(ExitToolsStripMenuItem_Click); viewMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { toolBarToolStripMenuItem, statusBarToolStripMenuItem }); viewMenu.Name = "viewMenu"; viewMenu.Size = new System.Drawing.Size(44, 20); viewMenu.Text = "&View"; toolBarToolStripMenuItem.Checked = true; toolBarToolStripMenuItem.CheckOnClick = true; toolBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; toolBarToolStripMenuItem.Name = "toolBarToolStripMenuItem"; toolBarToolStripMenuItem.Size = new System.Drawing.Size(126, 22); toolBarToolStripMenuItem.Text = "&Toolbar"; toolBarToolStripMenuItem.Click += new System.EventHandler(ToolBarToolStripMenuItem_Click); statusBarToolStripMenuItem.Checked = true; statusBarToolStripMenuItem.CheckOnClick = true; statusBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; statusBarToolStripMenuItem.Name = "statusBarToolStripMenuItem"; statusBarToolStripMenuItem.Size = new System.Drawing.Size(126, 22); statusBarToolStripMenuItem.Text = "&Status Bar"; statusBarToolStripMenuItem.Click += new System.EventHandler(StatusBarToolStripMenuItem_Click); windowsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5] { cascadeToolStripMenuItem, tileVerticalToolStripMenuItem, tileHorizontalToolStripMenuItem, closeAllToolStripMenuItem, arrangeIconsToolStripMenuItem }); windowsMenu.Name = "windowsMenu"; windowsMenu.Size = new System.Drawing.Size(68, 20); windowsMenu.Text = "&Windows"; cascadeToolStripMenuItem.Name = "cascadeToolStripMenuItem"; cascadeToolStripMenuItem.Size = new System.Drawing.Size(151, 22); cascadeToolStripMenuItem.Text = "&Cascade"; cascadeToolStripMenuItem.Click += new System.EventHandler(CascadeToolStripMenuItem_Click); tileVerticalToolStripMenuItem.Name = "tileVerticalToolStripMenuItem"; tileVerticalToolStripMenuItem.Size = new System.Drawing.Size(151, 22); tileVerticalToolStripMenuItem.Text = "Tile &Vertical"; tileVerticalToolStripMenuItem.Click += new System.EventHandler(TileVerticalToolStripMenuItem_Click); tileHorizontalToolStripMenuItem.Name = "tileHorizontalToolStripMenuItem"; tileHorizontalToolStripMenuItem.Size = new System.Drawing.Size(151, 22); tileHorizontalToolStripMenuItem.Text = "Tile &Horizontal"; tileHorizontalToolStripMenuItem.Click += new System.EventHandler(TileHorizontalToolStripMenuItem_Click); closeAllToolStripMenuItem.Name = "closeAllToolStripMenuItem"; closeAllToolStripMenuItem.Size = new System.Drawing.Size(151, 22); closeAllToolStripMenuItem.Text = "C&lose All"; closeAllToolStripMenuItem.Click += new System.EventHandler(CloseAllToolStripMenuItem_Click); arrangeIconsToolStripMenuItem.Name = "arrangeIconsToolStripMenuItem"; arrangeIconsToolStripMenuItem.Size = new System.Drawing.Size(151, 22); arrangeIconsToolStripMenuItem.Text = "&Arrange Icons"; arrangeIconsToolStripMenuItem.Click += new System.EventHandler(ArrangeIconsToolStripMenuItem_Click); menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[7] { fileMenu, viewMenu, patientsToolStripMenuItem, settingsToolStripMenuItem, reportsToolStripMenuItem, windowsMenu, userToolStripMenuItem }); menuStrip.Location = new System.Drawing.Point(0, 0); menuStrip.MdiWindowListItem = windowsMenu; menuStrip.Name = "menuStrip"; menuStrip.Size = new System.Drawing.Size(764, 24); menuStrip.TabIndex = 0; menuStrip.Text = "MenuStrip"; patientsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { appointmentsToolStripMenuItem, enroToolStripMenuItem }); patientsToolStripMenuItem.Name = "patientsToolStripMenuItem"; patientsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); patientsToolStripMenuItem.Text = "Patients"; appointmentsToolStripMenuItem.Name = "appointmentsToolStripMenuItem"; appointmentsToolStripMenuItem.Size = new System.Drawing.Size(150, 22); appointmentsToolStripMenuItem.Text = "Appointments"; appointmentsToolStripMenuItem.Click += new System.EventHandler(appointmentsToolStripMenuItem_Click); enroToolStripMenuItem.Name = "enroToolStripMenuItem"; enroToolStripMenuItem.Size = new System.Drawing.Size(150, 22); enroToolStripMenuItem.Text = "Enrollment"; enroToolStripMenuItem.Click += new System.EventHandler(enroToolStripMenuItem_Click); settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { facilityToolStripMenuItem, usersToolStripMenuItem }); settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); settingsToolStripMenuItem.Text = "Settings"; facilityToolStripMenuItem.Name = "facilityToolStripMenuItem"; facilityToolStripMenuItem.Size = new System.Drawing.Size(111, 22); facilityToolStripMenuItem.Text = "Facility"; facilityToolStripMenuItem.Click += new System.EventHandler(facilityToolStripMenuItem_Click); usersToolStripMenuItem.Name = "usersToolStripMenuItem"; usersToolStripMenuItem.Size = new System.Drawing.Size(111, 22); usersToolStripMenuItem.Text = "Users"; usersToolStripMenuItem.Click += new System.EventHandler(usersToolStripMenuItem_Click); reportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3] { visitsToolStripMenuItem, activePatientsToolStripMenuItem, defaultersToolStripMenuItem }); reportsToolStripMenuItem.Name = "reportsToolStripMenuItem"; reportsToolStripMenuItem.Size = new System.Drawing.Size(59, 20); reportsToolStripMenuItem.Text = "Reports"; visitsToolStripMenuItem.Image = LiveOutlook.Properties.Resources.ReportGraph; visitsToolStripMenuItem.Name = "visitsToolStripMenuItem"; visitsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); visitsToolStripMenuItem.Text = "Visits"; visitsToolStripMenuItem.Click += new System.EventHandler(visitsToolStripMenuItem_Click); activePatientsToolStripMenuItem.Name = "activePatientsToolStripMenuItem"; activePatientsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); activePatientsToolStripMenuItem.Text = "Active patients"; activePatientsToolStripMenuItem.Click += new System.EventHandler(activePatientsToolStripMenuItem_Click); defaultersToolStripMenuItem.Name = "defaultersToolStripMenuItem"; defaultersToolStripMenuItem.Size = new System.Drawing.Size(152, 22); defaultersToolStripMenuItem.Text = "Defaulters"; defaultersToolStripMenuItem.Click += new System.EventHandler(defaultersToolStripMenuItem_Click); userToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[1] { changePasswordToolStripMenuItem }); userToolStripMenuItem.Name = "userToolStripMenuItem"; userToolStripMenuItem.Size = new System.Drawing.Size(41, 20); userToolStripMenuItem.Text = "user"; changePasswordToolStripMenuItem.Name = "changePasswordToolStripMenuItem"; changePasswordToolStripMenuItem.Size = new System.Drawing.Size(168, 22); changePasswordToolStripMenuItem.Text = "Change Password"; changePasswordToolStripMenuItem.Click += new System.EventHandler(changePasswordToolStripMenuItem_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(764, 453); base.Controls.Add(statusStrip); base.Controls.Add(toolStrip); base.Controls.Add(menuStrip); base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon"); base.IsMdiContainer = true; base.MainMenuStrip = menuStrip; base.Name = "FrmMain"; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; Text = "Hospital Reception System - PSC"; base.WindowState = System.Windows.Forms.FormWindowState.Maximized; base.Load += new System.EventHandler(FrmMain_Load); base.FormClosed += new System.Windows.Forms.FormClosedEventHandler(FrmMain_FormClosed); base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FrmMain_FormClosing); statusStrip.ResumeLayout(performLayout: false); statusStrip.PerformLayout(); toolStrip.ResumeLayout(performLayout: false); toolStrip.PerformLayout(); menuStrip.ResumeLayout(performLayout: false); menuStrip.PerformLayout(); ResumeLayout(performLayout: false); PerformLayout(); }
private void InitializeComponent() { System.Windows.Forms.ToolStrip tsRoot; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.tscbRootList = new System.Windows.Forms.ToolStripComboBox(); this.toolContainer = new System.Windows.Forms.ToolStripContainer(); this.tsMisc = new System.Windows.Forms.ToolStrip(); this.tsbMakeRoot = new System.Windows.Forms.ToolStripButton(); this.tsbFindPage = new System.Windows.Forms.ToolStripButton(); this.tsbRefresh = new System.Windows.Forms.ToolStripButton(); this.tsWorkingSet = new System.Windows.Forms.ToolStrip(); this.tsbAddWorkingSet = new System.Windows.Forms.ToolStripButton(); this.tsbRemoveWorkingSet = new System.Windows.Forms.ToolStripButton(); this.tsbAddLink = new System.Windows.Forms.ToolStripButton(); this.tsbRemoveLink = new System.Windows.Forms.ToolStripButton(); tsRoot = new System.Windows.Forms.ToolStrip(); tsRoot.SuspendLayout(); this.toolContainer.BottomToolStripPanel.SuspendLayout(); this.toolContainer.TopToolStripPanel.SuspendLayout(); this.toolContainer.SuspendLayout(); this.tsMisc.SuspendLayout(); this.tsWorkingSet.SuspendLayout(); this.SuspendLayout(); // // tsRoot // tsRoot.BackColor = System.Drawing.Color.White; tsRoot.Dock = System.Windows.Forms.DockStyle.None; tsRoot.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tscbRootList}); tsRoot.Location = new System.Drawing.Point(3, 0); tsRoot.Name = "tsRoot"; tsRoot.Padding = new System.Windows.Forms.Padding(0); tsRoot.Size = new System.Drawing.Size(211, 25); tsRoot.TabIndex = 0; tsRoot.Text = "toolStrip1"; // // tscbRootList // this.tscbRootList.BackColor = System.Drawing.Color.White; this.tscbRootList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tscbRootList.Margin = new System.Windows.Forms.Padding(0); this.tscbRootList.Name = "tscbRootList"; this.tscbRootList.Size = new System.Drawing.Size(200, 25); this.tscbRootList.SelectedIndexChanged += new System.EventHandler(this.tscbRootListSelectionChanged); // // toolContainer // // // toolContainer.BottomToolStripPanel // this.toolContainer.BottomToolStripPanel.BackColor = System.Drawing.Color.White; this.toolContainer.BottomToolStripPanel.Controls.Add(this.tsWorkingSet); this.toolContainer.BottomToolStripPanel.Controls.Add(this.tsMisc); this.toolContainer.BottomToolStripPanel.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; // // toolContainer.ContentPanel // this.toolContainer.ContentPanel.BackColor = System.Drawing.Color.White; this.toolContainer.ContentPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.toolContainer.ContentPanel.Size = new System.Drawing.Size(237, 508); this.toolContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.toolContainer.Location = new System.Drawing.Point(0, 0); this.toolContainer.Margin = new System.Windows.Forms.Padding(0); this.toolContainer.Name = "toolContainer"; this.toolContainer.Size = new System.Drawing.Size(237, 564); this.toolContainer.TabIndex = 1; this.toolContainer.Text = "toolStripContainer1"; // // toolContainer.TopToolStripPanel // this.toolContainer.TopToolStripPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; this.toolContainer.TopToolStripPanel.Controls.Add(tsRoot); this.toolContainer.TopToolStripPanel.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; // // tsMisc // this.tsMisc.AllowItemReorder = true; this.tsMisc.BackColor = System.Drawing.Color.White; this.tsMisc.Dock = System.Windows.Forms.DockStyle.None; this.tsMisc.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbMakeRoot, this.tsbFindPage, this.tsbRefresh}); this.tsMisc.Location = new System.Drawing.Point(127, 0); this.tsMisc.Name = "tsMisc"; this.tsMisc.Size = new System.Drawing.Size(96, 31); this.tsMisc.TabIndex = 1; // // tsbMakeRoot // this.tsbMakeRoot.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbMakeRoot.Image = ((System.Drawing.Image)(resources.GetObject("tsbMakeRoot.Image"))); this.tsbMakeRoot.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbMakeRoot.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbMakeRoot.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbMakeRoot.Name = "tsbMakeRoot"; this.tsbMakeRoot.Size = new System.Drawing.Size(28, 28); this.tsbMakeRoot.Text = "Make Selected Node the Root"; this.tsbMakeRoot.ToolTipText = "Make Selected Node the Root"; this.tsbMakeRoot.Click += new System.EventHandler(this.MakeRootButton); // // tsbFindPage // this.tsbFindPage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbFindPage.Image = ((System.Drawing.Image)(resources.GetObject("tsbFindPage.Image"))); this.tsbFindPage.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbFindPage.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbFindPage.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbFindPage.Name = "tsbFindPage"; this.tsbFindPage.Size = new System.Drawing.Size(28, 28); this.tsbFindPage.Text = "Find Current Page in Tree"; this.tsbFindPage.ToolTipText = "Find Current Page in Tree"; this.tsbFindPage.Click += new System.EventHandler(this.FindInTreeButton); // // tsbRefresh // this.tsbRefresh.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRefresh.Image = ((System.Drawing.Image)(resources.GetObject("tsbRefresh.Image"))); this.tsbRefresh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbRefresh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRefresh.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRefresh.Name = "tsbRefresh"; this.tsbRefresh.Size = new System.Drawing.Size(28, 28); this.tsbRefresh.Text = "Refresh"; this.tsbRefresh.Click += new System.EventHandler(this.RefreshViewButton); // // tsWorkingSet // this.tsWorkingSet.AllowItemReorder = true; this.tsWorkingSet.BackColor = System.Drawing.Color.White; this.tsWorkingSet.Dock = System.Windows.Forms.DockStyle.None; this.tsWorkingSet.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbAddWorkingSet, this.tsbRemoveWorkingSet, this.tsbAddLink, this.tsbRemoveLink}); this.tsWorkingSet.Location = new System.Drawing.Point(3, 0); this.tsWorkingSet.Name = "tsWorkingSet"; this.tsWorkingSet.Size = new System.Drawing.Size(124, 31); this.tsWorkingSet.TabIndex = 1; // // tsbAddWorkingSet // this.tsbAddWorkingSet.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbAddWorkingSet.Image = ((System.Drawing.Image)(resources.GetObject("tsbAddWorkingSet.Image"))); this.tsbAddWorkingSet.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbAddWorkingSet.ImageTransparentColor = System.Drawing.Color.Black; this.tsbAddWorkingSet.Name = "tsbAddWorkingSet"; this.tsbAddWorkingSet.Size = new System.Drawing.Size(28, 28); this.tsbAddWorkingSet.Text = "Add Favorites Folder"; this.tsbAddWorkingSet.ToolTipText = "Add Favorites Folder"; this.tsbAddWorkingSet.Click += new System.EventHandler(this.tsbAddWorkingSet_Click); // // tsbRemoveWorkingSet // this.tsbRemoveWorkingSet.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveWorkingSet.Image = ((System.Drawing.Image)(resources.GetObject("tsbRemoveWorkingSet.Image"))); this.tsbRemoveWorkingSet.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRemoveWorkingSet.ImageTransparentColor = System.Drawing.Color.Black; this.tsbRemoveWorkingSet.Name = "tsbRemoveWorkingSet"; this.tsbRemoveWorkingSet.Size = new System.Drawing.Size(28, 28); this.tsbRemoveWorkingSet.Text = "Remove Favorites Folder"; this.tsbRemoveWorkingSet.Click += new System.EventHandler(this.tsbRemoveWorkingSet_Click); // // tsbAddLink // this.tsbAddLink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbAddLink.Image = ((System.Drawing.Image)(resources.GetObject("tsbAddLink.Image"))); this.tsbAddLink.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbAddLink.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbAddLink.Name = "tsbAddLink"; this.tsbAddLink.Size = new System.Drawing.Size(28, 28); this.tsbAddLink.Text = "Add Link"; this.tsbAddLink.Click += new System.EventHandler(this.tsbAddLink_Click); // // tsbRemoveLink // this.tsbRemoveLink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveLink.Image = ((System.Drawing.Image)(resources.GetObject("tsbRemoveLink.Image"))); this.tsbRemoveLink.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbRemoveLink.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRemoveLink.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRemoveLink.Name = "tsbRemoveLink"; this.tsbRemoveLink.Size = new System.Drawing.Size(28, 28); this.tsbRemoveLink.Text = "Remove Link"; this.tsbRemoveLink.Click += new System.EventHandler(this.tsbRemoveLink_Click); // // MainForm // this.ClientSize = new System.Drawing.Size(237, 564); this.Controls.Add(this.toolContainer); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "MainForm"; this.Text = "OneNote TreeView"; this.Load += new System.EventHandler(this.MainForm_Load); tsRoot.ResumeLayout(false); tsRoot.PerformLayout(); this.toolContainer.BottomToolStripPanel.ResumeLayout(false); this.toolContainer.BottomToolStripPanel.PerformLayout(); this.toolContainer.TopToolStripPanel.ResumeLayout(false); this.toolContainer.TopToolStripPanel.PerformLayout(); this.toolContainer.ResumeLayout(false); this.toolContainer.PerformLayout(); this.tsMisc.ResumeLayout(false); this.tsMisc.PerformLayout(); this.tsWorkingSet.ResumeLayout(false); this.tsWorkingSet.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); toolStrip2 = new ToolStrip(); toolStripButton10 = new ToolStripButton(); toolStripSeparator5 = new ToolStripSeparator(); toolStripComboBox1 = new ToolStripComboBox(); toolStripComboBox2 = new ToolStripComboBox(); toolStripButton11 = new ToolStripButton(); toolStripButton13 = new ToolStripButton(); toolStripSeparator2 = new ToolStripSeparator(); toolStripProgressBar1 = new ToolStripProgressBar(); menuStrip1 = new MenuStrip(); Communication = new ToolStripMenuItem(); Connect = new ToolStripMenuItem(); Acquisition = new ToolStripMenuItem(); Samples = new ToolStripMenuItem(); Continous = new ToolStripMenuItem(); toolStripSeparator1 = new ToolStripSeparator(); Start = new ToolStripMenuItem(); Stop = new ToolStripMenuItem(); Settings = new ToolStripMenuItem(); timer1 = new Timer(components); toolStripLabel1 = new ToolStripLabel(); toolStripTextBox2 = new ToolStripSCTexBox(); toolStrip2.SuspendLayout(); menuStrip1.SuspendLayout(); toolStrip2.Items.AddRange(new ToolStripItem[] { toolStripButton10, toolStripSeparator5, toolStripComboBox1, toolStripComboBox2, toolStripTextBox2, toolStripButton11, toolStripButton13, toolStripSeparator2, toolStripProgressBar1, toolStripLabel1 }); toolStrip2.Location = new Point(0, 0x30); toolStrip2.Name = "toolStrip2"; toolStrip2.Size = new Size(0x29f, 0x19); toolStrip2.TabIndex = 10; toolStrip2.Text = "Acquisition toolbar"; toolStripButton10.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButton10.Image = Resources.Connect; toolStripButton10.ImageTransparentColor = Color.Magenta; toolStripButton10.Name = "toolStripButton10"; toolStripButton10.Size = new Size(0x17, 0x16); toolStripButton10.Text = "Connect"; toolStripButton10.ToolTipText = "Connect/Disconnect"; toolStripSeparator5.Name = "toolStripSeparator5"; toolStripSeparator5.Size = new Size(6, 0x19); toolStripComboBox1.DropDownStyle = ComboBoxStyle.DropDownList; toolStripComboBox1.Items.AddRange(new object[] { "1", "10", "25", "50" }); toolStripComboBox1.Name = "toolStripComboBox1"; toolStripComboBox1.Size = new Size(0x4b, 0x19); toolStripComboBox1.ToolTipText = "Data acquisition frequency (Hz)"; toolStripComboBox2.DropDownStyle = ComboBoxStyle.DropDownList; toolStripComboBox2.Items.AddRange(new object[] { "Samples", "Continous" }); toolStripComboBox2.Name = "toolStripComboBox2"; toolStripComboBox2.Size = new Size(90, 0x19); toolStripComboBox2.ToolTipText = "Acquisition Mode"; toolStripButton11.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButton11.Image = Resources.StartAcquistion; toolStripButton11.ImageTransparentColor = Color.Magenta; toolStripButton11.Name = "toolStripButton11"; toolStripButton11.Size = new Size(0x17, 0x16); toolStripButton11.Text = "Start"; toolStripButton13.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButton13.Image = Resources.StopAcquistion; toolStripButton13.ImageTransparentColor = Color.Magenta; toolStripButton13.Name = "toolStripButton13"; toolStripButton13.Size = new Size(0x17, 0x16); toolStripButton13.Text = "Stop"; toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new Size(6, 0x19); toolStripProgressBar1.Name = "toolStripProgressBar1"; toolStripProgressBar1.Size = new Size(100, 0x16); toolStripProgressBar1.Step = 2; toolStripProgressBar1.Style = ProgressBarStyle.Continuous; toolStripProgressBar1.ToolTipText = "Acquisition progress"; menuStrip1.Items.AddRange(new ToolStripItem[] { Communication }); menuStrip1.Location = new Point(0, 0); menuStrip1.Name = "menuStrip1"; menuStrip1.Size = new Size(200, 0x18); menuStrip1.TabIndex = 0; menuStrip1.Text = "menuStrip1"; Communication.DropDownItems.AddRange(new ToolStripItem[] { Connect, Acquisition, Settings }); Communication.Name = "Communication"; Communication.Size = new Size(0x5b, 20); Communication.Text = "Communication"; Connect.Name = "Connect"; Connect.Size = new Size(0x88, 0x16); Connect.Text = "Connect"; Acquisition.DropDownItems.AddRange(new ToolStripItem[] { Samples, Continous, toolStripSeparator1, Start, Stop }); Acquisition.Name = "Acquisition"; Acquisition.Size = new Size(0x88, 0x16); Acquisition.Text = "Acquisition"; Samples.Checked = true; Samples.CheckState = CheckState.Checked; Samples.Name = "Samples"; Samples.Size = new Size(0x85, 0x16); Samples.Text = "Samples"; Continous.Name = "Continous"; Continous.Size = new Size(0x85, 0x16); Continous.Text = "Continous"; toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new Size(130, 6); Start.Name = "Start"; Start.Size = new Size(0x85, 0x16); Start.Text = "Start"; Stop.Name = "Stop"; Stop.Size = new Size(0x85, 0x16); Stop.Text = "Stop"; Settings.Name = "Settings"; Settings.Size = new Size(0x88, 0x16); Settings.Text = "Settings..."; timer1.Tick += new EventHandler(timer1_Tick); toolStripLabel1.AutoSize = false; toolStripLabel1.BackColor = SystemColors.Info; toolStripLabel1.Name = "toolStripLabel1"; toolStripLabel1.Size = new Size(70, 0x16); toolStripLabel1.TextAlign = ContentAlignment.MiddleRight; toolStripLabel1.ToolTipText = "Number of samples"; toolStripTextBox2.AcceptOnlyNumber = true; toolStripTextBox2.MaxLength = 5; toolStripTextBox2.MaxValue = 0xffffL; toolStripTextBox2.MinValue = 1L; toolStripTextBox2.Name = "toolStripTextBox2"; toolStripTextBox2.Size = new Size(80, 0x15); toolStripTextBox2.TextBoxAlign = HorizontalAlignment.Right; toolStripTextBox2.ToolTipText = "Number of samples (Max 65535)"; toolStrip2.ResumeLayout(false); toolStrip2.PerformLayout(); menuStrip1.ResumeLayout(false); menuStrip1.PerformLayout(); }
public static bool Merge(ToolStrip sourceToolStrip, ToolStrip targetToolStrip) { // Check for exceptions if (sourceToolStrip == null) { throw new ArgumentNullException("sourceToolStrip"); } if (targetToolStrip == null) { throw new ArgumentNullException("targetName"); } if (targetToolStrip == sourceToolStrip) { throw new ArgumentException("Source and target ToolStrip must be different."); } // If the toolstrips don't allow merging, don't merge them if (!sourceToolStrip.AllowMerge || !targetToolStrip.AllowMerge) { return(false); } // We currently can't support merging multiple times if (sourceToolStrip.IsCurrentlyMerged || targetToolStrip.IsCurrentlyMerged) { return(false); } // What I wouldn't give to be able to modify a collection // while enumerating through it... List <ToolStripItem> items_to_move = new List <ToolStripItem> (); // Create a list of every ToolStripItem we plan on moving foreach (ToolStripItem tsi in sourceToolStrip.Items) { switch (tsi.MergeAction) { case MergeAction.Append: default: items_to_move.Add(tsi); break; case MergeAction.Insert: if (tsi.MergeIndex >= 0) { items_to_move.Add(tsi); } break; case MergeAction.Replace: case MergeAction.Remove: case MergeAction.MatchOnly: foreach (ToolStripItem target_tsi in targetToolStrip.Items) { if (tsi.Text == target_tsi.Text) { items_to_move.Add(tsi); break; } } break; } } // If there was nothing valid to merge, return false if (items_to_move.Count == 0) { return(false); } // Set some state so we can unmerge later sourceToolStrip.BeginMerge(); targetToolStrip.BeginMerge(); sourceToolStrip.SuspendLayout(); targetToolStrip.SuspendLayout(); while (items_to_move.Count > 0) { ToolStripItem tsi = items_to_move[0]; items_to_move.Remove(tsi); switch (tsi.MergeAction) { case MergeAction.Append: default: // Just changing the parent will append it to the target // and remove it from the source ToolStrip.SetItemParent(tsi, targetToolStrip); break; case MergeAction.Insert: // Do the same work as Append, except Insert it into the // location specified by the MergeIndex RemoveItemFromParentToolStrip(tsi); if (tsi.MergeIndex == -1) { continue; } else if (tsi.MergeIndex >= CountRealToolStripItems(targetToolStrip)) { targetToolStrip.Items.AddNoOwnerOrLayout(tsi); } else { targetToolStrip.Items.InsertNoOwnerOrLayout(AdjustItemMergeIndex(targetToolStrip, tsi), tsi); } tsi.Parent = targetToolStrip; break; case MergeAction.Replace: // Find a target ToolStripItem with the same Text, remove it // and replace it with the source one foreach (ToolStripItem target_tsi in targetToolStrip.Items) { if (tsi.Text == target_tsi.Text) { RemoveItemFromParentToolStrip(tsi); // Insert where the old one is, then remove the old one targetToolStrip.Items.InsertNoOwnerOrLayout(targetToolStrip.Items.IndexOf(target_tsi), tsi); targetToolStrip.Items.RemoveNoOwnerOrLayout(target_tsi); // Store the replaced one so we can get it back in unmerge targetToolStrip.HiddenMergedItems.Add(target_tsi); break; } } break; case MergeAction.Remove: // Find a target ToolStripItem with the same Text, and remove // it from the target, nothing else foreach (ToolStripItem target_tsi in targetToolStrip.Items) { if (tsi.Text == target_tsi.Text) { targetToolStrip.Items.RemoveNoOwnerOrLayout(target_tsi); // Store the removed one so we can get it back in unmerge targetToolStrip.HiddenMergedItems.Add(target_tsi); break; } } break; case MergeAction.MatchOnly: // Ugh, find the target ToolStripItem with the same Text, and take // all the subitems from the source one, and append it to the target one foreach (ToolStripItem target_tsi in targetToolStrip.Items) { if (tsi.Text == target_tsi.Text) { if (target_tsi is ToolStripMenuItem && tsi is ToolStripMenuItem) { ToolStripMenuItem source = (ToolStripMenuItem)tsi; ToolStripMenuItem target = (ToolStripMenuItem)target_tsi; ToolStripManager.Merge(source.DropDown, target.DropDown); } break; } } break; } } sourceToolStrip.ResumeLayout(); targetToolStrip.ResumeLayout(); // Store who we merged with, so we can unmerge when only given the target toolstrip sourceToolStrip.CurrentlyMergedWith = targetToolStrip; targetToolStrip.CurrentlyMergedWith = sourceToolStrip; return(true); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Oranikle.Studio.Controls.CtrlRichTextbox)); toolStrip1 = new System.Windows.Forms.ToolStrip(); bttnFont = new System.Windows.Forms.ToolStripButton(); bttnColour = new System.Windows.Forms.ToolStripButton(); bttnBackgroundColour = new System.Windows.Forms.ToolStripButton(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); bttnBold = new System.Windows.Forms.ToolStripButton(); bttnItalic = new System.Windows.Forms.ToolStripButton(); bttnUnderline = new System.Windows.Forms.ToolStripButton(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); bttnLeftAlign = new System.Windows.Forms.ToolStripButton(); bttnCentreAlign = new System.Windows.Forms.ToolStripButton(); bttnRightAlign = new System.Windows.Forms.ToolStripButton(); ctrlRtf = new Oranikle.Studio.Controls.RichTextBoxEx(); contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components); boldToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); italicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); underlineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); fontDialog1 = new System.Windows.Forms.FontDialog(); colorDialog1 = new System.Windows.Forms.ColorDialog(); toolStrip1.SuspendLayout(); contextMenuStrip1.SuspendLayout(); SuspendLayout(); toolStrip1.BackColor = System.Drawing.Color.Transparent; toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; System.Windows.Forms.ToolStripItem[] toolStripItemArr1 = new System.Windows.Forms.ToolStripItem[] { bttnBold, bttnItalic, bttnUnderline, toolStripSeparator1, bttnLeftAlign, bttnCentreAlign, bttnRightAlign, toolStripSeparator2, bttnFont, bttnColour, bttnBackgroundColour }; toolStrip1.Items.AddRange(toolStripItemArr1); toolStrip1.Location = new System.Drawing.Point(0, 0); toolStrip1.Name = "toolStrip1"; toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; toolStrip1.Size = new System.Drawing.Size(460, 25); toolStrip1.TabIndex = 0; toolStrip1.Text = "toolStrip1"; bttnFont.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnFont.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_Font_16; bttnFont.ImageTransparentColor = System.Drawing.Color.White; bttnFont.Name = "bttnFont"; bttnFont.Size = new System.Drawing.Size(23, 22); bttnFont.Text = "toolStripButton4"; bttnFont.ToolTipText = "Font"; bttnFont.Click += new System.EventHandler(bttnFont_Click); bttnColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnColour.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_Color_16; bttnColour.ImageTransparentColor = System.Drawing.Color.White; bttnColour.Name = "bttnColour"; bttnColour.Size = new System.Drawing.Size(23, 22); bttnColour.Text = "toolStripButton5"; bttnColour.ToolTipText = "Colour"; bttnColour.Click += new System.EventHandler(bttnColour_Click); bttnBackgroundColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnBackgroundColour.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_FontColor_16; bttnBackgroundColour.ImageTransparentColor = System.Drawing.Color.Magenta; bttnBackgroundColour.Name = "bttnBackgroundColour"; bttnBackgroundColour.Size = new System.Drawing.Size(23, 22); bttnBackgroundColour.Text = "toolStripButton1"; bttnBackgroundColour.ToolTipText = "Background Colour"; bttnBackgroundColour.Click += new System.EventHandler(bttnBackgroundColour_Click); toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(6, 25); bttnBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnBold.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0); bttnBold.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnBold.Image"); bttnBold.ImageTransparentColor = System.Drawing.Color.Magenta; bttnBold.Name = "bttnBold"; bttnBold.Size = new System.Drawing.Size(23, 22); bttnBold.Text = "B"; bttnBold.ToolTipText = "Bold"; bttnBold.Click += new System.EventHandler(bttnBold_Click); bttnItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnItalic.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 0); bttnItalic.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnItalic.Image"); bttnItalic.ImageTransparentColor = System.Drawing.Color.Magenta; bttnItalic.Name = "bttnItalic"; bttnItalic.Size = new System.Drawing.Size(23, 22); bttnItalic.Text = "I"; bttnItalic.ToolTipText = "Italic"; bttnItalic.Click += new System.EventHandler(bttnItalic_Click); bttnUnderline.BackColor = System.Drawing.Color.Transparent; bttnUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnUnderline.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, 0); bttnUnderline.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnUnderline.Image"); bttnUnderline.ImageTransparentColor = System.Drawing.Color.Magenta; bttnUnderline.Name = "bttnUnderline"; bttnUnderline.Size = new System.Drawing.Size(23, 22); bttnUnderline.Text = "U"; bttnUnderline.ToolTipText = "Underline"; bttnUnderline.Click += new System.EventHandler(bttnUnderline_Click); toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(6, 25); bttnLeftAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnLeftAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleLeft_16; bttnLeftAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnLeftAlign.Name = "bttnLeftAlign"; bttnLeftAlign.Size = new System.Drawing.Size(23, 22); bttnLeftAlign.Text = "toolStripButton1"; bttnLeftAlign.ToolTipText = "Align Left"; bttnLeftAlign.Click += new System.EventHandler(bttnLeftAlign_Click); bttnCentreAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnCentreAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleCenter_16; bttnCentreAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnCentreAlign.Name = "bttnCentreAlign"; bttnCentreAlign.Size = new System.Drawing.Size(23, 22); bttnCentreAlign.Text = "toolStripButton2"; bttnCentreAlign.ToolTipText = "Align Center"; bttnCentreAlign.Click += new System.EventHandler(bttnCentreAlign_Click); bttnRightAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnRightAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleRight_16; bttnRightAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnRightAlign.Name = "bttnRightAlign"; bttnRightAlign.Size = new System.Drawing.Size(23, 22); bttnRightAlign.Text = "toolStripButton3"; bttnRightAlign.ToolTipText = "Align Right"; bttnRightAlign.Click += new System.EventHandler(bttnRightAlign_Click); ctrlRtf.ContextMenuStrip = contextMenuStrip1; ctrlRtf.Dock = System.Windows.Forms.DockStyle.Fill; ctrlRtf.Location = new System.Drawing.Point(0, 25); ctrlRtf.Name = "ctrlRtf"; ctrlRtf.Size = new System.Drawing.Size(460, 227); ctrlRtf.TabIndex = 1; ctrlRtf.Text = ""; System.Windows.Forms.ToolStripItem[] toolStripItemArr2 = new System.Windows.Forms.ToolStripItem[] { boldToolStripMenuItem, italicToolStripMenuItem, underlineToolStripMenuItem, toolStripSeparator5, cutToolStripMenuItem, copyToolStripMenuItem, pasteToolStripMenuItem }; contextMenuStrip1.Items.AddRange(toolStripItemArr2); contextMenuStrip1.Name = "contextMenuStrip1"; contextMenuStrip1.Size = new System.Drawing.Size(159, 142); boldToolStripMenuItem.Name = "boldToolStripMenuItem"; boldToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.Control; boldToolStripMenuItem.Size = new System.Drawing.Size(158, 22); boldToolStripMenuItem.Text = "Bold"; boldToolStripMenuItem.Click += new System.EventHandler(boldToolStripMenuItem_Click); italicToolStripMenuItem.Name = "italicToolStripMenuItem"; italicToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.Back | System.Windows.Forms.Keys.Control; italicToolStripMenuItem.Size = new System.Drawing.Size(158, 22); italicToolStripMenuItem.Text = "Italic"; italicToolStripMenuItem.Click += new System.EventHandler(italicToolStripMenuItem_Click); underlineToolStripMenuItem.Name = "underlineToolStripMenuItem"; underlineToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.MButton | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; underlineToolStripMenuItem.Size = new System.Drawing.Size(158, 22); underlineToolStripMenuItem.Text = "Underline"; underlineToolStripMenuItem.Click += new System.EventHandler(underlineToolStripMenuItem_Click); toolStripSeparator5.Name = "toolStripSeparator5"; toolStripSeparator5.Size = new System.Drawing.Size(155, 6); cutToolStripMenuItem.Name = "cutToolStripMenuItem"; cutToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Back | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; cutToolStripMenuItem.Size = new System.Drawing.Size(158, 22); cutToolStripMenuItem.Text = "Cut"; cutToolStripMenuItem.Click += new System.EventHandler(cutToolStripMenuItem_Click); copyToolStripMenuItem.Name = "copyToolStripMenuItem"; copyToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.Control; copyToolStripMenuItem.Size = new System.Drawing.Size(158, 22); copyToolStripMenuItem.Text = "Copy"; copyToolStripMenuItem.Click += new System.EventHandler(copyToolStripMenuItem_Click); pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; pasteToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.MButton | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; pasteToolStripMenuItem.Size = new System.Drawing.Size(158, 22); pasteToolStripMenuItem.Text = "Paste"; pasteToolStripMenuItem.Click += new System.EventHandler(pasteToolStripMenuItem_Click); AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; base.BackColor = System.Drawing.Color.Transparent; Controls.Add(ctrlRtf); Controls.Add(toolStrip1); Name = "CtrlRichTextbox"; Size = new System.Drawing.Size(460, 252); toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); contextMenuStrip1.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
/// <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.Windows.Forms.ToolStrip toolStrip1; System.Windows.Forms.ToolStripButton _openButton; System.Windows.Forms.ToolStripMenuItem _fileMenuItem; System.Windows.Forms.ToolStripMenuItem _openMenuItem; System.Windows.Forms.ToolStripSeparator toolStripSeparator1; System.Windows.Forms.ToolStripSeparator toolStripSeparator2; System.Windows.Forms.ToolStripMenuItem _exitMenuItem; System.Windows.Forms.ToolStrip toolStrip2; System.Windows.Forms.ToolStripContainer _toolStripContainer; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.Windows.Forms.ToolStripMenuItem _addTreeContextMenuIten; System.Windows.Forms.ToolStripMenuItem _removeListContextMenuItem; System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem; System.Windows.Forms.ToolStripMenuItem _renameListContextMenuItem; this._saveButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this._generateButton = new System.Windows.Forms.ToolStripButton(); this._saveMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._manageCulturesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._generateMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addResourceButton = new System.Windows.Forms.ToolStripButton(); this._removeResourceButton = new System.Windows.Forms.ToolStripButton(); this._renameResourceButton = new System.Windows.Forms.ToolStripButton(); this._treeSplitter = new System.Windows.Forms.SplitContainer(); this._paneTree = new Rsdn.LocUtil.Pane(); this._categoryTree = new Rsdn.TreeGrid.TreeGrid(); this._nameCol = new System.Windows.Forms.ColumnHeader(); this._countCol = new System.Windows.Forms.ColumnHeader(); this._treeImages = new System.Windows.Forms.ImageList(this.components); this._resourceSplitter = new System.Windows.Forms.SplitContainer(); this._paneItems = new Rsdn.LocUtil.Pane(); this._itemList = new System.Windows.Forms.ListView(); this._itemNameCol = new System.Windows.Forms.ColumnHeader(); this._listImages = new System.Windows.Forms.ImageList(this.components); this._paneProperties = new Rsdn.LocUtil.Pane(); this._propertyGrid = new System.Windows.Forms.PropertyGrid(); this._menuStrip = new System.Windows.Forms.MenuStrip(); this._resourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._removeResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._renameResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._listContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.BottomToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.RightToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.LeftToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.ContentPanel = new System.Windows.Forms.ToolStripContentPanel(); toolStrip1 = new System.Windows.Forms.ToolStrip(); _openButton = new System.Windows.Forms.ToolStripButton(); _fileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _openMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); _exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStrip2 = new System.Windows.Forms.ToolStrip(); _toolStripContainer = new System.Windows.Forms.ToolStripContainer(); _addTreeContextMenuIten = new System.Windows.Forms.ToolStripMenuItem(); _removeListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _renameListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStrip1.SuspendLayout(); toolStrip2.SuspendLayout(); _toolStripContainer.ContentPanel.SuspendLayout(); _toolStripContainer.TopToolStripPanel.SuspendLayout(); _toolStripContainer.SuspendLayout(); this._treeSplitter.Panel1.SuspendLayout(); this._treeSplitter.Panel2.SuspendLayout(); this._treeSplitter.SuspendLayout(); this._paneTree.SuspendLayout(); this._resourceSplitter.Panel1.SuspendLayout(); this._resourceSplitter.Panel2.SuspendLayout(); this._resourceSplitter.SuspendLayout(); this._paneItems.SuspendLayout(); this._paneProperties.SuspendLayout(); this._menuStrip.SuspendLayout(); this._treeContextMenu.SuspendLayout(); this._listContextMenu.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // toolStrip1.Dock = System.Windows.Forms.DockStyle.None; toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _openButton, this._saveButton, this.toolStripSeparator3, this._generateButton}); toolStrip1.Location = new System.Drawing.Point(3, 24); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new System.Drawing.Size(87, 25); toolStrip1.TabIndex = 1; toolStrip1.Text = "toolStrip1"; // // _openButton // _openButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _openButton.Image = global::Rsdn.LocUtil.Properties.Resources.Open; _openButton.ImageTransparentColor = System.Drawing.Color.Magenta; _openButton.Name = "_openButton"; _openButton.Size = new System.Drawing.Size(23, 22); _openButton.Text = "Open Resource File"; _openButton.Click += new System.EventHandler(this._openMenuItem_Click); // // _saveButton // this._saveButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._saveButton.Enabled = false; this._saveButton.Image = global::Rsdn.LocUtil.Properties.Resources.Save; this._saveButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._saveButton.Name = "_saveButton"; this._saveButton.Size = new System.Drawing.Size(23, 22); this._saveButton.Text = "Save Resource File"; this._saveButton.Click += new System.EventHandler(this._saveMenuItem_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); // // _generateButton // this._generateButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._generateButton.Enabled = false; this._generateButton.Image = global::Rsdn.LocUtil.Properties.Resources.Generate; this._generateButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._generateButton.Name = "_generateButton"; this._generateButton.Size = new System.Drawing.Size(23, 22); this._generateButton.Text = "Generate Resource Helper"; this._generateButton.Click += new System.EventHandler(this._generateMenuItem_Click); // // _fileMenuItem // _fileMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { _openMenuItem, this._saveMenuItem, toolStripSeparator1, this._manageCulturesMenuItem, this._generateMenuItem, toolStripSeparator2, _exitMenuItem}); _fileMenuItem.Name = "_fileMenuItem"; _fileMenuItem.Size = new System.Drawing.Size(35, 20); _fileMenuItem.Text = "&File"; // // _openMenuItem // _openMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Open; _openMenuItem.Name = "_openMenuItem"; _openMenuItem.Size = new System.Drawing.Size(166, 22); _openMenuItem.Text = "&Open"; _openMenuItem.Click += new System.EventHandler(this._openMenuItem_Click); // // _saveMenuItem // this._saveMenuItem.Enabled = false; this._saveMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Save; this._saveMenuItem.Name = "_saveMenuItem"; this._saveMenuItem.Size = new System.Drawing.Size(166, 22); this._saveMenuItem.Text = "&Save"; this._saveMenuItem.Click += new System.EventHandler(this._saveMenuItem_Click); // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(163, 6); // // _manageCulturesMenuItem // this._manageCulturesMenuItem.Enabled = false; this._manageCulturesMenuItem.Name = "_manageCulturesMenuItem"; this._manageCulturesMenuItem.Size = new System.Drawing.Size(166, 22); this._manageCulturesMenuItem.Text = "Manage &Cultures"; this._manageCulturesMenuItem.Click += new System.EventHandler(this._manageCulturesMenuItem_Click); // // _generateMenuItem // this._generateMenuItem.Enabled = false; this._generateMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Generate; this._generateMenuItem.Name = "_generateMenuItem"; this._generateMenuItem.Size = new System.Drawing.Size(166, 22); this._generateMenuItem.Text = "&Generate helper"; this._generateMenuItem.Click += new System.EventHandler(this._generateMenuItem_Click); // // toolStripSeparator2 // toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(163, 6); // // _exitMenuItem // _exitMenuItem.Name = "_exitMenuItem"; _exitMenuItem.Size = new System.Drawing.Size(166, 22); _exitMenuItem.Text = "&Exit"; _exitMenuItem.Click += new System.EventHandler(this._exitMenuItem_Click); // // toolStrip2 // toolStrip2.Dock = System.Windows.Forms.DockStyle.None; toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addResourceButton, this._removeResourceButton, this._renameResourceButton}); toolStrip2.Location = new System.Drawing.Point(90, 24); toolStrip2.Name = "toolStrip2"; toolStrip2.Size = new System.Drawing.Size(81, 25); toolStrip2.TabIndex = 2; toolStrip2.Text = "toolStrip2"; // // _addResourceButton // this._addResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addResourceButton.Enabled = false; this._addResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Add; this._addResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addResourceButton.Name = "_addResourceButton"; this._addResourceButton.Size = new System.Drawing.Size(23, 22); this._addResourceButton.Text = "Add Resource"; this._addResourceButton.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _removeResourceButton // this._removeResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._removeResourceButton.Enabled = false; this._removeResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; this._removeResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._removeResourceButton.Name = "_removeResourceButton"; this._removeResourceButton.Size = new System.Drawing.Size(23, 22); this._removeResourceButton.Text = "Remove Resource"; this._removeResourceButton.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameResourceButton // this._renameResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._renameResourceButton.Enabled = false; this._renameResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; this._renameResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._renameResourceButton.Name = "_renameResourceButton"; this._renameResourceButton.Size = new System.Drawing.Size(23, 22); this._renameResourceButton.Text = "Rename Resource"; this._renameResourceButton.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _toolStripContainer // // // _toolStripContainer.ContentPanel // _toolStripContainer.ContentPanel.Controls.Add(this._treeSplitter); _toolStripContainer.ContentPanel.Size = new System.Drawing.Size(792, 517); _toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill; _toolStripContainer.Location = new System.Drawing.Point(0, 0); _toolStripContainer.Name = "_toolStripContainer"; _toolStripContainer.Size = new System.Drawing.Size(792, 566); _toolStripContainer.TabIndex = 12; _toolStripContainer.Text = "toolStripContainer1"; // // _toolStripContainer.TopToolStripPanel // _toolStripContainer.TopToolStripPanel.Controls.Add(this._menuStrip); _toolStripContainer.TopToolStripPanel.Controls.Add(toolStrip1); _toolStripContainer.TopToolStripPanel.Controls.Add(toolStrip2); // // _treeSplitter // this._treeSplitter.Dock = System.Windows.Forms.DockStyle.Fill; this._treeSplitter.Location = new System.Drawing.Point(0, 0); this._treeSplitter.Name = "_treeSplitter"; // // _treeSplitter.Panel1 // this._treeSplitter.Panel1.Controls.Add(this._paneTree); // // _treeSplitter.Panel2 // this._treeSplitter.Panel2.Controls.Add(this._resourceSplitter); this._treeSplitter.Size = new System.Drawing.Size(792, 517); this._treeSplitter.SplitterDistance = 232; this._treeSplitter.TabIndex = 0; this._treeSplitter.Text = "splitContainer1"; // // _paneTree // this._paneTree.Controls.Add(this._categoryTree); this._paneTree.Dock = System.Windows.Forms.DockStyle.Fill; this._paneTree.Location = new System.Drawing.Point(0, 0); this._paneTree.Name = "_paneTree"; this._paneTree.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneTree.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneTree.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneTree.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneTree.PaneCaptionContol.Name = "_caption"; this._paneTree.PaneCaptionContol.Size = new System.Drawing.Size(230, 18); this._paneTree.PaneCaptionContol.TabIndex = 0; this._paneTree.PaneCaptionContol.Text = "Panel 1"; this._paneTree.Size = new System.Drawing.Size(232, 517); this._paneTree.TabIndex = 7; // // _categoryTree // this._categoryTree.BackColor = System.Drawing.SystemColors.Window; this._categoryTree.BorderStyle = System.Windows.Forms.BorderStyle.None; this._categoryTree.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this._nameCol, this._countCol}); this._categoryTree.Dock = System.Windows.Forms.DockStyle.Fill; this._categoryTree.FullRowSelect = true; this._categoryTree.HideSelection = false; this._categoryTree.Indent = 5; this._categoryTree.LargeImageList = this._treeImages; this._categoryTree.Location = new System.Drawing.Point(1, 20); this._categoryTree.Name = "_categoryTree"; this._categoryTree.OwnerDraw = true; this._categoryTree.Size = new System.Drawing.Size(230, 496); this._categoryTree.SmallImageList = this._treeImages; this._categoryTree.TabIndex = 0; this._categoryTree.UseCompatibleStateImageBehavior = false; this._categoryTree.View = System.Windows.Forms.View.Details; this._categoryTree.VirtualMode = true; this._categoryTree.GetData += new System.EventHandler<Rsdn.TreeGrid.GetDataEventArgs>(this._categoryTree_GetData); this._categoryTree.MouseUp += new System.Windows.Forms.MouseEventHandler(this._categoryTree_MouseUp); this._categoryTree.AfterActivateNode += new Rsdn.TreeGrid.AfterActivateNodeHandler(this._categoryTree_AfterActivateNode); // // _nameCol // this._nameCol.Text = "Name"; this._nameCol.Width = 159; // // _countCol // this._countCol.Text = "Count"; // // _treeImages // this._treeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_treeImages.ImageStream"))); this._treeImages.TransparentColor = System.Drawing.Color.Transparent; this._treeImages.Images.SetKeyName(0, "root"); this._treeImages.Images.SetKeyName(1, "category"); // // _resourceSplitter // this._resourceSplitter.Dock = System.Windows.Forms.DockStyle.Fill; this._resourceSplitter.Location = new System.Drawing.Point(0, 0); this._resourceSplitter.Name = "_resourceSplitter"; this._resourceSplitter.Orientation = System.Windows.Forms.Orientation.Horizontal; // // _resourceSplitter.Panel1 // this._resourceSplitter.Panel1.Controls.Add(this._paneItems); // // _resourceSplitter.Panel2 // this._resourceSplitter.Panel2.Controls.Add(this._paneProperties); this._resourceSplitter.Size = new System.Drawing.Size(556, 517); this._resourceSplitter.SplitterDistance = 336; this._resourceSplitter.TabIndex = 0; this._resourceSplitter.Text = "splitContainer1"; // // _paneItems // this._paneItems.Controls.Add(this._itemList); this._paneItems.Dock = System.Windows.Forms.DockStyle.Fill; this._paneItems.Location = new System.Drawing.Point(0, 0); this._paneItems.Name = "_paneItems"; this._paneItems.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneItems.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneItems.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneItems.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneItems.PaneCaptionContol.Name = "_caption"; this._paneItems.PaneCaptionContol.Size = new System.Drawing.Size(554, 18); this._paneItems.PaneCaptionContol.TabIndex = 0; this._paneItems.PaneCaptionContol.Text = "Panel 1"; this._paneItems.Size = new System.Drawing.Size(556, 336); this._paneItems.TabIndex = 9; // // _itemList // this._itemList.BorderStyle = System.Windows.Forms.BorderStyle.None; this._itemList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this._itemNameCol}); this._itemList.Dock = System.Windows.Forms.DockStyle.Fill; this._itemList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this._itemList.HideSelection = false; this._itemList.LabelEdit = true; this._itemList.Location = new System.Drawing.Point(1, 20); this._itemList.Name = "_itemList"; this._itemList.Size = new System.Drawing.Size(554, 315); this._itemList.SmallImageList = this._listImages; this._itemList.TabIndex = 4; this._itemList.UseCompatibleStateImageBehavior = false; this._itemList.View = System.Windows.Forms.View.Details; this._itemList.SelectedIndexChanged += new System.EventHandler(this._itemList_SelectedIndexChanged); this._itemList.MouseUp += new System.Windows.Forms.MouseEventHandler(this._itemList_MouseUp); this._itemList.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this._itemList_AfterLabelEdit); // // _listImages // this._listImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_listImages.ImageStream"))); this._listImages.TransparentColor = System.Drawing.Color.Transparent; this._listImages.Images.SetKeyName(0, "item"); // // _paneProperties // this._paneProperties.Controls.Add(this._propertyGrid); this._paneProperties.Dock = System.Windows.Forms.DockStyle.Fill; this._paneProperties.Location = new System.Drawing.Point(0, 0); this._paneProperties.Name = "_paneProperties"; this._paneProperties.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneProperties.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneProperties.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneProperties.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneProperties.PaneCaptionContol.Name = "_caption"; this._paneProperties.PaneCaptionContol.Size = new System.Drawing.Size(554, 18); this._paneProperties.PaneCaptionContol.TabIndex = 0; this._paneProperties.PaneCaptionContol.Text = "Panel 1"; this._paneProperties.Size = new System.Drawing.Size(556, 177); this._paneProperties.TabIndex = 8; // // _propertyGrid // this._propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; this._propertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar; this._propertyGrid.Location = new System.Drawing.Point(1, 20); this._propertyGrid.Name = "_propertyGrid"; this._propertyGrid.PropertySort = System.Windows.Forms.PropertySort.NoSort; this._propertyGrid.Size = new System.Drawing.Size(554, 156); this._propertyGrid.TabIndex = 0; this._propertyGrid.ToolbarVisible = false; // // _menuStrip // this._menuStrip.Dock = System.Windows.Forms.DockStyle.None; this._menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _fileMenuItem, this._resourceMenuItem}); this._menuStrip.Location = new System.Drawing.Point(0, 0); this._menuStrip.Name = "_menuStrip"; this._menuStrip.Size = new System.Drawing.Size(792, 24); this._menuStrip.TabIndex = 0; this._menuStrip.Text = "menuStrip1"; // // _resourceMenuItem // this._resourceMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addResourceMenuItem, this._removeResourceMenuItem, this._renameResourceMenuItem}); this._resourceMenuItem.Enabled = false; this._resourceMenuItem.Name = "_resourceMenuItem"; this._resourceMenuItem.Size = new System.Drawing.Size(64, 20); this._resourceMenuItem.Text = "&Resource"; // // _addResourceMenuItem // this._addResourceMenuItem.Enabled = false; this._addResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Add; this._addResourceMenuItem.Name = "_addResourceMenuItem"; this._addResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._addResourceMenuItem.Text = "&Add"; this._addResourceMenuItem.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _removeResourceMenuItem // this._removeResourceMenuItem.Enabled = false; this._removeResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; this._removeResourceMenuItem.Name = "_removeResourceMenuItem"; this._removeResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._removeResourceMenuItem.Text = "&Remove"; this._removeResourceMenuItem.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameResourceMenuItem // this._renameResourceMenuItem.Enabled = false; this._renameResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; this._renameResourceMenuItem.Name = "_renameResourceMenuItem"; this._renameResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._renameResourceMenuItem.Text = "Re&name"; this._renameResourceMenuItem.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _addTreeContextMenuIten // _addTreeContextMenuIten.Image = global::Rsdn.LocUtil.Properties.Resources.Add; _addTreeContextMenuIten.Name = "_addTreeContextMenuIten"; _addTreeContextMenuIten.Size = new System.Drawing.Size(104, 22); _addTreeContextMenuIten.Text = "&Add"; // // _removeListContextMenuItem // _removeListContextMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Add; _removeListContextMenuItem.Name = "_removeListContextMenuItem"; _removeListContextMenuItem.Size = new System.Drawing.Size(124, 22); _removeListContextMenuItem.Text = "&Add"; _removeListContextMenuItem.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // removeToolStripMenuItem // removeToolStripMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; removeToolStripMenuItem.Name = "removeToolStripMenuItem"; removeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); removeToolStripMenuItem.Text = "&Remove"; removeToolStripMenuItem.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameListContextMenuItem // _renameListContextMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; _renameListContextMenuItem.Name = "_renameListContextMenuItem"; _renameListContextMenuItem.Size = new System.Drawing.Size(124, 22); _renameListContextMenuItem.Text = "Re&name"; _renameListContextMenuItem.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _treeContextMenu // this._treeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _addTreeContextMenuIten}); this._treeContextMenu.Name = "_treeContextMenu"; this._treeContextMenu.Size = new System.Drawing.Size(105, 26); this._treeContextMenu.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _listContextMenu // this._listContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _removeListContextMenuItem, removeToolStripMenuItem, _renameListContextMenuItem}); this._listContextMenu.Name = "_listContextMenu"; this._listContextMenu.Size = new System.Drawing.Size(125, 70); // // _openFileDialog // this._openFileDialog.DefaultExt = "resx"; this._openFileDialog.Filter = "ResX files|*.resx"; // // BottomToolStripPanel // this.BottomToolStripPanel.Location = new System.Drawing.Point(0, 0); this.BottomToolStripPanel.Name = "BottomToolStripPanel"; this.BottomToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.BottomToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.BottomToolStripPanel.Size = new System.Drawing.Size(0, 0); // // TopToolStripPanel // this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0); this.TopToolStripPanel.Name = "TopToolStripPanel"; this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0); // // RightToolStripPanel // this.RightToolStripPanel.Location = new System.Drawing.Point(0, 0); this.RightToolStripPanel.Name = "RightToolStripPanel"; this.RightToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.RightToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.RightToolStripPanel.Size = new System.Drawing.Size(0, 0); // // LeftToolStripPanel // this.LeftToolStripPanel.Location = new System.Drawing.Point(0, 0); this.LeftToolStripPanel.Name = "LeftToolStripPanel"; this.LeftToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.LeftToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.LeftToolStripPanel.Size = new System.Drawing.Size(0, 0); // // ContentPanel // this.ContentPanel.Size = new System.Drawing.Size(200, 100); // // MainForm // this.ClientSize = new System.Drawing.Size(792, 566); this.Controls.Add(_toolStripContainer); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this._menuStrip; this.Name = "MainForm"; this.Text = "Localization utility"; toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); toolStrip2.ResumeLayout(false); toolStrip2.PerformLayout(); _toolStripContainer.ContentPanel.ResumeLayout(false); _toolStripContainer.TopToolStripPanel.ResumeLayout(false); _toolStripContainer.TopToolStripPanel.PerformLayout(); _toolStripContainer.ResumeLayout(false); _toolStripContainer.PerformLayout(); this._treeSplitter.Panel1.ResumeLayout(false); this._treeSplitter.Panel2.ResumeLayout(false); this._treeSplitter.ResumeLayout(false); this._paneTree.ResumeLayout(false); this._resourceSplitter.Panel1.ResumeLayout(false); this._resourceSplitter.Panel2.ResumeLayout(false); this._resourceSplitter.ResumeLayout(false); this._paneItems.ResumeLayout(false); this._paneProperties.ResumeLayout(false); this._menuStrip.ResumeLayout(false); this._menuStrip.PerformLayout(); this._treeContextMenu.ResumeLayout(false); this._listContextMenu.ResumeLayout(false); this.ResumeLayout(false); }
private void CreateStandardToolStrip(IDesignerHost host, ToolStrip tool) { string[] strArray = new string[] { System.Design.SR.GetString("StandardMenuNew"), System.Design.SR.GetString("StandardMenuOpen"), System.Design.SR.GetString("StandardMenuSave"), System.Design.SR.GetString("StandardMenuPrint"), "-", System.Design.SR.GetString("StandardToolCut"), System.Design.SR.GetString("StandardMenuCopy"), System.Design.SR.GetString("StandardMenuPaste"), "-", System.Design.SR.GetString("StandardToolHelp") }; string[] strArray2 = new string[] { "new", "open", "save", "print", "-", "cut", "copy", "paste", "-", "help" }; if (host != null) { tool.SuspendLayout(); ToolStripDesigner._autoAddNewItems = false; DesignerTransaction transaction = this._host.CreateTransaction(System.Design.SR.GetString("StandardMenuCreateDesc")); try { INameCreationService nameCreationService = (INameCreationService) this._provider.GetService(typeof(INameCreationService)); string str = "standardMainToolStrip"; string name = str; int num = 1; if (host != null) { while (this._host.Container.Components[name] != null) { name = str + num++.ToString(CultureInfo.InvariantCulture); } } int index = 0; foreach (string str3 in strArray) { name = null; str = "ToolStripButton"; name = this.NameFromText(str3, typeof(ToolStripButton), nameCreationService, true); ToolStripItem component = null; if (name.Contains("Separator")) { component = (ToolStripSeparator) this._host.CreateComponent(typeof(ToolStripSeparator), name); IDesigner designer = this._host.GetDesigner(component); if (designer is ComponentDesigner) { ((ComponentDesigner) designer).InitializeNewComponent(null); } } else { component = (ToolStripButton) this._host.CreateComponent(typeof(ToolStripButton), name); IDesigner designer2 = this._host.GetDesigner(component); if (designer2 is ComponentDesigner) { ((ComponentDesigner) designer2).InitializeNewComponent(null); } PropertyDescriptor descriptor = TypeDescriptor.GetProperties(component)["DisplayStyle"]; if (descriptor != null) { descriptor.SetValue(component, ToolStripItemDisplayStyle.Image); } PropertyDescriptor descriptor2 = TypeDescriptor.GetProperties(component)["Text"]; if (descriptor2 != null) { descriptor2.SetValue(component, str3); } Bitmap image = null; try { image = this.GetImage(strArray2[index]); } catch { } if (image != null) { PropertyDescriptor descriptor3 = TypeDescriptor.GetProperties(component)["Image"]; if (descriptor3 != null) { descriptor3.SetValue(component, image); } component.ImageTransparentColor = Color.Magenta; } } tool.Items.Add(component); index++; } MemberDescriptor member = TypeDescriptor.GetProperties(tool)["Items"]; this.componentChangeSvc.OnComponentChanging(tool, member); this.componentChangeSvc.OnComponentChanged(tool, member, null, null); } catch (Exception exception) { if (exception is InvalidOperationException) { ((IUIService) this._provider.GetService(typeof(IUIService))).ShowError(exception.Message); } if (transaction != null) { transaction.Cancel(); transaction = null; } } finally { ToolStripDesigner._autoAddNewItems = true; if (transaction != null) { transaction.Commit(); transaction = null; } tool.ResumeLayout(); ISelectionService service = (ISelectionService) this._provider.GetService(typeof(ISelectionService)); if (service != null) { service.SetSelectedComponents(new object[] { this._designer.Component }); } DesignerActionUIService service4 = (DesignerActionUIService) this._provider.GetService(typeof(DesignerActionUIService)); if (service4 != null) { service4.Refresh(this._designer.Component); } ((SelectionManager) this._provider.GetService(typeof(SelectionManager))).Refresh(); } } }
private void CreateToolsPanel() { ToolStrip toolStrip1 = new ToolStrip(); toolStrip1.SuspendLayout(); toolStrip1.Items.Add(zForm.CreateToolStripButton("panel 1", (sender, eventArgs) => ActiveTabPanel(0))); toolStrip1.Items.Add(zForm.CreateToolStripButton("panel 2", (sender, eventArgs) => ActiveTabPanel(1))); toolStrip1.Items.Add(zForm.CreateToolStripButton("panel 3", (sender, eventArgs) => ActiveTabPanel(2))); toolStrip1.Items.Add(zForm.CreateToolStripButton("panel 4", (sender, eventArgs) => ActiveTabPanel(3))); toolStrip1.Items.Add(zForm.CreateToolStripButton("panel 5", (sender, eventArgs) => ActiveTabPanel(4))); toolStrip1.ResumeLayout(false); _toolsPanel.Controls.Add(toolStrip1); }
private void addMenu() { mainToolStrip = new System.Windows.Forms.ToolStrip(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); btnAddImage = new System.Windows.Forms.ToolStripButton(); btnCopy = new System.Windows.Forms.ToolStripButton(); btnPaste = new System.Windows.Forms.ToolStripButton(); btnDelete = new System.Windows.Forms.ToolStripButton(); btnZoomIn = new System.Windows.Forms.ToolStripButton(); btnZoomOut = new System.Windows.Forms.ToolStripButton(); btnZoomOriginal = new System.Windows.Forms.ToolStripButton(); btnInverse = new System.Windows.Forms.ToolStripButton(); btnMirrorVertical = new System.Windows.Forms.ToolStripButton(); btnMirrorHorizontal = new System.Windows.Forms.ToolStripButton(); btnMoveBack = new System.Windows.Forms.ToolStripButton(); btnMoveFront = new System.Windows.Forms.ToolStripButton(); btnReturnLastAction = new ToolStripButton(); mainToolStrip.SuspendLayout(); // // mainToolStrip // mainToolStrip.BackColor = System.Drawing.SystemColors.ScrollBar; mainToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); mainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { btnAddImage, btnCopy, btnPaste, btnDelete, toolStripSeparator1, btnZoomIn, btnZoomOut, btnZoomOriginal, toolStripSeparator2, btnInverse, btnMirrorVertical, btnMirrorHorizontal, toolStripSeparator3, btnMoveBack, btnMoveFront, toolStripSeparator4, btnReturnLastAction }); mainToolStrip.Location = new System.Drawing.Point(0, 0); mainToolStrip.Name = "mainToolStrip"; mainToolStrip.Size = new System.Drawing.Size(428, 25); mainToolStrip.TabIndex = 0; mainToolStrip.Text = "mainToolStrip"; // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripSeparator2 // toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // toolStripSeparator3 // toolStripSeparator3.Name = "toolStripSeparator3"; toolStripSeparator3.Size = new System.Drawing.Size(6, 25); // // btnAddImage // btnAddImage.CheckOnClick = true; btnAddImage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnAddImage.Image = global::FacadeCreatorApi.Properties.Resources.addImage; btnAddImage.ImageTransparentColor = System.Drawing.Color.Magenta; btnAddImage.Name = "btnAddImage"; btnAddImage.Size = new System.Drawing.Size(23, 22); btnAddImage.Text = "Добавить изображение"; btnAddImage.Click += mnuAddImage_Click; // // btnCopy // btnCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnCopy.Image = global::FacadeCreatorApi.Properties.Resources.copy; btnCopy.ImageTransparentColor = System.Drawing.Color.Magenta; btnCopy.Name = "btnCopy"; btnCopy.Size = new System.Drawing.Size(23, 22); btnCopy.Text = "Скопировать"; btnCopy.Enabled = false; btnCopy.Click += mnuCopy_Click; // // btnPaste // btnPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnPaste.Image = global::FacadeCreatorApi.Properties.Resources.paste; btnPaste.ImageTransparentColor = System.Drawing.Color.Magenta; btnPaste.Name = "btnPaste"; btnPaste.Size = new System.Drawing.Size(23, 22); btnPaste.Text = "Вставить"; btnPaste.Enabled = false; btnPaste.Click += mnuPaste_Click; // // btnDelete // btnDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnDelete.Image = global::FacadeCreatorApi.Properties.Resources.delete; btnDelete.ImageTransparentColor = System.Drawing.Color.Magenta; btnDelete.Name = "btnDelete"; btnDelete.Size = new System.Drawing.Size(23, 22); btnDelete.Text = "Удалить"; btnDelete.Enabled = false; btnDelete.Click += mhuDeleteFigure_Click; // // btnZoomIn // btnZoomIn.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnZoomIn.Image = global::FacadeCreatorApi.Properties.Resources.zoomIn; btnZoomIn.ImageTransparentColor = System.Drawing.Color.Magenta; btnZoomIn.Name = "btnZoomIn"; btnZoomIn.Size = new System.Drawing.Size(23, 22); btnZoomIn.Text = "Увеличить"; btnZoomIn.Click += btnZoomIn_Click; // // btnZoomOut // btnZoomOut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnZoomOut.Image = global::FacadeCreatorApi.Properties.Resources.zoomOut; btnZoomOut.ImageTransparentColor = System.Drawing.Color.Magenta; btnZoomOut.Name = "btnZoomOut"; btnZoomOut.Size = new System.Drawing.Size(23, 22); btnZoomOut.Text = "Уменьшить"; btnZoomOut.Click += BtnZoomOut_Click; // // btnZoomOriginal // btnZoomOriginal.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnZoomOriginal.Image = global::FacadeCreatorApi.Properties.Resources.zoomToOriginal; btnZoomOriginal.ImageTransparentColor = System.Drawing.Color.Magenta; btnZoomOriginal.Name = "btnZoomOriginal"; btnZoomOriginal.Size = new System.Drawing.Size(23, 22); btnZoomOriginal.Text = "Исходный размер"; btnZoomOriginal.Click += BtnZoomOriginal_Click; // // btnInverse // btnInverse.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnInverse.Image = global::FacadeCreatorApi.Properties.Resources.invert; btnInverse.ImageTransparentColor = System.Drawing.Color.Magenta; btnInverse.Name = "btnInverse"; btnInverse.Size = new System.Drawing.Size(23, 22); btnInverse.Text = "Инвертировать"; btnInverse.Enabled = false; btnInverse.Click += mnuInversion_Click; // // btnMirrorVertical // btnMirrorVertical.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnMirrorVertical.Image = global::FacadeCreatorApi.Properties.Resources.mirrorVertical; btnMirrorVertical.ImageTransparentColor = System.Drawing.Color.Magenta; btnMirrorVertical.Name = "btnMirrorVertical"; btnMirrorVertical.Size = new System.Drawing.Size(23, 22); btnMirrorVertical.Text = "Отзеркалить по вертикали"; btnMirrorVertical.Enabled = false; btnMirrorVertical.Click += mnuMirrorVertical_Click; // // btnMirrorHorizontal // btnMirrorHorizontal.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnMirrorHorizontal.Image = global::FacadeCreatorApi.Properties.Resources.mirrorHorizontal; btnMirrorHorizontal.ImageTransparentColor = System.Drawing.Color.Magenta; btnMirrorHorizontal.Name = "btnMirrorHorizontal"; btnMirrorHorizontal.Size = new System.Drawing.Size(23, 22); btnMirrorHorizontal.Text = "Отзеркалить по горизонтали"; btnMirrorHorizontal.Enabled = false; btnMirrorHorizontal.Click += mnuMirrorHorizontal_Click; // // btnMoveBack // btnMoveBack.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnMoveBack.Image = global::FacadeCreatorApi.Properties.Resources.moveBack; btnMoveBack.ImageTransparentColor = System.Drawing.Color.Magenta; btnMoveBack.Name = "btnMoveBack"; btnMoveBack.Size = new System.Drawing.Size(23, 22); btnMoveBack.Text = "На задний план"; btnMoveBack.Enabled = false; btnMoveBack.Click += mnuLower_Click; // // btnMoveFront // btnMoveFront.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnMoveFront.Image = global::FacadeCreatorApi.Properties.Resources.moveForward; btnMoveFront.ImageTransparentColor = System.Drawing.Color.Magenta; btnMoveFront.Name = "btnMoveFront"; btnMoveFront.Size = new System.Drawing.Size(23, 22); btnMoveFront.Text = "На передний план"; btnMoveFront.Enabled = false; btnMoveFront.Click += mnuUp_Click; btnReturnLastAction.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; btnReturnLastAction.Image = global::FacadeCreatorApi.Properties.Resources.backToPrevious; btnReturnLastAction.ImageTransparentColor = System.Drawing.Color.Magenta; btnReturnLastAction.Name = "btnReturnLastAction"; btnReturnLastAction.Size = new System.Drawing.Size(23, 22); btnReturnLastAction.Text = "Вернуть"; btnReturnLastAction.Enabled = false; btnReturnLastAction.Click += btnReturnLastAction_Click; canvas.Controls.Add(mainToolStrip); mainToolStrip.ResumeLayout(false); mainToolStrip.PerformLayout(); //canvas.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); toolStripContainer1 = new ToolStripContainer(); panel1 = new Panel(); shapeContainer1 = new ShapeContainer(); menuStrip1 = new MenuStrip(); fileToolStripMenuItem = new ToolStripMenuItem(); newToolStripMenuItem = new ToolStripMenuItem(); openToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator = new ToolStripSeparator(); saveToolStripMenuItem = new ToolStripMenuItem(); saveAsToolStripMenuItem = new ToolStripMenuItem(); exportToolStripMenuItem = new ToolStripMenuItem(); exportImageToolStripMenuItem = new ToolStripMenuItem(); comeImmagineVettorialeToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator1 = new ToolStripSeparator(); printToolStripMenuItem = new ToolStripMenuItem(); printPreviewToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator2 = new ToolStripSeparator(); exitToolStripMenuItem = new ToolStripMenuItem(); editToolStripMenuItem = new ToolStripMenuItem(); undoToolStripMenuItem = new ToolStripMenuItem(); redoToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator3 = new ToolStripSeparator(); cutToolStripMenuItem = new ToolStripMenuItem(); copyToolStripMenuItem = new ToolStripMenuItem(); pasteToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator4 = new ToolStripSeparator(); selectAllToolStripMenuItem = new ToolStripMenuItem(); objectsTSMI = new ToolStripMenuItem(); lineKindTSMI = new ToolStripMenuItem(); toolsToolStripMenuItem = new ToolStripMenuItem(); customizeToolStripMenuItem = new ToolStripMenuItem(); optionsToolStripMenuItem = new ToolStripMenuItem(); showTSMI = new ToolStripMenuItem(); hideTSMI = new ToolStripMenuItem(); helpToolStripMenuItem = new ToolStripMenuItem(); contentsToolStripMenuItem = new ToolStripMenuItem(); indexToolStripMenuItem = new ToolStripMenuItem(); searchToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator5 = new ToolStripSeparator(); aboutToolStripMenuItem = new ToolStripMenuItem(); toolStrip1 = new ToolStrip(); newToolStripButton = new ToolStripButton(); saveToolStripButton = new ToolStripButton(); openToolStripButton = new ToolStripButton(); printToolStripButton = new ToolStripButton(); toolStripSeparator6 = new ToolStripSeparator(); cutToolStripButton = new ToolStripButton(); copyToolStripButton = new ToolStripButton(); pasteToolStripButton = new ToolStripButton(); toolStripSeparator7 = new ToolStripSeparator(); libraryTS = new ToolStripSplitButton(); linkModeTS = new CheckableToolStripSplitButton(); toolStripSeparator8 = new ToolStripSeparator(); fontTS = new CheckableToolStripSplitButton(); altriToolStripMenuItem = new ToolStripMenuItem(); fColorTS = new CheckableToolStripSplitButton(); altriToolStripMenuItem1 = new ToolStripMenuItem(); bColorTS = new CheckableToolStripSplitButton(); altriToolStripMenuItem2 = new ToolStripMenuItem(); borderColorTS = new CheckableToolStripSplitButton(); altriToolStripMenuItem3 = new ToolStripMenuItem(); toolStripSeparator9 = new ToolStripSeparator(); resizeTS = new ToolStripButton(); gridTS = new ToolStripButton(); toolStripSeparator10 = new ToolStripSeparator(); helpToolStripButton = new ToolStripButton(); imageList1 = new ImageList(components); fColorDialog = new ColorDialog(); fontDialog1 = new FontDialog(); bColorDialog = new ColorDialog(); printDocument1 = new System.Drawing.Printing.PrintDocument(); printDialog1 = new PrintDialog(); printPreviewDialog1 = new PrintPreviewDialog(); openFileDialog1 = new OpenFileDialog(); saveFileDialog1 = new SaveFileDialog(); saveFileDialog2 = new SaveFileDialog(); borderColorDialog = new ColorDialog(); saveFileDialog3 = new SaveFileDialog(); toolStripContainer1.ContentPanel.SuspendLayout(); toolStripContainer1.TopToolStripPanel.SuspendLayout(); toolStripContainer1.SuspendLayout(); panel1.SuspendLayout(); menuStrip1.SuspendLayout(); toolStrip1.SuspendLayout(); SuspendLayout(); // // toolStripContainer1 // // // toolStripContainer1.ContentPanel // toolStripContainer1.ContentPanel.Controls.Add(panel1); toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(804, 529); toolStripContainer1.Dock = DockStyle.Fill; toolStripContainer1.Location = new System.Drawing.Point(0, 0); toolStripContainer1.Name = "toolStripContainer1"; toolStripContainer1.Size = new System.Drawing.Size(804, 578); toolStripContainer1.TabIndex = 1; toolStripContainer1.Text = "toolStripContainer1"; // // toolStripContainer1.TopToolStripPanel // toolStripContainer1.TopToolStripPanel.Controls.Add(menuStrip1); toolStripContainer1.TopToolStripPanel.Controls.Add(toolStrip1); // // panel1 // panel1.AutoScroll = true; panel1.AutoSize = true; panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; panel1.Controls.Add(shapeContainer1); panel1.Dock = DockStyle.Fill; panel1.Location = new System.Drawing.Point(0, 0); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(804, 529); panel1.TabIndex = 1; // // shapeContainer1 // shapeContainer1.BackColor = System.Drawing.Color.White; shapeContainer1.Location = new System.Drawing.Point(0, 0); shapeContainer1.Name = "shapeContainer1"; shapeContainer1.Size = new System.Drawing.Size(804, 529); shapeContainer1.TabIndex = 1; shapeContainer1.Link += new System.EventHandler(ShapeContainer1Link); shapeContainer1.Click += new System.EventHandler<ShapeEventArgs>(ShapeContainer1Click); shapeContainer1.MouseClick += new MouseEventHandler(ShapeContainer1MouseClick); shapeContainer1.MouseDown += new MouseEventHandler(ShapeContainer1MouseDown); // // menuStrip1 // menuStrip1.Dock = DockStyle.None; menuStrip1.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem, editToolStripMenuItem, objectsTSMI, lineKindTSMI, toolsToolStripMenuItem, helpToolStripMenuItem}); menuStrip1.Location = new System.Drawing.Point(0, 0); menuStrip1.Name = "menuStrip1"; menuStrip1.Size = new System.Drawing.Size(804, 24); menuStrip1.TabIndex = 0; menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { newToolStripMenuItem, openToolStripMenuItem, toolStripSeparator, saveToolStripMenuItem, saveAsToolStripMenuItem, exportToolStripMenuItem, toolStripSeparator1, printToolStripMenuItem, printPreviewToolStripMenuItem, toolStripSeparator2, exitToolStripMenuItem}); fileToolStripMenuItem.Name = "fileToolStripMenuItem"; fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); fileToolStripMenuItem.Text = "&File"; // // newToolStripMenuItem // newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; newToolStripMenuItem.Name = "newToolStripMenuItem"; newToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N; newToolStripMenuItem.Size = new System.Drawing.Size(194, 22); newToolStripMenuItem.Text = "Nuovo..."; newToolStripMenuItem.Click += new System.EventHandler(NewToolStripMenuItemClick); // // openToolStripMenuItem // openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; openToolStripMenuItem.Name = "openToolStripMenuItem"; openToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.O; openToolStripMenuItem.Size = new System.Drawing.Size(194, 22); openToolStripMenuItem.Text = "Apri..."; openToolStripMenuItem.Click += new System.EventHandler(OpenToolStripMenuItemClick); // // toolStripSeparator // toolStripSeparator.Name = "toolStripSeparator"; toolStripSeparator.Size = new System.Drawing.Size(191, 6); // // saveToolStripMenuItem // saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; saveToolStripMenuItem.Name = "saveToolStripMenuItem"; saveToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.S)); saveToolStripMenuItem.Size = new System.Drawing.Size(194, 22); saveToolStripMenuItem.Text = "Salva"; saveToolStripMenuItem.Click += new System.EventHandler(SaveToolStripMenuItemClick); // // saveAsToolStripMenuItem // saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; saveAsToolStripMenuItem.Size = new System.Drawing.Size(194, 22); saveAsToolStripMenuItem.Text = "Salva come..."; saveAsToolStripMenuItem.Click += new System.EventHandler(SaveAsToolStripMenuItemClick); // // exportToolStripMenuItem // exportToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { exportImageToolStripMenuItem, comeImmagineVettorialeToolStripMenuItem}); exportToolStripMenuItem.Name = "exportToolStripMenuItem"; exportToolStripMenuItem.Size = new System.Drawing.Size(194, 22); exportToolStripMenuItem.Text = "Esporta"; // // exportImageToolStripMenuItem // exportImageToolStripMenuItem.Name = "exportImageToolStripMenuItem"; exportImageToolStripMenuItem.Size = new System.Drawing.Size(224, 22); exportImageToolStripMenuItem.Text = "Come immagine..."; exportImageToolStripMenuItem.Click += new System.EventHandler(ExportImageToolStripMenuItemClick); // // comeImmagineVettorialeToolStripMenuItem // comeImmagineVettorialeToolStripMenuItem.Name = "comeImmagineVettorialeToolStripMenuItem"; comeImmagineVettorialeToolStripMenuItem.Size = new System.Drawing.Size(224, 22); comeImmagineVettorialeToolStripMenuItem.Text = "Come immagine vettoriale..."; comeImmagineVettorialeToolStripMenuItem.Click += new System.EventHandler(ComeImmagineVettorialeToolStripMenuItemClick); // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(191, 6); // // printToolStripMenuItem // printToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripMenuItem.Image"))); printToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; printToolStripMenuItem.Name = "printToolStripMenuItem"; printToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.P)); printToolStripMenuItem.Size = new System.Drawing.Size(194, 22); printToolStripMenuItem.Text = "&Stampa..."; printToolStripMenuItem.Click += new System.EventHandler(PrintToolStripMenuItemClick); // // printPreviewToolStripMenuItem // printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewToolStripMenuItem.Image"))); printPreviewToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; printPreviewToolStripMenuItem.Name = "printPreviewToolStripMenuItem"; printPreviewToolStripMenuItem.Size = new System.Drawing.Size(194, 22); printPreviewToolStripMenuItem.Text = "Anteprima di stampa..."; printPreviewToolStripMenuItem.Click += new System.EventHandler(PrintPreviewToolStripMenuItemClick); // // toolStripSeparator2 // toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(191, 6); // // exitToolStripMenuItem // exitToolStripMenuItem.Name = "exitToolStripMenuItem"; exitToolStripMenuItem.Size = new System.Drawing.Size(194, 22); exitToolStripMenuItem.Text = "Esci"; exitToolStripMenuItem.Click += new System.EventHandler(ExitToolStripMenuItemClick); // // editToolStripMenuItem // editToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { undoToolStripMenuItem, redoToolStripMenuItem, toolStripSeparator3, cutToolStripMenuItem, copyToolStripMenuItem, pasteToolStripMenuItem, toolStripSeparator4, selectAllToolStripMenuItem}); editToolStripMenuItem.Enabled = false; editToolStripMenuItem.Name = "editToolStripMenuItem"; editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); editToolStripMenuItem.Text = "&Edit"; editToolStripMenuItem.Visible = false; // // undoToolStripMenuItem // undoToolStripMenuItem.Enabled = false; undoToolStripMenuItem.Name = "undoToolStripMenuItem"; undoToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.Z)); undoToolStripMenuItem.Size = new System.Drawing.Size(144, 22); undoToolStripMenuItem.Text = "&Undo"; // // redoToolStripMenuItem // redoToolStripMenuItem.Enabled = false; redoToolStripMenuItem.Name = "redoToolStripMenuItem"; redoToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.Y)); redoToolStripMenuItem.Size = new System.Drawing.Size(144, 22); redoToolStripMenuItem.Text = "&Redo"; // // toolStripSeparator3 // toolStripSeparator3.Name = "toolStripSeparator3"; toolStripSeparator3.Size = new System.Drawing.Size(141, 6); // // cutToolStripMenuItem // cutToolStripMenuItem.Enabled = false; cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image"))); cutToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; cutToolStripMenuItem.Name = "cutToolStripMenuItem"; cutToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.X)); cutToolStripMenuItem.Size = new System.Drawing.Size(144, 22); cutToolStripMenuItem.Text = "Cu&t"; // // copyToolStripMenuItem // copyToolStripMenuItem.Enabled = false; copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image"))); copyToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; copyToolStripMenuItem.Name = "copyToolStripMenuItem"; copyToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.C)); copyToolStripMenuItem.Size = new System.Drawing.Size(144, 22); copyToolStripMenuItem.Text = "&Copy"; // // pasteToolStripMenuItem // pasteToolStripMenuItem.Enabled = false; pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image"))); pasteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; pasteToolStripMenuItem.ShortcutKeys = ((Keys.Control | Keys.V)); pasteToolStripMenuItem.Size = new System.Drawing.Size(144, 22); pasteToolStripMenuItem.Text = "&Paste"; // // toolStripSeparator4 // toolStripSeparator4.Name = "toolStripSeparator4"; toolStripSeparator4.Size = new System.Drawing.Size(141, 6); // // selectAllToolStripMenuItem // selectAllToolStripMenuItem.Enabled = false; selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; selectAllToolStripMenuItem.Size = new System.Drawing.Size(144, 22); selectAllToolStripMenuItem.Text = "Select &All"; // // objectsTSMI // objectsTSMI.Name = "objectsTSMI"; objectsTSMI.Size = new System.Drawing.Size(59, 20); objectsTSMI.Text = "Oggetti"; // // lineKindTSMI // lineKindTSMI.Name = "lineKindTSMI"; lineKindTSMI.Size = new System.Drawing.Size(47, 20); lineKindTSMI.Text = "Linee"; // // toolsToolStripMenuItem // toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { customizeToolStripMenuItem, optionsToolStripMenuItem, showTSMI, hideTSMI}); toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; toolsToolStripMenuItem.Size = new System.Drawing.Size(71, 20); toolsToolStripMenuItem.Text = "&Strumenti"; // // customizeToolStripMenuItem // customizeToolStripMenuItem.Enabled = false; customizeToolStripMenuItem.Name = "customizeToolStripMenuItem"; customizeToolStripMenuItem.Size = new System.Drawing.Size(186, 22); customizeToolStripMenuItem.Text = "&Customize"; customizeToolStripMenuItem.Visible = false; // // optionsToolStripMenuItem // optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; optionsToolStripMenuItem.Size = new System.Drawing.Size(186, 22); optionsToolStripMenuItem.Text = "&Opzioni"; optionsToolStripMenuItem.Click += new System.EventHandler(OptionsToolStripMenuItemClick); // // showTSMI // showTSMI.Name = "showTSMI"; showTSMI.Size = new System.Drawing.Size(186, 22); showTSMI.Text = "Mostra tutti i punti"; showTSMI.Click += new System.EventHandler(ShowTsmiClick); // // hideTSMI // hideTSMI.Name = "hideTSMI"; hideTSMI.Size = new System.Drawing.Size(186, 22); hideTSMI.Text = "Nascondi tutti i punti"; hideTSMI.Click += new System.EventHandler(HideTsmiClick); // // helpToolStripMenuItem // helpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { contentsToolStripMenuItem, indexToolStripMenuItem, searchToolStripMenuItem, toolStripSeparator5, aboutToolStripMenuItem}); helpToolStripMenuItem.Name = "helpToolStripMenuItem"; helpToolStripMenuItem.Size = new System.Drawing.Size(24, 20); helpToolStripMenuItem.Text = "&?"; // // contentsToolStripMenuItem // contentsToolStripMenuItem.Enabled = false; contentsToolStripMenuItem.Name = "contentsToolStripMenuItem"; contentsToolStripMenuItem.Size = new System.Drawing.Size(165, 22); contentsToolStripMenuItem.Text = "&Contents"; // // indexToolStripMenuItem // indexToolStripMenuItem.Enabled = false; indexToolStripMenuItem.Name = "indexToolStripMenuItem"; indexToolStripMenuItem.Size = new System.Drawing.Size(165, 22); indexToolStripMenuItem.Text = "&Index"; // // searchToolStripMenuItem // searchToolStripMenuItem.Enabled = false; searchToolStripMenuItem.Name = "searchToolStripMenuItem"; searchToolStripMenuItem.Size = new System.Drawing.Size(165, 22); searchToolStripMenuItem.Text = "&Search"; // // toolStripSeparator5 // toolStripSeparator5.Name = "toolStripSeparator5"; toolStripSeparator5.Size = new System.Drawing.Size(162, 6); // // aboutToolStripMenuItem // aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; aboutToolStripMenuItem.Size = new System.Drawing.Size(165, 22); aboutToolStripMenuItem.Text = "Informazioni su..."; aboutToolStripMenuItem.Click += new System.EventHandler(AboutToolStripMenuItemClick); // // toolStrip1 // toolStrip1.Dock = DockStyle.None; toolStrip1.Items.AddRange(new ToolStripItem[] { newToolStripButton, saveToolStripButton, openToolStripButton, printToolStripButton, toolStripSeparator6, cutToolStripButton, copyToolStripButton, pasteToolStripButton, toolStripSeparator7, libraryTS, linkModeTS, toolStripSeparator8, fontTS, fColorTS, bColorTS, borderColorTS, toolStripSeparator9, resizeTS, gridTS, toolStripSeparator10, helpToolStripButton}); toolStrip1.Location = new System.Drawing.Point(3, 24); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new System.Drawing.Size(360, 25); toolStrip1.TabIndex = 1; // // newToolStripButton // newToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image"))); newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; newToolStripButton.Name = "newToolStripButton"; newToolStripButton.Size = new System.Drawing.Size(23, 22); newToolStripButton.Text = "Nuovo"; newToolStripButton.Click += new System.EventHandler(NewToolStripButtonClick); // // saveToolStripButton // saveToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image"))); saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; saveToolStripButton.Name = "saveToolStripButton"; saveToolStripButton.Size = new System.Drawing.Size(23, 22); saveToolStripButton.Text = "Salva"; saveToolStripButton.Click += new System.EventHandler(SaveToolStripButtonClick); // // openToolStripButton // openToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image"))); openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; openToolStripButton.Name = "openToolStripButton"; openToolStripButton.Size = new System.Drawing.Size(23, 22); openToolStripButton.Text = "Apri"; openToolStripButton.Click += new System.EventHandler(OpenToolStripButtonClick); // // printToolStripButton // printToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image"))); printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; printToolStripButton.Name = "printToolStripButton"; printToolStripButton.Size = new System.Drawing.Size(23, 22); printToolStripButton.Text = "Stampa"; printToolStripButton.Click += new System.EventHandler(PrintToolStripButtonClick); // // toolStripSeparator6 // toolStripSeparator6.Name = "toolStripSeparator6"; toolStripSeparator6.Size = new System.Drawing.Size(6, 25); // // cutToolStripButton // cutToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; cutToolStripButton.Enabled = false; cutToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripButton.Image"))); cutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; cutToolStripButton.Name = "cutToolStripButton"; cutToolStripButton.Size = new System.Drawing.Size(23, 22); cutToolStripButton.Text = "C&ut"; cutToolStripButton.Visible = false; // // copyToolStripButton // copyToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; copyToolStripButton.Enabled = false; copyToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripButton.Image"))); copyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; copyToolStripButton.Name = "copyToolStripButton"; copyToolStripButton.Size = new System.Drawing.Size(23, 22); copyToolStripButton.Text = "&Copy"; copyToolStripButton.Visible = false; // // pasteToolStripButton // pasteToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; pasteToolStripButton.Enabled = false; pasteToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripButton.Image"))); pasteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; pasteToolStripButton.Name = "pasteToolStripButton"; pasteToolStripButton.Size = new System.Drawing.Size(23, 22); pasteToolStripButton.Text = "&Paste"; pasteToolStripButton.Visible = false; // // toolStripSeparator7 // toolStripSeparator7.Name = "toolStripSeparator7"; toolStripSeparator7.Size = new System.Drawing.Size(6, 25); toolStripSeparator7.Visible = false; // // libraryTS // libraryTS.DisplayStyle = ToolStripItemDisplayStyle.Image; libraryTS.Image = global::DiagramDrawer.Properties.Resources.Book; libraryTS.ImageTransparentColor = System.Drawing.Color.Magenta; libraryTS.Name = "libraryTS"; libraryTS.Size = new System.Drawing.Size(32, 22); libraryTS.Text = "Libreria"; libraryTS.ButtonClick += new System.EventHandler(LibraryTsButtonClick); // // linkModeTS // linkModeTS.DisplayStyle = ToolStripItemDisplayStyle.Image; linkModeTS.DoubleClickEnabled = true; linkModeTS.Image = global::DiagramDrawer.Properties.Resources.NoArrow; linkModeTS.ImageTransparentColor = System.Drawing.Color.Magenta; linkModeTS.Name = "linkModeTS"; linkModeTS.Size = new System.Drawing.Size(32, 22); linkModeTS.Text = "Tipo di linea"; linkModeTS.DoubleClick += new System.EventHandler(TsDoubleClick); linkModeTS.ButtonClick += new System.EventHandler(TsButtonClick); // // toolStripSeparator8 // toolStripSeparator8.Name = "toolStripSeparator8"; toolStripSeparator8.Size = new System.Drawing.Size(6, 25); // // fontTS // fontTS.DisplayStyle = ToolStripItemDisplayStyle.Image; fontTS.DoubleClickEnabled = true; fontTS.DropDownItems.AddRange(new ToolStripItem[] { altriToolStripMenuItem}); fontTS.Image = ((System.Drawing.Image)(resources.GetObject("fontTS.Image"))); fontTS.ImageTransparentColor = System.Drawing.Color.Magenta; fontTS.Name = "fontTS"; fontTS.Size = new System.Drawing.Size(32, 22); fontTS.Text = "Cambia font"; fontTS.DoubleClick += new System.EventHandler(TsDoubleClick); fontTS.ButtonClick += new System.EventHandler(TsButtonClick); // // altriToolStripMenuItem // altriToolStripMenuItem.Name = "altriToolStripMenuItem"; altriToolStripMenuItem.Size = new System.Drawing.Size(105, 22); altriToolStripMenuItem.Text = "Altri..."; altriToolStripMenuItem.Click += new System.EventHandler(AltriToolStripMenuItemClick); // // fColorTS // fColorTS.DisplayStyle = ToolStripItemDisplayStyle.Image; fColorTS.DoubleClickEnabled = true; fColorTS.DropDownItems.AddRange(new ToolStripItem[] { altriToolStripMenuItem1}); fColorTS.Image = global::DiagramDrawer.Properties.Resources.FontColor; fColorTS.ImageTransparentColor = System.Drawing.Color.Magenta; fColorTS.Name = "fColorTS"; fColorTS.Size = new System.Drawing.Size(32, 22); fColorTS.Text = "Cambia il colore del testo"; fColorTS.DoubleClick += new System.EventHandler(TsDoubleClick); fColorTS.ButtonClick += new System.EventHandler(TsButtonClick); // // altriToolStripMenuItem1 // altriToolStripMenuItem1.Name = "altriToolStripMenuItem1"; altriToolStripMenuItem1.Size = new System.Drawing.Size(105, 22); altriToolStripMenuItem1.Text = "Altri..."; altriToolStripMenuItem1.Click += new System.EventHandler(AltriToolStripMenuItem1Click); // // bColorTS // bColorTS.DisplayStyle = ToolStripItemDisplayStyle.Image; bColorTS.DoubleClickEnabled = true; bColorTS.DropDownItems.AddRange(new ToolStripItem[] { altriToolStripMenuItem2}); bColorTS.Image = global::DiagramDrawer.Properties.Resources.Fill; bColorTS.ImageTransparentColor = System.Drawing.Color.Magenta; bColorTS.Name = "bColorTS"; bColorTS.Size = new System.Drawing.Size(32, 22); bColorTS.Text = "Cambia il colore dello sfondo"; bColorTS.DoubleClick += new System.EventHandler(TsDoubleClick); bColorTS.ButtonClick += new System.EventHandler(TsButtonClick); // // altriToolStripMenuItem2 // altriToolStripMenuItem2.Name = "altriToolStripMenuItem2"; altriToolStripMenuItem2.Size = new System.Drawing.Size(105, 22); altriToolStripMenuItem2.Text = "Altri..."; altriToolStripMenuItem2.Click += new System.EventHandler(AltriToolStripMenuItem2Click); // // borderColorTS // borderColorTS.AutoToolTip = false; borderColorTS.DisplayStyle = ToolStripItemDisplayStyle.Image; borderColorTS.DropDownItems.AddRange(new ToolStripItem[] { altriToolStripMenuItem3}); borderColorTS.Image = global::DiagramDrawer.Properties.Resources.Border; borderColorTS.ImageTransparentColor = System.Drawing.Color.Magenta; borderColorTS.Name = "borderColorTS"; borderColorTS.Size = new System.Drawing.Size(32, 22); borderColorTS.Text = "Cambia il colore del bordo"; borderColorTS.DoubleClick += new System.EventHandler(TsDoubleClick); borderColorTS.ButtonClick += new System.EventHandler(TsButtonClick); // // altriToolStripMenuItem3 // altriToolStripMenuItem3.Name = "altriToolStripMenuItem3"; altriToolStripMenuItem3.Size = new System.Drawing.Size(105, 22); altriToolStripMenuItem3.Text = "Altri..."; altriToolStripMenuItem3.Click += new System.EventHandler(AltriToolStripMenuItem3Click); // // toolStripSeparator9 // toolStripSeparator9.Name = "toolStripSeparator9"; toolStripSeparator9.Size = new System.Drawing.Size(6, 25); // // resizeTS // resizeTS.DisplayStyle = ToolStripItemDisplayStyle.Image; resizeTS.Image = ((System.Drawing.Image)(resources.GetObject("resizeTS.Image"))); resizeTS.ImageTransparentColor = System.Drawing.Color.Magenta; resizeTS.Name = "resizeTS"; resizeTS.Size = new System.Drawing.Size(23, 22); resizeTS.Text = "Ridimensiona foglio"; resizeTS.Click += new System.EventHandler(ResizeButtonClick); // // gridTS // gridTS.DisplayStyle = ToolStripItemDisplayStyle.Image; gridTS.DoubleClickEnabled = true; gridTS.Image = global::DiagramDrawer.Properties.Resources.Grid; gridTS.ImageTransparentColor = System.Drawing.Color.Magenta; gridTS.Name = "gridTS"; gridTS.Size = new System.Drawing.Size(23, 22); gridTS.Text = "Griglia"; gridTS.DoubleClick += new System.EventHandler(GridTsDoubleClick); gridTS.Click += new System.EventHandler(GridTsClick); // // toolStripSeparator10 // toolStripSeparator10.Name = "toolStripSeparator10"; toolStripSeparator10.Size = new System.Drawing.Size(6, 25); toolStripSeparator10.Visible = false; // // helpToolStripButton // helpToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; helpToolStripButton.Enabled = false; helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image"))); helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; helpToolStripButton.Name = "helpToolStripButton"; helpToolStripButton.Size = new System.Drawing.Size(23, 22); helpToolStripButton.Text = "He&lp"; helpToolStripButton.Visible = false; // // imageList1 // imageList1.ImageStream = ((ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); imageList1.TransparentColor = System.Drawing.Color.Magenta; imageList1.Images.SetKeyName(0, "ellipse.bmp"); imageList1.Images.SetKeyName(1, "rectangle.bmp"); imageList1.Images.SetKeyName(2, "Simple.bmp"); imageList1.Images.SetKeyName(3, "Point1.bmp"); imageList1.Images.SetKeyName(4, "Point2.bmp"); // // fColorDialog // fColorDialog.AnyColor = true; // // fontDialog1 // fontDialog1.FontMustExist = true; // // bColorDialog // bColorDialog.AnyColor = true; bColorDialog.Color = System.Drawing.Color.White; // // printDocument1 // printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrintDocument1PrintPage); // // printDialog1 // printDialog1.Document = printDocument1; printDialog1.UseEXDialog = true; // // printPreviewDialog1 // printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0); printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300); printPreviewDialog1.Document = printDocument1; printPreviewDialog1.Enabled = true; printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon"))); printPreviewDialog1.Name = "printPreviewDialog1"; printPreviewDialog1.Visible = false; // // openFileDialog1 // openFileDialog1.DefaultExt = "xml"; openFileDialog1.FileName = "openFileDialog1"; openFileDialog1.Filter = "File xml (*.xml)|*.xml|Tutti i files (*.*)|*.*"; // // saveFileDialog1 // saveFileDialog1.DefaultExt = "xml"; saveFileDialog1.FileName = "diagram"; saveFileDialog1.Filter = "File xml (*.xml)|*.xml|Tutti i files (*.*)|*.*"; saveFileDialog1.RestoreDirectory = true; // // saveFileDialog2 // saveFileDialog2.FileName = "export"; saveFileDialog2.Filter = "File png (*.png)|*.png|File jpeg (*.jpg,*.jpeg)|*.jpg,*.jpeg|File bitmap (*.bmp)|" + "*.bmp|File gif (*.gif)|*.gif|File tiff (*.tif,*.tiff)|*.tif,*.tiff"; saveFileDialog2.RestoreDirectory = true; // // borderColorDialog // borderColorDialog.AnyColor = true; // // saveFileDialog3 // saveFileDialog3.DefaultExt = "svg"; saveFileDialog3.Filter = "File svg (*.svg)|*.svg|Tutti i files (*.*)|*.*"; // // MainForm // ClientSize = new System.Drawing.Size(804, 578); Controls.Add(toolStripContainer1); MainMenuStrip = menuStrip1; Name = "MainForm"; Text = "Diagram Drawer"; FormClosing += new FormClosingEventHandler(MainForm_FormClosing); toolStripContainer1.ContentPanel.ResumeLayout(false); toolStripContainer1.ContentPanel.PerformLayout(); toolStripContainer1.TopToolStripPanel.ResumeLayout(false); toolStripContainer1.TopToolStripPanel.PerformLayout(); toolStripContainer1.ResumeLayout(false); toolStripContainer1.PerformLayout(); panel1.ResumeLayout(false); menuStrip1.ResumeLayout(false); menuStrip1.PerformLayout(); toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); ResumeLayout (false); }
private void InitializeToolStrip(ToolStrip strip, IntPtr menu) { strip.SuspendLayout(); this.InitializeToolStripItems(strip.Items, menu); strip.MinimumSize = new Size(this.MeasureOwnerDrawItems(strip.Items), 0); strip.ResumeLayout(); if (strip.MinimumSize.Width > 0) { strip.SuspendLayout(); foreach (ToolStripItem item in strip.Items) { if (!item.AutoSize) { item.Width = strip.ClientSize.Width - 1; } } strip.ResumeLayout(); } }
public void LoadBtnToolStrip(ToolStrip ts, String fileName) { ts.SuspendLayout(); if (fileName != null) { try { String tempStr; tempStr = fileName.Split(new char[] { '.' })[fileName.Split(new char[] { '.' }).Length - 1]; if (tempStr.ToUpper() == "XML" && File.Exists(fileName)) { XmlDocument doc = new XmlDocument(); doc.Load(fileName); XmlNode root = doc.SelectSingleNode("/root/buttons"); for (int i = 0; i < root.ChildNodes.Count; i++) { XmlElement elem = (XmlElement)root.ChildNodes[i]; ToolStripButton btn = new ToolStripButton(); btn.Text = elem.Attributes["Text"].InnerText; btn.Name = elem.Attributes["Name"].InnerText; try { btn.Image = Image.FromFile(elem.Attributes["Image"].InnerText); } catch { Trace.WriteLine("Error:加载工具栏按钮错误\""+btn.Name+"\" Image 加载错误"); } btn.Tag = elem.Attributes["Function"].InnerText; try { string visibleStr = elem.Attributes["visible"].InnerText; btn.Visible = bool.Parse(visibleStr); } catch { Trace.WriteLine("Error:加载工具栏按钮错误,按钮\""+btn.Name+"\" visble 解析错误"); } try { string imgFileName = elem.Attributes["Image"].InnerText; if (imgFileName != "" && File.Exists(imgFileName)) { btn.Image = Image.FromFile(imgFileName); } } catch { } btn.TextImageRelation = TextImageRelation.ImageAboveText; btn.Click += new EventHandler(menu_Click); ts.Items.Add(btn); } } } catch (System.Exception ex) { //ToDo:Log Message Trace.WriteLine("Error:" + ex.Message + ex.StackTrace); } } ts.ResumeLayout(false); ts.PerformLayout(); }
/// <summary> /// Called to build menus and toolbars. Override this method to customize menu and toolbar building. /// </summary> /// <remarks> /// The default implementation simply clears and re-creates the toolstrip using methods on the /// utility class <see cref="ToolStripBuilder"/>. /// </remarks> /// <param name="kind"></param> /// <param name="toolStrip"></param> /// <param name="actionModel"></param> protected virtual void BuildToolStrip(ToolStripBuilder.ToolStripKind kind, ToolStrip toolStrip, ActionModelNode actionModel) { // avoid flicker toolStrip.SuspendLayout(); // very important to clean up the existing ones first ToolStripBuilder.Clear(toolStrip.Items); if (actionModel != null) { if (actionModel.ChildNodes.Count > 0) { // Toolstrip should only be visible if there are items on it if (kind == ToolStripBuilder.ToolStripKind.Toolbar) ToolStripBuilder.BuildToolStrip(kind, toolStrip.Items, actionModel.ChildNodes, ToolStripBuilder.ToolStripBuilderStyle.GetDefault(), ToolStripSettings.Default.IconSize); else ToolStripBuilder.BuildToolStrip(kind, toolStrip.Items, actionModel.ChildNodes); } } toolStrip.ResumeLayout(); }
private void InitializeComponent() { #region Creating and styling form controls this.SuspendLayout(); toolStrip = new ToolStrip(); toolStrip.Dock = DockStyle.None; toolStrip.Cursor = Cursors.Default; toolStrip.ImageScalingSize = new Size(32, 32); toolStrip.BackColor = Color.Transparent; toolStrip.GripStyle = ToolStripGripStyle.Hidden; toolStrip.Renderer = new CustomToolStripRenderer(); toolStrip.AutoSize = true; //toolStrip.Width = 500; toolStrip.SuspendLayout(); toolStrip.Visible = false; // buttons buttonSave = new ToolStripButton(); buttonSave.Image = global::QwikShot.WinApp.Properties.Resources.image_save; buttonSave.DisplayStyle = ToolStripItemDisplayStyle.Image; buttonSave.ImageAlign = ContentAlignment.MiddleCenter; buttonSave.ToolTipText = "Save Image and Copy to Clipboard"; buttonSave.Margin = new Padding(0, 0, 4, 0); buttonSave.Click += buttonSave_Click; buttonCopy = new ToolStripButton(); buttonCopy.Image = global::QwikShot.WinApp.Properties.Resources.image_copy; buttonCopy.DisplayStyle = ToolStripItemDisplayStyle.Image; buttonCopy.ImageAlign = ContentAlignment.MiddleCenter; buttonCopy.ToolTipText = "Copy Image to Clipboard"; buttonCopy.Margin = new Padding(0, 0, 4, 0); buttonCopy.Click += buttonCopy_Click; buttonNetwork = new ToolStripButton(); buttonNetwork.Image = global::QwikShot.WinApp.Properties.Resources.image_network; buttonNetwork.DisplayStyle = ToolStripItemDisplayStyle.Image; buttonNetwork.ImageAlign = ContentAlignment.MiddleCenter; buttonNetwork.ToolTipText = "Share Over Network"; buttonNetwork.Margin = new Padding(0, 0, 4, 0); buttonNetwork.Click += buttonNetwork_Click; buttonInternet = new ToolStripButton(); buttonInternet.Image = global::QwikShot.WinApp.Properties.Resources.image_internet; buttonInternet.DisplayStyle = ToolStripItemDisplayStyle.Image; buttonInternet.ImageAlign = ContentAlignment.MiddleCenter; buttonInternet.ToolTipText = "Share Through Internet"; buttonInternet.Margin = new Padding(0, 0, 4, 0); buttonInternet.Click += buttonInternet_Click; buttonClose = new ToolStripButton(); buttonClose.Image = global::QwikShot.WinApp.Properties.Resources.image_close; buttonClose.DisplayStyle = ToolStripItemDisplayStyle.Image; buttonClose.ImageAlign = ContentAlignment.MiddleCenter; buttonClose.ToolTipText = "Cancel"; buttonClose.Margin = new Padding(0, 0, 4, 0); buttonClose.Click += buttonClose_Click; // separators ToolStripSeparator separator1 = new ToolStripSeparator(); separator1.AutoSize = false; separator1.Size = new Size(24, 0); ToolStripSeparator separator2 = new ToolStripSeparator(); separator2.AutoSize = false; separator2.Size = new Size(48, 0); toolStrip.ResumeLayout(false); toolStrip.Items.AddRange(new ToolStripItem[] { buttonSave, buttonCopy, separator1, buttonNetwork, buttonInternet, separator2, buttonClose }); this.Controls.Add(toolStrip); instructions = new Label(); instructions.Text = "Press Enter to upload region to imgur."; instructions.Font = new Font(instructions.Font.FontFamily, 12, FontStyle.Regular); instructions.ForeColor = Color.FromArgb(64, 64, 64); instructions.BackColor = Color.Transparent; instructions.AutoSize = true; this.Controls.Add(instructions); this.ResumeLayout(false); #endregion regionBorderPen = new Pen(Color.FromArgb(100, 149, 237), 1); regionBorderPen.DashStyle = DashStyle.Solid; MouseMove += ScreenShotRegionOverlay_MouseMove; MouseDown += ScreenShotRegionOverlay_MouseDown; MouseUp += ScreenShotRegionOverlay_MouseUp; }
public static ToolStripDropDownButton addNhapTuFileItem(ToolStrip toolStripBar, GridView gridView) { toolStripBar.SuspendLayout(); ToolStripDropDownButton nhapTuFile = new System.Windows.Forms.ToolStripDropDownButton(); nhapTuFile.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText; nhapTuFile.Image = FWImageDic.EXPORT_TO_FILE_IMAGE20; nhapTuFile.ImageTransparentColor = System.Drawing.Color.Magenta; nhapTuFile.Name = "nhapTuFile"; nhapTuFile.Size = new System.Drawing.Size(200, 20); nhapTuFile.Text = "Nhập từ file"; ToolStripMenuItem itemTemplate = new ToolStripMenuItem("Tạo định dạng file nhập"); itemTemplate.Name = "taoDinhDangNhap"; itemTemplate.DisplayStyle = ToolStripItemDisplayStyle.Text; itemTemplate.Size = new System.Drawing.Size(200, 20); nhapTuFile.DropDownItems.Add(itemTemplate); ToolStripMenuItem itemChonFile = new ToolStripMenuItem("Chọn file để nhập"); itemChonFile.Name = "chonFileNhap"; itemChonFile.DisplayStyle = ToolStripItemDisplayStyle.Text; nhapTuFile.DropDownItems.Add(itemChonFile); ToolStripSeparator InLuoiSep = new System.Windows.Forms.ToolStripSeparator(); InLuoiSep.Name = "InLuoiSep"; InLuoiSep.Size = new System.Drawing.Size(200, 20); toolStripBar.Items.Add(InLuoiSep); toolStripBar.Items.Add(nhapTuFile); toolStripBar.ResumeLayout(false); toolStripBar.PerformLayout(); return nhapTuFile; }
private void InitializeComponent() { System.Windows.Forms.StatusStrip _StatusBar; System.Windows.Forms.ToolStripButton _OpenButton; System.Windows.Forms.ToolStrip _MenuBar; System.Windows.Forms.ToolStripMenuItem _ColorBlackMenuItem; System.Windows.Forms.ToolStripMenuItem _ColorBySpeedMenuItem; System.Windows.Forms.ToolStripMenuItem _ColorByAltitudeMenuItem; this._ZoomLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._CoordinatesLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._DownloadsLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._ColoringMenuItem = new System.Windows.Forms.ToolStripDropDownButton(); this._ColorByAltitudeDifferenceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._OpacityTrackbar = new System.Windows.Forms.TrackBar(); this._Map = new System.Windows.Forms.DataMap(); _StatusBar = new System.Windows.Forms.StatusStrip(); _OpenButton = new System.Windows.Forms.ToolStripButton(); _MenuBar = new System.Windows.Forms.ToolStrip(); _ColorBlackMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _ColorBySpeedMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _ColorByAltitudeMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _StatusBar.SuspendLayout(); _MenuBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._OpacityTrackbar)).BeginInit(); this.SuspendLayout(); // // _StatusBar // _StatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._ZoomLabel, this._CoordinatesLabel, this._DownloadsLabel }); _StatusBar.Location = new System.Drawing.Point(0, 508); _StatusBar.Name = "_StatusBar"; _StatusBar.Size = new System.Drawing.Size(844, 22); _StatusBar.TabIndex = 3; _StatusBar.Text = "statusStrip1"; // // _ZoomLabel // this._ZoomLabel.Name = "_ZoomLabel"; this._ZoomLabel.Size = new System.Drawing.Size(59, 17); this._ZoomLabel.Text = "Zoom: XX"; // // _CoordinatesLabel // this._CoordinatesLabel.Name = "_CoordinatesLabel"; this._CoordinatesLabel.Size = new System.Drawing.Size(71, 17); this._CoordinatesLabel.Text = "Coordinates"; // // _DownloadsLabel // this._DownloadsLabel.Name = "_DownloadsLabel"; this._DownloadsLabel.Size = new System.Drawing.Size(13, 17); this._DownloadsLabel.Text = "0"; // // _OpenButton // _OpenButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; _OpenButton.ImageTransparentColor = System.Drawing.Color.Magenta; _OpenButton.Name = "_OpenButton"; _OpenButton.Size = new System.Drawing.Size(40, 22); _OpenButton.Text = "Open"; _OpenButton.Click += new System.EventHandler(this._OnOpenButtonClicked); // // _MenuBar // _MenuBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _OpenButton, this._ColoringMenuItem }); _MenuBar.Location = new System.Drawing.Point(0, 0); _MenuBar.Name = "_MenuBar"; _MenuBar.Size = new System.Drawing.Size(844, 25); _MenuBar.TabIndex = 5; _MenuBar.Text = "toolStrip1"; // // _ColoringMenuItem // this._ColoringMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this._ColoringMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { _ColorBlackMenuItem, _ColorBySpeedMenuItem, _ColorByAltitudeMenuItem, this._ColorByAltitudeDifferenceMenuItem }); this._ColoringMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this._ColoringMenuItem.Name = "_ColoringMenuItem"; this._ColoringMenuItem.Size = new System.Drawing.Size(66, 22); this._ColoringMenuItem.Text = "Coloring"; // // _ColorBlackMenuItem // _ColorBlackMenuItem.Name = "_ColorBlackMenuItem"; _ColorBlackMenuItem.Size = new System.Drawing.Size(189, 22); _ColorBlackMenuItem.Text = "Black"; _ColorBlackMenuItem.Click += new System.EventHandler(this._OnColorBlackMenuItemClicked); // // _ColorBySpeedMenuItem // _ColorBySpeedMenuItem.Name = "_ColorBySpeedMenuItem"; _ColorBySpeedMenuItem.Size = new System.Drawing.Size(189, 22); _ColorBySpeedMenuItem.Text = "by Speed"; _ColorBySpeedMenuItem.Click += new System.EventHandler(this._OnColorBySpeedMenuItemClicked); // // _ColorByAltitudeMenuItem // _ColorByAltitudeMenuItem.Name = "_ColorByAltitudeMenuItem"; _ColorByAltitudeMenuItem.Size = new System.Drawing.Size(189, 22); _ColorByAltitudeMenuItem.Text = "by Altitude"; _ColorByAltitudeMenuItem.Click += new System.EventHandler(this._OnColorByAltitudeMenuItemClicked); // // _ColorByAltitudeDifferenceMenuItem // this._ColorByAltitudeDifferenceMenuItem.Name = "_ColorByAltitudeDifferenceMenuItem"; this._ColorByAltitudeDifferenceMenuItem.Size = new System.Drawing.Size(189, 22); this._ColorByAltitudeDifferenceMenuItem.Text = "by Altitude Difference"; this._ColorByAltitudeDifferenceMenuItem.Click += new System.EventHandler(this._OnColorByAltitudeDifferenceMenuItemClicked); // // _OpacityTrackbar // this._OpacityTrackbar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this._OpacityTrackbar.BackColor = System.Drawing.SystemColors.Control; this._OpacityTrackbar.Location = new System.Drawing.Point(728, 41); this._OpacityTrackbar.Maximum = 100; this._OpacityTrackbar.Name = "_OpacityTrackbar"; this._OpacityTrackbar.Size = new System.Drawing.Size(104, 45); this._OpacityTrackbar.TabIndex = 6; this._OpacityTrackbar.TabStop = false; this._OpacityTrackbar.TickStyle = System.Windows.Forms.TickStyle.None; this._OpacityTrackbar.Value = 50; this._OpacityTrackbar.Scroll += new System.EventHandler(this._OnOpacityTrackbarScrolled); this._OpacityTrackbar.Enter += new System.EventHandler(this._OnOpacityTrackbarFocusEntered); // // _Map // this._Map.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._Map.BackColor = System.Drawing.Color.Black; this._Map.Location = new System.Drawing.Point(0, 25); this._Map.MapProvider = null; this._Map.Margin = new System.Windows.Forms.Padding(0); this._Map.Name = "_Map"; this._Map.Opacity = 1F; this._Map.Size = new System.Drawing.Size(844, 483); this._Map.TabIndex = 4; this._Map.TranslateX = 0; this._Map.TranslateY = 0; this._Map.MouseDown += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseDown); this._Map.MouseMove += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseMoved); this._Map.MouseUp += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseUp); // // MainWindow // this.ClientSize = new System.Drawing.Size(844, 530); this.Controls.Add(this._OpacityTrackbar); this.Controls.Add(_MenuBar); this.Controls.Add(this._Map); this.Controls.Add(_StatusBar); this.Name = "MainWindow"; this.Text = "Mapper"; this.Load += new System.EventHandler(this._OnLoaded); _StatusBar.ResumeLayout(false); _StatusBar.PerformLayout(); _MenuBar.ResumeLayout(false); _MenuBar.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this._OpacityTrackbar)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public static bool Merge(ToolStrip sourceToolStrip, ToolStrip targetToolStrip) { if (sourceToolStrip == null) { throw new ArgumentNullException("sourceToolStrip"); } if (targetToolStrip == null) { throw new ArgumentNullException("targetToolStrip"); } if (targetToolStrip == sourceToolStrip) { throw new ArgumentException(System.Windows.Forms.SR.GetString("ToolStripMergeImpossibleIdentical")); } bool flag = IsSpecialMDIStrip(sourceToolStrip) || ((sourceToolStrip.AllowMerge && targetToolStrip.AllowMerge) && (sourceToolStrip.GetType().IsAssignableFrom(targetToolStrip.GetType()) || targetToolStrip.GetType().IsAssignableFrom(sourceToolStrip.GetType()))); MergeHistory history = null; if (flag) { history = new MergeHistory(sourceToolStrip); int count = sourceToolStrip.Items.Count; if (count > 0) { sourceToolStrip.SuspendLayout(); targetToolStrip.SuspendLayout(); try { int num2 = count; int num3 = 0; int num4 = 0; while (num3 < count) { ToolStripItem source = sourceToolStrip.Items[num4]; MergeRecursive(source, targetToolStrip.Items, history.MergeHistoryItemsStack); int num5 = num2 - sourceToolStrip.Items.Count; num4 = (num5 > 0) ? num4 : (num4 + 1); num2 = sourceToolStrip.Items.Count; num3++; } } finally { sourceToolStrip.ResumeLayout(); targetToolStrip.ResumeLayout(); } if (history.MergeHistoryItemsStack.Count > 0) { targetToolStrip.MergeHistoryStack.Push(history); } } } bool flag2 = false; if ((history != null) && (history.MergeHistoryItemsStack.Count > 0)) { flag2 = true; } return flag2; }
/// <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.Windows.Forms.ToolStrip toolStrip1; System.Windows.Forms.ToolStripButton _openButton; System.Windows.Forms.ToolStripMenuItem _fileMenuItem; System.Windows.Forms.ToolStripMenuItem _openMenuItem; System.Windows.Forms.ToolStripSeparator toolStripSeparator1; System.Windows.Forms.ToolStripSeparator toolStripSeparator2; System.Windows.Forms.ToolStripMenuItem _exitMenuItem; System.Windows.Forms.ToolStrip toolStrip2; System.Windows.Forms.ToolStripContainer _toolStripContainer; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.Windows.Forms.ToolStripMenuItem _addTreeContextMenuIten; System.Windows.Forms.ToolStripMenuItem _removeListContextMenuItem; System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem; System.Windows.Forms.ToolStripMenuItem _renameListContextMenuItem; this._saveButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this._generateButton = new System.Windows.Forms.ToolStripButton(); this._saveMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._manageCulturesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._generateMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addResourceButton = new System.Windows.Forms.ToolStripButton(); this._removeResourceButton = new System.Windows.Forms.ToolStripButton(); this._renameResourceButton = new System.Windows.Forms.ToolStripButton(); this._treeSplitter = new System.Windows.Forms.SplitContainer(); this._paneTree = new Rsdn.LocUtil.Pane(); this._categoryTree = new Rsdn.TreeGrid.TreeGrid(); this._nameCol = new System.Windows.Forms.ColumnHeader(); this._countCol = new System.Windows.Forms.ColumnHeader(); this._treeImages = new System.Windows.Forms.ImageList(this.components); this._resourceSplitter = new System.Windows.Forms.SplitContainer(); this._paneItems = new Rsdn.LocUtil.Pane(); this._itemList = new System.Windows.Forms.ListView(); this._itemNameCol = new System.Windows.Forms.ColumnHeader(); this._listImages = new System.Windows.Forms.ImageList(this.components); this._paneProperties = new Rsdn.LocUtil.Pane(); this._propertyGrid = new System.Windows.Forms.PropertyGrid(); this._menuStrip = new System.Windows.Forms.MenuStrip(); this._resourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._removeResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._renameResourceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._listContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.BottomToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.RightToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.LeftToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.ContentPanel = new System.Windows.Forms.ToolStripContentPanel(); toolStrip1 = new System.Windows.Forms.ToolStrip(); _openButton = new System.Windows.Forms.ToolStripButton(); _fileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _openMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); _exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStrip2 = new System.Windows.Forms.ToolStrip(); _toolStripContainer = new System.Windows.Forms.ToolStripContainer(); _addTreeContextMenuIten = new System.Windows.Forms.ToolStripMenuItem(); _removeListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _renameListContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStrip1.SuspendLayout(); toolStrip2.SuspendLayout(); _toolStripContainer.ContentPanel.SuspendLayout(); _toolStripContainer.TopToolStripPanel.SuspendLayout(); _toolStripContainer.SuspendLayout(); this._treeSplitter.Panel1.SuspendLayout(); this._treeSplitter.Panel2.SuspendLayout(); this._treeSplitter.SuspendLayout(); this._paneTree.SuspendLayout(); this._resourceSplitter.Panel1.SuspendLayout(); this._resourceSplitter.Panel2.SuspendLayout(); this._resourceSplitter.SuspendLayout(); this._paneItems.SuspendLayout(); this._paneProperties.SuspendLayout(); this._menuStrip.SuspendLayout(); this._treeContextMenu.SuspendLayout(); this._listContextMenu.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // toolStrip1.Dock = System.Windows.Forms.DockStyle.None; toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _openButton, this._saveButton, this.toolStripSeparator3, this._generateButton }); toolStrip1.Location = new System.Drawing.Point(3, 24); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new System.Drawing.Size(87, 25); toolStrip1.TabIndex = 1; toolStrip1.Text = "toolStrip1"; // // _openButton // _openButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _openButton.Image = global::Rsdn.LocUtil.Properties.Resources.Open; _openButton.ImageTransparentColor = System.Drawing.Color.Magenta; _openButton.Name = "_openButton"; _openButton.Size = new System.Drawing.Size(23, 22); _openButton.Text = "Open Resource File"; _openButton.Click += new System.EventHandler(this._openMenuItem_Click); // // _saveButton // this._saveButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._saveButton.Enabled = false; this._saveButton.Image = global::Rsdn.LocUtil.Properties.Resources.Save; this._saveButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._saveButton.Name = "_saveButton"; this._saveButton.Size = new System.Drawing.Size(23, 22); this._saveButton.Text = "Save Resource File"; this._saveButton.Click += new System.EventHandler(this._saveMenuItem_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); // // _generateButton // this._generateButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._generateButton.Enabled = false; this._generateButton.Image = global::Rsdn.LocUtil.Properties.Resources.Generate; this._generateButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._generateButton.Name = "_generateButton"; this._generateButton.Size = new System.Drawing.Size(23, 22); this._generateButton.Text = "Generate Resource Helper"; this._generateButton.Click += new System.EventHandler(this._generateMenuItem_Click); // // _fileMenuItem // _fileMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { _openMenuItem, this._saveMenuItem, toolStripSeparator1, this._manageCulturesMenuItem, this._generateMenuItem, toolStripSeparator2, _exitMenuItem }); _fileMenuItem.Name = "_fileMenuItem"; _fileMenuItem.Size = new System.Drawing.Size(35, 20); _fileMenuItem.Text = "&File"; // // _openMenuItem // _openMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Open; _openMenuItem.Name = "_openMenuItem"; _openMenuItem.Size = new System.Drawing.Size(166, 22); _openMenuItem.Text = "&Open"; _openMenuItem.Click += new System.EventHandler(this._openMenuItem_Click); // // _saveMenuItem // this._saveMenuItem.Enabled = false; this._saveMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Save; this._saveMenuItem.Name = "_saveMenuItem"; this._saveMenuItem.Size = new System.Drawing.Size(166, 22); this._saveMenuItem.Text = "&Save"; this._saveMenuItem.Click += new System.EventHandler(this._saveMenuItem_Click); // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(163, 6); // // _manageCulturesMenuItem // this._manageCulturesMenuItem.Enabled = false; this._manageCulturesMenuItem.Name = "_manageCulturesMenuItem"; this._manageCulturesMenuItem.Size = new System.Drawing.Size(166, 22); this._manageCulturesMenuItem.Text = "Manage &Cultures"; this._manageCulturesMenuItem.Click += new System.EventHandler(this._manageCulturesMenuItem_Click); // // _generateMenuItem // this._generateMenuItem.Enabled = false; this._generateMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Generate; this._generateMenuItem.Name = "_generateMenuItem"; this._generateMenuItem.Size = new System.Drawing.Size(166, 22); this._generateMenuItem.Text = "&Generate helper"; this._generateMenuItem.Click += new System.EventHandler(this._generateMenuItem_Click); // // toolStripSeparator2 // toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(163, 6); // // _exitMenuItem // _exitMenuItem.Name = "_exitMenuItem"; _exitMenuItem.Size = new System.Drawing.Size(166, 22); _exitMenuItem.Text = "&Exit"; _exitMenuItem.Click += new System.EventHandler(this._exitMenuItem_Click); // // toolStrip2 // toolStrip2.Dock = System.Windows.Forms.DockStyle.None; toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addResourceButton, this._removeResourceButton, this._renameResourceButton }); toolStrip2.Location = new System.Drawing.Point(90, 24); toolStrip2.Name = "toolStrip2"; toolStrip2.Size = new System.Drawing.Size(81, 25); toolStrip2.TabIndex = 2; toolStrip2.Text = "toolStrip2"; // // _addResourceButton // this._addResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addResourceButton.Enabled = false; this._addResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Add; this._addResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addResourceButton.Name = "_addResourceButton"; this._addResourceButton.Size = new System.Drawing.Size(23, 22); this._addResourceButton.Text = "Add Resource"; this._addResourceButton.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _removeResourceButton // this._removeResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._removeResourceButton.Enabled = false; this._removeResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; this._removeResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._removeResourceButton.Name = "_removeResourceButton"; this._removeResourceButton.Size = new System.Drawing.Size(23, 22); this._removeResourceButton.Text = "Remove Resource"; this._removeResourceButton.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameResourceButton // this._renameResourceButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._renameResourceButton.Enabled = false; this._renameResourceButton.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; this._renameResourceButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._renameResourceButton.Name = "_renameResourceButton"; this._renameResourceButton.Size = new System.Drawing.Size(23, 22); this._renameResourceButton.Text = "Rename Resource"; this._renameResourceButton.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _toolStripContainer // // // _toolStripContainer.ContentPanel // _toolStripContainer.ContentPanel.Controls.Add(this._treeSplitter); _toolStripContainer.ContentPanel.Size = new System.Drawing.Size(792, 517); _toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill; _toolStripContainer.Location = new System.Drawing.Point(0, 0); _toolStripContainer.Name = "_toolStripContainer"; _toolStripContainer.Size = new System.Drawing.Size(792, 566); _toolStripContainer.TabIndex = 12; _toolStripContainer.Text = "toolStripContainer1"; // // _toolStripContainer.TopToolStripPanel // _toolStripContainer.TopToolStripPanel.Controls.Add(this._menuStrip); _toolStripContainer.TopToolStripPanel.Controls.Add(toolStrip1); _toolStripContainer.TopToolStripPanel.Controls.Add(toolStrip2); // // _treeSplitter // this._treeSplitter.Dock = System.Windows.Forms.DockStyle.Fill; this._treeSplitter.Location = new System.Drawing.Point(0, 0); this._treeSplitter.Name = "_treeSplitter"; // // _treeSplitter.Panel1 // this._treeSplitter.Panel1.Controls.Add(this._paneTree); // // _treeSplitter.Panel2 // this._treeSplitter.Panel2.Controls.Add(this._resourceSplitter); this._treeSplitter.Size = new System.Drawing.Size(792, 517); this._treeSplitter.SplitterDistance = 232; this._treeSplitter.TabIndex = 0; this._treeSplitter.Text = "splitContainer1"; // // _paneTree // this._paneTree.Controls.Add(this._categoryTree); this._paneTree.Dock = System.Windows.Forms.DockStyle.Fill; this._paneTree.Location = new System.Drawing.Point(0, 0); this._paneTree.Name = "_paneTree"; this._paneTree.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneTree.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneTree.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneTree.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneTree.PaneCaptionContol.Name = "_caption"; this._paneTree.PaneCaptionContol.Size = new System.Drawing.Size(230, 18); this._paneTree.PaneCaptionContol.TabIndex = 0; this._paneTree.PaneCaptionContol.Text = "Panel 1"; this._paneTree.Size = new System.Drawing.Size(232, 517); this._paneTree.TabIndex = 7; // // _categoryTree // this._categoryTree.BackColor = System.Drawing.SystemColors.Window; this._categoryTree.BorderStyle = System.Windows.Forms.BorderStyle.None; this._categoryTree.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this._nameCol, this._countCol }); this._categoryTree.Dock = System.Windows.Forms.DockStyle.Fill; this._categoryTree.FullRowSelect = true; this._categoryTree.HideSelection = false; this._categoryTree.Indent = 5; this._categoryTree.LargeImageList = this._treeImages; this._categoryTree.Location = new System.Drawing.Point(1, 20); this._categoryTree.Name = "_categoryTree"; this._categoryTree.OwnerDraw = true; this._categoryTree.Size = new System.Drawing.Size(230, 496); this._categoryTree.SmallImageList = this._treeImages; this._categoryTree.TabIndex = 0; this._categoryTree.UseCompatibleStateImageBehavior = false; this._categoryTree.View = System.Windows.Forms.View.Details; this._categoryTree.VirtualMode = true; this._categoryTree.GetData += new System.EventHandler <Rsdn.TreeGrid.GetDataEventArgs>(this._categoryTree_GetData); this._categoryTree.MouseUp += new System.Windows.Forms.MouseEventHandler(this._categoryTree_MouseUp); this._categoryTree.AfterActivateNode += new Rsdn.TreeGrid.AfterActivateNodeHandler(this._categoryTree_AfterActivateNode); // // _nameCol // this._nameCol.Text = "Name"; this._nameCol.Width = 159; // // _countCol // this._countCol.Text = "Count"; // // _treeImages // this._treeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_treeImages.ImageStream"))); this._treeImages.TransparentColor = System.Drawing.Color.Transparent; this._treeImages.Images.SetKeyName(0, "root"); this._treeImages.Images.SetKeyName(1, "category"); // // _resourceSplitter // this._resourceSplitter.Dock = System.Windows.Forms.DockStyle.Fill; this._resourceSplitter.Location = new System.Drawing.Point(0, 0); this._resourceSplitter.Name = "_resourceSplitter"; this._resourceSplitter.Orientation = System.Windows.Forms.Orientation.Horizontal; // // _resourceSplitter.Panel1 // this._resourceSplitter.Panel1.Controls.Add(this._paneItems); // // _resourceSplitter.Panel2 // this._resourceSplitter.Panel2.Controls.Add(this._paneProperties); this._resourceSplitter.Size = new System.Drawing.Size(556, 517); this._resourceSplitter.SplitterDistance = 336; this._resourceSplitter.TabIndex = 0; this._resourceSplitter.Text = "splitContainer1"; // // _paneItems // this._paneItems.Controls.Add(this._itemList); this._paneItems.Dock = System.Windows.Forms.DockStyle.Fill; this._paneItems.Location = new System.Drawing.Point(0, 0); this._paneItems.Name = "_paneItems"; this._paneItems.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneItems.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneItems.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneItems.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneItems.PaneCaptionContol.Name = "_caption"; this._paneItems.PaneCaptionContol.Size = new System.Drawing.Size(554, 18); this._paneItems.PaneCaptionContol.TabIndex = 0; this._paneItems.PaneCaptionContol.Text = "Panel 1"; this._paneItems.Size = new System.Drawing.Size(556, 336); this._paneItems.TabIndex = 9; // // _itemList // this._itemList.BorderStyle = System.Windows.Forms.BorderStyle.None; this._itemList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this._itemNameCol }); this._itemList.Dock = System.Windows.Forms.DockStyle.Fill; this._itemList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this._itemList.HideSelection = false; this._itemList.LabelEdit = true; this._itemList.Location = new System.Drawing.Point(1, 20); this._itemList.Name = "_itemList"; this._itemList.Size = new System.Drawing.Size(554, 315); this._itemList.SmallImageList = this._listImages; this._itemList.TabIndex = 4; this._itemList.UseCompatibleStateImageBehavior = false; this._itemList.View = System.Windows.Forms.View.Details; this._itemList.SelectedIndexChanged += new System.EventHandler(this._itemList_SelectedIndexChanged); this._itemList.MouseUp += new System.Windows.Forms.MouseEventHandler(this._itemList_MouseUp); this._itemList.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this._itemList_AfterLabelEdit); // // _listImages // this._listImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_listImages.ImageStream"))); this._listImages.TransparentColor = System.Drawing.Color.Transparent; this._listImages.Images.SetKeyName(0, "item"); // // _paneProperties // this._paneProperties.Controls.Add(this._propertyGrid); this._paneProperties.Dock = System.Windows.Forms.DockStyle.Fill; this._paneProperties.Location = new System.Drawing.Point(0, 0); this._paneProperties.Name = "_paneProperties"; this._paneProperties.Padding = new System.Windows.Forms.Padding(1, 20, 1, 1); // // // this._paneProperties.PaneCaptionContol.Dock = System.Windows.Forms.DockStyle.Top; this._paneProperties.PaneCaptionContol.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this._paneProperties.PaneCaptionContol.Location = new System.Drawing.Point(1, 1); this._paneProperties.PaneCaptionContol.Name = "_caption"; this._paneProperties.PaneCaptionContol.Size = new System.Drawing.Size(554, 18); this._paneProperties.PaneCaptionContol.TabIndex = 0; this._paneProperties.PaneCaptionContol.Text = "Panel 1"; this._paneProperties.Size = new System.Drawing.Size(556, 177); this._paneProperties.TabIndex = 8; // // _propertyGrid // this._propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; this._propertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar; this._propertyGrid.Location = new System.Drawing.Point(1, 20); this._propertyGrid.Name = "_propertyGrid"; this._propertyGrid.PropertySort = System.Windows.Forms.PropertySort.NoSort; this._propertyGrid.Size = new System.Drawing.Size(554, 156); this._propertyGrid.TabIndex = 0; this._propertyGrid.ToolbarVisible = false; // // _menuStrip // this._menuStrip.Dock = System.Windows.Forms.DockStyle.None; this._menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _fileMenuItem, this._resourceMenuItem }); this._menuStrip.Location = new System.Drawing.Point(0, 0); this._menuStrip.Name = "_menuStrip"; this._menuStrip.Size = new System.Drawing.Size(792, 24); this._menuStrip.TabIndex = 0; this._menuStrip.Text = "menuStrip1"; // // _resourceMenuItem // this._resourceMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addResourceMenuItem, this._removeResourceMenuItem, this._renameResourceMenuItem }); this._resourceMenuItem.Enabled = false; this._resourceMenuItem.Name = "_resourceMenuItem"; this._resourceMenuItem.Size = new System.Drawing.Size(64, 20); this._resourceMenuItem.Text = "&Resource"; // // _addResourceMenuItem // this._addResourceMenuItem.Enabled = false; this._addResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Add; this._addResourceMenuItem.Name = "_addResourceMenuItem"; this._addResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._addResourceMenuItem.Text = "&Add"; this._addResourceMenuItem.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _removeResourceMenuItem // this._removeResourceMenuItem.Enabled = false; this._removeResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; this._removeResourceMenuItem.Name = "_removeResourceMenuItem"; this._removeResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._removeResourceMenuItem.Text = "&Remove"; this._removeResourceMenuItem.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameResourceMenuItem // this._renameResourceMenuItem.Enabled = false; this._renameResourceMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; this._renameResourceMenuItem.Name = "_renameResourceMenuItem"; this._renameResourceMenuItem.Size = new System.Drawing.Size(124, 22); this._renameResourceMenuItem.Text = "Re&name"; this._renameResourceMenuItem.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _addTreeContextMenuIten // _addTreeContextMenuIten.Image = global::Rsdn.LocUtil.Properties.Resources.Add; _addTreeContextMenuIten.Name = "_addTreeContextMenuIten"; _addTreeContextMenuIten.Size = new System.Drawing.Size(104, 22); _addTreeContextMenuIten.Text = "&Add"; // // _removeListContextMenuItem // _removeListContextMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Add; _removeListContextMenuItem.Name = "_removeListContextMenuItem"; _removeListContextMenuItem.Size = new System.Drawing.Size(124, 22); _removeListContextMenuItem.Text = "&Add"; _removeListContextMenuItem.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // removeToolStripMenuItem // removeToolStripMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Remove; removeToolStripMenuItem.Name = "removeToolStripMenuItem"; removeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); removeToolStripMenuItem.Text = "&Remove"; removeToolStripMenuItem.Click += new System.EventHandler(this._removeResourceMenuItem_Click); // // _renameListContextMenuItem // _renameListContextMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Rename; _renameListContextMenuItem.Name = "_renameListContextMenuItem"; _renameListContextMenuItem.Size = new System.Drawing.Size(124, 22); _renameListContextMenuItem.Text = "Re&name"; _renameListContextMenuItem.Click += new System.EventHandler(this._renameResourceMenuItem_Click); // // _treeContextMenu // this._treeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _addTreeContextMenuIten }); this._treeContextMenu.Name = "_treeContextMenu"; this._treeContextMenu.Size = new System.Drawing.Size(105, 26); this._treeContextMenu.Click += new System.EventHandler(this._addResourceMenuItem_Click); // // _listContextMenu // this._listContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _removeListContextMenuItem, removeToolStripMenuItem, _renameListContextMenuItem }); this._listContextMenu.Name = "_listContextMenu"; this._listContextMenu.Size = new System.Drawing.Size(125, 70); // // _openFileDialog // this._openFileDialog.DefaultExt = "resx"; this._openFileDialog.Filter = "ResX files|*.resx"; // // BottomToolStripPanel // this.BottomToolStripPanel.Location = new System.Drawing.Point(0, 0); this.BottomToolStripPanel.Name = "BottomToolStripPanel"; this.BottomToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.BottomToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.BottomToolStripPanel.Size = new System.Drawing.Size(0, 0); // // TopToolStripPanel // this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0); this.TopToolStripPanel.Name = "TopToolStripPanel"; this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0); // // RightToolStripPanel // this.RightToolStripPanel.Location = new System.Drawing.Point(0, 0); this.RightToolStripPanel.Name = "RightToolStripPanel"; this.RightToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.RightToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.RightToolStripPanel.Size = new System.Drawing.Size(0, 0); // // LeftToolStripPanel // this.LeftToolStripPanel.Location = new System.Drawing.Point(0, 0); this.LeftToolStripPanel.Name = "LeftToolStripPanel"; this.LeftToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.LeftToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0); this.LeftToolStripPanel.Size = new System.Drawing.Size(0, 0); // // ContentPanel // this.ContentPanel.Size = new System.Drawing.Size(200, 100); // // MainForm // this.ClientSize = new System.Drawing.Size(792, 566); this.Controls.Add(_toolStripContainer); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this._menuStrip; this.Name = "MainForm"; this.Text = "Localization utility"; toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); toolStrip2.ResumeLayout(false); toolStrip2.PerformLayout(); _toolStripContainer.ContentPanel.ResumeLayout(false); _toolStripContainer.TopToolStripPanel.ResumeLayout(false); _toolStripContainer.TopToolStripPanel.PerformLayout(); _toolStripContainer.ResumeLayout(false); _toolStripContainer.PerformLayout(); this._treeSplitter.Panel1.ResumeLayout(false); this._treeSplitter.Panel2.ResumeLayout(false); this._treeSplitter.ResumeLayout(false); this._paneTree.ResumeLayout(false); this._resourceSplitter.Panel1.ResumeLayout(false); this._resourceSplitter.Panel2.ResumeLayout(false); this._resourceSplitter.ResumeLayout(false); this._paneItems.ResumeLayout(false); this._paneProperties.ResumeLayout(false); this._menuStrip.ResumeLayout(false); this._menuStrip.PerformLayout(); this._treeContextMenu.ResumeLayout(false); this._listContextMenu.ResumeLayout(false); this.ResumeLayout(false); }
public PropertyGrid() { onComponentAdd = new ComponentEventHandler(OnComponentAdd); onComponentRemove = new ComponentEventHandler(OnComponentRemove); onComponentChanged = new ComponentChangedEventHandler(OnComponentChanged); SuspendLayout(); AutoScaleMode = AutoScaleMode.None; if (!isScalingInitialized) { if (DpiHelper.IsScalingRequired) { normalButtonSize = DpiHelper.LogicalToDeviceUnits(DEFAULT_NORMAL_BUTTON_SIZE); largeButtonSize = DpiHelper.LogicalToDeviceUnits(DEFAULT_LARGE_BUTTON_SIZE); } isScalingInitialized = true; } try { gridView = CreateGridView(null); gridView.TabStop = true; gridView.MouseMove += new MouseEventHandler(this.OnChildMouseMove); gridView.MouseDown += new MouseEventHandler(this.OnChildMouseDown); gridView.TabIndex = 2; separator1 = CreateSeparatorButton(); separator2 = CreateSeparatorButton(); toolStrip = new ToolStrip(); toolStrip.SuspendLayout(); toolStrip.ShowItemToolTips = true; toolStrip.AccessibleName = SR.GetString(SR.PropertyGridToolbarAccessibleName); toolStrip.AccessibleRole = AccessibleRole.ToolBar; toolStrip.TabStop = true; toolStrip.AllowMerge = false; // This caption is for testing. toolStrip.Text = "PropertyGridToolBar"; // LayoutInternal handles positioning, and for perf reasons, we manually size. toolStrip.Dock = DockStyle.None; toolStrip.AutoSize = false; toolStrip.TabIndex = 1; toolStrip.ImageScalingSize = normalButtonSize; // parity with the old... toolStrip.CanOverflow = false; // hide the grip but add in a few more pixels of padding. toolStrip.GripStyle = ToolStripGripStyle.Hidden; Padding toolStripPadding = toolStrip.Padding; toolStripPadding.Left = 2; toolStrip.Padding = toolStripPadding; SetToolStripRenderer(); // always add the property tab here AddRefTab(DefaultTabType, null, PropertyTabScope.Static, true); doccomment = new DocComment(this); doccomment.SuspendLayout(); doccomment.TabStop = false; doccomment.Dock = DockStyle.None; doccomment.BackColor = SystemColors.Control; doccomment.ForeColor = SystemColors.ControlText; doccomment.MouseMove += new MouseEventHandler(this.OnChildMouseMove); doccomment.MouseDown += new MouseEventHandler(this.OnChildMouseDown); hotcommands = new HotCommands(this); hotcommands.SuspendLayout(); hotcommands.TabIndex = 3; hotcommands.Dock = DockStyle.None; SetHotCommandColors(false); hotcommands.Visible = false; hotcommands.MouseMove += new MouseEventHandler(this.OnChildMouseMove); hotcommands.MouseDown += new MouseEventHandler(this.OnChildMouseDown); Controls.AddRange(new Control[] { doccomment, hotcommands, gridView, toolStrip }); SetActiveControlInternal(gridView); toolStrip.ResumeLayout(false); // SetupToolbar should perform the layout SetupToolbar(); this.PropertySort = PropertySort.Categorized | PropertySort.Alphabetical; this.Text = "PropertyGrid"; SetSelectState(0); } catch (Exception ex) { Debug.WriteLine(ex.ToString()); } finally { if (doccomment != null) { doccomment.ResumeLayout(false); } if (hotcommands != null) { hotcommands.ResumeLayout(false); } ResumeLayout(true); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components_ = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); mainMenu_ = new System.Windows.Forms.MenuStrip(); fileMi_ = new System.Windows.Forms.ToolStripMenuItem(); exitMi_ = new System.Windows.Forms.ToolStripMenuItem(); serverMi_ = new System.Windows.Forms.ToolStripMenuItem(); connectMi_ = new System.Windows.Forms.ToolStripMenuItem(); disconnecMi_ = new System.Windows.Forms.ToolStripMenuItem(); separatorS1_ = new System.Windows.Forms.ToolStripMenuItem(); viewStatusMi_ = new System.Windows.Forms.ToolStripMenuItem(); viewAttributesMi_ = new System.Windows.Forms.ToolStripMenuItem(); viewAggregatesMi_ = new System.Windows.Forms.ToolStripMenuItem(); browseItemsMi_ = new System.Windows.Forms.ToolStripMenuItem(); outputMi_ = new System.Windows.Forms.ToolStripMenuItem(); outputClearMi_ = new System.Windows.Forms.ToolStripMenuItem(); optionsMi_ = new System.Windows.Forms.ToolStripMenuItem(); clearHistoryMi_ = new System.Windows.Forms.ToolStripMenuItem(); helpMi_ = new System.Windows.Forms.ToolStripMenuItem(); aboutMi_ = new System.Windows.Forms.ToolStripMenuItem(); toolBar_ = new System.Windows.Forms.ToolStrip(); toolBarImageList_ = new System.Windows.Forms.ImageList(components_); connectBtn_ = new System.Windows.Forms.ToolStripButton(); disconnectBtn_ = new System.Windows.Forms.ToolStripButton(); viewStatusBtn_ = new System.Windows.Forms.ToolStripButton(); browseBtn_ = new System.Windows.Forms.ToolStripButton(); aboutBtn_ = new System.Windows.Forms.ToolStripButton(); bottomPn_ = new System.Windows.Forms.Panel(); outputCtrl_ = new System.Windows.Forms.RichTextBox(); splitterH_ = new System.Windows.Forms.Splitter(); splitterV_ = new System.Windows.Forms.Splitter(); leftPn_ = new System.Windows.Forms.Panel(); trendsCtrl_ = new SampleClients.Hda.Trend.TrendTreeCtrl(); rightPn_ = new System.Windows.Forms.Panel(); valuesCtrl_ = new SampleClients.Hda.Item.ItemValuesCtrl(); selectServerCtrl_ = new SampleClients.Common.SelectServerCtrl(); statusCtrl_ = new SampleClients.Hda.Server.ServerStatusCtrl(); updateTimerControl_ = new System.Windows.Forms.Timer(components_); mainMenu_.SuspendLayout(); toolBar_.SuspendLayout(); bottomPn_.SuspendLayout(); leftPn_.SuspendLayout(); rightPn_.SuspendLayout(); SuspendLayout(); // // mainMenu_ // mainMenu_.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { fileMi_, serverMi_, outputMi_, optionsMi_, helpMi_ }); mainMenu_.Location = new System.Drawing.Point(0, 0); mainMenu_.Name = "mainMenu_"; mainMenu_.Size = new System.Drawing.Size(200, 24); mainMenu_.TabIndex = 0; // // fileMi_ // fileMi_.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { exitMi_ }); fileMi_.Name = "fileMi_"; fileMi_.Size = new System.Drawing.Size(37, 20); fileMi_.Text = "&File"; // // exitMi_ // exitMi_.Name = "exitMi_"; exitMi_.Size = new System.Drawing.Size(93, 22); exitMi_.Text = "&Exit"; exitMi_.Click += new System.EventHandler(ExitMI_Click); // // serverMi_ // serverMi_.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { connectMi_, disconnecMi_, separatorS1_, viewStatusMi_, viewAttributesMi_, viewAggregatesMi_, browseItemsMi_ }); serverMi_.Name = "serverMi_"; serverMi_.Size = new System.Drawing.Size(51, 20); serverMi_.Text = "&Server"; // // connectMi_ // connectMi_.Name = "connectMi_"; connectMi_.Size = new System.Drawing.Size(171, 22); connectMi_.Text = "&Connect"; connectMi_.Click += new System.EventHandler(ConnectMI_Click); // // disconnecMi_ // disconnecMi_.Name = "disconnecMi_"; disconnecMi_.Size = new System.Drawing.Size(171, 22); disconnecMi_.Text = "&Disconnect"; disconnecMi_.Click += new System.EventHandler(DisconnectMI_Click); // // separatorS1_ // separatorS1_.Name = "separatorS1_"; separatorS1_.Size = new System.Drawing.Size(171, 22); separatorS1_.Text = "-"; // // viewStatusMi_ // viewStatusMi_.Name = "viewStatusMi_"; viewStatusMi_.Size = new System.Drawing.Size(171, 22); viewStatusMi_.Text = "&View Status..."; viewStatusMi_.Click += new System.EventHandler(ViewStatusMI_Click); // // viewAttributesMi_ // viewAttributesMi_.Name = "viewAttributesMi_"; viewAttributesMi_.Size = new System.Drawing.Size(171, 22); viewAttributesMi_.Text = "View &Attributes..."; viewAttributesMi_.Click += new System.EventHandler(ViewAttributesMI_Click); // // viewAggregatesMi_ // viewAggregatesMi_.Name = "viewAggregatesMi_"; viewAggregatesMi_.Size = new System.Drawing.Size(171, 22); viewAggregatesMi_.Text = "View A&ggregates..."; viewAggregatesMi_.Click += new System.EventHandler(ViewAggregatesMI_Click); // // browseItemsMi_ // browseItemsMi_.Name = "browseItemsMi_"; browseItemsMi_.Size = new System.Drawing.Size(171, 22); browseItemsMi_.Text = "&Browse Items..."; browseItemsMi_.Click += new System.EventHandler(BrowseMI_Click); // // outputMi_ // outputMi_.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { outputClearMi_ }); outputMi_.Name = "outputMi_"; outputMi_.Size = new System.Drawing.Size(57, 20); outputMi_.Text = "&Output"; // // outputClearMi_ // outputClearMi_.Name = "outputClearMi_"; outputClearMi_.Size = new System.Drawing.Size(101, 22); outputClearMi_.Text = "&Clear"; outputClearMi_.Click += new System.EventHandler(OutputClearMI_Click); // // optionsMi_ // optionsMi_.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { clearHistoryMi_ }); optionsMi_.Name = "optionsMi_"; optionsMi_.Size = new System.Drawing.Size(61, 20); optionsMi_.Text = "O&ptions"; // // clearHistoryMi_ // clearHistoryMi_.Name = "clearHistoryMi_"; clearHistoryMi_.Size = new System.Drawing.Size(142, 22); clearHistoryMi_.Text = "&Clear History"; clearHistoryMi_.Click += new System.EventHandler(ClearHistoryMI_Click); // // helpMi_ // helpMi_.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { aboutMi_ }); helpMi_.Name = "helpMi_"; helpMi_.Size = new System.Drawing.Size(44, 20); helpMi_.Text = "&Help"; // // aboutMi_ // aboutMi_.Name = "aboutMi_"; aboutMi_.Size = new System.Drawing.Size(116, 22); aboutMi_.Text = "&About..."; aboutMi_.Click += new System.EventHandler(AboutMI_Click); // // toolBar_ // toolBar_.ImageList = toolBarImageList_; toolBar_.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { connectBtn_, disconnectBtn_, viewStatusBtn_, browseBtn_, aboutBtn_ }); toolBar_.Location = new System.Drawing.Point(0, 0); toolBar_.Name = "toolBar_"; toolBar_.Size = new System.Drawing.Size(1016, 25); toolBar_.TabIndex = 0; // // toolBarImageList_ // toolBarImageList_.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; toolBarImageList_.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolBarImageList_.ImageStream"))); toolBarImageList_.TransparentColor = System.Drawing.Color.Teal; toolBarImageList_.Images.SetKeyName(0, ""); toolBarImageList_.Images.SetKeyName(1, ""); toolBarImageList_.Images.SetKeyName(2, ""); toolBarImageList_.Images.SetKeyName(3, ""); toolBarImageList_.Images.SetKeyName(4, ""); toolBarImageList_.Images.SetKeyName(5, ""); toolBarImageList_.Images.SetKeyName(6, ""); toolBarImageList_.Images.SetKeyName(7, ""); toolBarImageList_.Images.SetKeyName(8, ""); toolBarImageList_.Images.SetKeyName(9, ""); toolBarImageList_.Images.SetKeyName(10, ""); toolBarImageList_.Images.SetKeyName(11, ""); toolBarImageList_.Images.SetKeyName(12, ""); toolBarImageList_.Images.SetKeyName(13, ""); // // connectBtn_ // connectBtn_.ImageIndex = 0; connectBtn_.Name = "connectBtn_"; connectBtn_.Size = new System.Drawing.Size(23, 22); connectBtn_.ToolTipText = "Connect to Server"; connectBtn_.Click += new System.EventHandler(ConnectMI_Click); // // disconnectBtn_ // disconnectBtn_.ImageIndex = 1; disconnectBtn_.Name = "disconnectBtn_"; disconnectBtn_.Size = new System.Drawing.Size(23, 22); disconnectBtn_.ToolTipText = "Disconnect from Server"; disconnectBtn_.Click += new System.EventHandler(DisconnectMI_Click); // // viewStatusBtn_ // viewStatusBtn_.ImageIndex = 4; viewStatusBtn_.Name = "viewStatusBtn_"; viewStatusBtn_.Size = new System.Drawing.Size(23, 22); viewStatusBtn_.ToolTipText = "View Server Status"; viewStatusBtn_.Click += new System.EventHandler(ViewStatusMI_Click); // // browseBtn_ // browseBtn_.ImageIndex = 6; browseBtn_.Name = "browseBtn_"; browseBtn_.Size = new System.Drawing.Size(23, 22); browseBtn_.ToolTipText = "Browse Address Space"; browseBtn_.Click += new System.EventHandler(BrowseMI_Click); // // aboutBtn_ // aboutBtn_.ImageIndex = 13; aboutBtn_.Name = "aboutBtn_"; aboutBtn_.Size = new System.Drawing.Size(23, 22); aboutBtn_.ToolTipText = "About"; aboutBtn_.Click += new System.EventHandler(AboutMI_Click); // // bottomPn_ // bottomPn_.Controls.Add(outputCtrl_); bottomPn_.Dock = System.Windows.Forms.DockStyle.Bottom; bottomPn_.Location = new System.Drawing.Point(0, 568); bottomPn_.Name = "bottomPn_"; bottomPn_.Size = new System.Drawing.Size(1016, 123); bottomPn_.TabIndex = 3; // // outputCtrl_ // outputCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; outputCtrl_.Location = new System.Drawing.Point(0, 0); outputCtrl_.Name = "outputCtrl_"; outputCtrl_.Size = new System.Drawing.Size(1016, 123); outputCtrl_.TabIndex = 0; outputCtrl_.Text = ""; // // splitterH_ // splitterH_.Dock = System.Windows.Forms.DockStyle.Bottom; splitterH_.Location = new System.Drawing.Point(0, 565); splitterH_.Name = "splitterH_"; splitterH_.Size = new System.Drawing.Size(1016, 3); splitterH_.TabIndex = 4; splitterH_.TabStop = false; // // splitterV_ // splitterV_.Location = new System.Drawing.Point(317, 52); splitterV_.Name = "splitterV_"; splitterV_.Size = new System.Drawing.Size(3, 513); splitterV_.TabIndex = 5; splitterV_.TabStop = false; // // leftPn_ // leftPn_.Controls.Add(trendsCtrl_); leftPn_.Dock = System.Windows.Forms.DockStyle.Left; leftPn_.Location = new System.Drawing.Point(0, 52); leftPn_.Name = "leftPn_"; leftPn_.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0); leftPn_.Size = new System.Drawing.Size(317, 513); leftPn_.TabIndex = 6; // // trendsCtrl_ // trendsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; trendsCtrl_.Location = new System.Drawing.Point(0, 3); trendsCtrl_.Name = "trendsCtrl_"; trendsCtrl_.Size = new System.Drawing.Size(317, 510); trendsCtrl_.TabIndex = 0; trendsCtrl_.TrendChanged += new SampleClients.Hda.Trend.TrendTreeCtrl.TrendChangedEventHandler(TrendsCTRL_TrendChanged); trendsCtrl_.TrendSelected += new SampleClients.Hda.Trend.TrendTreeCtrl.TrendSelectedEventHandler(TrendsCTRL_TrendSelected); // // rightPn_ // rightPn_.Controls.Add(valuesCtrl_); rightPn_.Dock = System.Windows.Forms.DockStyle.Fill; rightPn_.Location = new System.Drawing.Point(320, 52); rightPn_.Name = "rightPn_"; rightPn_.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0); rightPn_.Size = new System.Drawing.Size(696, 513); rightPn_.TabIndex = 7; // // valuesCtrl_ // valuesCtrl_.DisplayGraph = true; valuesCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; valuesCtrl_.Location = new System.Drawing.Point(0, 3); valuesCtrl_.Name = "valuesCtrl_"; valuesCtrl_.ReadOnly = false; valuesCtrl_.Size = new System.Drawing.Size(696, 510); valuesCtrl_.TabIndex = 0; // // selectServerCtrl_ // selectServerCtrl_.Dock = System.Windows.Forms.DockStyle.Top; selectServerCtrl_.Label = "Server"; selectServerCtrl_.Location = new System.Drawing.Point(0, 25); selectServerCtrl_.Name = "selectServerCtrl_"; selectServerCtrl_.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); selectServerCtrl_.Size = new System.Drawing.Size(1016, 27); selectServerCtrl_.TabIndex = 0; // // statusCtrl_ // statusCtrl_.Location = new System.Drawing.Point(0, 691); statusCtrl_.Name = "statusCtrl_"; statusCtrl_.Size = new System.Drawing.Size(1016, 22); statusCtrl_.TabIndex = 8; // // updateTimerControl_ // updateTimerControl_.Interval = 10000; updateTimerControl_.Tick += new System.EventHandler(UpdateTimerCtrlTick); // // MainForm // AutoScaleBaseSize = new System.Drawing.Size(6, 16); ClientSize = new System.Drawing.Size(1016, 713); Controls.Add(rightPn_); Controls.Add(splitterV_); Controls.Add(leftPn_); Controls.Add(splitterH_); Controls.Add(bottomPn_); Controls.Add(statusCtrl_); Controls.Add(selectServerCtrl_); Controls.Add(toolBar_); MainMenuStrip = mainMenu_; Name = "MainForm"; Text = "OPC HDA Sample Client"; mainMenu_.ResumeLayout(false); mainMenu_.PerformLayout(); toolBar_.ResumeLayout(false); toolBar_.PerformLayout(); bottomPn_.ResumeLayout(false); leftPn_.ResumeLayout(false); rightPn_.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
public static bool RevertMerge(ToolStrip targetToolStrip, ToolStrip sourceToolStrip) { if (sourceToolStrip == null) { throw new ArgumentNullException("sourceToolStrip"); } List <ToolStripItem> items_to_move = new List <ToolStripItem> (); // Find every ToolStripItem who's Owner is the source toolstrip // - If it's a TSMI, see if any of the subitems need to be moved back foreach (ToolStripItem tsi in targetToolStrip.Items) { if (tsi.Owner == sourceToolStrip) { items_to_move.Add(tsi); } else if (tsi is ToolStripMenuItem) { foreach (ToolStripItem menuitem in (tsi as ToolStripMenuItem).DropDownItems) { foreach (ToolStripMenuItem tsmi in sourceToolStrip.Items) { if (menuitem.Owner == tsmi.DropDown) { items_to_move.Add(menuitem); } } } } } // If we didn't find anything, return false if (items_to_move.Count == 0 && targetToolStrip.HiddenMergedItems.Count == 0) { return(false); } // Put back all the target's items removed in the merge while (targetToolStrip.HiddenMergedItems.Count > 0) { targetToolStrip.RevertMergeItem(targetToolStrip.HiddenMergedItems[0]); targetToolStrip.HiddenMergedItems.RemoveAt(0); } sourceToolStrip.SuspendLayout(); targetToolStrip.SuspendLayout(); // Revert everything while (items_to_move.Count > 0) { sourceToolStrip.RevertMergeItem(items_to_move[0]); items_to_move.Remove(items_to_move[0]); } sourceToolStrip.ResumeLayout(); targetToolStrip.ResumeLayout(); sourceToolStrip.IsCurrentlyMerged = false; targetToolStrip.IsCurrentlyMerged = false; sourceToolStrip.CurrentlyMergedWith = null; targetToolStrip.CurrentlyMergedWith = null; return(true); }
private void InitializeComponent() { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(WDSFrameWindow)); timerFrameWin = new Timer(components); toolTip1 = new ToolTip(components); toolStrip1 = new ToolStrip(); toolPreferences = new ToolStripButton(); toolStripSeparator3 = new ToolStripSeparator(); toolAddDevice = new ToolStripButton(); toolStripSeparator4 = new ToolStripSeparator(); toolCascade = new ToolStripButton(); toolHelpAbout = new ToolStripButton(); toolSupportedDevices = new ToolStripButton(); toolSendFeedback = new ToolStripButton(); mnuMainMenuStrip = new MenuStrip(); startSimulationToolStripMenuItem = new ToolStripMenuItem(); toolsToolStripMenuItem = new ToolStripMenuItem(); sendFeedbackToolStripMenuItem = new ToolStripMenuItem(); licenseManagerToolStripMenuItem = new ToolStripMenuItem(); preferencesToolStripMenuItem = new ToolStripMenuItem(); windowToolStripMenuItem = new ToolStripMenuItem(); cascadeWindowsToolStripMenuItem = new ToolStripMenuItem(); tileHorizontalToolStripMenuItem = new ToolStripMenuItem(); tileVerticalToolStripMenuItem = new ToolStripMenuItem(); toolStripMenuItem1 = new ToolStripSeparator(); showLogWindowToolStripMenuItem = new ToolStripMenuItem(); helpToolStripMenuItem = new ToolStripMenuItem(); aboutWDSToolStripMenuItem = new ToolStripMenuItem(); supportedDevicesToolStripMenuItem = new ToolStripMenuItem(); productInformationToolStripMenuItem = new ToolStripMenuItem(); ezRadioProToolStripMenuItem = new ToolStripMenuItem(); eZRadioToolStripMenuItem = new ToolStripMenuItem(); toolStrip1.SuspendLayout(); mnuMainMenuStrip.SuspendLayout(); base.SuspendLayout(); timerFrameWin.Interval = 0x2710; timerFrameWin.Tick += new EventHandler(tmrFrameWin_Tick); toolStrip1.Items.AddRange(new ToolStripItem[] { toolPreferences, toolStripSeparator3, toolAddDevice, toolStripSeparator4, toolCascade, toolHelpAbout, toolSupportedDevices, toolSendFeedback }); toolStrip1.Location = new Point(0, 0x18); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new Size(0x259, 0x36); toolStrip1.TabIndex = 5; toolStrip1.Text = "toolStrip1"; toolStrip1.Visible = false; toolPreferences.Image = Resources.preferences_32x32; toolPreferences.ImageScaling = ToolStripItemImageScaling.None; toolPreferences.ImageTransparentColor = Color.Magenta; toolPreferences.Name = "toolPreferences"; toolPreferences.Size = new Size(0x48, 0x33); toolPreferences.Text = "&Preferences"; toolPreferences.TextImageRelation = TextImageRelation.ImageAboveText; toolPreferences.Click += new EventHandler(toolPreferences_Click); toolStripSeparator3.Name = "toolStripSeparator3"; toolStripSeparator3.Size = new Size(6, 0x36); toolAddDevice.Image = Resources.simulation_32x32; toolAddDevice.ImageScaling = ToolStripItemImageScaling.None; toolAddDevice.ImageTransparentColor = Color.Magenta; toolAddDevice.Name = "toolAddDevice"; toolAddDevice.Size = new Size(0x83, 0x33); toolAddDevice.Text = "&Add Simulation Device"; toolAddDevice.TextImageRelation = TextImageRelation.ImageAboveText; toolAddDevice.Click += new EventHandler(toolAddDevice_Click); toolStripSeparator4.Name = "toolStripSeparator4"; toolStripSeparator4.Size = new Size(6, 0x36); toolCascade.Image = Resources.cascade_32x32; toolCascade.ImageScaling = ToolStripItemImageScaling.None; toolCascade.ImageTransparentColor = Color.Magenta; toolCascade.Name = "toolCascade"; toolCascade.Size = new Size(0x6b, 0x33); toolCascade.Text = "Cascade Windows"; toolCascade.TextImageRelation = TextImageRelation.ImageAboveText; toolCascade.Click += new EventHandler(toolCascade_Click); toolHelpAbout.Alignment = ToolStripItemAlignment.Right; toolHelpAbout.Image = Resources.about_32x32; toolHelpAbout.ImageScaling = ToolStripItemImageScaling.None; toolHelpAbout.ImageTransparentColor = Color.Magenta; toolHelpAbout.Name = "toolHelpAbout"; toolHelpAbout.Size = new Size(0x2c, 0x33); toolHelpAbout.Text = "About"; toolHelpAbout.TextImageRelation = TextImageRelation.ImageAboveText; toolHelpAbout.Click += new EventHandler(toolHelpAbout_Click); toolSupportedDevices.Alignment = ToolStripItemAlignment.Right; toolSupportedDevices.Image = Resources.supported_32x32; toolSupportedDevices.ImageScaling = ToolStripItemImageScaling.None; toolSupportedDevices.ImageTransparentColor = Color.Magenta; toolSupportedDevices.Name = "toolSupportedDevices"; toolSupportedDevices.Size = new Size(0x6d, 0x33); toolSupportedDevices.Text = "Supported Devices"; toolSupportedDevices.TextImageRelation = TextImageRelation.ImageAboveText; toolSupportedDevices.Click += new EventHandler(toolSupportedDevices_Click); toolSendFeedback.Alignment = ToolStripItemAlignment.Right; toolSendFeedback.Image = Resources.email_32x32; toolSendFeedback.ImageScaling = ToolStripItemImageScaling.None; toolSendFeedback.ImageTransparentColor = Color.Magenta; toolSendFeedback.Name = "toolSendFeedback"; toolSendFeedback.Size = new Size(90, 0x33); toolSendFeedback.Text = "Send Feedback"; toolSendFeedback.TextImageRelation = TextImageRelation.ImageAboveText; toolSendFeedback.Click += new EventHandler(toolSendFeedback_Click); mnuMainMenuStrip.Items.AddRange(new ToolStripItem[] { startSimulationToolStripMenuItem, toolsToolStripMenuItem, windowToolStripMenuItem, helpToolStripMenuItem }); mnuMainMenuStrip.Location = new Point(0, 0); mnuMainMenuStrip.Name = "mnuMainMenuStrip"; mnuMainMenuStrip.Size = new Size(0x259, 0x18); mnuMainMenuStrip.TabIndex = 7; mnuMainMenuStrip.Text = "menuStrip1"; startSimulationToolStripMenuItem.Name = "startSimulationToolStripMenuItem"; startSimulationToolStripMenuItem.Size = new Size(0x66, 20); startSimulationToolStripMenuItem.Text = "Start simulation"; startSimulationToolStripMenuItem.Click += new EventHandler(startSimulationToolStripMenuItem_Click); toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { sendFeedbackToolStripMenuItem, licenseManagerToolStripMenuItem, preferencesToolStripMenuItem }); toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; toolsToolStripMenuItem.Size = new Size(0x30, 20); toolsToolStripMenuItem.Text = "Tools"; sendFeedbackToolStripMenuItem.Name = "sendFeedbackToolStripMenuItem"; sendFeedbackToolStripMenuItem.Size = new Size(0xa3, 0x16); sendFeedbackToolStripMenuItem.Text = "Send feedback"; sendFeedbackToolStripMenuItem.Click += new EventHandler(sendFeedbackToolStripMenuItem_Click); licenseManagerToolStripMenuItem.Name = "licenseManagerToolStripMenuItem"; licenseManagerToolStripMenuItem.Size = new Size(0xa3, 0x16); licenseManagerToolStripMenuItem.Text = "License manager"; licenseManagerToolStripMenuItem.Click += new EventHandler(licenseManagerToolStripMenuItem_Click); preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem"; preferencesToolStripMenuItem.Size = new Size(0xa3, 0x16); preferencesToolStripMenuItem.Text = "Preferences"; preferencesToolStripMenuItem.Click += new EventHandler(preferencesToolStripMenuItem_Click); windowToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { cascadeWindowsToolStripMenuItem, tileHorizontalToolStripMenuItem, tileVerticalToolStripMenuItem, toolStripMenuItem1, showLogWindowToolStripMenuItem }); windowToolStripMenuItem.Name = "windowToolStripMenuItem"; windowToolStripMenuItem.Size = new Size(0x3f, 20); windowToolStripMenuItem.Text = "Window"; cascadeWindowsToolStripMenuItem.Name = "cascadeWindowsToolStripMenuItem"; cascadeWindowsToolStripMenuItem.Size = new Size(0xa8, 0x16); cascadeWindowsToolStripMenuItem.Text = "Cascade"; cascadeWindowsToolStripMenuItem.Click += new EventHandler(cascadeWindowsToolStripMenuItem_Click); tileHorizontalToolStripMenuItem.Name = "tileHorizontalToolStripMenuItem"; tileHorizontalToolStripMenuItem.Size = new Size(0xa8, 0x16); tileHorizontalToolStripMenuItem.Text = "Tile horizontal"; tileHorizontalToolStripMenuItem.Click += new EventHandler(tileHorizontalToolStripMenuItem_Click); tileVerticalToolStripMenuItem.Name = "tileVerticalToolStripMenuItem"; tileVerticalToolStripMenuItem.Size = new Size(0xa8, 0x16); tileVerticalToolStripMenuItem.Text = "Tile vertical"; tileVerticalToolStripMenuItem.Click += new EventHandler(tileVerticalToolStripMenuItem_Click); toolStripMenuItem1.Name = "toolStripMenuItem1"; toolStripMenuItem1.Size = new Size(0xa5, 6); showLogWindowToolStripMenuItem.Name = "showLogWindowToolStripMenuItem"; showLogWindowToolStripMenuItem.Size = new Size(0xa8, 0x16); showLogWindowToolStripMenuItem.Text = "Show log window"; showLogWindowToolStripMenuItem.Click += new EventHandler(showLogWindowToolStripMenuItem_Click); helpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { aboutWDSToolStripMenuItem, supportedDevicesToolStripMenuItem, productInformationToolStripMenuItem }); helpToolStripMenuItem.Name = "helpToolStripMenuItem"; helpToolStripMenuItem.Size = new Size(0x2c, 20); helpToolStripMenuItem.Text = "Help"; aboutWDSToolStripMenuItem.Name = "aboutWDSToolStripMenuItem"; aboutWDSToolStripMenuItem.Size = new Size(0xb6, 0x16); aboutWDSToolStripMenuItem.Text = "About WDS"; aboutWDSToolStripMenuItem.Click += new EventHandler(aboutWDSToolStripMenuItem_Click); supportedDevicesToolStripMenuItem.Name = "supportedDevicesToolStripMenuItem"; supportedDevicesToolStripMenuItem.Size = new Size(0xb6, 0x16); supportedDevicesToolStripMenuItem.Text = "Supported devices"; supportedDevicesToolStripMenuItem.Click += new EventHandler(supportedDevicesToolStripMenuItem_Click); productInformationToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { ezRadioProToolStripMenuItem, eZRadioToolStripMenuItem }); productInformationToolStripMenuItem.Name = "productInformationToolStripMenuItem"; productInformationToolStripMenuItem.Size = new Size(0xb6, 0x16); productInformationToolStripMenuItem.Text = "Product information"; ezRadioProToolStripMenuItem.Name = "ezRadioProToolStripMenuItem"; ezRadioProToolStripMenuItem.Size = new Size(0x85, 0x16); ezRadioProToolStripMenuItem.Text = "EzRadioPro"; ezRadioProToolStripMenuItem.Click += new EventHandler(ezRadioProToolStripMenuItem_Click); eZRadioToolStripMenuItem.Name = "eZRadioToolStripMenuItem"; eZRadioToolStripMenuItem.Size = new Size(0x85, 0x16); eZRadioToolStripMenuItem.Text = "EZRadio"; eZRadioToolStripMenuItem.Click += new EventHandler(eZRadioToolStripMenuItem_Click); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; BackgroundImage = (Image) resources.GetObject("$BackgroundImage"); BackgroundImageLayout = ImageLayout.Zoom; base.ClientSize = new Size(0x259, 0x1cd); base.Controls.Add(toolStrip1); base.Controls.Add(mnuMainMenuStrip); DoubleBuffered = true; Font = new Font("Microsoft Sans Serif", 8.25f); base.Icon = (Icon) resources.GetObject("$Icon"); base.IsMdiContainer = true; base.MainMenuStrip = mnuMainMenuStrip; base.Name = "WDSFrameWindow"; base.StartPosition = FormStartPosition.Manual; Text = "Wireless Development Suite"; base.WindowState = FormWindowState.Maximized; base.Load += new EventHandler(WDSFrameWindow_Load); base.ClientSizeChanged += new EventHandler(clientSizeChanged); base.Shown += new EventHandler(WDSFrameWindow_Shown); base.FormClosed += new FormClosedEventHandler(WDSFrameWindow_FormClosed); base.FormClosing += new FormClosingEventHandler(WDSFrameWindow_FormClosing); base.Resize += new EventHandler(WDSFrameWindow_Resize); toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); mnuMainMenuStrip.ResumeLayout(false); mnuMainMenuStrip.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public static bool Merge (ToolStrip sourceToolStrip, ToolStrip targetToolStrip) { // Check for exceptions if (sourceToolStrip == null) throw new ArgumentNullException ("sourceToolStrip"); if (targetToolStrip == null) throw new ArgumentNullException ("targetName"); if (targetToolStrip == sourceToolStrip) throw new ArgumentException ("Source and target ToolStrip must be different."); // If the toolstrips don't allow merging, don't merge them if (!sourceToolStrip.AllowMerge || !targetToolStrip.AllowMerge) return false; // We currently can't support merging multiple times if (sourceToolStrip.IsCurrentlyMerged || targetToolStrip.IsCurrentlyMerged) return false; // What I wouldn't give to be able to modify a collection // while enumerating through it... List<ToolStripItem> items_to_move = new List<ToolStripItem> (); // Create a list of every ToolStripItem we plan on moving foreach (ToolStripItem tsi in sourceToolStrip.Items) { switch (tsi.MergeAction) { case MergeAction.Append: default: items_to_move.Add (tsi); break; case MergeAction.Insert: if (tsi.MergeIndex >= 0) items_to_move.Add (tsi); break; case MergeAction.Replace: case MergeAction.Remove: case MergeAction.MatchOnly: foreach (ToolStripItem target_tsi in targetToolStrip.Items) if (tsi.Text == target_tsi.Text) { items_to_move.Add (tsi); break; } break; } } // If there was nothing valid to merge, return false if (items_to_move.Count == 0) return false; // Set some state so we can unmerge later sourceToolStrip.BeginMerge (); targetToolStrip.BeginMerge (); sourceToolStrip.SuspendLayout (); targetToolStrip.SuspendLayout (); while (items_to_move.Count > 0) { ToolStripItem tsi = items_to_move[0]; items_to_move.Remove (tsi); switch (tsi.MergeAction) { case MergeAction.Append: default: // Just changing the parent will append it to the target // and remove it from the source ToolStrip.SetItemParent (tsi, targetToolStrip); break; case MergeAction.Insert: // Do the same work as Append, except Insert it into the // location specified by the MergeIndex RemoveItemFromParentToolStrip (tsi); if (tsi.MergeIndex == -1) continue; else if (tsi.MergeIndex >= CountRealToolStripItems (targetToolStrip)) targetToolStrip.Items.AddNoOwnerOrLayout (tsi); else targetToolStrip.Items.InsertNoOwnerOrLayout (AdjustItemMergeIndex (targetToolStrip, tsi), tsi); tsi.Parent = targetToolStrip; break; case MergeAction.Replace: // Find a target ToolStripItem with the same Text, remove it // and replace it with the source one foreach (ToolStripItem target_tsi in targetToolStrip.Items) if (tsi.Text == target_tsi.Text) { RemoveItemFromParentToolStrip (tsi); // Insert where the old one is, then remove the old one targetToolStrip.Items.InsertNoOwnerOrLayout (targetToolStrip.Items.IndexOf (target_tsi), tsi); targetToolStrip.Items.RemoveNoOwnerOrLayout (target_tsi); // Store the replaced one so we can get it back in unmerge targetToolStrip.HiddenMergedItems.Add (target_tsi); break; } break; case MergeAction.Remove: // Find a target ToolStripItem with the same Text, and remove // it from the target, nothing else foreach (ToolStripItem target_tsi in targetToolStrip.Items) if (tsi.Text == target_tsi.Text) { targetToolStrip.Items.RemoveNoOwnerOrLayout (target_tsi); // Store the removed one so we can get it back in unmerge targetToolStrip.HiddenMergedItems.Add (target_tsi); break; } break; case MergeAction.MatchOnly: // Ugh, find the target ToolStripItem with the same Text, and take // all the subitems from the source one, and append it to the target one foreach (ToolStripItem target_tsi in targetToolStrip.Items) if (tsi.Text == target_tsi.Text) { if (target_tsi is ToolStripMenuItem && tsi is ToolStripMenuItem) { ToolStripMenuItem source = (ToolStripMenuItem)tsi; ToolStripMenuItem target = (ToolStripMenuItem)target_tsi; ToolStripManager.Merge (source.DropDown, target.DropDown); } break; } break; } } sourceToolStrip.ResumeLayout (); targetToolStrip.ResumeLayout (); // Store who we merged with, so we can unmerge when only given the target toolstrip sourceToolStrip.CurrentlyMergedWith = targetToolStrip; targetToolStrip.CurrentlyMergedWith = sourceToolStrip; return true; }
private void InitializeComponent() { System.Windows.Forms.ToolStrip tsRoot; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.tscbRootList = new System.Windows.Forms.ToolStripComboBox(); this.toolContainer = new System.Windows.Forms.ToolStripContainer(); this.tsMisc = new System.Windows.Forms.ToolStrip(); this.tsbMakeRoot = new System.Windows.Forms.ToolStripButton(); this.tsbFindPage = new System.Windows.Forms.ToolStripButton(); this.tsbRefresh = new System.Windows.Forms.ToolStripButton(); this.tsWorkingSet = new System.Windows.Forms.ToolStrip(); this.tsbAddWorkingSet = new System.Windows.Forms.ToolStripButton(); this.tsbRemoveWorkingSet = new System.Windows.Forms.ToolStripButton(); this.tsbAddLink = new System.Windows.Forms.ToolStripButton(); this.tsbRemoveLink = new System.Windows.Forms.ToolStripButton(); tsRoot = new System.Windows.Forms.ToolStrip(); tsRoot.SuspendLayout(); this.toolContainer.BottomToolStripPanel.SuspendLayout(); this.toolContainer.TopToolStripPanel.SuspendLayout(); this.toolContainer.SuspendLayout(); this.tsMisc.SuspendLayout(); this.tsWorkingSet.SuspendLayout(); this.SuspendLayout(); // // tsRoot // tsRoot.BackColor = System.Drawing.Color.White; tsRoot.Dock = System.Windows.Forms.DockStyle.None; tsRoot.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tscbRootList }); tsRoot.Location = new System.Drawing.Point(3, 0); tsRoot.Name = "tsRoot"; tsRoot.Padding = new System.Windows.Forms.Padding(0); tsRoot.Size = new System.Drawing.Size(211, 25); tsRoot.TabIndex = 0; tsRoot.Text = "toolStrip1"; // // tscbRootList // this.tscbRootList.BackColor = System.Drawing.Color.White; this.tscbRootList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tscbRootList.Margin = new System.Windows.Forms.Padding(0); this.tscbRootList.Name = "tscbRootList"; this.tscbRootList.Size = new System.Drawing.Size(200, 25); this.tscbRootList.SelectedIndexChanged += new System.EventHandler(this.tscbRootListSelectionChanged); // // toolContainer // // // toolContainer.BottomToolStripPanel // this.toolContainer.BottomToolStripPanel.BackColor = System.Drawing.Color.White; this.toolContainer.BottomToolStripPanel.Controls.Add(this.tsWorkingSet); this.toolContainer.BottomToolStripPanel.Controls.Add(this.tsMisc); this.toolContainer.BottomToolStripPanel.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; // // toolContainer.ContentPanel // this.toolContainer.ContentPanel.BackColor = System.Drawing.Color.White; this.toolContainer.ContentPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.toolContainer.ContentPanel.Size = new System.Drawing.Size(237, 508); this.toolContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.toolContainer.Location = new System.Drawing.Point(0, 0); this.toolContainer.Margin = new System.Windows.Forms.Padding(0); this.toolContainer.Name = "toolContainer"; this.toolContainer.Size = new System.Drawing.Size(237, 564); this.toolContainer.TabIndex = 1; this.toolContainer.Text = "toolStripContainer1"; // // toolContainer.TopToolStripPanel // this.toolContainer.TopToolStripPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; this.toolContainer.TopToolStripPanel.Controls.Add(tsRoot); this.toolContainer.TopToolStripPanel.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; // // tsMisc // this.tsMisc.AllowItemReorder = true; this.tsMisc.BackColor = System.Drawing.Color.White; this.tsMisc.Dock = System.Windows.Forms.DockStyle.None; this.tsMisc.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbMakeRoot, this.tsbFindPage, this.tsbRefresh }); this.tsMisc.Location = new System.Drawing.Point(127, 0); this.tsMisc.Name = "tsMisc"; this.tsMisc.Size = new System.Drawing.Size(96, 31); this.tsMisc.TabIndex = 1; // // tsbMakeRoot // this.tsbMakeRoot.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbMakeRoot.Image = ((System.Drawing.Image)(resources.GetObject("tsbMakeRoot.Image"))); this.tsbMakeRoot.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbMakeRoot.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbMakeRoot.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbMakeRoot.Name = "tsbMakeRoot"; this.tsbMakeRoot.Size = new System.Drawing.Size(28, 28); this.tsbMakeRoot.Text = "Make Selected Node the Root"; this.tsbMakeRoot.ToolTipText = "Make Selected Node the Root"; this.tsbMakeRoot.Click += new System.EventHandler(this.MakeRootButton); // // tsbFindPage // this.tsbFindPage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbFindPage.Image = ((System.Drawing.Image)(resources.GetObject("tsbFindPage.Image"))); this.tsbFindPage.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbFindPage.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbFindPage.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbFindPage.Name = "tsbFindPage"; this.tsbFindPage.Size = new System.Drawing.Size(28, 28); this.tsbFindPage.Text = "Find Current Page in Tree"; this.tsbFindPage.ToolTipText = "Find Current Page in Tree"; this.tsbFindPage.Click += new System.EventHandler(this.FindInTreeButton); // // tsbRefresh // this.tsbRefresh.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRefresh.Image = ((System.Drawing.Image)(resources.GetObject("tsbRefresh.Image"))); this.tsbRefresh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbRefresh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRefresh.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRefresh.Name = "tsbRefresh"; this.tsbRefresh.Size = new System.Drawing.Size(28, 28); this.tsbRefresh.Text = "Refresh"; this.tsbRefresh.Click += new System.EventHandler(this.RefreshViewButton); // // tsWorkingSet // this.tsWorkingSet.AllowItemReorder = true; this.tsWorkingSet.BackColor = System.Drawing.Color.White; this.tsWorkingSet.Dock = System.Windows.Forms.DockStyle.None; this.tsWorkingSet.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbAddWorkingSet, this.tsbRemoveWorkingSet, this.tsbAddLink, this.tsbRemoveLink }); this.tsWorkingSet.Location = new System.Drawing.Point(3, 0); this.tsWorkingSet.Name = "tsWorkingSet"; this.tsWorkingSet.Size = new System.Drawing.Size(124, 31); this.tsWorkingSet.TabIndex = 1; // // tsbAddWorkingSet // this.tsbAddWorkingSet.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbAddWorkingSet.Image = ((System.Drawing.Image)(resources.GetObject("tsbAddWorkingSet.Image"))); this.tsbAddWorkingSet.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbAddWorkingSet.ImageTransparentColor = System.Drawing.Color.Black; this.tsbAddWorkingSet.Name = "tsbAddWorkingSet"; this.tsbAddWorkingSet.Size = new System.Drawing.Size(28, 28); this.tsbAddWorkingSet.Text = "Add Favorites Folder"; this.tsbAddWorkingSet.ToolTipText = "Add Favorites Folder"; this.tsbAddWorkingSet.Click += new System.EventHandler(this.tsbAddWorkingSet_Click); // // tsbRemoveWorkingSet // this.tsbRemoveWorkingSet.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveWorkingSet.Image = ((System.Drawing.Image)(resources.GetObject("tsbRemoveWorkingSet.Image"))); this.tsbRemoveWorkingSet.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRemoveWorkingSet.ImageTransparentColor = System.Drawing.Color.Black; this.tsbRemoveWorkingSet.Name = "tsbRemoveWorkingSet"; this.tsbRemoveWorkingSet.Size = new System.Drawing.Size(28, 28); this.tsbRemoveWorkingSet.Text = "Remove Favorites Folder"; this.tsbRemoveWorkingSet.Click += new System.EventHandler(this.tsbRemoveWorkingSet_Click); // // tsbAddLink // this.tsbAddLink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbAddLink.Image = ((System.Drawing.Image)(resources.GetObject("tsbAddLink.Image"))); this.tsbAddLink.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbAddLink.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbAddLink.Name = "tsbAddLink"; this.tsbAddLink.Size = new System.Drawing.Size(28, 28); this.tsbAddLink.Text = "Add Link"; this.tsbAddLink.Click += new System.EventHandler(this.tsbAddLink_Click); // // tsbRemoveLink // this.tsbRemoveLink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveLink.Image = ((System.Drawing.Image)(resources.GetObject("tsbRemoveLink.Image"))); this.tsbRemoveLink.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsbRemoveLink.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tsbRemoveLink.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRemoveLink.Name = "tsbRemoveLink"; this.tsbRemoveLink.Size = new System.Drawing.Size(28, 28); this.tsbRemoveLink.Text = "Remove Link"; this.tsbRemoveLink.Click += new System.EventHandler(this.tsbRemoveLink_Click); // // MainForm // this.ClientSize = new System.Drawing.Size(237, 564); this.Controls.Add(this.toolContainer); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "MainForm"; this.Text = "OneNote TreeView"; this.Load += new System.EventHandler(this.MainForm_Load); tsRoot.ResumeLayout(false); tsRoot.PerformLayout(); this.toolContainer.BottomToolStripPanel.ResumeLayout(false); this.toolContainer.BottomToolStripPanel.PerformLayout(); this.toolContainer.TopToolStripPanel.ResumeLayout(false); this.toolContainer.TopToolStripPanel.PerformLayout(); this.toolContainer.ResumeLayout(false); this.toolContainer.PerformLayout(); this.tsMisc.ResumeLayout(false); this.tsMisc.PerformLayout(); this.tsWorkingSet.ResumeLayout(false); this.tsWorkingSet.PerformLayout(); this.ResumeLayout(false); }
public static void ChangeIconSize(ToolStrip toolStrip, IconSize iconSize) { toolStrip.SuspendLayout(); toolStrip.ImageScalingSize = StandardIconSizes.GetSize(iconSize); ChangeIconSize(toolStrip.Items, iconSize); toolStrip.ResumeLayout(false); toolStrip.PerformLayout(); }
private void InitializeComponent() { ComponentResourceManager resources = new ComponentResourceManager(typeof(ScriptEditor)); panel1 = new Panel(); description = new Label(); toolStrip1 = new ToolStrip(); btnAdd = new ToolStripButton(); btnRemove = new ToolStripButton(); btnModify = new ToolStripButton(); btnUp = new ToolStripButton(); btnDown = new ToolStripButton(); panel2 = new Panel(); toolStrip2 = new ToolStrip(); btnCopy = new ToolStripButton(); btnCut = new ToolStripButton(); btnPaste = new ToolStripButton(); btnCopyText = new ToolStripButton(); EventList = new ListBox(); splitter1 = new Splitter(); panel1.SuspendLayout(); toolStrip1.SuspendLayout(); panel2.SuspendLayout(); toolStrip2.SuspendLayout(); SuspendLayout(); // // panel1 // panel1.Controls.Add(description); panel1.Controls.Add(toolStrip1); panel1.Dock = DockStyle.Bottom; panel1.Location = new Drawing.Point(1, 188); panel1.Name = "panel1"; panel1.Size = new Drawing.Size(324, 95); panel1.TabIndex = 2; // // description // description.BackColor = SystemColors.Control; description.BorderStyle = BorderStyle.Fixed3D; description.Dock = DockStyle.Fill; description.Font = new Font("Microsoft Sans Serif", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, (byte)0); description.Location = new Drawing.Point(0, 25); description.Name = "description"; description.Size = new Drawing.Size(324, 70); description.TabIndex = 59; // // toolStrip1 // toolStrip1.GripStyle = ToolStripGripStyle.Hidden; toolStrip1.Items.AddRange(new ToolStripItem[] { btnAdd, btnRemove, btnModify, btnUp, btnDown }); toolStrip1.Location = new Drawing.Point(0, 0); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new Drawing.Size(324, 25); toolStrip1.TabIndex = 0; toolStrip1.Text = "toolStrip1"; // // btnAdd // btnAdd.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnAdd.Image = (Image) resources.GetObject("btnAdd.Image"); btnAdd.ImageTransparentColor = Color.Magenta; btnAdd.Name = "btnAdd"; btnAdd.Size = new Drawing.Size(33, 22); btnAdd.Text = "Add"; btnAdd.Click += new EventHandler(btnAdd_Click); // // btnRemove // btnRemove.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnRemove.Image = (Image) resources.GetObject("btnRemove.Image"); btnRemove.ImageTransparentColor = Color.Magenta; btnRemove.Name = "btnRemove"; btnRemove.Size = new Drawing.Size(54, 22); btnRemove.Text = "Remove"; btnRemove.Click += new EventHandler(btnRemove_Click); // // btnModify // btnModify.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnModify.Image = (Image) resources.GetObject("btnModify.Image"); btnModify.ImageTransparentColor = Color.Magenta; btnModify.Name = "btnModify"; btnModify.Size = new Drawing.Size(49, 22); btnModify.Text = "Modify"; btnModify.Click += new EventHandler(btnModify_Click); // // btnUp // btnUp.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnUp.Image = (Image) resources.GetObject("btnUp.Image"); btnUp.ImageTransparentColor = Color.Magenta; btnUp.Name = "btnUp"; btnUp.Size = new Drawing.Size(23, 22); btnUp.Text = "▲"; btnUp.Click += new EventHandler(btnUp_Click); // // btnDown // btnDown.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnDown.Image = (Image) resources.GetObject("btnDown.Image"); btnDown.ImageTransparentColor = Color.Magenta; btnDown.Name = "btnDown"; btnDown.Size = new Drawing.Size(23, 22); btnDown.Text = "▼"; btnDown.Click += new EventHandler(btnDown_Click); // // panel2 // panel2.Controls.Add(toolStrip2); panel2.Dock = DockStyle.Top; panel2.Location = new Drawing.Point(1, 1); panel2.Name = "panel2"; panel2.Size = new Drawing.Size(324, 23); panel2.TabIndex = 15; // // toolStrip2 // toolStrip2.Dock = DockStyle.Fill; toolStrip2.GripStyle = ToolStripGripStyle.Hidden; toolStrip2.Items.AddRange(new ToolStripItem[] { btnCopy, btnCut, btnPaste, btnCopyText }); toolStrip2.Location = new Drawing.Point(0, 0); toolStrip2.Name = "toolStrip2"; toolStrip2.Size = new Drawing.Size(324, 23); toolStrip2.TabIndex = 1; toolStrip2.Text = "toolStrip2"; // // btnCopy // btnCopy.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnCopy.Image = (Image) resources.GetObject("btnCopy.Image"); btnCopy.ImageTransparentColor = Color.Magenta; btnCopy.Name = "btnCopy"; btnCopy.Size = new Drawing.Size(39, 20); btnCopy.Text = "Copy"; btnCopy.Click += new EventHandler(btnCopy_Click); // // btnCut // btnCut.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnCut.Image = (Image) resources.GetObject("btnCut.Image"); btnCut.ImageTransparentColor = Color.Magenta; btnCut.Name = "btnCut"; btnCut.Size = new Drawing.Size(30, 20); btnCut.Text = "Cut"; btnCut.Click += new EventHandler(btnCut_Click); // // btnPaste // btnPaste.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnPaste.Image = (Image) resources.GetObject("btnPaste.Image"); btnPaste.ImageTransparentColor = Color.Magenta; btnPaste.Name = "btnPaste"; btnPaste.Size = new Drawing.Size(39, 20); btnPaste.Text = "Paste"; btnPaste.Click += new EventHandler(btnPaste_Click); // // btnCopyText // btnCopyText.DisplayStyle = ToolStripItemDisplayStyle.Text; //btnCopyText.Image = (Image) resources.GetObject("btnCopyText.Image"); btnCopyText.ImageTransparentColor = Color.Magenta; btnCopyText.Name = "btnCopyText"; btnCopyText.Size = new Drawing.Size(64, 20); btnCopyText.Text = "Copy Text"; btnCopyText.Click += new EventHandler(btnCopyText_Click); // // EventList // EventList.Dock = DockStyle.Fill; EventList.FormattingEnabled = true; EventList.HorizontalScrollbar = true; EventList.IntegralHeight = false; EventList.Location = new Drawing.Point(1, 24); EventList.Name = "EventList"; EventList.SelectionMode = SelectionMode.MultiExtended; EventList.Size = new Drawing.Size(324, 161); EventList.TabIndex = 16; EventList.SelectedIndexChanged += new EventHandler(EventList_SelectedIndexChanged); EventList.DoubleClick += new EventHandler(EventList_DoubleClick); // // splitter1 // splitter1.Dock = DockStyle.Bottom; splitter1.Location = new Drawing.Point(1, 185); splitter1.Name = "splitter1"; splitter1.Size = new Drawing.Size(324, 3); splitter1.TabIndex = 60; splitter1.TabStop = false; // // ScriptEditor // Controls.Add(EventList); Controls.Add(panel2); Controls.Add(splitter1); Controls.Add(panel1); Name = "ScriptEditor"; Padding = new Padding(1); Size = new Drawing.Size(326, 284); panel1.ResumeLayout(false); panel1.PerformLayout(); toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); panel2.ResumeLayout(false); panel2.PerformLayout(); toolStrip2.ResumeLayout(false); toolStrip2.PerformLayout(); ResumeLayout(false); }
private IDisposableContainer PopulateToolStripFromRoot(ToolStrip toolStrip, IVirtualFolder currentRoot, bool hideNotReadyDrives) { IDisposableContainer container2; toolStrip.SuspendLayout(); try { ToolStripSeparator separator; toolStrip.Items.Clear(); VirtualProperty property = VirtualProperty.Get(VirtualFilePanelSettings.Default.DriveMenuProperty); if ((property != null) && (property.GroupName != "Volume")) { property = null; } IDisposableContainer container = new DisposableContainer(); System.Type type = null; int num = 0; Image image = Settings.Default.IsShowIcons ? ImageProvider.Default.GetDefaultIcon(DefaultIcon.Drive, ImageHelper.DefaultSmallIconSize) : null; foreach (IVirtualFolder folder in VirtualItem.GetRootFolders()) { if (!(!hideNotReadyDrives || IsRootFolderVisible(folder))) { num++; continue; } if ((type != null) && (folder.GetType() != type)) { separator = new ToolStripSeparator(); container.Add(separator); toolStrip.Items.Add(separator); } type = folder.GetType(); string str = folder.Name.Replace("&", "&&"); int index = str.IndexOf(':'); if (index >= 0) { str = str.Insert(index - 1, "&"); } ToolStripMenuItem toolStripItem = new ToolStripMenuItem(); this.InitializeVirtualRootToolStrip(toolStripItem, folder); if (folder.Equals(currentRoot)) { toolStripItem.Font = new Font(toolStripItem.Font, FontStyle.Bold); container.Add(toolStripItem.Font); } if (property != null) { try { object obj2 = folder[property.PropertyId]; if (obj2 != null) { toolStripItem.ShortcutKeyDisplayString = property.ConvertToString(obj2); toolStripItem.ShowShortcutKeys = true; } } catch (SystemException exception) { if (!(exception is IOException) && !(exception is UnauthorizedAccessException)) { throw; } toolStripItem.ShortcutKeyDisplayString = Resources.sDeviceNotReady; toolStripItem.ShowShortcutKeys = true; } } container.Add(toolStripItem); toolStrip.Items.Add(toolStripItem); VirtualItemToolStripEvents.UpdateItemImage(toolStripItem, folder); } if (num > 0) { separator = new ToolStripSeparator(); container.Add(separator); toolStrip.Items.Add(separator); ToolStripItem item = new ToolStripMenuItem(string.Format(Resources.sShowHiddenDrives, num)) { Tag = toolStrip }; item.Click += new EventHandler(this.tsmiShowHidden_Click); container.Add(item); toolStrip.Items.Add(item); } container2 = container; } finally { toolStrip.ResumeLayout(); } return container2; }
/// <include file='doc\ToolStripManager.uex' path='docs/doc[@for="ToolStripManager.Merge"]/*' /> /// <devdoc> /// merge two toolstrips /// </devdoc> public static bool Merge(ToolStrip sourceToolStrip, ToolStrip targetToolStrip) { // check arguments if (sourceToolStrip == null) { throw new ArgumentNullException("sourceToolStrip"); } if (targetToolStrip == null) { throw new ArgumentNullException("targetToolStrip"); } if (targetToolStrip == sourceToolStrip) { throw new ArgumentException(SR.GetString(SR.ToolStripMergeImpossibleIdentical)); } // we only do this if the source and target toolstrips are the same bool canMerge = IsSpecialMDIStrip(sourceToolStrip); canMerge = (canMerge || (sourceToolStrip.AllowMerge && targetToolStrip.AllowMerge && (sourceToolStrip.GetType().IsAssignableFrom(targetToolStrip.GetType()) || targetToolStrip.GetType().IsAssignableFrom(sourceToolStrip.GetType())) ) ); MergeHistory mergeHistory = null; if (canMerge) { //Debug.WriteLine("Begin merge between src: " + sourceToolStrip.Name + " and target: " + targetToolStrip.Name); Debug.Indent(); mergeHistory = new MergeHistory(sourceToolStrip); int originalCount = sourceToolStrip.Items.Count; if (originalCount > 0) { sourceToolStrip.SuspendLayout(); targetToolStrip.SuspendLayout(); try { int lastCount = originalCount; // 2. do the actual merging logic for (int i = 0, itemToLookAt = 0; i < originalCount; i++) { ToolStripItem item = sourceToolStrip.Items[itemToLookAt]; //Debug.WriteLine("doing the recursive merge for item " + item.Text); MergeRecursive(item, targetToolStrip.Items, mergeHistory.MergeHistoryItemsStack); int numberOfItemsMerged = lastCount - sourceToolStrip.Items.Count; itemToLookAt = (numberOfItemsMerged > 0) ? itemToLookAt : itemToLookAt + 1; lastCount = sourceToolStrip.Items.Count; } } finally { Debug.Unindent(); sourceToolStrip.ResumeLayout(); targetToolStrip.ResumeLayout(); } //Debug.WriteLine("pusing mergehistory for toolstrip " + sourceToolStrip.Name + " in target toolstrip MergeHistoryStack property"); if (mergeHistory.MergeHistoryItemsStack.Count > 0) { // only push this on the stack if we actually did something targetToolStrip.MergeHistoryStack.Push(mergeHistory); } } } bool result = false; if (mergeHistory != null && mergeHistory.MergeHistoryItemsStack.Count > 0) { result = true; // we did merge something } return result; }
//private ImageList imageList1; private void InitializeComponent() { // panelTabPage = new System.Windows.Forms.Panel(); panelPageNavigation = new System.Windows.Forms.Panel(); toolStripPageNavigation = new System.Windows.Forms.ToolStrip(); toolStripButtonAdd = new System.Windows.Forms.ToolStripButton(); toolStripButtonDelete = new System.Windows.Forms.ToolStripButton(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripButtonFirst = new System.Windows.Forms.ToolStripButton(); toolStripButtonPrevious = new System.Windows.Forms.ToolStripButton(); toolStripLabelPageNumber = new System.Windows.Forms.ToolStripLabel(); toolStripButtonNext = new System.Windows.Forms.ToolStripButton(); toolStripButtonLast = new System.Windows.Forms.ToolStripButton(); // drawarea = new DrawArea(this); // panelTabPage.SuspendLayout(); panelPageNavigation.SuspendLayout(); toolStripPageNavigation.SuspendLayout(); SuspendLayout(); // // panelTabPage // //this.panelTabPage.AutoScroll = true; ////panelTabPage.Controls.Add(drawarea); //this.panelTabPage.Dock = System.Windows.Forms.DockStyle.Fill; //this.panelTabPage.Location = new System.Drawing.Point(0, 0); //this.panelTabPage.Name = "panelTabPage"; //this.panelTabPage.Size = new System.Drawing.Size(550, 167); //this.panelTabPage.TabIndex = 0; // // panelPageNavigation // this.panelPageNavigation.BackColor = System.Drawing.Color.Gainsboro; this.panelPageNavigation.Controls.Add(this.toolStripPageNavigation); this.panelPageNavigation.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelPageNavigation.Location = new System.Drawing.Point(0, 167); this.panelPageNavigation.Name = "panelPageNavigation"; this.panelPageNavigation.Size = new System.Drawing.Size(550, 20); this.panelPageNavigation.TabIndex = 0; // // toolStripPageNavigation // this.toolStripPageNavigation.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButtonAdd, this.toolStripButtonDelete, this.toolStripSeparator1, this.toolStripButtonFirst, this.toolStripButtonPrevious, this.toolStripLabelPageNumber, this.toolStripButtonNext, this.toolStripButtonLast }); this.toolStripPageNavigation.Location = new System.Drawing.Point(0, 0); this.toolStripPageNavigation.Name = "toolStripPageNavigation"; this.toolStripPageNavigation.Size = new System.Drawing.Size(550, 25); this.toolStripPageNavigation.TabIndex = 2; this.toolStripPageNavigation.Text = "toolStripPageNavigation"; this.toolStripPageNavigation.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStripPageNavigation_ItemClicked); // // toolStripButtonAdd // this.toolStripButtonAdd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonAdd.Image = DCS.Properties.Resources._03; this.toolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonAdd.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonAdd.Name = "toolStripButtonAdd"; this.toolStripButtonAdd.Size = new System.Drawing.Size(23, 25); this.toolStripButtonAdd.Text = "Add"; // // toolStripButtonNew // this.toolStripButtonDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonDelete.Image = DCS.Properties.Resources._01; this.toolStripButtonDelete.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonDelete.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonDelete.Name = "toolStripButtonDelete"; this.toolStripButtonDelete.Size = new System.Drawing.Size(23, 25); this.toolStripButtonDelete.Text = "Delete"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripButtonFirst // this.toolStripButtonFirst.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonFirst.Image = DCS.Properties.Resources._38; this.toolStripButtonFirst.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonFirst.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonFirst.Name = "toolStripButtonFirst"; this.toolStripButtonFirst.Size = new System.Drawing.Size(23, 25); this.toolStripButtonFirst.Text = "First"; // // toolStripButtonPrevious // this.toolStripButtonPrevious.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonPrevious.Image = DCS.Properties.Resources._44; this.toolStripButtonPrevious.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonPrevious.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonPrevious.Name = "toolStripButtonPrevious"; this.toolStripButtonPrevious.Size = new System.Drawing.Size(23, 25); this.toolStripButtonPrevious.Text = "Previous"; // // toolStripLabelPageNumber // this.toolStripLabelPageNumber.Margin = new System.Windows.Forms.Padding(0); this.toolStripLabelPageNumber.Name = "toolStripLabelPageNumber"; this.toolStripLabelPageNumber.Size = new System.Drawing.Size(13, 40); this.toolStripLabelPageNumber.Text = "1"; // // toolStripButtonNext // this.toolStripButtonNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonNext.Image = DCS.Properties.Resources._43; this.toolStripButtonNext.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonNext.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonNext.Name = "toolStripButtonNext"; this.toolStripButtonNext.Size = new System.Drawing.Size(23, 25); this.toolStripButtonNext.Text = "Next"; // // toolStripButtonLast // this.toolStripButtonLast.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonLast.Image = DCS.Properties.Resources._37; this.toolStripButtonLast.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonLast.Margin = new System.Windows.Forms.Padding(0); this.toolStripButtonLast.Name = "toolStripButtonLast"; this.toolStripButtonLast.Size = new System.Drawing.Size(23, 25); this.toolStripButtonLast.Text = "Last"; // // TabFBDPageControl // // this.Controls.Add(this.panelTabPage); this.Controls.Add(this.panelPageNavigation); // this.ImageIndex = 0; this.Location = new System.Drawing.Point(4, 23); this.Size = new System.Drawing.Size(550, 187); this.Text = "tabPage"; //this.panelTabPage.ResumeLayout(false); //this.panelTabPage.PerformLayout(); this.panelPageNavigation.ResumeLayout(false); this.panelPageNavigation.PerformLayout(); this.toolStripPageNavigation.ResumeLayout(false); this.toolStripPageNavigation.PerformLayout(); this.ResumeLayout(false); }
private void Diseño_Forma() { #region Creando controles de la forma System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Menu_principal)); statusStrip1 = new System.Windows.Forms.StatusStrip(); Barra_menu = new System.Windows.Forms.ToolStrip(); toolStripC = new System.Windows.Forms.ToolStripSeparator(); toolStripP = new System.Windows.Forms.ToolStripSeparator(); toolStripR = new System.Windows.Forms.ToolStripSeparator(); toolStripI = new System.Windows.Forms.ToolStripSeparator(); toolStripF = new System.Windows.Forms.ToolStripSeparator(); toolStripM = new System.Windows.Forms.ToolStripSeparator(); toolStripS = new System.Windows.Forms.ToolStripSeparator(); Bttn_Cliente = new System.Windows.Forms.ToolStripButton(); toolStripTU = new System.Windows.Forms.ToolStripSeparator(); bttn_Proveedores = new System.Windows.Forms.ToolStripButton(); bttn_split_Reportes = new System.Windows.Forms.ToolStripSplitButton(); bttn_split_Inventarios = new System.Windows.Forms.ToolStripSplitButton(); bttn_split_Financiero = new System.Windows.Forms.ToolStripSplitButton(); bttn_split_Mantenimiento = new System.Windows.Forms.ToolStripSplitButton(); bttn_split_Seguridad = new System.Windows.Forms.ToolStripSplitButton(); bttn_Cerrarsesion = new System.Windows.Forms.ToolStripButton(); tool_Label_Usuario = new System.Windows.Forms.ToolStripStatusLabel(); tool_label_Hora = new System.Windows.Forms.ToolStripStatusLabel(); tool_label_Fecha = new System.Windows.Forms.ToolStripStatusLabel(); inventariosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); inventariosMateriaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); inventariosProductoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); producciónToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ordenDePeladoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); cajaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ventasPedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); AbonosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); Abonos_ProveedorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); PedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); tipoDePiezasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); TipodeMateriaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); Tipo_UsuarioToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); productosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); almacénToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); materiaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); UsuarioToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); RespaldoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); InformacionToolStripMenuItem1= new System.Windows.Forms.ToolStripMenuItem(); tool_Separador_Tipos = new System.Windows.Forms.ToolStripSeparator(); tool_Separator = new System.Windows.Forms.ToolStripSeparator(); pic_Logo = new System.Windows.Forms.PictureBox(); Capturar_Imagenes = new System.Windows.Forms.Button(); Codigo_Barra = new System.Windows.Forms.Button(); Pedidos_Clientes = new System.Windows.Forms.Button(); Pedidos_Proveedores = new System.Windows.Forms.Button(); // //REPORTES this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.clientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.proveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.financieroToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.promedioDeVentasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.consumoDelClienteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.gananciasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.deudoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.muestrasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.gastosIndirectosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cortesDeCajaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ventasDeCadaProductoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.administrativoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pedidosPendientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.historialDePedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.producciónToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.producciónDeProductoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.HistorialDeProduccionToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.DeudaaProveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.HistorialDeAbonosClientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DeudaaClientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.HistorialDeAbonosProveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ComprarInventToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); // statusStrip1.SuspendLayout(); Barra_menu.SuspendLayout(); SuspendLayout(); #endregion // // Pedidos_Clientes // Pedidos_Clientes.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Pedidos_clientes; Pedidos_Clientes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; Pedidos_Clientes.Click += new System.EventHandler(Historial_PedidosStripMenuItem_Click); Pedidos_Clientes.Location = new System.Drawing.Point(20, 205); Pedidos_Clientes.Name = "Pedidos_Clientes"; Pedidos_Clientes.Size = new System.Drawing.Size(75, 75); Pedidos_Clientes.Enabled = false; // // Pedidos_Proveedores // Pedidos_Proveedores.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Pedidos_proveedor; Pedidos_Proveedores.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; Pedidos_Proveedores.Click += new System.EventHandler(Historial_PedidosProveedoresStripMenuItem_Click); Pedidos_Proveedores.Location = new System.Drawing.Point(20, 285); Pedidos_Proveedores.Name = "Pedidos_Proveedores"; Pedidos_Proveedores.Size = new System.Drawing.Size(75, 75); Pedidos_Proveedores.Enabled = false; // // Capturar_Imagenes // Capturar_Imagenes.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Pictures_Folder; Capturar_Imagenes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; Capturar_Imagenes.Click += new System.EventHandler(Captura_FotoToolStripMenuItem_Click); Capturar_Imagenes.Location = new System.Drawing.Point(20, 45); Capturar_Imagenes.Name = "Capturar_Imagenes"; Capturar_Imagenes.Size = new System.Drawing.Size(75, 75); Capturar_Imagenes.Enabled = false; // // Codigo_Barra // Codigo_Barra.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Boton_Codigobarra_copia; Codigo_Barra.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; Codigo_Barra.Click += new System.EventHandler(Codigo_BarraToolStripMenuItem_Click); Codigo_Barra.Location = new System.Drawing.Point(20, 125); Codigo_Barra.Name = "Codigo_Barra"; Codigo_Barra.Size = new System.Drawing.Size(75, 75); Codigo_Barra.Enabled = false; // // pic_Logo // pic_Logo.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Logo_Shajobe; pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; pic_Logo.Location = new System.Drawing.Point(650, 45); pic_Logo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)))); pic_Logo.Name = "pic_Logo"; pic_Logo.Size = new System.Drawing.Size(175, 75); pic_Logo.TabIndex = 33; pic_Logo.TabStop = false; // // statusStrip1 // statusStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(186)))), ((int)(((byte)(82))))); statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { tool_Label_Usuario, tool_label_Hora, tool_label_Fecha}); statusStrip1.Location = new System.Drawing.Point(0, 408); statusStrip1.Name = "statusStrip1"; statusStrip1.Size = new System.Drawing.Size(848, 22); statusStrip1.TabIndex = 1; statusStrip1.Text = "statusStrip1"; // // Barra_menu // Barra_menu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(186)))), ((int)(((byte)(82))))); Barra_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { Bttn_Cliente, toolStripC, bttn_Proveedores, toolStripP, bttn_split_Reportes, toolStripR, bttn_split_Inventarios, toolStripI, bttn_split_Financiero, toolStripF, bttn_split_Mantenimiento, toolStripM, bttn_split_Seguridad, toolStripS, bttn_Cerrarsesion}); Barra_menu.Location = new System.Drawing.Point(0, 0); Barra_menu.Name = "Barra_menu"; Barra_menu.Size = new System.Drawing.Size(848, 25); Barra_menu.TabIndex = 2; Barra_menu.Text = "Barra_menu"; // // toolStripC // toolStripC.Name = "toolStripC"; toolStripC.Size = new System.Drawing.Size(6, 25); // // toolStripP // toolStripP.Name = "toolStripP"; toolStripP.Size = new System.Drawing.Size(6, 25); // // toolStripR // toolStripR.Name = "toolStripR"; toolStripR.Size = new System.Drawing.Size(6, 25); // // toolStripI // toolStripI.Name = "toolStripI"; toolStripI.Size = new System.Drawing.Size(6, 25); // // toolStripF // toolStripF.Name = "toolStripF"; toolStripF.Size = new System.Drawing.Size(6, 25); // // toolStripM // toolStripM.Name = "toolStripM"; toolStripM.Size = new System.Drawing.Size(6, 25); // // toolStripS // toolStripS.Name = "toolStripS"; toolStripS.Size = new System.Drawing.Size(6, 25); // // Bttn_Cliente // Bttn_Cliente.Image = global::Sistema_Shajobe.Properties.Resources.Clientes; Bttn_Cliente.ImageTransparentColor = System.Drawing.Color.Magenta; Bttn_Cliente.Name = "Bttn_Cliente"; Bttn_Cliente.Size = new System.Drawing.Size(69, 22); Bttn_Cliente.Text = "&Clientes"; Bttn_Cliente.Enabled = false; Bttn_Cliente.Click += new System.EventHandler(ClienteToolStripMenuItem_Click); // // bttn_Proveedores // bttn_Proveedores.Image = global::Sistema_Shajobe.Properties.Resources.Proveedores; bttn_Proveedores.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_Proveedores.Name = "bttn_Proveedores"; bttn_Proveedores.Size = new System.Drawing.Size(92, 22); bttn_Proveedores.Text = "&Proveedores"; bttn_Proveedores.Enabled = false; bttn_Proveedores.Click += new System.EventHandler(ProveedorToolStripMenuItem_Click); // // bttn_split_Reportes // this.bttn_split_Reportes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.bttn_split_Reportes.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem1, this.financieroToolStripMenuItem, this.administrativoToolStripMenuItem, this.producciónToolStripMenuItem1}); this.bttn_split_Reportes.Image = global::Sistema_Shajobe.Properties.Resources.Financiero; this.bttn_split_Reportes.ImageTransparentColor = System.Drawing.Color.Magenta; this.bttn_split_Reportes.Name = "bttn_split_Reportes"; this.bttn_split_Reportes.Size = new System.Drawing.Size(69, 22); this.bttn_split_Reportes.Enabled = false; this.bttn_split_Reportes.Text = "&Reportes"; // // toolStripMenuItem1 // this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.clientesToolStripMenuItem, this.proveedoresToolStripMenuItem}); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Listas_de_reportes; this.toolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.toolStripMenuItem1.Text = "Listas"; // // clientesToolStripMenuItem // this.clientesToolStripMenuItem.Name = "clientesToolStripMenuItem"; this.clientesToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Clientes; this.clientesToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.clientesToolStripMenuItem.Text = "&Clientes"; this.clientesToolStripMenuItem.Click += new System.EventHandler(ClienteReporteToolStripMenuItem_Click); // // proveedoresToolStripMenuItem // this.proveedoresToolStripMenuItem.Name = "proveedoresToolStripMenuItem"; this.proveedoresToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Proveedores; this.proveedoresToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.proveedoresToolStripMenuItem.Text = "&Proveedores"; this.proveedoresToolStripMenuItem.Click += new System.EventHandler(ProveedorReporteToolStripMenuItem_Click); // // financieroToolStripMenuItem // this.financieroToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.promedioDeVentasToolStripMenuItem, this.consumoDelClienteToolStripMenuItem, this.gananciasToolStripMenuItem, this.deudoresToolStripMenuItem, this.muestrasToolStripMenuItem, this.gastosIndirectosToolStripMenuItem, this.cortesDeCajaToolStripMenuItem, this.ventasDeCadaProductoToolStripMenuItem, //this.DeudaaClientesToolStripMenuItem, this.HistorialDeAbonosClientesToolStripMenuItem, this.DeudaaProveedoresToolStripMenuItem, this.HistorialDeAbonosProveedoresToolStripMenuItem}); this.financieroToolStripMenuItem.Name = "financieroToolStripMenuItem"; this.financieroToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Financiero; this.financieroToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.financieroToolStripMenuItem.Text = "Financiero"; // // promedioDeVentasToolStripMenuItem // this.promedioDeVentasToolStripMenuItem.Name = "promedioDeVentasToolStripMenuItem"; this.promedioDeVentasToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.promedioDeVentasToolStripMenuItem.Text = "&Promedio de Ventas"; this.promedioDeVentasToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Compra; this.promedioDeVentasToolStripMenuItem.Click+=new EventHandler(promedioDeVentasToolStripMenuItem_Click); // // consumoDelClienteToolStripMenuItem // this.consumoDelClienteToolStripMenuItem.Name = "consumoDelClienteToolStripMenuItem"; this.consumoDelClienteToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.consumoDelClienteToolStripMenuItem.Text = "&Consumo del cliente"; this.consumoDelClienteToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Clientes; this.consumoDelClienteToolStripMenuItem.Click+=new EventHandler(consumoDelClienteToolStripMenuItem_Click); // // gananciasToolStripMenuItem // this.gananciasToolStripMenuItem.Name = "gananciasToolStripMenuItem"; this.gananciasToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.gananciasToolStripMenuItem.Text = "&Ganancias"; this.gananciasToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Dinero; this.gananciasToolStripMenuItem.Click+=new EventHandler(gananciasToolStripMenuItem_Click); // // DeudaaProveedoresToolStripMenuItem // DeudaaClientesToolStripMenuItem this.DeudaaProveedoresToolStripMenuItem.Name = "DeudaaProveedoresToolStripMenuItem"; this.DeudaaProveedoresToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.DeudaaProveedoresToolStripMenuItem.Text = "&Deuda a Proveedores"; this.DeudaaProveedoresToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Proveedores; this.DeudaaProveedoresToolStripMenuItem.Click+=new EventHandler(DeudaaProveedoresToolStripMenuItem_Click); // // HistorialDeAbonosClientesToolStripMenuItem // this.HistorialDeAbonosClientesToolStripMenuItem.Name = "HistorialDeAbonosClientesToolStripMenuItem"; this.HistorialDeAbonosClientesToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.HistorialDeAbonosClientesToolStripMenuItem.Text = "&Historial de abonos Clientes"; this.HistorialDeAbonosClientesToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Clientes; this.HistorialDeAbonosClientesToolStripMenuItem.Click+=new EventHandler(HistorialDeAbonosClientesToolStripMenuItem_Click); // // HistorialDeAbonosProveedoresToolStripMenuItem // this.HistorialDeAbonosProveedoresToolStripMenuItem.Name = "HistorialDeAbonosProveedoresToolStripMenuItem"; this.HistorialDeAbonosProveedoresToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.HistorialDeAbonosProveedoresToolStripMenuItem.Text = "&Historial de abonos Proveedores"; this.HistorialDeAbonosProveedoresToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Proveedores; this.HistorialDeAbonosProveedoresToolStripMenuItem.Click+=new EventHandler(HistorialDeAbonosProveedoresToolStripMenuItem_Click); // // deudoresToolStripMenuItem // this.deudoresToolStripMenuItem.Name = "deudoresToolStripMenuItem"; this.deudoresToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.deudoresToolStripMenuItem.Text = "&Deudores"; this.deudoresToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Clientes; this.deudoresToolStripMenuItem.Click+=new EventHandler(deudoresToolStripMenuItem_Click); // // muestrasToolStripMenuItem // this.muestrasToolStripMenuItem.Name = "muestrasToolStripMenuItem"; this.muestrasToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.muestrasToolStripMenuItem.Text = "&Muestras"; this.muestrasToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Producto; this.muestrasToolStripMenuItem.Click += new EventHandler(MuestraToolStripMenuItem_Click); // // gastosIndirectosToolStripMenuItem // this.gastosIndirectosToolStripMenuItem.Name = "gastosIndirectosToolStripMenuItem"; this.gastosIndirectosToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.gastosIndirectosToolStripMenuItem.Text = "&Gastos de Inventarios"; this.gastosIndirectosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Retirar; this.gastosIndirectosToolStripMenuItem.Click += new EventHandler(GastosInventarioToolStripMenuItem_Click); // // cortesDeCajaToolStripMenuItem // this.cortesDeCajaToolStripMenuItem.Name = "cortesDeCajaToolStripMenuItem"; this.cortesDeCajaToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.cortesDeCajaToolStripMenuItem.Text = "&Cortes de caja"; this.cortesDeCajaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Caja; this.cortesDeCajaToolStripMenuItem.Click+=new EventHandler(cortesDeCajaToolStripMenuItem_Click); // // ventasDeCadaProductoToolStripMenuItem // this.ventasDeCadaProductoToolStripMenuItem.Name = "ventasDeCadaProductoToolStripMenuItem"; this.ventasDeCadaProductoToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.ventasDeCadaProductoToolStripMenuItem.Text = "&Ventas de cada producto"; this.ventasDeCadaProductoToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Producto; this.ventasDeCadaProductoToolStripMenuItem.Click+=new EventHandler(ventasDeCadaProductoToolStripMenuItem_Click); // // administrativoToolStripMenuItem // this.administrativoToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.pedidosPendientesToolStripMenuItem, this.historialDePedidosToolStripMenuItem, this.ComprarInventToolStripMenuItem}); this.administrativoToolStripMenuItem.Name = "administrativoToolStripMenuItem"; this.administrativoToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Administrativo; this.administrativoToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.administrativoToolStripMenuItem.Text = "Administrativo"; // // pedidosPendientesToolStripMenuItem // this.pedidosPendientesToolStripMenuItem.Name = "pedidosPendientesToolStripMenuItem"; this.pedidosPendientesToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.pedidosPendientesToolStripMenuItem.Text = "&Pedidos pendientes"; this.pedidosPendientesToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Pedidos; this.pedidosPendientesToolStripMenuItem.Click += new EventHandler(ReportePedidos_PendientesToolStripMenuItem_Click); // // historialDePedidosToolStripMenuItem // this.historialDePedidosToolStripMenuItem.Name = "historialDePedidosToolStripMenuItem"; this.historialDePedidosToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.historialDePedidosToolStripMenuItem.Text = "&Historial de pedidos"; this.historialDePedidosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Pedidos_clientes; this.historialDePedidosToolStripMenuItem.Click+=new EventHandler(historialDePedidosToolStripMenuItem_Click); // // producciónToolStripMenuItem // this.producciónToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.producciónDeProductoToolStripMenuItem1, this.HistorialDeProduccionToolStripMenuItem1}); this.producciónToolStripMenuItem1.Name = "producciónToolStripMenuItem"; this.producciónToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.producciónToolStripMenuItem1.Text = "Producción"; this.producciónToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources._3444158; // // producciónDeProductoToolStripMenuItem // this.producciónDeProductoToolStripMenuItem1.Name = "producciónDeProductoToolStripMenuItem"; this.producciónDeProductoToolStripMenuItem1.Size = new System.Drawing.Size(203, 22); this.producciónDeProductoToolStripMenuItem1.Text = "Producción de producto"; this.producciónDeProductoToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.produccion; this.producciónDeProductoToolStripMenuItem1.Click+=new EventHandler(producciónDeProductoToolStripMenuItem1_Click); // // HistorialDeProduccionToolStripMenuItem1 // this.HistorialDeProduccionToolStripMenuItem1.Name = "HistorialDeProduccionToolStripMenuItem1"; this.HistorialDeProduccionToolStripMenuItem1.Size = new System.Drawing.Size(203, 22); this.HistorialDeProduccionToolStripMenuItem1.Text = "Historial de producción"; this.HistorialDeProduccionToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Apps_iCal_Metro_icon; this.HistorialDeProduccionToolStripMenuItem1.Click+=new EventHandler(HistorialDeProduccionToolStripMenuItem1_Click); // // ComprarInventToolStripMenuItem // this.ComprarInventToolStripMenuItem.Name = "ComprarInventToolStripMenuItem"; this.ComprarInventToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.ComprarInventToolStripMenuItem.Text = "&Información de inventario"; this.ComprarInventToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Dinero; this.ComprarInventToolStripMenuItem.Click += new EventHandler(OpcionInventariosToolStripMenuItem_Click); // // bttn_split_Inventarios // bttn_split_Inventarios.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { inventariosToolStripMenuItem, producciónToolStripMenuItem, ordenDePeladoToolStripMenuItem}); bttn_split_Inventarios.Image = global::Sistema_Shajobe.Properties.Resources.Inventario; bttn_split_Inventarios.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_split_Inventarios.Name = "bttn_split_Inventarios"; bttn_split_Inventarios.Size = new System.Drawing.Size(97, 22); bttn_split_Inventarios.Text = "&Inventarios"; bttn_split_Inventarios.Enabled = false; // // bttn_split_Financiero // bttn_split_Financiero.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { cajaToolStripMenuItem, ventasPedidosToolStripMenuItem, AbonosToolStripMenuItem,Abonos_ProveedorToolStripMenuItem,PedidosToolStripMenuItem}); bttn_split_Financiero.Image = global::Sistema_Shajobe.Properties.Resources.Dinero; bttn_split_Financiero.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_split_Financiero.Name = "bttn_split_Financiero"; bttn_split_Financiero.Size = new System.Drawing.Size(94, 22); bttn_split_Financiero.Text = "&Financiero"; bttn_split_Financiero.Enabled = false; // // bttn_split_Mantenimiento // bttn_split_Mantenimiento.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { tipoDePiezasToolStripMenuItem, TipodeMateriaPrimaToolStripMenuItem, tool_Separador_Tipos, productosToolStripMenuItem, materiaPrimaToolStripMenuItem, tool_Separator, almacénToolStripMenuItem1, toolStripTU, Tipo_UsuarioToolStripMenuItem1}); bttn_split_Mantenimiento.Image = global::Sistema_Shajobe.Properties.Resources.icon_47203_640; bttn_split_Mantenimiento.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_split_Mantenimiento.Name = "bttn_split_Mantenimiento"; bttn_split_Mantenimiento.Size = new System.Drawing.Size(121, 22); bttn_split_Mantenimiento.Text = "&Mantenimiento"; bttn_split_Mantenimiento.Enabled = false; // // bttn_split_Seguridad // bttn_split_Seguridad.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { UsuarioToolStripMenuItem1, RespaldoToolStripMenuItem1,InformacionToolStripMenuItem1}); bttn_split_Seguridad.Image = global::Sistema_Shajobe.Properties.Resources.Vista__180_; bttn_split_Seguridad.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_split_Seguridad.Name = "bttn_split_Seguridad"; bttn_split_Seguridad.Size = new System.Drawing.Size(92, 22); bttn_split_Seguridad.Text = "&Seguridad"; bttn_split_Seguridad.Enabled = false; // // bttn_Cerrarsesion // bttn_Cerrarsesion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttn_Cerrarsesion.Font = new System.Drawing.Font("Segoe UI", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); bttn_Cerrarsesion.Image = ((System.Drawing.Image)(resources.GetObject("bttn_Cerrarsesion.Image"))); bttn_Cerrarsesion.ImageTransparentColor = System.Drawing.Color.Magenta; bttn_Cerrarsesion.Name = "bttn_Cerrarsesion"; bttn_Cerrarsesion.Size = new System.Drawing.Size(83, 22); bttn_Cerrarsesion.Text = "Cerrar sesión"; bttn_Cerrarsesion.Click += new System.EventHandler(Menu_Principal_FormClosing); // // tool_Label_Usuario // tool_Label_Usuario.Image = global::Sistema_Shajobe.Properties.Resources.Usuario; tool_Label_Usuario.Name = "tool_Label_Usuario"; tool_Label_Usuario.Size = new System.Drawing.Size(66, 17); tool_Label_Usuario.Text = "Usuario:"; // // tool_label_Hora // tool_label_Hora.Image = global::Sistema_Shajobe.Properties.Resources.kalarm; tool_label_Hora.Name = "tool_label_Hora"; tool_label_Hora.Size = new System.Drawing.Size(52, 17); tool_label_Hora.Text = "Hora:"; // // tool_label_Fecha // tool_label_Fecha.Image = global::Sistema_Shajobe.Properties.Resources.cal; tool_label_Fecha.Name = "tool_label_Fecha"; tool_label_Fecha.Size = new System.Drawing.Size(57, 17); tool_label_Fecha.Text = "Fecha:"; // // inventariosToolStripMenuItem // inventariosToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { inventariosMateriaPrimaToolStripMenuItem, inventariosProductoToolStripMenuItem}); inventariosToolStripMenuItem.Name = "inventariosToolStripMenuItem"; inventariosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Inventario; inventariosToolStripMenuItem.Size = new System.Drawing.Size(162, 22); inventariosToolStripMenuItem.Text = "Inventarios"; // // inventariosMateriaPrimaToolStripMenuItem // inventariosMateriaPrimaToolStripMenuItem.Name = "inventariosMateriaPrimaToolStripMenuItem"; inventariosMateriaPrimaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima; inventariosMateriaPrimaToolStripMenuItem.Size = new System.Drawing.Size(209, 22); inventariosMateriaPrimaToolStripMenuItem.Text = "Inventarios materia prima"; inventariosMateriaPrimaToolStripMenuItem.Click += new System.EventHandler(inventariosMateriaPrimaToolStripMenuItem_Click); // // inventariosProductoToolStripMenuItem // inventariosProductoToolStripMenuItem.Name = "inventariosProductoToolStripMenuItem"; inventariosProductoToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Producto; inventariosProductoToolStripMenuItem.Size = new System.Drawing.Size(209, 22); inventariosProductoToolStripMenuItem.Text = "Inventarios producto"; inventariosProductoToolStripMenuItem.Click += new System.EventHandler(inventariosProductoToolStripMenuItem_Click); // // producciónToolStripMenuItem // producciónToolStripMenuItem.Name = "producciónToolStripMenuItem"; producciónToolStripMenuItem.Size = new System.Drawing.Size(162, 22); producciónToolStripMenuItem.Text = "Producción"; producciónToolStripMenuItem.Click += new System.EventHandler(producciónToolStripMenuItem_Click); producciónToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.produccion; // // ordenDePeladoToolStripMenuItem // ordenDePeladoToolStripMenuItem.Name = "ordenDePeladoToolStripMenuItem"; ordenDePeladoToolStripMenuItem.Size = new System.Drawing.Size(162, 22); ordenDePeladoToolStripMenuItem.Text = "Orden de pelado"; ordenDePeladoToolStripMenuItem.Click += new System.EventHandler(ordenDePeladoToolStripMenuItem_Click); ordenDePeladoToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Orden_de_pelado; // // UsuarioToolStripMenuItem1 // UsuarioToolStripMenuItem1.Name = "UsuarioToolStripMenuItem1"; UsuarioToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Usuario; UsuarioToolStripMenuItem1.Size = new System.Drawing.Size(156, 22); UsuarioToolStripMenuItem1.Text = "Usuario"; UsuarioToolStripMenuItem1.Click += new System.EventHandler(UsuarioToolStripMenuItem_Click); // // RespaldoToolStripMenuItem1 // RespaldoToolStripMenuItem1.Name = "RespaldoToolStripMenuItem1"; RespaldoToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Copia; RespaldoToolStripMenuItem1.Size = new System.Drawing.Size(156, 22); RespaldoToolStripMenuItem1.Text = "Copia de seguridad y Restauración"; RespaldoToolStripMenuItem1.Click += new System.EventHandler(RespaldoToolStripMenuItem_Click); // // InformacionToolStripMenuItem1 // InformacionToolStripMenuItem1.Name = "InformacionToolStripMenuItem1"; InformacionToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Vista__180_; InformacionToolStripMenuItem1.Size = new System.Drawing.Size(156, 22); InformacionToolStripMenuItem1.Text = "Informacion del sistema"; InformacionToolStripMenuItem1.Click += new System.EventHandler(InformacionToolStripMenuItem1_Click); // // cajaToolStripMenuItem // cajaToolStripMenuItem.Name = "cajaToolStripMenuItem"; cajaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Caja; cajaToolStripMenuItem.Size = new System.Drawing.Size(156, 22); cajaToolStripMenuItem.Text = "Caja"; cajaToolStripMenuItem.Click += new System.EventHandler(CajaToolStripMenuItem_Click); // // ventasPedidosToolStripMenuItem // ventasPedidosToolStripMenuItem.Name = "ventasPedidosToolStripMenuItem"; ventasPedidosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Compra; ventasPedidosToolStripMenuItem.Size = new System.Drawing.Size(156, 22); ventasPedidosToolStripMenuItem.Text = "Ventas-Pedidos"; ventasPedidosToolStripMenuItem.Click += new System.EventHandler(VentasToolStripMenuItem_Click); // // AbonosToolStripMenuItem // AbonosToolStripMenuItem.Name = "AbonosToolStripMenuItem"; AbonosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Dinero; AbonosToolStripMenuItem.Size = new System.Drawing.Size(156, 22); AbonosToolStripMenuItem.Text = "Abonos Clientes"; AbonosToolStripMenuItem.Click += new System.EventHandler(AbonosToolStripMenuItem_Click); // // Abonos_ProveedorToolStripMenuItem // Abonos_ProveedorToolStripMenuItem.Name = "Abonos_ProveedorToolStripMenuItem"; Abonos_ProveedorToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Dinero; Abonos_ProveedorToolStripMenuItem.Size = new System.Drawing.Size(156, 22); Abonos_ProveedorToolStripMenuItem.Text = "Abonos Proveedores"; Abonos_ProveedorToolStripMenuItem.Click += new System.EventHandler(Abonos_ProveedorToolStripMenuItem_Click); // // PedidosToolStripMenuItem // PedidosToolStripMenuItem.Name = "PedidosToolStripMenuItem"; PedidosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Pedidos; PedidosToolStripMenuItem.Size = new System.Drawing.Size(156, 22); PedidosToolStripMenuItem.Text = "Pedido de materia prima"; PedidosToolStripMenuItem.Click += new System.EventHandler(PedidosToolStripMenuItem_Click); // // tipoDePiezasToolStripMenuItem // tipoDePiezasToolStripMenuItem.Name = "tipoDePiezasToolStripMenuItem"; tipoDePiezasToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima; tipoDePiezasToolStripMenuItem.Size = new System.Drawing.Size(171, 22); tipoDePiezasToolStripMenuItem.Text = "Tipo de piezas"; tipoDePiezasToolStripMenuItem.Click += new System.EventHandler(tipoDePiezasToolStripMenuItem_Click); // // TipodeMateriaPrimaToolStripMenuItem // TipodeMateriaPrimaToolStripMenuItem.Name = "TipodeMateriaPrimaToolStripMenuItem"; TipodeMateriaPrimaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima; TipodeMateriaPrimaToolStripMenuItem.Size = new System.Drawing.Size(171, 22); TipodeMateriaPrimaToolStripMenuItem.Text = "Tipo de materias primas"; TipodeMateriaPrimaToolStripMenuItem.Click += new System.EventHandler(TipodeMateriaPrimaToolStripMenuItem_Click); // // productosToolStripMenuItem // productosToolStripMenuItem.Name = "productosToolStripMenuItem"; productosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Producto; productosToolStripMenuItem.Size = new System.Drawing.Size(171, 22); productosToolStripMenuItem.Text = "Productos"; productosToolStripMenuItem.Click += new System.EventHandler(productosToolStripMenuItem_Click); // // almacénToolStripMenuItem1 // almacénToolStripMenuItem1.Name = "almacénToolStripMenuItem1"; almacénToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Almacen; almacénToolStripMenuItem1.Size = new System.Drawing.Size(171, 22); almacénToolStripMenuItem1.Text = "Almacén"; almacénToolStripMenuItem1.Click += new System.EventHandler(almacénToolStripMenuItem1_Click); // // Tipo_UsuarioToolStripMenuItem1 // Tipo_UsuarioToolStripMenuItem1.Name = "Tipo_UsuarioToolStripMenuItem1"; Tipo_UsuarioToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Usuario; Tipo_UsuarioToolStripMenuItem1.Size = new System.Drawing.Size(171, 22); Tipo_UsuarioToolStripMenuItem1.Text = "Tipo de Usuarios"; Tipo_UsuarioToolStripMenuItem1.Click += new System.EventHandler(Tipo_UsuarioToolStripMenuItem_Click); // // materiaPrimaToolStripMenuItem // materiaPrimaToolStripMenuItem.Name = "materiaPrimaToolStripMenuItem"; materiaPrimaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima; materiaPrimaToolStripMenuItem.Size = new System.Drawing.Size(171, 22); materiaPrimaToolStripMenuItem.Text = "Materia prima"; materiaPrimaToolStripMenuItem.Click += new System.EventHandler(materiaPrimaToolStripMenuItem_Click); // // tool_Separador_Tipos // tool_Separador_Tipos.Name = "tool_Separador_Tipos"; tool_Separador_Tipos.Size = new System.Drawing.Size(168, 6); // // tool_Separator // tool_Separator.Name = "tool_Separator"; tool_Separator.Size = new System.Drawing.Size(168, 6); // // Menu_principal // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196))))); ClientSize = new System.Drawing.Size(848, 650); Controls.Add(Barra_menu); Controls.Add(statusStrip1); Controls.Add(Capturar_Imagenes); Controls.Add(Codigo_Barra); Controls.Add(Pedidos_Clientes); Controls.Add(Pedidos_Proveedores); Controls.Add(pic_Logo); ControlBox = false; MaximumSize = new System.Drawing.Size(886, 650); MinimumSize = new System.Drawing.Size(886, 650); MaximizeBox = false; FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; Icon = global::Sistema_Shajobe.Properties.Resources.Shajobe_ICO; Name = "Menu_principal"; Text = "Sistema Shajobe"; statusStrip1.ResumeLayout(false); statusStrip1.PerformLayout(); Barra_menu.ResumeLayout(false); Barra_menu.PerformLayout(); ResumeLayout(false); PerformLayout(); }