Example #1
0
 private void InitializeComponent()
 {
     this.components = (IContainer) new Container();
     this.mainMenu1  = new MKDS_Course_Modifier.UI.MainMenu(this.components);
     this.menuItem1  = new MenuItem();
     this.menuItem2  = new MenuItem();
     this.SuspendLayout();
     this.mainMenu1.MenuItems.AddRange(new MenuItem[2]
     {
         this.menuItem1,
         this.menuItem2
     });
     this.menuItem1.Index      = 0;
     this.menuItem1.MergeOrder = 1;
     this.menuItem1.Text       = "Edit";
     this.menuItem2.Index      = 1;
     this.menuItem2.MergeOrder = 3;
     this.menuItem2.Text       = "Tools";
     this.AutoScaleDimensions  = new SizeF(6f, 13f);
     this.AutoScaleMode        = AutoScaleMode.Font;
     this.ClientSize           = new Size(549, 366);
     this.Menu  = (System.Windows.Forms.MainMenu) this.mainMenu1;
     this.Name  = nameof(TileEditor);
     this.Text  = nameof(TileEditor);
     this.Load += new EventHandler(this.TileEditor_Load);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components = (IContainer) new Container();
     this.mainMenu1  = new MKDS_Course_Modifier.UI.MainMenu(this.components);
     this.menuItem1  = new MenuItem();
     this.menuItem2  = new MenuItem();
     this.menuItem3  = new MenuItem();
     this.menuItem4  = new MenuItem();
     this.menuItem5  = new MenuItem();
     this.menuItem6  = new MenuItem();
     this.SuspendLayout();
     this.mainMenu1.MenuItems.AddRange(new MenuItem[4]
     {
         this.menuItem1,
         this.menuItem3,
         this.menuItem4,
         this.menuItem5
     });
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new MenuItem[2]
     {
         this.menuItem2,
         this.menuItem6
     });
     this.menuItem1.Text       = "File";
     this.menuItem2.Index      = 0;
     this.menuItem2.Text       = "New";
     this.menuItem3.Index      = 1;
     this.menuItem3.MergeOrder = 2;
     this.menuItem3.Text       = "View";
     this.menuItem4.Index      = 2;
     this.menuItem4.MdiList    = true;
     this.menuItem4.MergeOrder = 4;
     this.menuItem4.Text       = "Window";
     this.menuItem5.Index      = 3;
     this.menuItem5.MergeOrder = 5;
     this.menuItem5.Text       = "Help";
     this.menuItem6.Index      = 1;
     this.menuItem6.Text       = "Export";
     this.menuItem6.Click     += new EventHandler(this.menuItem6_Click);
     this.AutoScaleDimensions  = new SizeF(6f, 13f);
     this.AutoScaleMode        = AutoScaleMode.Font;
     this.ClientSize           = new Size(650, 426);
     this.IsMdiContainer       = true;
     this.Menu  = (System.Windows.Forms.MainMenu) this.mainMenu1;
     this.Name  = nameof(GraphicEditor);
     this.Text  = nameof(GraphicEditor);
     this.Load += new EventHandler(this.GraphicEditor_Load);
     this.ResumeLayout(false);
 }
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PaletteEditor));

            this.mainMenu1        = new MKDS_Course_Modifier.UI.MainMenu(this.components);
            this.menuItem1        = new MenuItem();
            this.menuItem3        = new MenuItem();
            this.menuItem4        = new MenuItem();
            this.menuItem5        = new MenuItem();
            this.menuItem2        = new MenuItem();
            this.menuItem6        = new MenuItem();
            this.toolStrip1       = new ToolStrip();
            this.toolStripButton1 = new ToolStripButton();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.mainMenu1.MenuItems.AddRange(new MenuItem[2]
            {
                this.menuItem1,
                this.menuItem2
            });
            this.menuItem1.Index = 0;
            this.menuItem1.MenuItems.AddRange(new MenuItem[3]
            {
                this.menuItem3,
                this.menuItem4,
                this.menuItem5
            });
            this.menuItem1.MergeOrder = 1;
            this.menuItem1.Text       = "Edit";
            this.menuItem3.Index      = 0;
            this.menuItem3.Text       = "Cut";
            this.menuItem4.Index      = 1;
            this.menuItem4.Text       = "Copy";
            this.menuItem5.Index      = 2;
            this.menuItem5.Text       = "Paste";
            this.menuItem2.Index      = 1;
            this.menuItem2.MenuItems.AddRange(new MenuItem[1]
            {
                this.menuItem6
            });
            this.menuItem2.MergeOrder = 3;
            this.menuItem2.Text       = "Tools";
            this.menuItem6.Index      = 0;
            this.menuItem6.Text       = "Do something";
            this.toolStrip1.Items.AddRange(new ToolStripItem[1]
            {
                (ToolStripItem)this.toolStripButton1
            });
            this.toolStrip1.Location                    = new Point(0, 0);
            this.toolStrip1.Name                        = "toolStrip1";
            this.toolStrip1.Size                        = new Size(434, 25);
            this.toolStrip1.TabIndex                    = 0;
            this.toolStrip1.Text                        = "toolStrip1";
            this.toolStripButton1.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image                 = (Image)componentResourceManager.GetObject("toolStripButton1.Image");
            this.toolStripButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripButton1.Name                  = "toolStripButton1";
            this.toolStripButton1.Size                  = new Size(23, 22);
            this.toolStripButton1.Text                  = "toolStripButton1";
            this.AutoScaleDimensions                    = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(434, 284);
            this.Controls.Add((Control)this.toolStrip1);
            this.Menu          = (System.Windows.Forms.MainMenu) this.mainMenu1;
            this.Name          = nameof(PaletteEditor);
            this.ShowInTaskbar = false;
            this.Text          = nameof(PaletteEditor);
            this.Load         += new EventHandler(this.PaletteEditor_Load);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }