diff --git a/PutTowerPosition/Gui.Designer.cs b/PutTowerPosition/Gui.Designer.cs
new file mode 100644
index 0000000..86fe3c6
--- /dev/null
+++ b/PutTowerPosition/Gui.Designer.cs
@@ -0,0 +1,96 @@
+namespace PutTowerPosition
+{
+ partial class Gui
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.LB_SFilePath = new System.Windows.Forms.Label();
+ this.TB_SFilePATH = new System.Windows.Forms.TextBox();
+ this.BT_SelectSFile = new System.Windows.Forms.Button();
+ this.BT_REFRESH = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // LB_SFilePath
+ //
+ this.LB_SFilePath.AutoSize = true;
+ this.LB_SFilePath.Location = new System.Drawing.Point(26, 27);
+ this.LB_SFilePath.Name = "LB_SFilePath";
+ this.LB_SFilePath.Size = new System.Drawing.Size(65, 12);
+ this.LB_SFilePath.TabIndex = 0;
+ this.LB_SFilePath.Text = "S文件路径:";
+ //
+ // TB_SFilePATH
+ //
+ this.TB_SFilePATH.Location = new System.Drawing.Point(97, 24);
+ this.TB_SFilePATH.Name = "TB_SFilePATH";
+ this.TB_SFilePATH.Size = new System.Drawing.Size(354, 21);
+ this.TB_SFilePATH.TabIndex = 1;
+ //
+ // BT_SelectSFile
+ //
+ this.BT_SelectSFile.Location = new System.Drawing.Point(472, 24);
+ this.BT_SelectSFile.Name = "BT_SelectSFile";
+ this.BT_SelectSFile.Size = new System.Drawing.Size(75, 23);
+ this.BT_SelectSFile.TabIndex = 2;
+ this.BT_SelectSFile.Text = "选择S文件";
+ this.BT_SelectSFile.UseVisualStyleBackColor = true;
+ this.BT_SelectSFile.Click += new System.EventHandler(this.BT_SelectSFile_Click);
+ //
+ // BT_REFRESH
+ //
+ this.BT_REFRESH.Location = new System.Drawing.Point(78, 66);
+ this.BT_REFRESH.Name = "BT_REFRESH";
+ this.BT_REFRESH.Size = new System.Drawing.Size(425, 74);
+ this.BT_REFRESH.TabIndex = 3;
+ this.BT_REFRESH.Text = "刷新";
+ this.BT_REFRESH.UseVisualStyleBackColor = true;
+ this.BT_REFRESH.Click += new System.EventHandler(this.BT_REFRESH_Click);
+ //
+ // Gui
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(577, 152);
+ this.Controls.Add(this.BT_REFRESH);
+ this.Controls.Add(this.BT_SelectSFile);
+ this.Controls.Add(this.TB_SFilePATH);
+ this.Controls.Add(this.LB_SFilePath);
+ this.Name = "Gui";
+ this.Text = "Gui";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label LB_SFilePath;
+ private System.Windows.Forms.TextBox TB_SFilePATH;
+ private System.Windows.Forms.Button BT_SelectSFile;
+ private System.Windows.Forms.Button BT_REFRESH;
+ }
+}
\ No newline at end of file
diff --git a/PutTowerPosition/Gui.cs b/PutTowerPosition/Gui.cs
new file mode 100644
index 0000000..24545cc
--- /dev/null
+++ b/PutTowerPosition/Gui.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace PutTowerPosition
+{
+ public partial class Gui : Form
+ {
+ public Gui()
+ {
+ InitializeComponent();
+ }
+
+ private void BT_SelectSFile_Click(object sender, EventArgs e)
+ {
+ OpenFileDialog openFileDialog = new OpenFileDialog();
+ openFileDialog.Filter = "S files (*.dat)|*.dat";
+ openFileDialog.Multiselect = false;
+ openFileDialog.RestoreDirectory = true;
+ if (openFileDialog.ShowDialog() == DialogResult.OK)
+ {
+ this.TB_SFilePATH.Text = openFileDialog.FileName;
+ }
+ }
+
+ private void BT_REFRESH_Click(object sender, EventArgs e)
+ {
+ if (this.TB_SFilePATH.Text.Trim() != "")
+ {
+ PutTowerPosition.Cmd.PutTowerPosition(this.TB_SFilePATH.Text);
+ }
+
+ }
+ }
+}
diff --git a/PutTowerPosition/Gui.resx b/PutTowerPosition/Gui.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/PutTowerPosition/Gui.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/PutTowerPosition/Properties/Settings.Designer.cs b/PutTowerPosition/Properties/Settings.Designer.cs
index 1135608..dca8ba8 100644
--- a/PutTowerPosition/Properties/Settings.Designer.cs
+++ b/PutTowerPosition/Properties/Settings.Designer.cs
@@ -8,7 +8,7 @@
//
//------------------------------------------------------------------------------
-namespace PutTowerPostion.Properties {
+namespace PutTowerPosition.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
diff --git a/PutTowerPosition/PutTowerPosition.csproj b/PutTowerPosition/PutTowerPosition.csproj
index b3fce59..bdad8f1 100644
--- a/PutTowerPosition/PutTowerPosition.csproj
+++ b/PutTowerPosition/PutTowerPosition.csproj
@@ -8,7 +8,7 @@
{CA8FB7A3-CEB6-471C-BB97-76CBFA17293C}
Library
Properties
- PutTowerPostion
+ PutTowerPosition
PutTowerPostion
v3.5
512
@@ -70,7 +70,12 @@
-
+
+ Form
+
+
+ Gui.cs
+
True
@@ -85,6 +90,11 @@
Settings.Designer.cs
+
+
+ Gui.cs
+
+