窗体设计20260615
This commit is contained in:
Generated
+1
@@ -59,6 +59,7 @@
|
|||||||
ClientSize = new Size(288, 218);
|
ClientSize = new Size(288, 218);
|
||||||
Controls.Add(button2);
|
Controls.Add(button2);
|
||||||
Controls.Add(DataFromFiles);
|
Controls.Add(DataFromFiles);
|
||||||
|
FormBorderStyle = FormBorderStyle.Fixed3D;
|
||||||
MaximizeBox = false;
|
MaximizeBox = false;
|
||||||
Name = "DataInputForm";
|
Name = "DataInputForm";
|
||||||
Text = "数据输入";
|
Text = "数据输入";
|
||||||
|
|||||||
Generated
+1
-1
@@ -64,7 +64,6 @@
|
|||||||
//
|
//
|
||||||
// btnSubmitData
|
// btnSubmitData
|
||||||
//
|
//
|
||||||
btnSubmitData.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
btnSubmitData.Location = new Point(641, 38);
|
btnSubmitData.Location = new Point(641, 38);
|
||||||
btnSubmitData.Name = "btnSubmitData";
|
btnSubmitData.Name = "btnSubmitData";
|
||||||
btnSubmitData.Size = new Size(106, 83);
|
btnSubmitData.Size = new Size(106, 83);
|
||||||
@@ -170,6 +169,7 @@
|
|||||||
Controls.Add(btnSubmitData);
|
Controls.Add(btnSubmitData);
|
||||||
Controls.Add(KonwnSFile);
|
Controls.Add(KonwnSFile);
|
||||||
Controls.Add(KnownPointFile);
|
Controls.Add(KnownPointFile);
|
||||||
|
FormBorderStyle = FormBorderStyle.Fixed3D;
|
||||||
MaximizeBox = false;
|
MaximizeBox = false;
|
||||||
Name = "FileInputForm";
|
Name = "FileInputForm";
|
||||||
Text = "文件读取";
|
Text = "文件读取";
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace kcsj.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 按空格、Tab、英文逗号、中文逗号分割每一行
|
// 按空格、Tab、英文逗号、中文逗号分割
|
||||||
private string[] SplitLine(string line)
|
private string[] SplitLine(string line)
|
||||||
{
|
{
|
||||||
return line.Split(new char[] { ' ', '\t', ',', ',' },
|
return line.Split(new char[] { ' ', '\t', ',', ',' },
|
||||||
@@ -150,9 +150,6 @@ namespace kcsj.Forms
|
|||||||
if (string.IsNullOrWhiteSpace(line))
|
if (string.IsNullOrWhiteSpace(line))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (line.StartsWith("#") || line.StartsWith("//"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
string[] parts = SplitLine(line);
|
string[] parts = SplitLine(line);
|
||||||
|
|
||||||
if (parts.Length != 4)
|
if (parts.Length != 4)
|
||||||
@@ -194,7 +191,7 @@ namespace kcsj.Forms
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置表格中文表头
|
// 设置表格表头
|
||||||
private void SetGridHeader()
|
private void SetGridHeader()
|
||||||
{
|
{
|
||||||
if (dgvKnownPoints.Columns.Count > 0)
|
if (dgvKnownPoints.Columns.Count > 0)
|
||||||
|
|||||||
Generated
+1
@@ -232,6 +232,7 @@
|
|||||||
Controls.Add(btnDataInput);
|
Controls.Add(btnDataInput);
|
||||||
Controls.Add(MainTitle);
|
Controls.Add(MainTitle);
|
||||||
Controls.Add(menuStrip1);
|
Controls.Add(menuStrip1);
|
||||||
|
FormBorderStyle = FormBorderStyle.Fixed3D;
|
||||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
||||||
MainMenuStrip = menuStrip1;
|
MainMenuStrip = menuStrip1;
|
||||||
MaximizeBox = false;
|
MaximizeBox = false;
|
||||||
|
|||||||
Generated
+2
@@ -148,6 +148,7 @@
|
|||||||
btnOK.Text = "提交";
|
btnOK.Text = "提交";
|
||||||
btnOK.UseVisualStyleBackColor = true;
|
btnOK.UseVisualStyleBackColor = true;
|
||||||
btnOK.UseWaitCursor = true;
|
btnOK.UseWaitCursor = true;
|
||||||
|
btnOK.Click += btnOK_Click;
|
||||||
//
|
//
|
||||||
// btnCancel
|
// btnCancel
|
||||||
//
|
//
|
||||||
@@ -157,6 +158,7 @@
|
|||||||
btnCancel.TabIndex = 4;
|
btnCancel.TabIndex = 4;
|
||||||
btnCancel.Text = "取消";
|
btnCancel.Text = "取消";
|
||||||
btnCancel.UseVisualStyleBackColor = true;
|
btnCancel.UseVisualStyleBackColor = true;
|
||||||
|
btnCancel.Click += btnCancel_Click;
|
||||||
//
|
//
|
||||||
// ManualInputForm
|
// ManualInputForm
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -16,5 +16,15 @@ namespace kcsj.Forms
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnCancel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnOK_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user