📄 mainwindow.cs
字号:
//
this.menuItemEs.Index = 0;
this.menuItemEs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemSize1,
this.menuItemmenuItemSize2,
this.menuItemSize3});
this.menuItemEs.Text = "&EraserSize";
//
// menuItemSize1
//
this.menuItemSize1.Index = 0;
this.menuItemSize1.Text = "&Small";
this.menuItemSize1.Click += new System.EventHandler(this.menuItemSize1_Click);
//
// menuItemmenuItemSize2
//
this.menuItemmenuItemSize2.Index = 1;
this.menuItemmenuItemSize2.Text = "&Middle";
this.menuItemmenuItemSize2.Click += new System.EventHandler(this.menuItemmenuItemSize2_Click);
//
// menuItemSize3
//
this.menuItemSize3.Index = 2;
this.menuItemSize3.Text = "&Large";
this.menuItemSize3.Click += new System.EventHandler(this.menuItemSize3_Click);
//
// menuItemCA
//
this.menuItemCA.Index = 1;
this.menuItemCA.Text = "Circle &At";
this.menuItemCA.Click += new System.EventHandler(this.menuItemCA_Click);
//
// menuItemClose
//
this.menuItemClose.Index = 2;
this.menuItemClose.Text = "&Close";
this.menuItemClose.Click += new System.EventHandler(this.menuItemClose_Click);
//
// menuItemLw
//
this.menuItemLw.Index = 3;
this.menuItemLw.Text = "&LineWidth";
this.menuItemLw.Click += new System.EventHandler(this.menuItemLw_Click);
//
// Advance
//
this.Advance.Index = 4;
this.Advance.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.FadeInOut,
this.GrayScale,
this.Inverse,
this.Flashligt,
this.BlurAndSharpen});
this.Advance.Text = "&Advance";
//
// FadeInOut
//
this.FadeInOut.Index = 0;
this.FadeInOut.Text = "&FadeInOut";
this.FadeInOut.Click += new System.EventHandler(this.FadeInOut_Click);
//
// GrayScale
//
this.GrayScale.Index = 1;
this.GrayScale.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.GrayScale1,
this.GrayScale2,
this.grayScale3,
this.GrayScale4});
this.GrayScale.Text = "&GrayScale";
//
// GrayScale1
//
this.GrayScale1.Index = 0;
this.GrayScale1.Text = "GrayScale&1";
this.GrayScale1.Click += new System.EventHandler(this.GrayScale1_Click);
//
// GrayScale2
//
this.GrayScale2.Index = 1;
this.GrayScale2.Text = "GrayScale&2";
this.GrayScale2.Click += new System.EventHandler(this.GrayScale2_Click);
//
// grayScale3
//
this.grayScale3.Index = 2;
this.grayScale3.Text = "GrayScale&3";
this.grayScale3.Click += new System.EventHandler(this.grayScale3_Click);
//
// GrayScale4
//
this.GrayScale4.Index = 3;
this.GrayScale4.Text = "GrayScale&4";
this.GrayScale4.Click += new System.EventHandler(this.GrayScale4_Click);
//
// Inverse
//
this.Inverse.Index = 2;
this.Inverse.Text = "&Inverse";
this.Inverse.Click += new System.EventHandler(this.Inverse_Click);
//
// Flashligt
//
this.Flashligt.Index = 3;
this.Flashligt.Text = "&Flashligt";
this.Flashligt.Click += new System.EventHandler(this.Flashligt_Click);
//
// BlurAndSharpen
//
this.BlurAndSharpen.Index = 4;
this.BlurAndSharpen.Text = "&BlurAndSharpen";
this.BlurAndSharpen.Click += new System.EventHandler(this.BlurAndSharpen_Click);
//
// AddHollowEllipse
//
this.AddHollowEllipse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddHollowEllipse.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddHollowEllipse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddHollowEllipse.BackgroundImage")));
this.AddHollowEllipse.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddHollowEllipse.Image = ((System.Drawing.Image)(resources.GetObject("AddHollowEllipse.Image")));
this.AddHollowEllipse.Location = new System.Drawing.Point(8, 80);
this.AddHollowEllipse.Name = "AddHollowEllipse";
this.AddHollowEllipse.Size = new System.Drawing.Size(26, 26);
this.AddHollowEllipse.TabIndex = 19;
this.AddHollowEllipse.Click += new System.EventHandler(this.AddHollowEllipse_Click);
//
// AddFilledEllipse
//
this.AddFilledEllipse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddFilledEllipse.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddFilledEllipse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddFilledEllipse.BackgroundImage")));
this.AddFilledEllipse.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddFilledEllipse.Image = ((System.Drawing.Image)(resources.GetObject("AddFilledEllipse.Image")));
this.AddFilledEllipse.Location = new System.Drawing.Point(48, 80);
this.AddFilledEllipse.Name = "AddFilledEllipse";
this.AddFilledEllipse.Size = new System.Drawing.Size(26, 26);
this.AddFilledEllipse.TabIndex = 22;
this.AddFilledEllipse.Click += new System.EventHandler(this.AddFilledEllipse_Click);
//
// AddLine
//
this.AddLine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddLine.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddLine.BackgroundImage")));
this.AddLine.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddLine.Location = new System.Drawing.Point(48, 16);
this.AddLine.Name = "AddLine";
this.AddLine.Size = new System.Drawing.Size(26, 26);
this.AddLine.TabIndex = 23;
this.AddLine.Click += new System.EventHandler(this.AddLine_Click);
//
// AddCircle
//
this.AddCircle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddCircle.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddCircle.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddCircle.BackgroundImage")));
this.AddCircle.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddCircle.Image = ((System.Drawing.Image)(resources.GetObject("AddCircle.Image")));
this.AddCircle.Location = new System.Drawing.Point(8, 112);
this.AddCircle.Name = "AddCircle";
this.AddCircle.Size = new System.Drawing.Size(26, 26);
this.AddCircle.TabIndex = 24;
this.AddCircle.Click += new System.EventHandler(this.AddCircle_Click);
//
// grpTool
//
this.grpTool.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.grpTool.Controls.Add(this.AddCurve);
this.grpTool.Controls.Add(this.AddPolygon);
this.grpTool.Controls.Add(this.btnCircleAt);
this.grpTool.Controls.Add(this.btnEraser);
this.grpTool.Controls.Add(this.AddPath);
this.grpTool.Controls.Add(this.AddFillCircle);
this.grpTool.Controls.Add(this.AddPoint);
this.grpTool.Controls.Add(this.AddLine);
this.grpTool.Controls.Add(this.AddHollowRectangle);
this.grpTool.Controls.Add(this.AddFilledRectangle);
this.grpTool.Controls.Add(this.AddHollowEllipse);
this.grpTool.Controls.Add(this.AddFilledEllipse);
this.grpTool.Controls.Add(this.AddCircle);
this.grpTool.Controls.Add(this.btnText);
this.grpTool.Location = new System.Drawing.Point(647, 8);
this.grpTool.Name = "grpTool";
this.grpTool.Size = new System.Drawing.Size(82, 240);
this.grpTool.TabIndex = 25;
this.grpTool.TabStop = false;
//
// AddCurve
//
this.AddCurve.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddCurve.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddCurve.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddCurve.BackgroundImage")));
this.AddCurve.ContextMenu = this.Curvecontext;
this.AddCurve.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddCurve.Location = new System.Drawing.Point(48, 208);
this.AddCurve.Name = "AddCurve";
this.AddCurve.Size = new System.Drawing.Size(26, 26);
this.AddCurve.TabIndex = 30;
//
// Curvecontext
//
this.Curvecontext.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.Curve,
this.ClosedCurve});
//
// Curve
//
this.Curve.Index = 0;
this.Curve.Text = "Curve";
this.Curve.Click += new System.EventHandler(this.Curve_Click);
//
// ClosedCurve
//
this.ClosedCurve.Index = 1;
this.ClosedCurve.Text = "ClosedCurve";
this.ClosedCurve.Click += new System.EventHandler(this.ClosedCurve_Click);
//
// AddPolygon
//
this.AddPolygon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddPolygon.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddPolygon.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddPolygon.BackgroundImage")));
this.AddPolygon.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddPolygon.Location = new System.Drawing.Point(8, 208);
this.AddPolygon.Name = "AddPolygon";
this.AddPolygon.Size = new System.Drawing.Size(26, 26);
this.AddPolygon.TabIndex = 29;
this.AddPolygon.Click += new System.EventHandler(this.AddPolygon_Click);
//
// btnCircleAt
//
this.btnCircleAt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnCircleAt.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.btnCircleAt.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCircleAt.BackgroundImage")));
this.btnCircleAt.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnCircleAt.Location = new System.Drawing.Point(48, 176);
this.btnCircleAt.Name = "btnCircleAt";
this.btnCircleAt.Size = new System.Drawing.Size(26, 26);
this.btnCircleAt.TabIndex = 28;
this.btnCircleAt.Click += new System.EventHandler(this.btnCircleAt_Click);
//
// btnEraser
//
this.btnEraser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnEraser.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.btnEraser.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEraser.BackgroundImage")));
this.btnEraser.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnEraser.Location = new System.Drawing.Point(48, 144);
this.btnEraser.Name = "btnEraser";
this.btnEraser.Size = new System.Drawing.Size(26, 26);
this.btnEraser.TabIndex = 27;
this.btnEraser.Click += new System.EventHandler(this.btnEraser_Click);
//
// AddPath
//
this.AddPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddPath.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddPath.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddPath.BackgroundImage")));
this.AddPath.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddPath.Image = ((System.Drawing.Image)(resources.GetObject("AddPath.Image")));
this.AddPath.Location = new System.Drawing.Point(8, 144);
this.AddPath.Name = "AddPath";
this.AddPath.Size = new System.Drawing.Size(26, 26);
this.AddPath.TabIndex = 26;
this.AddPath.Click += new System.EventHandler(this.AddPath_Click);
//
// AddFillCircle
//
this.AddFillCircle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AddFillCircle.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.AddFillCircle.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("AddFillCircle.BackgroundImage")));
this.AddFillCircle.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.AddFillCircle.Image = ((System.Drawing.Image)(resources.GetObject("AddFillCircle.Image")));
this.AddFillCircle.Location = new System.Drawing.Point(48, 112);
this.AddFillCircle.Name = "AddFillCircle";
this.AddFillCircle.Size = new System.Drawing.Size(26, 26);
this.AddFillCircle.TabIndex = 25;
this.AddFillCircle.Click += new System.EventHandler(this.AddFillCircle_Click);
//
// btnText
//
this.btnText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnText.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.btnText.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnText.BackgroundImage")));
this.btnText.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnText.Location = new System.Drawing.Point(8, 176);
this.btnText.Name = "btnText";
this.btnText.Size = new System.Drawing.Size(26, 26);
this.btnText.TabIndex = 26;
this.btnText.Click += new System.EventHandler(this.btnText_Click);
//
// mainMenu
//
this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuFile,
this.Example,
this.menuItem1});
//
// menuFile
//
this.menuFile.Index = 0;
this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuNew,
this.menuOpen,
this.menuSave,
this.menuSaveAs,
this.menuItem5,
this.menuExit});
this.menuFile.Text = "&File";
//
// menuNew
//
this.menuNew.Index = 0;
this.menuNew.Text = "&New";
this.menuNew.Click += new System.EventHandler(this.menuNew_Click);
//
// menuOpen
//
this.menuOpen.Index = 1;
this.menuOpen.Text = "&Open";
this.menuOpen.Click += new System.EventHandler(this.menuOpen_Click);
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -