⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.designer.cs

📁 实现了c#窗体编程的部分功能
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace FormDraw
{
    partial class DrawForm
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DrawForm));
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.mainMenuStrip = new System.Windows.Forms.ToolStripMenuItem();
            this.newfile = new System.Windows.Forms.ToolStripMenuItem();
            this.open = new System.Windows.Forms.ToolStripMenuItem();
            this.save = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.exit = new System.Windows.Forms.ToolStripMenuItem();
            this.绘图DToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.颜色CToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.设置参数SToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.fToolStripMenuItem = new System.Windows.Forms.ToolStripSeparator();
            this.直线ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.矩形RToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.椭圆EToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.openFileDlg = new System.Windows.Forms.OpenFileDialog();
            this.toolStrip = new System.Windows.Forms.ToolStrip();
            this.openButton = new System.Windows.Forms.ToolStripButton();
            this.newfilebutton = new System.Windows.Forms.ToolStripButton();
            this.savefileButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.setColButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
            this.statusStrip = new System.Windows.Forms.StatusStrip();
            this.promptLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.xLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.xValueLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.yLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.yValueLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.drawPanel = new System.Windows.Forms.Panel();
            this.setColDlg = new System.Windows.Forms.ColorDialog();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.清屏CToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1.SuspendLayout();
            this.toolStrip.SuspendLayout();
            this.statusStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // menuStrip1
            // 
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mainMenuStrip,
            this.绘图DToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(522, 24);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // mainMenuStrip
            // 
            this.mainMenuStrip.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.newfile,
            this.open,
            this.save,
            this.toolStripSeparator1,
            this.exit});
            this.mainMenuStrip.Image = ((System.Drawing.Image)(resources.GetObject("mainMenuStrip.Image")));
            this.mainMenuStrip.ImageTransparentColor = System.Drawing.Color.White;
            this.mainMenuStrip.Name = "mainMenuStrip";
            this.mainMenuStrip.Size = new System.Drawing.Size(73, 20);
            this.mainMenuStrip.Text = "文件(&F)";
            // 
            // newfile
            // 
            this.newfile.Image = ((System.Drawing.Image)(resources.GetObject("newfile.Image")));
            this.newfile.ImageTransparentColor = System.Drawing.Color.White;
            this.newfile.Name = "newfile";
            this.newfile.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
            this.newfile.Size = new System.Drawing.Size(154, 22);
            this.newfile.Text = "新建(&N)";
            this.newfile.Click += new System.EventHandler(this.OnFileNew);
            // 
            // open
            // 
            this.open.Image = ((System.Drawing.Image)(resources.GetObject("open.Image")));
            this.open.ImageTransparentColor = System.Drawing.Color.White;
            this.open.Name = "open";
            this.open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
            this.open.Size = new System.Drawing.Size(154, 22);
            this.open.Text = "打开(&O)";
            this.open.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnFileOpenMouseHover);
            this.open.MouseLeave += new System.EventHandler(this.OnFileOpenMouseLeave);
            this.open.Click += new System.EventHandler(this.OnFileOpen);
            // 
            // save
            // 
            this.save.Image = ((System.Drawing.Image)(resources.GetObject("save.Image")));
            this.save.Name = "save";
            this.save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
            this.save.Size = new System.Drawing.Size(154, 22);
            this.save.Text = "保存(&S)";
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(151, 6);
            // 
            // exit
            // 
            this.exit.Name = "exit";
            this.exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.exit.Size = new System.Drawing.Size(154, 22);
            this.exit.Text = "退出(&X)";
            this.exit.Click += new System.EventHandler(this.OnExit);
            // 
            // 绘图DToolStripMenuItem
            // 
            this.绘图DToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.颜色CToolStripMenuItem,
            this.toolStripMenuItem1,
            this.设置参数SToolStripMenuItem,
            this.fToolStripMenuItem,
            this.直线ToolStripMenuItem,
            this.矩形RToolStripMenuItem,
            this.椭圆EToolStripMenuItem,
            this.toolStripSeparator4,
            this.清屏CToolStripMenuItem});
            this.绘图DToolStripMenuItem.Name = "绘图DToolStripMenuItem";
            this.绘图DToolStripMenuItem.Size = new System.Drawing.Size(58, 20);
            this.绘图DToolStripMenuItem.Text = "绘图(&D)";
            // 
            // 颜色CToolStripMenuItem
            // 
            this.颜色CToolStripMenuItem.Name = "颜色CToolStripMenuItem";
            this.颜色CToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.颜色CToolStripMenuItem.Text = "颜色(&C)..";
            this.颜色CToolStripMenuItem.Click += new System.EventHandler(this.OnSetCol);
            // 
            // toolStripMenuItem1
            // 
            this.toolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem1.Image")));
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem1.Text = "填充(&F)";
            this.toolStripMenuItem1.Click += new System.EventHandler(this.OnSetFill);
            // 
            // 设置参数SToolStripMenuItem
            // 
            this.设置参数SToolStripMenuItem.Name = "设置参数SToolStripMenuItem";
            this.设置参数SToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.设置参数SToolStripMenuItem.Text = "设置参数(&S)..";
            // 
            // fToolStripMenuItem
            // 
            this.fToolStripMenuItem.Name = "fToolStripMenuItem";
            this.fToolStripMenuItem.Size = new System.Drawing.Size(149, 6);
            // 
            // 直线ToolStripMenuItem
            // 
            this.直线ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("直线ToolStripMenuItem.Image")));
            this.直线ToolStripMenuItem.Name = "直线ToolStripMenuItem";
            this.直线ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.直线ToolStripMenuItem.Text = "直线(&L)";
            this.直线ToolStripMenuItem.Click += new System.EventHandler(this.OnSetDline);
            // 
            // 矩形RToolStripMenuItem
            // 
            this.矩形RToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("矩形RToolStripMenuItem.Image")));
            this.矩形RToolStripMenuItem.Name = "矩形RToolStripMenuItem";
            this.矩形RToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.矩形RToolStripMenuItem.Text = "矩形(&R)";
            this.矩形RToolStripMenuItem.Click += new System.EventHandler(this.OnSetDrect);
            // 
            // 椭圆EToolStripMenuItem
            // 
            this.椭圆EToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("椭圆EToolStripMenuItem.Image")));
            this.椭圆EToolStripMenuItem.Name = "椭圆EToolStripMenuItem";
            this.椭圆EToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.椭圆EToolStripMenuItem.Text = "椭圆(&E)";
            this.椭圆EToolStripMenuItem.Click += new System.EventHandler(this.OnSetDellipse);
            // 
            // openFileDlg
            // 
            this.openFileDlg.FileName = "*.cs";
            this.openFileDlg.Filter = "C# 代码文件|*.cs|所有文件|*.*";
            // 
            // toolStrip
            // 
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.openButton,
            this.newfilebutton,
            this.savefileButton,
            this.toolStripSeparator2,
            this.setColButton,
            this.toolStripButton1,
            this.toolStripSeparator3,
            this.toolStripButton2,
            this.toolStripButton3,
            this.toolStripButton4});
            this.toolStrip.Location = new System.Drawing.Point(0, 24);
            this.toolStrip.Name = "toolStrip";
            this.toolStrip.Size = new System.Drawing.Size(522, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text = "toolStrip1";
            // 
            // openButton
            // 
            this.openButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.openButton.Image = ((System.Drawing.Image)(resources.GetObject("openButton.Image")));
            this.openButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.openButton.Name = "openButton";
            this.openButton.Size = new System.Drawing.Size(23, 22);
            this.openButton.Text = "toolStripButton1";
            this.openButton.ToolTipText = "打开文件";
            this.openButton.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnFileOpenMouseHover);
            this.openButton.MouseLeave += new System.EventHandler(this.OnFileOpenMouseLeave);

⌨️ 快捷键说明

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