在Designer.cs中添加删除按钮btnDeleteRegion的定义

This commit is contained in:
zqm
2025-11-07 10:58:11 +08:00
parent 4b706826b4
commit 79090fa847

View File

@@ -35,6 +35,7 @@
this.toolStrip = new System.Windows.Forms.ToolStrip();
this.btnDrawRegion = new System.Windows.Forms.ToolStripButton();
this.btnSelectColor = new System.Windows.Forms.ToolStripButton();
this.btnDeleteRegion = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
this.splitContainer.Panel1.SuspendLayout();
this.splitContainer.Panel2.SuspendLayout();
@@ -108,7 +109,8 @@
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnDrawRegion,
this.btnSelectColor});
this.btnSelectColor,
this.btnDeleteRegion});
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.toolStrip.Location = new System.Drawing.Point(0, 0);
this.toolStrip.Name = "toolStrip";
@@ -135,6 +137,15 @@
this.btnSelectColor.Text = "选择颜色";
this.btnSelectColor.ToolTipText = "选择绘制区域的颜色(点击更换颜色)";
//
// btnDeleteRegion
//
this.btnDeleteRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnDeleteRegion.ImageTransparentColor = System.Drawing.Color.Transparent;
this.btnDeleteRegion.Name = "btnDeleteRegion";
this.btnDeleteRegion.Size = new System.Drawing.Size(23, 4);
this.btnDeleteRegion.Text = "删除区域";
this.btnDeleteRegion.ToolTipText = "删除选中的区域";
//
// Setting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
@@ -169,5 +180,6 @@
private System.Windows.Forms.ToolStrip toolStrip;
private System.Windows.Forms.ToolStripButton btnDrawRegion;
private System.Windows.Forms.ToolStripButton btnSelectColor;
private System.Windows.Forms.ToolStripButton btnDeleteRegion;
}
}