在toolStrip中添加六个新按钮:新建测温区、加载测温区、保存测温区、新建温差图、加载温差图、保存温差图

This commit is contained in:
zqm
2025-11-11 11:14:35 +08:00
parent 9c9a38a25c
commit c868fb9284

View File

@@ -155,7 +155,14 @@ namespace JoyD.Windows.CS
this.btnBrushSize5, this.btnBrushSize5,
this.btnBrushSize10, this.btnBrushSize10,
this.btnBrushSize15, this.btnBrushSize15,
this.btnBrushSize25}); this.btnBrushSize25,
new System.Windows.Forms.ToolStripSeparator(),
this.btnNewTempRegion,
this.btnLoadTempRegion,
this.btnSaveTempRegion,
this.btnNewTempDiff,
this.btnLoadTempDiff,
this.btnSaveTempDiff});
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.toolStrip.Location = new System.Drawing.Point(3, 0); this.toolStrip.Location = new System.Drawing.Point(3, 0);
this.toolStrip.MaximumSize = new System.Drawing.Size(0, 100); this.toolStrip.MaximumSize = new System.Drawing.Size(0, 100);
@@ -297,6 +304,60 @@ namespace JoyD.Windows.CS
this.btnEraseTempDiff.ToolTipText = "使用透明色擦除温差图"; this.btnEraseTempDiff.ToolTipText = "使用透明色擦除温差图";
this.btnEraseTempDiff.Click += new System.EventHandler(this.BtnEraseTempDiff_Click); this.btnEraseTempDiff.Click += new System.EventHandler(this.BtnEraseTempDiff_Click);
// //
// btnNewTempRegion
//
this.btnNewTempRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnNewTempRegion.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnNewTempRegion.Name = "btnNewTempRegion";
this.btnNewTempRegion.Size = new System.Drawing.Size(23, 4);
this.btnNewTempRegion.Text = "新建测温区";
this.btnNewTempRegion.ToolTipText = "新建测温区";
//
// btnLoadTempRegion
//
this.btnLoadTempRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnLoadTempRegion.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnLoadTempRegion.Name = "btnLoadTempRegion";
this.btnLoadTempRegion.Size = new System.Drawing.Size(23, 4);
this.btnLoadTempRegion.Text = "加载测温区";
this.btnLoadTempRegion.ToolTipText = "加载测温区";
//
// btnSaveTempRegion
//
this.btnSaveTempRegion.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnSaveTempRegion.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnSaveTempRegion.Name = "btnSaveTempRegion";
this.btnSaveTempRegion.Size = new System.Drawing.Size(23, 4);
this.btnSaveTempRegion.Text = "保存测温区";
this.btnSaveTempRegion.ToolTipText = "保存测温区";
//
// btnNewTempDiff
//
this.btnNewTempDiff.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnNewTempDiff.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnNewTempDiff.Name = "btnNewTempDiff";
this.btnNewTempDiff.Size = new System.Drawing.Size(23, 4);
this.btnNewTempDiff.Text = "新建温差图";
this.btnNewTempDiff.ToolTipText = "新建温差图";
//
// btnLoadTempDiff
//
this.btnLoadTempDiff.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnLoadTempDiff.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnLoadTempDiff.Name = "btnLoadTempDiff";
this.btnLoadTempDiff.Size = new System.Drawing.Size(23, 4);
this.btnLoadTempDiff.Text = "加载温差图";
this.btnLoadTempDiff.ToolTipText = "加载温差图";
//
// btnSaveTempDiff
//
this.btnSaveTempDiff.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnSaveTempDiff.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnSaveTempDiff.Name = "btnSaveTempDiff";
this.btnSaveTempDiff.Size = new System.Drawing.Size(23, 4);
this.btnSaveTempDiff.Text = "保存温差图";
this.btnSaveTempDiff.ToolTipText = "保存温差图";
//
// Setting // Setting
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
@@ -346,6 +407,12 @@ namespace JoyD.Windows.CS
private System.Windows.Forms.ToolStripButton btnBrushSize15; private System.Windows.Forms.ToolStripButton btnBrushSize15;
private System.Windows.Forms.ToolStripButton btnBrushSize25; private System.Windows.Forms.ToolStripButton btnBrushSize25;
private System.Windows.Forms.ToolStripButton btnEraseTempDiff; private System.Windows.Forms.ToolStripButton btnEraseTempDiff;
private System.Windows.Forms.ToolStripButton btnNewTempRegion;
private System.Windows.Forms.ToolStripButton btnLoadTempRegion;
private System.Windows.Forms.ToolStripButton btnSaveTempRegion;
private System.Windows.Forms.ToolStripButton btnNewTempDiff;
private System.Windows.Forms.ToolStripButton btnLoadTempDiff;
private System.Windows.Forms.ToolStripButton btnSaveTempDiff;
private System.Windows.Forms.DataGridView dataGridViewTempDiff; private System.Windows.Forms.DataGridView dataGridViewTempDiff;
} }
} }