form1.designer.cs

来自「实现了c#窗体编程的部分功能」· CS 代码 · 共 486 行 · 第 1/2 页

CS
486 行
字号
            this.openButton.Click += new System.EventHandler(this.OnFileOpen);
            // 
            // newfilebutton
            // 
            this.newfilebutton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.newfilebutton.Image = ((System.Drawing.Image)(resources.GetObject("newfilebutton.Image")));
            this.newfilebutton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.newfilebutton.Name = "newfilebutton";
            this.newfilebutton.Size = new System.Drawing.Size(23, 22);
            this.newfilebutton.Text = "toolStripButton2";
            this.newfilebutton.ToolTipText = "新建文件";
            this.newfilebutton.Click += new System.EventHandler(this.OnFileNew);
            // 
            // savefileButton
            // 
            this.savefileButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.savefileButton.Image = ((System.Drawing.Image)(resources.GetObject("savefileButton.Image")));
            this.savefileButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.savefileButton.Name = "savefileButton";
            this.savefileButton.Size = new System.Drawing.Size(23, 22);
            this.savefileButton.Text = "toolStripButton1";
            this.savefileButton.ToolTipText = "保存文件";
            this.savefileButton.Click += new System.EventHandler(this.OnSetCol);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // setColButton
            // 
            this.setColButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.setColButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.setColButton.Name = "setColButton";
            this.setColButton.Size = new System.Drawing.Size(23, 22);
            this.setColButton.Text = "toolStripButton1";
            this.setColButton.ToolTipText = "设置颜色";
            this.setColButton.Click += new System.EventHandler(this.OnSetCol);
            // 
            // toolStripButton1
            // 
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton1.Click += new System.EventHandler(this.OnSetFill);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            // 
            // toolStripButton2
            // 
            this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton2.Text = "toolStripButton2";
            this.toolStripButton2.Click += new System.EventHandler(this.OnSetDline);
            // 
            // toolStripButton3
            // 
            this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton3.Text = "toolStripButton3";
            this.toolStripButton3.Click += new System.EventHandler(this.OnSetDrect);
            // 
            // toolStripButton4
            // 
            this.toolStripButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
            this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton4.Text = "toolStripButton4";
            this.toolStripButton4.Click += new System.EventHandler(this.OnSetDellipse);
            // 
            // statusStrip
            // 
            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.promptLabel,
            this.xLabel,
            this.xValueLabel,
            this.toolStripStatusLabel1,
            this.yLabel,
            this.yValueLabel});
            this.statusStrip.Location = new System.Drawing.Point(0, 344);
            this.statusStrip.Name = "statusStrip";
            this.statusStrip.Size = new System.Drawing.Size(522, 22);
            this.statusStrip.TabIndex = 2;
            this.statusStrip.Text = "statusStrip1";
            // 
            // promptLabel
            // 
            this.promptLabel.BackColor = System.Drawing.SystemColors.Control;
            this.promptLabel.Name = "promptLabel";
            this.promptLabel.Size = new System.Drawing.Size(401, 17);
            this.promptLabel.Spring = true;
            this.promptLabel.Text = "就绪";
            this.promptLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // xLabel
            // 
            this.xLabel.BackColor = System.Drawing.SystemColors.Control;
            this.xLabel.Name = "xLabel";
            this.xLabel.Size = new System.Drawing.Size(17, 17);
            this.xLabel.Text = "x:";
            // 
            // xValueLabel
            // 
            this.xValueLabel.AutoSize = false;
            this.xValueLabel.BackColor = System.Drawing.SystemColors.Control;
            this.xValueLabel.Name = "xValueLabel";
            this.xValueLabel.Size = new System.Drawing.Size(31, 17);
            this.xValueLabel.Text = "0000";
            // 
            // toolStripStatusLabel1
            // 
            this.toolStripStatusLabel1.BackColor = System.Drawing.SystemColors.Control;
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(10, 17);
            this.toolStripStatusLabel1.Text = " ";
            // 
            // yLabel
            // 
            this.yLabel.BackColor = System.Drawing.SystemColors.Control;
            this.yLabel.Name = "yLabel";
            this.yLabel.Size = new System.Drawing.Size(17, 17);
            this.yLabel.Text = "y:";
            // 
            // yValueLabel
            // 
            this.yValueLabel.AutoSize = false;
            this.yValueLabel.BackColor = System.Drawing.SystemColors.Control;
            this.yValueLabel.Name = "yValueLabel";
            this.yValueLabel.Size = new System.Drawing.Size(31, 17);
            this.yValueLabel.Text = "0000";
            // 
            // drawPanel
            // 
            this.drawPanel.BackColor = System.Drawing.Color.White;
            this.drawPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.drawPanel.Location = new System.Drawing.Point(0, 49);
            this.drawPanel.Name = "drawPanel";
            this.drawPanel.Size = new System.Drawing.Size(522, 295);
            this.drawPanel.TabIndex = 3;
            this.drawPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
            this.drawPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
            this.drawPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
            // 
            // setColDlg
            // 
            this.setColDlg.FullOpen = true;
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(149, 6);
            // 
            // 清屏CToolStripMenuItem
            // 
            this.清屏CToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("清屏CToolStripMenuItem.Image")));
            this.清屏CToolStripMenuItem.Name = "清屏CToolStripMenuItem";
            this.清屏CToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.清屏CToolStripMenuItem.Text = "清屏(&C)";
            // 
            // DrawForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.SystemColors.Control;
            this.ClientSize = new System.Drawing.Size(522, 366);
            this.Controls.Add(this.drawPanel);
            this.Controls.Add(this.statusStrip);
            this.Controls.Add(this.toolStrip);
            this.Controls.Add(this.menuStrip1);
            this.Cursor = System.Windows.Forms.Cursors.Cross;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "DrawForm";
            this.Text = "窗体绘图";
            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStrip.ResumeLayout(false);
            this.toolStrip.PerformLayout();
            this.statusStrip.ResumeLayout(false);
            this.statusStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.MenuStrip menuStrip1;
        private System.Windows.Forms.ToolStripMenuItem mainMenuStrip;
        private System.Windows.Forms.ToolStripMenuItem newfile;
        private System.Windows.Forms.ToolStripMenuItem open;
        private System.Windows.Forms.OpenFileDialog openFileDlg;
        private System.Windows.Forms.ToolStripMenuItem save;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripMenuItem exit;
        private System.Windows.Forms.ToolStrip toolStrip;
        private System.Windows.Forms.ToolStripButton openButton;
        private System.Windows.Forms.ToolStripButton newfilebutton;
        private System.Windows.Forms.ToolStripButton savefileButton;
        private System.Windows.Forms.ToolStripButton setColButton;
        private System.Windows.Forms.StatusStrip statusStrip;
        private System.Windows.Forms.ToolStripStatusLabel promptLabel;
        private System.Windows.Forms.ToolStripStatusLabel xLabel;
        private System.Windows.Forms.ToolStripStatusLabel xValueLabel;
        private System.Windows.Forms.ToolStripStatusLabel yLabel;
        private System.Windows.Forms.ToolStripStatusLabel yValueLabel;
        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
        private System.Windows.Forms.Panel drawPanel;
        private System.Windows.Forms.ColorDialog setColDlg;
        private System.Windows.Forms.ToolStripMenuItem 绘图DToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem 颜色CToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem 设置参数SToolStripMenuItem;
        private System.Windows.Forms.ToolStripSeparator fToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem 直线ToolStripMenuItem;
        private System.Windows.Forms.ToolStripButton toolStripButton2;
        private System.Windows.Forms.ToolStripMenuItem 矩形RToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem 椭圆EToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripButton toolStripButton1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
        private System.Windows.Forms.ToolStripButton toolStripButton3;
        private System.Windows.Forms.ToolStripButton toolStripButton4;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
        private System.Windows.Forms.ToolStripMenuItem 清屏CToolStripMenuItem;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?