/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.c1MainMenu1 = new C1.Win.C1Command.C1MainMenu(); this.c1CommandHolder1 = new C1.Win.C1Command.C1CommandHolder(); this.c1CommandMenu1 = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink2 = new C1.Win.C1Command.C1CommandLink(); this.c1Command1 = new C1.Win.C1Command.C1Command(); this.c1CommandLink3 = new C1.Win.C1Command.C1CommandLink(); this.c1Command2 = new C1.Win.C1Command.C1Command(); this.c1CommandLink4 = new C1.Win.C1Command.C1CommandLink(); this.c1Command3 = new C1.Win.C1Command.C1Command(); this.c1CommandLink5 = new C1.Win.C1Command.C1CommandLink(); this.c1Command4 = new C1.Win.C1Command.C1Command(); this.c1CommandMenu2 = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink7 = new C1.Win.C1Command.C1CommandLink(); this.c1Command5 = new C1.Win.C1Command.C1Command(); this.c1CommandMenu3 = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink1 = new C1.Win.C1Command.C1CommandLink(); this.c1CommandLink6 = new C1.Win.C1Command.C1CommandLink(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).BeginInit(); this.SuspendLayout(); // // c1MainMenu1 // this.c1MainMenu1.CommandHolder = this.c1CommandHolder1; this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink1); this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink6); this.c1MainMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.c1MainMenu1.Name = "c1MainMenu1"; this.c1MainMenu1.Size = new System.Drawing.Size(360, 22); this.c1MainMenu1.Text = "c1MainMenu1"; // // c1CommandHolder1 // this.c1CommandHolder1.Commands.Add(this.c1CommandMenu1); this.c1CommandHolder1.Commands.Add(this.c1Command1); this.c1CommandHolder1.Commands.Add(this.c1Command2); this.c1CommandHolder1.Commands.Add(this.c1Command3); this.c1CommandHolder1.Commands.Add(this.c1Command4); this.c1CommandHolder1.Commands.Add(this.c1CommandMenu2); this.c1CommandHolder1.Commands.Add(this.c1Command5); this.c1CommandHolder1.Commands.Add(this.c1CommandMenu3); this.c1CommandHolder1.Owner = this; // // c1CommandMenu1 // this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink2); this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink3); this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink4); this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink5); this.c1CommandMenu1.Name = "c1CommandMenu1"; this.c1CommandMenu1.Text = "&File"; // // c1CommandLink2 // this.c1CommandLink2.Command = this.c1Command1; // // c1Command1 // this.c1Command1.Name = "c1Command1"; this.c1Command1.Text = "&New"; // // c1CommandLink3 // this.c1CommandLink3.Command = this.c1Command2; // // c1Command2 // this.c1Command2.Name = "c1Command2"; this.c1Command2.Text = "&Open"; // // c1CommandLink4 // this.c1CommandLink4.Command = this.c1Command3; // // c1Command3 // this.c1Command3.Name = "c1Command3"; this.c1Command3.Text = "&Close"; // // c1CommandLink5 // this.c1CommandLink5.Command = this.c1Command4; this.c1CommandLink5.Delimiter = true; // // c1Command4 // this.c1Command4.Name = "c1Command4"; this.c1Command4.Text = "E&xit"; this.c1Command4.Click += new C1.Win.C1Command.ClickEventHandler(this.c1Command4_Click); // // c1CommandMenu2 // this.c1CommandMenu2.CommandLinks.Add(this.c1CommandLink7); this.c1CommandMenu2.Name = "c1CommandMenu2"; this.c1CommandMenu2.Text = "&Window"; // // c1CommandLink7 // this.c1CommandLink7.Command = this.c1Command5; // // c1Command5 // this.c1Command5.Name = "c1Command5"; this.c1Command5.Text = "&New child window"; this.c1Command5.CommandStateQuery += new C1.Win.C1Command.CommandStateQueryEventHandler(this.c1Command5_CommandStateQuery); this.c1Command5.Click += new C1.Win.C1Command.ClickEventHandler(this.c1Command5_Click); // // c1CommandMenu3 // this.c1CommandMenu3.Name = "c1CommandMenu3"; this.c1CommandMenu3.Text = "&Window"; // // c1CommandLink1 // this.c1CommandLink1.Command = this.c1CommandMenu1; // // c1CommandLink6 // this.c1CommandLink6.Command = this.c1CommandMenu2; this.c1CommandLink6.MergeType = System.Windows.Forms.MenuMerge.MergeItems; // // label1 // this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Location = new System.Drawing.Point(0, 22); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(360, 141); this.label1.TabIndex = 1; this.label1.Text = "Click Window | New Child Window to create a non-MDI child form. That form\'s menu " + "will be merged with the current menu. "; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(360, 163); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1, this.c1MainMenu1 }); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.c1MainMenu1 = new C1.Win.C1Command.C1MainMenu(); this.c1CommandHolder1 = new C1.Win.C1Command.C1CommandHolder(); this.cmdFile = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink2 = new C1.Win.C1Command.C1CommandLink(); this.cmdFileNew = new C1.Win.C1Command.C1Command(); this.c1CommandLink4 = new C1.Win.C1Command.C1CommandLink(); this.cmdExit = new C1.Win.C1Command.C1Command(); this.cmdWindow = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink6 = new C1.Win.C1Command.C1CommandLink(); this.c1CommandMdiList1 = new C1.Win.C1Command.C1CommandMdiList(); this.c1CommandLink1 = new C1.Win.C1Command.C1CommandLink(); this.c1CommandLink5 = new C1.Win.C1Command.C1CommandLink(); ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).BeginInit(); this.SuspendLayout(); // // c1MainMenu1 // this.c1MainMenu1.CommandHolder = this.c1CommandHolder1; this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink1); this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink5); this.c1MainMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.c1MainMenu1.Name = "c1MainMenu1"; this.c1MainMenu1.Size = new System.Drawing.Size(544, 21); this.c1MainMenu1.Text = "c1MainMenu1"; // // c1CommandHolder1 // this.c1CommandHolder1.Commands.Add(this.cmdFile); this.c1CommandHolder1.Commands.Add(this.cmdFileNew); this.c1CommandHolder1.Commands.Add(this.cmdExit); this.c1CommandHolder1.Commands.Add(this.cmdWindow); this.c1CommandHolder1.Commands.Add(this.c1CommandMdiList1); this.c1CommandHolder1.Owner = this; this.c1CommandHolder1.SelectMdiChildFormClassName = "SelectMdiChildForm.SelectMdiChildForm"; // // cmdFile // this.cmdFile.CommandLinks.Add(this.c1CommandLink2); this.cmdFile.CommandLinks.Add(this.c1CommandLink4); this.cmdFile.Name = "cmdFile"; this.cmdFile.Text = "&File"; // // c1CommandLink2 // this.c1CommandLink2.Command = this.cmdFileNew; // // cmdFileNew // this.cmdFileNew.Name = "cmdFileNew"; this.cmdFileNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN; this.cmdFileNew.Text = "&New"; this.cmdFileNew.Click += new C1.Win.C1Command.ClickEventHandler(this.cmdFileNew_Click); // // c1CommandLink4 // this.c1CommandLink4.Command = this.cmdExit; this.c1CommandLink4.Delimiter = true; this.c1CommandLink4.MergeOrder = 2; // // cmdExit // this.cmdExit.Name = "cmdExit"; this.cmdExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.cmdExit.Text = "E&xit"; this.cmdExit.Click += new C1.Win.C1Command.ClickEventHandler(this.cmdExit_Click); // // cmdWindow // this.cmdWindow.CommandLinks.Add(this.c1CommandLink6); this.cmdWindow.Name = "cmdWindow"; this.cmdWindow.Text = "&Window"; // // c1CommandLink6 // this.c1CommandLink6.Command = this.c1CommandMdiList1; // // c1CommandMdiList1 // this.c1CommandMdiList1.Name = "c1CommandMdiList1"; // // c1CommandLink1 // this.c1CommandLink1.Command = this.cmdFile; this.c1CommandLink1.MergeType = System.Windows.Forms.MenuMerge.MergeItems; // // c1CommandLink5 // this.c1CommandLink5.Command = this.cmdWindow; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(544, 411); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.c1MainMenu1 }); this.IsMdiContainer = true; this.Name = "Form1"; this.Text = "SelectMdiChildForm Sample"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.c1MainMenu1 = new C1.Win.C1Command.C1MainMenu(); this.c1CommandHolder1 = new C1.Win.C1Command.C1CommandHolder(); this.cmdFile = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink2 = new C1.Win.C1Command.C1CommandLink(); this.cmdClose = new C1.Win.C1Command.C1Command(); this.c1CommandLink1 = new C1.Win.C1Command.C1CommandLink(); ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).BeginInit(); this.SuspendLayout(); // // c1MainMenu1 // this.c1MainMenu1.CommandHolder = this.c1CommandHolder1; this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink1); this.c1MainMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.c1MainMenu1.Name = "c1MainMenu1"; this.c1MainMenu1.Size = new System.Drawing.Size(292, 21); this.c1MainMenu1.Text = "c1MainMenu1"; // // c1CommandHolder1 // this.c1CommandHolder1.Commands.Add(this.cmdFile); this.c1CommandHolder1.Commands.Add(this.cmdClose); this.c1CommandHolder1.Owner = this; // // cmdFile // this.cmdFile.CommandLinks.Add(this.c1CommandLink2); this.cmdFile.Name = "cmdFile"; this.cmdFile.Text = "&File"; // // c1CommandLink2 // this.c1CommandLink2.Command = this.cmdClose; this.c1CommandLink2.MergeOrder = 1; // // cmdClose // this.cmdClose.Name = "cmdClose"; this.cmdClose.Shortcut = System.Windows.Forms.Shortcut.CtrlF4; this.cmdClose.Text = "&Close"; this.cmdClose.Click += new C1.Win.C1Command.ClickEventHandler(this.cmdClose_Click); // // c1CommandLink1 // this.c1CommandLink1.Command = this.cmdFile; this.c1CommandLink1.MergeType = System.Windows.Forms.MenuMerge.MergeItems; // // MdiChild // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 271); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.c1MainMenu1 }); this.Name = "MdiChild"; this.Text = "MdiChild"; ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.c1MainMenu1 = new C1.Win.C1Command.C1MainMenu(); this.c1CommandHolder1 = new C1.Win.C1Command.C1CommandHolder(); this.c1CommandMenu1 = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink2 = new C1.Win.C1Command.C1CommandLink(); this.c1Command1 = new C1.Win.C1Command.C1Command(); this.c1CommandLink3 = new C1.Win.C1Command.C1CommandLink(); this.c1Command2 = new C1.Win.C1Command.C1Command(); this.c1CommandLink1 = new C1.Win.C1Command.C1CommandLink(); this.c1CommandLink4 = new C1.Win.C1Command.C1CommandLink(); this.c1CommandMenu2 = new C1.Win.C1Command.C1CommandMenu(); this.c1CommandLink5 = new C1.Win.C1Command.C1CommandLink(); this.c1Command3 = new C1.Win.C1Command.C1Command(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).BeginInit(); this.SuspendLayout(); // // c1MainMenu1 // this.c1MainMenu1.CommandHolder = this.c1CommandHolder1; this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink1); this.c1MainMenu1.CommandLinks.Add(this.c1CommandLink4); this.c1MainMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.c1MainMenu1.Name = "c1MainMenu1"; this.c1MainMenu1.Size = new System.Drawing.Size(296, 22); this.c1MainMenu1.Text = "c1MainMenu1"; // // c1CommandHolder1 // this.c1CommandHolder1.Commands.Add(this.c1CommandMenu1); this.c1CommandHolder1.Commands.Add(this.c1Command1); this.c1CommandHolder1.Commands.Add(this.c1Command2); this.c1CommandHolder1.Commands.Add(this.c1CommandMenu2); this.c1CommandHolder1.Commands.Add(this.c1Command3); this.c1CommandHolder1.Owner = this; // // c1CommandMenu1 // this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink2); this.c1CommandMenu1.CommandLinks.Add(this.c1CommandLink3); this.c1CommandMenu1.Name = "c1CommandMenu1"; this.c1CommandMenu1.Text = "&Do something on Form2"; // // c1CommandLink2 // this.c1CommandLink2.Command = this.c1Command1; this.c1CommandLink2.Text = "Set foreground"; // // c1Command1 // this.c1Command1.Name = "c1Command1"; this.c1Command1.Text = "Do &1"; this.c1Command1.Click += new C1.Win.C1Command.ClickEventHandler(this.c1Command1_Click); // // c1CommandLink3 // this.c1CommandLink3.Command = this.c1Command2; this.c1CommandLink3.Text = "Set background"; // // c1Command2 // this.c1Command2.Name = "c1Command2"; this.c1Command2.Text = "Do &2"; this.c1Command2.Click += new C1.Win.C1Command.ClickEventHandler(this.c1Command2_Click); // // c1CommandLink1 // this.c1CommandLink1.Command = this.c1CommandMenu1; // // c1CommandLink4 // this.c1CommandLink4.Command = this.c1CommandMenu2; this.c1CommandLink4.MergeType = System.Windows.Forms.MenuMerge.MergeItems; // // c1CommandMenu2 // this.c1CommandMenu2.CommandLinks.Add(this.c1CommandLink5); this.c1CommandMenu2.Name = "c1CommandMenu2"; this.c1CommandMenu2.Text = "&Window"; // // c1CommandLink5 // this.c1CommandLink5.Command = this.c1Command3; // // c1Command3 // this.c1Command3.Name = "c1Command3"; this.c1Command3.Text = "Maximize Form2"; this.c1Command3.Click += new C1.Win.C1Command.ClickEventHandler(this.c1Command3_Click); // // label1 // this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Location = new System.Drawing.Point(0, 22); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(296, 221); this.label1.TabIndex = 1; this.label1.Text = "This is a non-MDI child form. Its main menu is merged into the main form\'s menu " + "when this form is created."; // // Form2 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(296, 243); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1, this.c1MainMenu1 }); this.Name = "Form2"; this.Text = "Form2"; ((System.ComponentModel.ISupportInitialize)(this.c1CommandHolder1)).EndInit(); this.ResumeLayout(false); }