فهرست منبع

添加样品台可视化编辑器

CXS 3 سال پیش
والد
کامیت
ca2b4cf1c5

+ 483 - 0
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageEdit.Designer.cs

@@ -0,0 +1,483 @@
+
+namespace OTSMeasureApp._7_OTSProgMgrInfo.Stage
+{
+    partial class DlgStageEdit
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.m_ctrlStagePicture = new System.Windows.Forms.PictureBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.tStageName = new System.Windows.Forms.TextBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.radioButton_OTS = new System.Windows.Forms.RadioButton();
+            this.radioButton_SEM = new System.Windows.Forms.RadioButton();
+            this.label3 = new System.Windows.Forms.Label();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.tBoundaryHeight = new System.Windows.Forms.TextBox();
+            this.label8 = new System.Windows.Forms.Label();
+            this.tBoundaryWide = new System.Windows.Forms.TextBox();
+            this.label7 = new System.Windows.Forms.Label();
+            this.tBoundaryY = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.tBoundaryX = new System.Windows.Forms.TextBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.radioButton_BoundarySquare = new System.Windows.Forms.RadioButton();
+            this.radioButton_BoundaryCircle = new System.Windows.Forms.RadioButton();
+            this.groupBox2 = new System.Windows.Forms.GroupBox();
+            this.tStandardsampleHeight = new System.Windows.Forms.TextBox();
+            this.label9 = new System.Windows.Forms.Label();
+            this.tStandardsampleWide = new System.Windows.Forms.TextBox();
+            this.label10 = new System.Windows.Forms.Label();
+            this.tStandardsampleY = new System.Windows.Forms.TextBox();
+            this.label11 = new System.Windows.Forms.Label();
+            this.tStandardsampleX = new System.Windows.Forms.TextBox();
+            this.label12 = new System.Windows.Forms.Label();
+            this.label13 = new System.Windows.Forms.Label();
+            this.radioButton__StandardsampleSqare = new System.Windows.Forms.RadioButton();
+            this.radioButton_StandardsampleCircle = new System.Windows.Forms.RadioButton();
+            this.label14 = new System.Windows.Forms.Label();
+            this.label15 = new System.Windows.Forms.Label();
+            this.button_Generate = new System.Windows.Forms.Button();
+            this.dataGridView_Holes = new System.Windows.Forms.DataGridView();
+            ((System.ComponentModel.ISupportInitialize)(this.m_ctrlStagePicture)).BeginInit();
+            this.groupBox1.SuspendLayout();
+            this.groupBox2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Holes)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // m_ctrlStagePicture
+            // 
+            this.m_ctrlStagePicture.BackColor = System.Drawing.Color.White;
+            this.m_ctrlStagePicture.Location = new System.Drawing.Point(848, 13);
+            this.m_ctrlStagePicture.Margin = new System.Windows.Forms.Padding(4);
+            this.m_ctrlStagePicture.Name = "m_ctrlStagePicture";
+            this.m_ctrlStagePicture.Size = new System.Drawing.Size(900, 848);
+            this.m_ctrlStagePicture.TabIndex = 2;
+            this.m_ctrlStagePicture.TabStop = false;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(26, 15);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(116, 18);
+            this.label1.TabIndex = 3;
+            this.label1.Text = "样品台名称:";
+            // 
+            // tStageName
+            // 
+            this.tStageName.Location = new System.Drawing.Point(148, 12);
+            this.tStageName.Name = "tStageName";
+            this.tStageName.Size = new System.Drawing.Size(664, 28);
+            this.tStageName.TabIndex = 4;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(26, 64);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(98, 18);
+            this.label2.TabIndex = 5;
+            this.label2.Text = "坐标系统:";
+            // 
+            // radioButton_OTS
+            // 
+            this.radioButton_OTS.AutoSize = true;
+            this.radioButton_OTS.Location = new System.Drawing.Point(148, 64);
+            this.radioButton_OTS.Name = "radioButton_OTS";
+            this.radioButton_OTS.Size = new System.Drawing.Size(132, 22);
+            this.radioButton_OTS.TabIndex = 6;
+            this.radioButton_OTS.TabStop = true;
+            this.radioButton_OTS.Text = "OTS坐标系统";
+            this.radioButton_OTS.UseVisualStyleBackColor = true;
+            // 
+            // radioButton_SEM
+            // 
+            this.radioButton_SEM.AutoSize = true;
+            this.radioButton_SEM.Location = new System.Drawing.Point(314, 64);
+            this.radioButton_SEM.Name = "radioButton_SEM";
+            this.radioButton_SEM.Size = new System.Drawing.Size(132, 22);
+            this.radioButton_SEM.TabIndex = 10;
+            this.radioButton_SEM.TabStop = true;
+            this.radioButton_SEM.Text = "SEM坐标系统";
+            this.radioButton_SEM.UseVisualStyleBackColor = true;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(19, 37);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(152, 18);
+            this.label3.TabIndex = 8;
+            this.label3.Text = "样品台边框形状:";
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.tBoundaryHeight);
+            this.groupBox1.Controls.Add(this.label8);
+            this.groupBox1.Controls.Add(this.tBoundaryWide);
+            this.groupBox1.Controls.Add(this.label7);
+            this.groupBox1.Controls.Add(this.tBoundaryY);
+            this.groupBox1.Controls.Add(this.label6);
+            this.groupBox1.Controls.Add(this.tBoundaryX);
+            this.groupBox1.Controls.Add(this.label5);
+            this.groupBox1.Controls.Add(this.label4);
+            this.groupBox1.Controls.Add(this.radioButton_BoundarySquare);
+            this.groupBox1.Controls.Add(this.radioButton_BoundaryCircle);
+            this.groupBox1.Controls.Add(this.label3);
+            this.groupBox1.Location = new System.Drawing.Point(6, 92);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(806, 171);
+            this.groupBox1.TabIndex = 12;
+            this.groupBox1.TabStop = false;
+            this.groupBox1.Text = "样品台边框";
+            // 
+            // tBoundaryHeight
+            // 
+            this.tBoundaryHeight.Location = new System.Drawing.Point(534, 114);
+            this.tBoundaryHeight.Name = "tBoundaryHeight";
+            this.tBoundaryHeight.Size = new System.Drawing.Size(123, 28);
+            this.tBoundaryHeight.TabIndex = 19;
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Location = new System.Drawing.Point(449, 117);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(62, 18);
+            this.label8.TabIndex = 18;
+            this.label8.Text = "高度:";
+            // 
+            // tBoundaryWide
+            // 
+            this.tBoundaryWide.Location = new System.Drawing.Point(534, 71);
+            this.tBoundaryWide.Name = "tBoundaryWide";
+            this.tBoundaryWide.Size = new System.Drawing.Size(123, 28);
+            this.tBoundaryWide.TabIndex = 17;
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Location = new System.Drawing.Point(449, 74);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(62, 18);
+            this.label7.TabIndex = 16;
+            this.label7.Text = "宽度:";
+            // 
+            // tBoundaryY
+            // 
+            this.tBoundaryY.Location = new System.Drawing.Point(227, 114);
+            this.tBoundaryY.Name = "tBoundaryY";
+            this.tBoundaryY.Size = new System.Drawing.Size(123, 28);
+            this.tBoundaryY.TabIndex = 15;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(186, 117);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(35, 18);
+            this.label6.TabIndex = 14;
+            this.label6.Text = "Y:";
+            // 
+            // tBoundaryX
+            // 
+            this.tBoundaryX.Location = new System.Drawing.Point(227, 71);
+            this.tBoundaryX.Name = "tBoundaryX";
+            this.tBoundaryX.Size = new System.Drawing.Size(123, 28);
+            this.tBoundaryX.TabIndex = 13;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(186, 74);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(35, 18);
+            this.label5.TabIndex = 12;
+            this.label5.Text = "X:";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(20, 74);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(116, 18);
+            this.label4.TabIndex = 11;
+            this.label4.Text = "中心点坐标:";
+            // 
+            // radioButton_BoundarySquare
+            // 
+            this.radioButton_BoundarySquare.AutoSize = true;
+            this.radioButton_BoundarySquare.Location = new System.Drawing.Point(281, 35);
+            this.radioButton_BoundarySquare.Name = "radioButton_BoundarySquare";
+            this.radioButton_BoundarySquare.Size = new System.Drawing.Size(69, 22);
+            this.radioButton_BoundarySquare.TabIndex = 10;
+            this.radioButton_BoundarySquare.TabStop = true;
+            this.radioButton_BoundarySquare.Text = "方形";
+            this.radioButton_BoundarySquare.UseVisualStyleBackColor = true;
+            // 
+            // radioButton_BoundaryCircle
+            // 
+            this.radioButton_BoundaryCircle.AutoSize = true;
+            this.radioButton_BoundaryCircle.Location = new System.Drawing.Point(189, 35);
+            this.radioButton_BoundaryCircle.Name = "radioButton_BoundaryCircle";
+            this.radioButton_BoundaryCircle.Size = new System.Drawing.Size(69, 22);
+            this.radioButton_BoundaryCircle.TabIndex = 9;
+            this.radioButton_BoundaryCircle.TabStop = true;
+            this.radioButton_BoundaryCircle.Text = "圆形";
+            this.radioButton_BoundaryCircle.UseVisualStyleBackColor = true;
+            // 
+            // groupBox2
+            // 
+            this.groupBox2.Controls.Add(this.tStandardsampleHeight);
+            this.groupBox2.Controls.Add(this.label9);
+            this.groupBox2.Controls.Add(this.tStandardsampleWide);
+            this.groupBox2.Controls.Add(this.label10);
+            this.groupBox2.Controls.Add(this.tStandardsampleY);
+            this.groupBox2.Controls.Add(this.label11);
+            this.groupBox2.Controls.Add(this.tStandardsampleX);
+            this.groupBox2.Controls.Add(this.label12);
+            this.groupBox2.Controls.Add(this.label13);
+            this.groupBox2.Controls.Add(this.radioButton__StandardsampleSqare);
+            this.groupBox2.Controls.Add(this.radioButton_StandardsampleCircle);
+            this.groupBox2.Controls.Add(this.label14);
+            this.groupBox2.Location = new System.Drawing.Point(6, 269);
+            this.groupBox2.Name = "groupBox2";
+            this.groupBox2.Size = new System.Drawing.Size(806, 161);
+            this.groupBox2.TabIndex = 13;
+            this.groupBox2.TabStop = false;
+            this.groupBox2.Text = "标样";
+            // 
+            // tStandardsampleHeight
+            // 
+            this.tStandardsampleHeight.Location = new System.Drawing.Point(534, 114);
+            this.tStandardsampleHeight.Name = "tStandardsampleHeight";
+            this.tStandardsampleHeight.Size = new System.Drawing.Size(123, 28);
+            this.tStandardsampleHeight.TabIndex = 19;
+            // 
+            // label9
+            // 
+            this.label9.AutoSize = true;
+            this.label9.Location = new System.Drawing.Point(449, 117);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(62, 18);
+            this.label9.TabIndex = 18;
+            this.label9.Text = "高度:";
+            // 
+            // tStandardsampleWide
+            // 
+            this.tStandardsampleWide.Location = new System.Drawing.Point(534, 71);
+            this.tStandardsampleWide.Name = "tStandardsampleWide";
+            this.tStandardsampleWide.Size = new System.Drawing.Size(123, 28);
+            this.tStandardsampleWide.TabIndex = 17;
+            // 
+            // label10
+            // 
+            this.label10.AutoSize = true;
+            this.label10.Location = new System.Drawing.Point(449, 74);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(62, 18);
+            this.label10.TabIndex = 16;
+            this.label10.Text = "宽度:";
+            // 
+            // tStandardsampleY
+            // 
+            this.tStandardsampleY.Location = new System.Drawing.Point(227, 114);
+            this.tStandardsampleY.Name = "tStandardsampleY";
+            this.tStandardsampleY.Size = new System.Drawing.Size(123, 28);
+            this.tStandardsampleY.TabIndex = 15;
+            // 
+            // label11
+            // 
+            this.label11.AutoSize = true;
+            this.label11.Location = new System.Drawing.Point(186, 117);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(35, 18);
+            this.label11.TabIndex = 14;
+            this.label11.Text = "Y:";
+            // 
+            // tStandardsampleX
+            // 
+            this.tStandardsampleX.Location = new System.Drawing.Point(227, 71);
+            this.tStandardsampleX.Name = "tStandardsampleX";
+            this.tStandardsampleX.Size = new System.Drawing.Size(123, 28);
+            this.tStandardsampleX.TabIndex = 13;
+            // 
+            // label12
+            // 
+            this.label12.AutoSize = true;
+            this.label12.Location = new System.Drawing.Point(186, 74);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(35, 18);
+            this.label12.TabIndex = 12;
+            this.label12.Text = "X:";
+            // 
+            // label13
+            // 
+            this.label13.AutoSize = true;
+            this.label13.Location = new System.Drawing.Point(20, 74);
+            this.label13.Name = "label13";
+            this.label13.Size = new System.Drawing.Size(116, 18);
+            this.label13.TabIndex = 11;
+            this.label13.Text = "中心点坐标:";
+            // 
+            // radioButton__StandardsampleSqare
+            // 
+            this.radioButton__StandardsampleSqare.AutoSize = true;
+            this.radioButton__StandardsampleSqare.Location = new System.Drawing.Point(281, 35);
+            this.radioButton__StandardsampleSqare.Name = "radioButton__StandardsampleSqare";
+            this.radioButton__StandardsampleSqare.Size = new System.Drawing.Size(69, 22);
+            this.radioButton__StandardsampleSqare.TabIndex = 10;
+            this.radioButton__StandardsampleSqare.TabStop = true;
+            this.radioButton__StandardsampleSqare.Text = "方形";
+            this.radioButton__StandardsampleSqare.UseVisualStyleBackColor = true;
+            // 
+            // radioButton_StandardsampleCircle
+            // 
+            this.radioButton_StandardsampleCircle.AutoSize = true;
+            this.radioButton_StandardsampleCircle.Location = new System.Drawing.Point(189, 35);
+            this.radioButton_StandardsampleCircle.Name = "radioButton_StandardsampleCircle";
+            this.radioButton_StandardsampleCircle.Size = new System.Drawing.Size(69, 22);
+            this.radioButton_StandardsampleCircle.TabIndex = 9;
+            this.radioButton_StandardsampleCircle.TabStop = true;
+            this.radioButton_StandardsampleCircle.Text = "圆形";
+            this.radioButton_StandardsampleCircle.UseVisualStyleBackColor = true;
+            // 
+            // label14
+            // 
+            this.label14.AutoSize = true;
+            this.label14.Location = new System.Drawing.Point(19, 37);
+            this.label14.Name = "label14";
+            this.label14.Size = new System.Drawing.Size(98, 18);
+            this.label14.TabIndex = 8;
+            this.label14.Text = "标样形状:";
+            // 
+            // label15
+            // 
+            this.label15.AutoSize = true;
+            this.label15.Location = new System.Drawing.Point(3, 433);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(116, 18);
+            this.label15.TabIndex = 15;
+            this.label15.Text = "样品孔信息:";
+            // 
+            // button_Generate
+            // 
+            this.button_Generate.Location = new System.Drawing.Point(848, 879);
+            this.button_Generate.Name = "button_Generate";
+            this.button_Generate.Size = new System.Drawing.Size(900, 44);
+            this.button_Generate.TabIndex = 16;
+            this.button_Generate.Text = "生成";
+            this.button_Generate.UseVisualStyleBackColor = true;
+            // 
+            // dataGridView_Holes
+            // 
+            this.dataGridView_Holes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dataGridView_Holes.Location = new System.Drawing.Point(6, 454);
+            this.dataGridView_Holes.Name = "dataGridView_Holes";
+            this.dataGridView_Holes.RowHeadersWidth = 62;
+            this.dataGridView_Holes.RowTemplate.Height = 30;
+            this.dataGridView_Holes.Size = new System.Drawing.Size(806, 469);
+            this.dataGridView_Holes.TabIndex = 17;
+            // 
+            // DlgStageEdit
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.ClientSize = new System.Drawing.Size(1758, 935);
+            this.Controls.Add(this.dataGridView_Holes);
+            this.Controls.Add(this.button_Generate);
+            this.Controls.Add(this.label15);
+            this.Controls.Add(this.groupBox2);
+            this.Controls.Add(this.groupBox1);
+            this.Controls.Add(this.radioButton_SEM);
+            this.Controls.Add(this.radioButton_OTS);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.tStageName);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.m_ctrlStagePicture);
+            this.MaximizeBox = false;
+            this.MaximumSize = new System.Drawing.Size(1780, 991);
+            this.MinimizeBox = false;
+            this.MinimumSize = new System.Drawing.Size(1780, 991);
+            this.Name = "DlgStageEdit";
+            this.ShowIcon = false;
+            this.ShowInTaskbar = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "DlgStageEdit";
+            this.Load += new System.EventHandler(this.DlgStageEdit_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.m_ctrlStagePicture)).EndInit();
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            this.groupBox2.ResumeLayout(false);
+            this.groupBox2.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Holes)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.PictureBox m_ctrlStagePicture;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.TextBox tStageName;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.RadioButton radioButton_OTS;
+        private System.Windows.Forms.RadioButton radioButton_SEM;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.TextBox tBoundaryHeight;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.TextBox tBoundaryWide;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.TextBox tBoundaryY;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.TextBox tBoundaryX;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.RadioButton radioButton_BoundarySquare;
+        private System.Windows.Forms.RadioButton radioButton_BoundaryCircle;
+        private System.Windows.Forms.GroupBox groupBox2;
+        private System.Windows.Forms.TextBox tStandardsampleHeight;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.TextBox tStandardsampleWide;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.TextBox tStandardsampleY;
+        private System.Windows.Forms.Label label11;
+        private System.Windows.Forms.TextBox tStandardsampleX;
+        private System.Windows.Forms.Label label12;
+        private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.RadioButton radioButton__StandardsampleSqare;
+        private System.Windows.Forms.RadioButton radioButton_StandardsampleCircle;
+        private System.Windows.Forms.Label label14;
+        private System.Windows.Forms.Label label15;
+        private System.Windows.Forms.Button button_Generate;
+        private System.Windows.Forms.DataGridView dataGridView_Holes;
+    }
+}

+ 25 - 0
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageEdit.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace OTSMeasureApp._7_OTSProgMgrInfo.Stage
+{
+    public partial class DlgStageEdit : Form
+    {
+        public DlgStageEdit()
+        {
+            InitializeComponent();
+        }
+
+        private void DlgStageEdit_Load(object sender, EventArgs e)
+        {
+
+        }
+    }
+}

+ 120 - 0
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageEdit.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 42 - 14
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageMgr.Designer.cs

@@ -36,12 +36,16 @@
             this.m_ctrlBtnApply = new System.Windows.Forms.Button();
             this.m_ctrlStagePicture = new System.Windows.Forms.PictureBox();
             this.m_ctrlListBoxStageList = new System.Windows.Forms.ListBox();
+            this.button_edit = new System.Windows.Forms.Button();
+            this.button_New = new System.Windows.Forms.Button();
             this.groupBox1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.m_ctrlStagePicture)).BeginInit();
             this.SuspendLayout();
             // 
             // groupBox1
             // 
+            this.groupBox1.Controls.Add(this.button_New);
+            this.groupBox1.Controls.Add(this.button_edit);
             this.groupBox1.Controls.Add(this.m_ctrlBtnExport);
             this.groupBox1.Controls.Add(this.IDC_BTN_IMPORT);
             this.groupBox1.Controls.Add(this.m_ctrlBtnRename);
@@ -50,9 +54,9 @@
             this.groupBox1.Controls.Add(this.m_ctrlStagePicture);
             this.groupBox1.Controls.Add(this.m_ctrlListBoxStageList);
             this.groupBox1.Location = new System.Drawing.Point(3, 2);
-            this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
             this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
             this.groupBox1.Size = new System.Drawing.Size(1046, 476);
             this.groupBox1.TabIndex = 0;
             this.groupBox1.TabStop = false;
@@ -60,7 +64,7 @@
             // m_ctrlBtnExport
             // 
             this.m_ctrlBtnExport.Location = new System.Drawing.Point(928, 436);
-            this.m_ctrlBtnExport.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlBtnExport.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlBtnExport.Name = "m_ctrlBtnExport";
             this.m_ctrlBtnExport.Size = new System.Drawing.Size(112, 34);
             this.m_ctrlBtnExport.TabIndex = 6;
@@ -71,7 +75,7 @@
             // IDC_BTN_IMPORT
             // 
             this.IDC_BTN_IMPORT.Location = new System.Drawing.Point(788, 436);
-            this.IDC_BTN_IMPORT.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.IDC_BTN_IMPORT.Margin = new System.Windows.Forms.Padding(4);
             this.IDC_BTN_IMPORT.Name = "IDC_BTN_IMPORT";
             this.IDC_BTN_IMPORT.Size = new System.Drawing.Size(112, 34);
             this.IDC_BTN_IMPORT.TabIndex = 5;
@@ -81,10 +85,10 @@
             // 
             // m_ctrlBtnRename
             // 
-            this.m_ctrlBtnRename.Location = new System.Drawing.Point(254, 436);
-            this.m_ctrlBtnRename.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlBtnRename.Location = new System.Drawing.Point(339, 436);
+            this.m_ctrlBtnRename.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlBtnRename.Name = "m_ctrlBtnRename";
-            this.m_ctrlBtnRename.Size = new System.Drawing.Size(112, 34);
+            this.m_ctrlBtnRename.Size = new System.Drawing.Size(97, 34);
             this.m_ctrlBtnRename.TabIndex = 4;
             this.m_ctrlBtnRename.Text = "重命名";
             this.m_ctrlBtnRename.UseVisualStyleBackColor = true;
@@ -92,10 +96,10 @@
             // 
             // m_ctrlBtnDelete
             // 
-            this.m_ctrlBtnDelete.Location = new System.Drawing.Point(130, 436);
-            this.m_ctrlBtnDelete.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlBtnDelete.Location = new System.Drawing.Point(236, 436);
+            this.m_ctrlBtnDelete.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlBtnDelete.Name = "m_ctrlBtnDelete";
-            this.m_ctrlBtnDelete.Size = new System.Drawing.Size(112, 34);
+            this.m_ctrlBtnDelete.Size = new System.Drawing.Size(95, 34);
             this.m_ctrlBtnDelete.TabIndex = 3;
             this.m_ctrlBtnDelete.Text = "删除";
             this.m_ctrlBtnDelete.UseVisualStyleBackColor = true;
@@ -104,7 +108,7 @@
             // m_ctrlBtnApply
             // 
             this.m_ctrlBtnApply.Location = new System.Drawing.Point(9, 436);
-            this.m_ctrlBtnApply.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlBtnApply.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlBtnApply.Name = "m_ctrlBtnApply";
             this.m_ctrlBtnApply.Size = new System.Drawing.Size(112, 34);
             this.m_ctrlBtnApply.TabIndex = 2;
@@ -116,7 +120,7 @@
             // 
             this.m_ctrlStagePicture.BackColor = System.Drawing.Color.White;
             this.m_ctrlStagePicture.Location = new System.Drawing.Point(474, 26);
-            this.m_ctrlStagePicture.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlStagePicture.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlStagePicture.Name = "m_ctrlStagePicture";
             this.m_ctrlStagePicture.Size = new System.Drawing.Size(567, 400);
             this.m_ctrlStagePicture.TabIndex = 1;
@@ -127,12 +131,34 @@
             this.m_ctrlListBoxStageList.FormattingEnabled = true;
             this.m_ctrlListBoxStageList.ItemHeight = 18;
             this.m_ctrlListBoxStageList.Location = new System.Drawing.Point(9, 26);
-            this.m_ctrlListBoxStageList.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.m_ctrlListBoxStageList.Margin = new System.Windows.Forms.Padding(4);
             this.m_ctrlListBoxStageList.Name = "m_ctrlListBoxStageList";
             this.m_ctrlListBoxStageList.Size = new System.Drawing.Size(439, 400);
             this.m_ctrlListBoxStageList.TabIndex = 0;
             this.m_ctrlListBoxStageList.SelectedValueChanged += new System.EventHandler(this.OnSelchangeListStage);
             // 
+            // button_edit
+            // 
+            this.button_edit.Location = new System.Drawing.Point(129, 436);
+            this.button_edit.Margin = new System.Windows.Forms.Padding(4);
+            this.button_edit.Name = "button_edit";
+            this.button_edit.Size = new System.Drawing.Size(99, 34);
+            this.button_edit.TabIndex = 7;
+            this.button_edit.Text = "编辑";
+            this.button_edit.UseVisualStyleBackColor = true;
+            this.button_edit.Click += new System.EventHandler(this.button_edit_Click);
+            // 
+            // button_New
+            // 
+            this.button_New.Location = new System.Drawing.Point(654, 436);
+            this.button_New.Margin = new System.Windows.Forms.Padding(4);
+            this.button_New.Name = "button_New";
+            this.button_New.Size = new System.Drawing.Size(112, 34);
+            this.button_New.TabIndex = 8;
+            this.button_New.Text = "新建";
+            this.button_New.UseVisualStyleBackColor = true;
+            this.button_New.Click += new System.EventHandler(this.button_New_Click);
+            // 
             // DlgStageMgr
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
@@ -140,7 +166,7 @@
             this.ClientSize = new System.Drawing.Size(1040, 454);
             this.Controls.Add(this.groupBox1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
-            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.Margin = new System.Windows.Forms.Padding(4);
             this.MaximizeBox = false;
             this.MaximumSize = new System.Drawing.Size(1062, 510);
             this.MinimizeBox = false;
@@ -168,5 +194,7 @@
         private System.Windows.Forms.ListBox m_ctrlListBoxStageList;
         private System.Windows.Forms.Button m_ctrlBtnExport;
         private System.Windows.Forms.Button IDC_BTN_IMPORT;
+        private System.Windows.Forms.Button button_edit;
+        private System.Windows.Forms.Button button_New;
     }
 }

+ 12 - 0
OTSIncAMeasureApp/7-OTSProgMgrInfo/Stage/DlgStageMgr.cs

@@ -11,6 +11,7 @@ using OTSDataType;
 using static OTSModelSharp.ResourceManage.ResourceID;
 using static OTSModelSharp.ResourceManage.ResourceData;
 using System.Drawing.Drawing2D;
+using OTSMeasureApp._7_OTSProgMgrInfo.Stage;
 
 namespace OTSModelSharp.Measure.GetStageInfo
 {
@@ -734,6 +735,17 @@ namespace OTSModelSharp.Measure.GetStageInfo
 
         }
 
+        private void button_edit_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void button_New_Click(object sender, EventArgs e)
+        {
+            DlgStageEdit dlgStageEdit = new DlgStageEdit();
+            dlgStageEdit.ShowDialog();
+        }
+
         //public CStageParam ShowStageMgrDialog(otsdataconst.OTS_SysType_ID a_nPackId, CStageParam a_pStageFile)
         //{
         //    if (a_pStageFile == null)

+ 9 - 0
OTSIncAMeasureApp/OTSIncAMeasureApp.csproj

@@ -236,6 +236,12 @@
     <Compile Include="0-OTSModel\OTSDataType\SEMStageData.cs" />
     <Compile Include="0-OTSModel\OTSDataType\XmlResourceData.cs" />
     <Compile Include="0-OTSModel\OTSDataType\XMLSerialization.cs" />
+    <Compile Include="7-OTSProgMgrInfo\Stage\DlgStageEdit.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="7-OTSProgMgrInfo\Stage\DlgStageEdit.Designer.cs">
+      <DependentUpon>DlgStageEdit.cs</DependentUpon>
+    </Compile>
     <Compile Include="7-OTSProgMgrInfo\Stage\DlgStageMgr.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -431,6 +437,9 @@
     <EmbeddedResource Include="1-OTSMeasure\MeasureCheckResultInfoWindow.resx">
       <DependentUpon>MeasureCheckResultInfoWindow.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="7-OTSProgMgrInfo\Stage\DlgStageEdit.resx">
+      <DependentUpon>DlgStageEdit.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="7-OTSProgMgrInfo\Stage\DlgStageMgr.resx">
       <DependentUpon>DlgStageMgr.cs</DependentUpon>
     </EmbeddedResource>