Commit f323fae3 authored by Bruce's avatar Bruce

優化 UI 介面 -v 0.3

parent b2897ce8
...@@ -138,7 +138,7 @@ namespace ETC_App1 ...@@ -138,7 +138,7 @@ namespace ETC_App1
private void BndBox_MouseClick(object sender, MouseEventArgs e) private void BndBox_MouseClick(object sender, MouseEventArgs e)
{ {
//this.BringToFront(); this.BringToFront();
} }
} }
} }
...@@ -162,6 +162,12 @@ ...@@ -162,6 +162,12 @@
<Compile Include="Form2.Designer.cs"> <Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon> <DependentUpon>Form2.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form3.Designer.cs">
<DependentUpon>Form3.cs</DependentUpon>
</Compile>
<Compile Include="HyperLPR.cs" /> <Compile Include="HyperLPR.cs" />
<Compile Include="Json.cs" /> <Compile Include="Json.cs" />
<Compile Include="JsonPlate.cs" /> <Compile Include="JsonPlate.cs" />
...@@ -215,6 +221,9 @@ ...@@ -215,6 +221,9 @@
<EmbeddedResource Include="Form2.resx"> <EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon> <DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
...@@ -223,6 +232,7 @@ ...@@ -223,6 +232,7 @@
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="UserControl1.resx"> <EmbeddedResource Include="UserControl1.resx">
<DependentUpon>UserControl1.cs</DependentUpon> <DependentUpon>UserControl1.cs</DependentUpon>
...@@ -245,6 +255,17 @@ ...@@ -245,6 +255,17 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="License-LGPL.txt" /> <Content Include="License-LGPL.txt" />
<None Include="Resources\undo.png" />
<None Include="Resources\tick.png" />
<None Include="Resources\check.png" />
<None Include="Resources\left.png" />
<None Include="Resources\right.png" />
<None Include="Resources\image %281%29.png" />
<None Include="Resources\image.png" />
<None Include="Resources\floppy-disk.png" />
<None Include="Resources\files-and-folders.png" />
<None Include="Resources\xml-file-format-symbol.png" />
<None Include="Resources\files.png" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\EMGU.CV.4.0.1.3373\build\EMGU.CV.targets" Condition="Exists('..\packages\EMGU.CV.4.0.1.3373\build\EMGU.CV.targets')" /> <Import Project="..\packages\EMGU.CV.4.0.1.3373\build\EMGU.CV.targets" Condition="Exists('..\packages\EMGU.CV.4.0.1.3373\build\EMGU.CV.targets')" />
......
...@@ -35,19 +35,12 @@ ...@@ -35,19 +35,12 @@
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.button7 = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.xml_path_btn = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.img_path_btn = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
...@@ -62,6 +55,13 @@ ...@@ -62,6 +55,13 @@
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button7 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.xml_path_btn = new System.Windows.Forms.Button();
this.img_path_btn = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
...@@ -99,10 +99,10 @@ ...@@ -99,10 +99,10 @@
// //
// button9 // button9
// //
this.button9.Location = new System.Drawing.Point(230, 10); this.button9.Location = new System.Drawing.Point(225, 10);
this.button9.Margin = new System.Windows.Forms.Padding(4); this.button9.Margin = new System.Windows.Forms.Padding(4);
this.button9.Name = "button9"; this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(112, 34); this.button9.Size = new System.Drawing.Size(133, 34);
this.button9.TabIndex = 1; this.button9.TabIndex = 1;
this.button9.Text = "回到檢查視窗"; this.button9.Text = "回到檢查視窗";
this.button9.UseVisualStyleBackColor = true; this.button9.UseVisualStyleBackColor = true;
...@@ -140,7 +140,9 @@ ...@@ -140,7 +140,9 @@
// //
// panel1 // panel1
// //
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.tableLayoutPanel3); this.panel1.Controls.Add(this.tableLayoutPanel3);
this.panel1.Cursor = System.Windows.Forms.Cursors.Default;
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 3); this.panel1.Location = new System.Drawing.Point(3, 3);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
...@@ -149,6 +151,7 @@ ...@@ -149,6 +151,7 @@
// //
// tableLayoutPanel3 // tableLayoutPanel3
// //
this.tableLayoutPanel3.BackColor = System.Drawing.Color.White;
this.tableLayoutPanel3.ColumnCount = 1; this.tableLayoutPanel3.ColumnCount = 1;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.Controls.Add(this.label8, 0, 13); this.tableLayoutPanel3.Controls.Add(this.label8, 0, 13);
...@@ -163,8 +166,8 @@ ...@@ -163,8 +166,8 @@
this.tableLayoutPanel3.Controls.Add(this.button3, 0, 4); this.tableLayoutPanel3.Controls.Add(this.button3, 0, 4);
this.tableLayoutPanel3.Controls.Add(this.label3, 0, 3); this.tableLayoutPanel3.Controls.Add(this.label3, 0, 3);
this.tableLayoutPanel3.Controls.Add(this.xml_path_btn, 0, 2); this.tableLayoutPanel3.Controls.Add(this.xml_path_btn, 0, 2);
this.tableLayoutPanel3.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.img_path_btn, 0, 0); this.tableLayoutPanel3.Controls.Add(this.img_path_btn, 0, 0);
this.tableLayoutPanel3.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Right; this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Right;
this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.Name = "tableLayoutPanel3";
...@@ -189,180 +192,93 @@ ...@@ -189,180 +192,93 @@
// label8 // label8
// //
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("標楷體", 14F); this.label8.Dock = System.Windows.Forms.DockStyle.Top;
this.label8.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label8.Location = new System.Drawing.Point(4, 944); this.label8.Location = new System.Drawing.Point(4, 944);
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(222, 28); this.label8.Size = new System.Drawing.Size(268, 32);
this.label8.TabIndex = 14; this.label8.TabIndex = 14;
this.label8.Text = "沿用區塊(Clt+E)"; this.label8.Text = "沿用區塊(Clt+E)";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label8.UseWaitCursor = true;
//
// button7
//
this.button7.Dock = System.Windows.Forms.DockStyle.Fill;
this.button7.Font = new System.Drawing.Font("新細明體", 18F);
this.button7.Location = new System.Drawing.Point(4, 850);
this.button7.Margin = new System.Windows.Forms.Padding(4);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(268, 90);
this.button7.TabIndex = 13;
this.button7.Text = "沿用區塊";
this.button7.UseVisualStyleBackColor = true;
this.button7.UseWaitCursor = true;
// //
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("標楷體", 14F); this.label7.Dock = System.Windows.Forms.DockStyle.Top;
this.label7.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label7.Location = new System.Drawing.Point(4, 803); this.label7.Location = new System.Drawing.Point(4, 803);
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(222, 28); this.label7.Size = new System.Drawing.Size(268, 32);
this.label7.TabIndex = 12; this.label7.TabIndex = 12;
this.label7.Text = "創建區塊(Clt+W)"; this.label7.Text = "創建區塊(Clt+W)";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label7.UseWaitCursor = true;
//
// button6
//
this.button6.Dock = System.Windows.Forms.DockStyle.Fill;
this.button6.Font = new System.Drawing.Font("新細明體", 18F);
this.button6.Location = new System.Drawing.Point(4, 709);
this.button6.Margin = new System.Windows.Forms.Padding(4);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(268, 90);
this.button6.TabIndex = 11;
this.button6.Text = "創建區塊";
this.button6.UseVisualStyleBackColor = true;
this.button6.UseWaitCursor = true;
// //
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Dock = System.Windows.Forms.DockStyle.Top;
this.label6.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label6.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label6.Location = new System.Drawing.Point(4, 662); this.label6.Location = new System.Drawing.Point(4, 662);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(223, 32); this.label6.Size = new System.Drawing.Size(268, 32);
this.label6.TabIndex = 10; this.label6.TabIndex = 10;
this.label6.Text = "儲存( Ctl+S )"; this.label6.Text = "儲存( Ctl+S )";
this.label6.UseWaitCursor = true; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button5
//
this.button5.Dock = System.Windows.Forms.DockStyle.Fill;
this.button5.Font = new System.Drawing.Font("新細明體", 18F);
this.button5.Location = new System.Drawing.Point(4, 568);
this.button5.Margin = new System.Windows.Forms.Padding(4);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(268, 90);
this.button5.TabIndex = 9;
this.button5.Text = "儲存";
this.button5.UseVisualStyleBackColor = true;
this.button5.UseWaitCursor = true;
// //
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Dock = System.Windows.Forms.DockStyle.Top;
this.label5.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label5.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label5.Location = new System.Drawing.Point(4, 521); this.label5.Location = new System.Drawing.Point(4, 521);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(207, 32); this.label5.Size = new System.Drawing.Size(268, 32);
this.label5.TabIndex = 8; this.label5.TabIndex = 8;
this.label5.Text = "上一張 ( A )"; this.label5.Text = "上一張 ( A )";
this.label5.UseWaitCursor = true; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button4
//
this.button4.Dock = System.Windows.Forms.DockStyle.Fill;
this.button4.Font = new System.Drawing.Font("新細明體", 18F);
this.button4.Location = new System.Drawing.Point(4, 427);
this.button4.Margin = new System.Windows.Forms.Padding(4);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(268, 90);
this.button4.TabIndex = 7;
this.button4.Text = "<=";
this.button4.UseVisualStyleBackColor = true;
this.button4.UseWaitCursor = true;
// //
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
this.label4.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label4.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label4.Location = new System.Drawing.Point(4, 380); this.label4.Location = new System.Drawing.Point(4, 380);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(207, 32); this.label4.Size = new System.Drawing.Size(268, 32);
this.label4.TabIndex = 6; this.label4.TabIndex = 6;
this.label4.Text = "下一張 ( D )"; this.label4.Text = "下一張 ( D )";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label4.UseWaitCursor = true;
//
// button3
//
this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.Font = new System.Drawing.Font("新細明體", 18F);
this.button3.Location = new System.Drawing.Point(4, 286);
this.button3.Margin = new System.Windows.Forms.Padding(4);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(268, 90);
this.button3.TabIndex = 5;
this.button3.Text = "=>";
this.button3.UseVisualStyleBackColor = true;
this.button3.UseWaitCursor = true;
// //
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
this.label3.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label3.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label3.Location = new System.Drawing.Point(4, 239); this.label3.Location = new System.Drawing.Point(4, 239);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(207, 32); this.label3.Size = new System.Drawing.Size(268, 32);
this.label3.TabIndex = 4; this.label3.TabIndex = 4;
this.label3.Text = "存放標籤目錄"; this.label3.Text = "存放標籤目錄";
this.label3.UseWaitCursor = true; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// xml_path_btn
//
this.xml_path_btn.Dock = System.Windows.Forms.DockStyle.Fill;
this.xml_path_btn.Location = new System.Drawing.Point(4, 145);
this.xml_path_btn.Margin = new System.Windows.Forms.Padding(4);
this.xml_path_btn.Name = "xml_path_btn";
this.xml_path_btn.Size = new System.Drawing.Size(268, 90);
this.xml_path_btn.TabIndex = 3;
this.xml_path_btn.Text = "存放標記目錄";
this.xml_path_btn.UseVisualStyleBackColor = true;
this.xml_path_btn.UseWaitCursor = true;
this.xml_path_btn.Click += new System.EventHandler(this.xml_path_btn_Click);
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Dock = System.Windows.Forms.DockStyle.Top;
this.label2.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label2.Font = new System.Drawing.Font("標楷體", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
this.label2.Location = new System.Drawing.Point(4, 98); this.label2.Location = new System.Drawing.Point(4, 98);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(207, 32); this.label2.Size = new System.Drawing.Size(268, 32);
this.label2.TabIndex = 2; this.label2.TabIndex = 2;
this.label2.Text = "開啟圖片目錄"; this.label2.Text = "開啟圖片目錄";
this.label2.UseWaitCursor = true; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// img_path_btn
//
this.img_path_btn.Dock = System.Windows.Forms.DockStyle.Fill;
this.img_path_btn.Location = new System.Drawing.Point(4, 4);
this.img_path_btn.Margin = new System.Windows.Forms.Padding(4);
this.img_path_btn.Name = "img_path_btn";
this.img_path_btn.Size = new System.Drawing.Size(268, 90);
this.img_path_btn.TabIndex = 1;
this.img_path_btn.Text = "開啟圖片目錄";
this.img_path_btn.UseVisualStyleBackColor = true;
this.img_path_btn.UseWaitCursor = true;
this.img_path_btn.Click += new System.EventHandler(this.img_path_btn_Click);
// //
// tableLayoutPanel2 // tableLayoutPanel2
// //
...@@ -418,14 +334,16 @@ ...@@ -418,14 +334,16 @@
// //
// button8 // button8
// //
this.button8.Cursor = System.Windows.Forms.Cursors.Default;
this.button8.Font = new System.Drawing.Font("新細明體", 12F); this.button8.Font = new System.Drawing.Font("新細明體", 12F);
this.button8.Location = new System.Drawing.Point(10, 51); this.button8.Location = new System.Drawing.Point(10, 46);
this.button8.Margin = new System.Windows.Forms.Padding(4); this.button8.Margin = new System.Windows.Forms.Padding(4);
this.button8.Name = "button8"; this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(141, 34); this.button8.Size = new System.Drawing.Size(141, 45);
this.button8.TabIndex = 5; this.button8.TabIndex = 5;
this.button8.Text = "編輯標籤"; this.button8.Text = "編輯標籤";
this.button8.UseVisualStyleBackColor = true; this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
// //
// label9 // label9
// //
...@@ -458,6 +376,7 @@ ...@@ -458,6 +376,7 @@
this.listBox1.Name = "listBox1"; this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(335, 436); this.listBox1.Size = new System.Drawing.Size(335, 436);
this.listBox1.TabIndex = 7; this.listBox1.TabIndex = 7;
this.listBox1.SelectedValueChanged += new System.EventHandler(this.listBox1_SelectedValueChanged);
// //
// label10 // label10
// //
...@@ -479,6 +398,8 @@ ...@@ -479,6 +398,8 @@
this.checkedListBox1.Name = "checkedListBox1"; this.checkedListBox1.Name = "checkedListBox1";
this.checkedListBox1.Size = new System.Drawing.Size(335, 270); this.checkedListBox1.Size = new System.Drawing.Size(335, 270);
this.checkedListBox1.TabIndex = 6; this.checkedListBox1.TabIndex = 6;
this.checkedListBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Box_MouseClick);
this.checkedListBox1.DoubleClick += new System.EventHandler(this.checkedListBox1_DoubleClick);
// //
// panel4 // panel4
// //
...@@ -501,11 +422,129 @@ ...@@ -501,11 +422,129 @@
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0; this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Box_MouseClick);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// button7
//
this.button7.BackgroundImage = global::ETC_App1.Properties.Resources.image__1_;
this.button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button7.Cursor = System.Windows.Forms.Cursors.Hand;
this.button7.Dock = System.Windows.Forms.DockStyle.Fill;
this.button7.FlatAppearance.BorderSize = 0;
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button7.Font = new System.Drawing.Font("新細明體", 18F);
this.button7.Location = new System.Drawing.Point(4, 850);
this.button7.Margin = new System.Windows.Forms.Padding(4);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(268, 90);
this.button7.TabIndex = 13;
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button6
//
this.button6.BackgroundImage = global::ETC_App1.Properties.Resources.image;
this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button6.Cursor = System.Windows.Forms.Cursors.Hand;
this.button6.Dock = System.Windows.Forms.DockStyle.Fill;
this.button6.FlatAppearance.BorderSize = 0;
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button6.Font = new System.Drawing.Font("新細明體", 18F);
this.button6.Location = new System.Drawing.Point(4, 709);
this.button6.Margin = new System.Windows.Forms.Padding(4);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(268, 90);
this.button6.TabIndex = 11;
this.button6.UseVisualStyleBackColor = true;
//
// button5
//
this.button5.BackgroundImage = global::ETC_App1.Properties.Resources.floppy_disk;
this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button5.Cursor = System.Windows.Forms.Cursors.Hand;
this.button5.Dock = System.Windows.Forms.DockStyle.Fill;
this.button5.FlatAppearance.BorderSize = 0;
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button5.Font = new System.Drawing.Font("新細明體", 18F);
this.button5.Location = new System.Drawing.Point(4, 568);
this.button5.Margin = new System.Windows.Forms.Padding(4);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(268, 90);
this.button5.TabIndex = 9;
this.button5.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.BackgroundImage = global::ETC_App1.Properties.Resources.left;
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button4.Cursor = System.Windows.Forms.Cursors.Hand;
this.button4.Dock = System.Windows.Forms.DockStyle.Fill;
this.button4.FlatAppearance.BorderSize = 0;
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button4.Font = new System.Drawing.Font("新細明體", 18F);
this.button4.Location = new System.Drawing.Point(4, 427);
this.button4.Margin = new System.Windows.Forms.Padding(4);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(268, 90);
this.button4.TabIndex = 7;
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button3
//
this.button3.BackgroundImage = global::ETC_App1.Properties.Resources.right;
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button3.Cursor = System.Windows.Forms.Cursors.Hand;
this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.FlatAppearance.BorderSize = 0;
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button3.Font = new System.Drawing.Font("新細明體", 18F);
this.button3.Location = new System.Drawing.Point(4, 286);
this.button3.Margin = new System.Windows.Forms.Padding(4);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(268, 90);
this.button3.TabIndex = 5;
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// xml_path_btn
//
this.xml_path_btn.BackgroundImage = global::ETC_App1.Properties.Resources.xml_file_format_symbol;
this.xml_path_btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.xml_path_btn.Cursor = System.Windows.Forms.Cursors.Hand;
this.xml_path_btn.Dock = System.Windows.Forms.DockStyle.Fill;
this.xml_path_btn.FlatAppearance.BorderSize = 0;
this.xml_path_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.xml_path_btn.Location = new System.Drawing.Point(4, 145);
this.xml_path_btn.Margin = new System.Windows.Forms.Padding(4);
this.xml_path_btn.Name = "xml_path_btn";
this.xml_path_btn.Size = new System.Drawing.Size(268, 90);
this.xml_path_btn.TabIndex = 3;
this.xml_path_btn.UseVisualStyleBackColor = true;
this.xml_path_btn.Click += new System.EventHandler(this.xml_path_btn_Click);
//
// img_path_btn
//
this.img_path_btn.BackColor = System.Drawing.Color.White;
this.img_path_btn.BackgroundImage = global::ETC_App1.Properties.Resources.files_and_folders;
this.img_path_btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.img_path_btn.Cursor = System.Windows.Forms.Cursors.Hand;
this.img_path_btn.Dock = System.Windows.Forms.DockStyle.Fill;
this.img_path_btn.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.img_path_btn.FlatAppearance.BorderSize = 0;
this.img_path_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.img_path_btn.Location = new System.Drawing.Point(4, 4);
this.img_path_btn.Margin = new System.Windows.Forms.Padding(4);
this.img_path_btn.Name = "img_path_btn";
this.img_path_btn.Size = new System.Drawing.Size(268, 90);
this.img_path_btn.TabIndex = 1;
this.img_path_btn.UseVisualStyleBackColor = false;
this.img_path_btn.Click += new System.EventHandler(this.img_path_btn_Click);
//
// Form2 // Form2
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
......
...@@ -74,12 +74,7 @@ namespace ETC_App1 ...@@ -74,12 +74,7 @@ namespace ETC_App1
string img = listBox1.SelectedItem.ToString().Remove(0,3); string img = listBox1.SelectedItem.ToString().Remove(0,3);
Bitmap bitmap = new Bitmap(img); Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap; pictureBox1.Image = bitmap;
FreshImg(); FreshImg(img);
string xml = img.Replace(".jpg", ".xml").Replace(".png", ".xml");
if (File.Exists(xml))
{
Console.WriteLine(xml);
}
} }
} }
} }
...@@ -93,10 +88,10 @@ namespace ETC_App1 ...@@ -93,10 +88,10 @@ namespace ETC_App1
double rate; double rate;
int black_left_width; int black_left_width;
int black_top_height; int black_top_height;
private void FreshImg() private void FreshImg(string img)
{ {
Now_selected = -1; Now_selected = -1;
//int originalWidth = this.pictureBox1.Image.Width; int originalWidth = this.pictureBox1.Image.Width;
int originalHeight = this.pictureBox1.Image.Height; int originalHeight = this.pictureBox1.Image.Height;
PropertyInfo rectangleProperty = this.pictureBox1.GetType().GetProperty("ImageRectangle", BindingFlags.Instance | BindingFlags.NonPublic); PropertyInfo rectangleProperty = this.pictureBox1.GetType().GetProperty("ImageRectangle", BindingFlags.Instance | BindingFlags.NonPublic);
...@@ -117,65 +112,87 @@ namespace ETC_App1 ...@@ -117,65 +112,87 @@ namespace ETC_App1
} }
this.bndBoxes = new List<BndBox>(); this.bndBoxes = new List<BndBox>();
checkedListBox1.Items.Clear(); checkedListBox1.Items.Clear();
string xml = Path.GetFileName(img);
xmlLable.Filename = xml;
xmlLable.Size.Width = originalWidth.ToString();
xmlLable.Size.Height = originalHeight.ToString();
xmlLable.Size.Depth = "1";
if (String.IsNullOrEmpty(Xmls_path))
{
MessageBox.Show("請選存放標記目錄", "系統提示", MessageBoxButtons.OK);
xml_path_btn.PerformClick();
}
else
{
xml = Path.Combine(Xmls_path, xml.Replace(".jpg", ".xml").Replace(".png", ".xml"));
if (File.Exists(xml))
{
ReadEixistTree(xml);
}
}
} }
private void Form2_KeyDown(object sender, KeyEventArgs e) private void Form2_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.D) //下一張按鈕 if (listBox1.Items.Count <= 0)
{
MessageBox.Show("請選則有包含圖片的目錄", "系統提示", MessageBoxButtons.OK);
img_path_btn.PerformClick();
}
else if (e.KeyCode == Keys.D) //下一張按鈕
{ {
if (listBox1.Items.Count>0) if (listBox1.Items.Count>0)
{ {
if (listBox1.Items.Count > listBox1.SelectedIndex + 1) if (listBox1.Items.Count > listBox1.SelectedIndex + 1)
{ {
listBox1.SetSelected(listBox1.SelectedIndex+1 , true); listBox1.SetSelected(listBox1.SelectedIndex+1 , true);
string img = listBox1.SelectedItem.ToString().Remove(0, 3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
FreshImg();
string xml = img.Replace(".jpg", ".xml").Replace(".png",".xml");
if (File.Exists(xml))
{
Console.WriteLine(xml);
}
} }
} }
} }
if (e.KeyCode == Keys.A) //上一張按鈕 else if (e.KeyCode == Keys.A) //上一張按鈕
{ {
if (listBox1.Items.Count > 0) if (listBox1.Items.Count > 0)
{ {
if (0 <= listBox1.SelectedIndex -1) if (0 <= listBox1.SelectedIndex -1)
{ {
listBox1.SetSelected(listBox1.SelectedIndex - 1, true); listBox1.SetSelected(listBox1.SelectedIndex - 1, true);
string img = listBox1.SelectedItem.ToString().Remove(0, 3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
FreshImg();
string xml = img.Replace(".jpg", ".xml").Replace(".png", ".xml");
if (File.Exists(xml))
{
Console.WriteLine(xml);
}
} }
} }
} }
if (e.Control && e.KeyCode == Keys.S) //儲存按鈕 else if (e.Control && e.KeyCode == Keys.S) //儲存按鈕
{ {
string path =Application.StartupPath; string path =Application.StartupPath;
CreateXmlTree(path+@"\form2_config\Eample.xml", Xmls_path + @"\Eample2.xml"); string save_path = Path.Combine(Xmls_path,xmlLable.Filename.Replace(".jpg", ".xml").Replace(".png", ".xml"));
CreateXmlTree(path+@"\form2_config\Eample.xml", save_path);
} }
if (e.Control && e.KeyCode == Keys.W) //創建區塊 按鈕 else if (e.Control && e.KeyCode == Keys.W) //創建區塊 按鈕
{
if (checkBox1.Checked && !String.IsNullOrWhiteSpace(textBox1.Text))
newBndbox(0, textBox1.Text);
else
ShowForm3();
if (xmlLable.Object.Count > 0)
{ {
newBndbox(); temp_n = xmlLable.Object[xmlLable.Object.Count - 1].Name;
temp_x1 = Convert.ToInt32(xmlLable.Object[xmlLable.Object.Count - 1].X1);
temp_y1 = Convert.ToInt32(xmlLable.Object[xmlLable.Object.Count - 1].Y1);
temp_x2 = Convert.ToInt32(xmlLable.Object[xmlLable.Object.Count - 1].X2);
temp_y2 = Convert.ToInt32(xmlLable.Object[xmlLable.Object.Count - 1].Y2);
}
} }
if (e.Control && e.KeyCode == Keys.E) //沿用區塊 按鈕 else if (e.Control && e.KeyCode == Keys.E) //沿用區塊 按鈕
{ {
if (!String.IsNullOrEmpty(temp_n))
{
if (checkBox1.Checked && !String.IsNullOrWhiteSpace(textBox1.Text))
newBndbox(0, textBox1.Text, temp_x1, temp_y1, temp_x2 - temp_x1, temp_y2 - temp_y1);
else
newBndbox(0, temp_n, temp_x1, temp_y1, temp_x2- temp_x1, temp_y2- temp_y1);
}
} }
if (e.KeyCode == Keys.Delete) else if (e.KeyCode == Keys.Delete)
{ {
if (Now_selected >= 0) if (Now_selected >= 0)
{ {
...@@ -191,14 +208,45 @@ namespace ETC_App1 ...@@ -191,14 +208,45 @@ namespace ETC_App1
Now_selected = -1; Now_selected = -1;
} }
} }
private string temp_n;
private int temp_x1;
private int temp_y1;
private int temp_x2;
private int temp_y2;
public void CreateXmlTree(string src_path,string save_path) public void CreateXmlTree(string src_path,string save_path)
{ {
XmlDocument doc = new XmlDocument(); XmlDocument doc = new XmlDocument();
doc.Load(src_path); doc.Load(src_path);
List<XmlLableObject>obj = xmlLable.Object; List<XmlLableObject>obj = xmlLable.Object;
XmlNode filename_node = doc.DocumentElement.SelectSingleNode("filename"); // filename 節點
if (filename_node.LastChild == null)
filename_node.AppendChild(doc.CreateTextNode(xmlLable.Filename));
else
filename_node.ReplaceChild(doc.CreateTextNode(xmlLable.Filename), filename_node.LastChild);
XmlNode width_node = doc.DocumentElement.SelectSingleNode("size").SelectSingleNode("width"); // width 節點
if (width_node.LastChild == null)
width_node.AppendChild(doc.CreateTextNode(xmlLable.Size.Width));
else
width_node.ReplaceChild(doc.CreateTextNode(xmlLable.Size.Width), width_node.LastChild);
XmlNode height_node = doc.DocumentElement.SelectSingleNode("size").SelectSingleNode("height"); // height 節點
if (height_node.LastChild == null)
height_node.AppendChild(doc.CreateTextNode(xmlLable.Size.Height));
else
height_node.ReplaceChild(doc.CreateTextNode(xmlLable.Size.Height), height_node.LastChild);
XmlNode depth_node = doc.DocumentElement.SelectSingleNode("size").SelectSingleNode("depth"); // depth 節點
if (depth_node.LastChild == null)
depth_node.AppendChild(doc.CreateTextNode(xmlLable.Size.Depth));
else
depth_node.ReplaceChild(doc.CreateTextNode(xmlLable.Size.Depth), depth_node.LastChild);
XmlNode newobj; XmlNode newobj;
for (int i = 0; i < obj.Count; i++) for (int i = 0; i < obj.Count; i++) // object 節點
{ {
if (i != 0) if (i != 0)
{ {
...@@ -242,6 +290,25 @@ namespace ETC_App1 ...@@ -242,6 +290,25 @@ namespace ETC_App1
} }
doc.Save(save_path); doc.Save(save_path);
} }
private void ReadEixistTree(string src_path)
{
XmlDocument doc = new XmlDocument();
doc.Load(src_path);
XmlNodeList newobj = doc.DocumentElement.SelectNodes("object");
for (int i =0; i < newobj.Count;i++)
{
string name = newobj[i].SelectSingleNode("name").LastChild.OuterXml;
int x1 = Convert.ToInt32(newobj[i].SelectSingleNode("bndbox").SelectSingleNode("xmin").LastChild.OuterXml);
int y1 = Convert.ToInt32(newobj[i].SelectSingleNode("bndbox").SelectSingleNode("ymin").LastChild.OuterXml);
int x2 = Convert.ToInt32(newobj[i].SelectSingleNode("bndbox").SelectSingleNode("xmax").LastChild.OuterXml);
int y2 = Convert.ToInt32(newobj[i].SelectSingleNode("bndbox").SelectSingleNode("ymax").LastChild.OuterXml);
newBndbox(-1, name, x1, y1, x2 - x1, y2 - y1);
}
}
public void ProcessCombobox(int index) public void ProcessCombobox(int index)
{ {
List<XmlLableObject> objs = xmlLable.Object; List<XmlLableObject> objs = xmlLable.Object;
...@@ -266,18 +333,22 @@ namespace ETC_App1 ...@@ -266,18 +333,22 @@ namespace ETC_App1
} }
} }
public void newBndbox() public void newBndbox(int move = -1, string name = "A", int x=300 ,int y=156,int w=300 ,int h=208)
{ {
int move = xmlLable.Object.Count - 1 >= 0 ? xmlLable.Object.Count : 0; if (move >= 0)
int mapping_x=(int)Math.Round(((300+move*10) * rate) + black_left_width, 0, MidpointRounding.AwayFromZero); move = xmlLable.Object.Count - 1 >= 0 ? xmlLable.Object.Count : 0;
int mapping_y = (int)Math.Round((156 * rate) + black_top_height, 0, MidpointRounding.AwayFromZero); else
int mapping_w = (int)Math.Round((300 * rate) , 0, MidpointRounding.AwayFromZero); move = 0;
int mapping_h= (int)Math.Round((208 * rate), 0, MidpointRounding.AwayFromZero); int mapping_x=(int)Math.Round(((x+move*10) * rate) + black_left_width, 0, MidpointRounding.AwayFromZero);
int mapping_y = (int)Math.Round((y * rate) + black_top_height, 0, MidpointRounding.AwayFromZero);
int mapping_w = (int)Math.Round((w * rate) , 0, MidpointRounding.AwayFromZero);
int mapping_h= (int)Math.Round((h * rate), 0, MidpointRounding.AwayFromZero);
Point pp = new Point(mapping_x, mapping_y); Point pp = new Point(mapping_x, mapping_y);
Size ss = new Size(mapping_w, mapping_h); Size ss = new Size(mapping_w, mapping_h);
BndBox box = new BndBox(pp, ss, xmlLable.Object.Count-1 >=0 ? xmlLable.Object.Count : 0); BndBox box = new BndBox(pp, ss, xmlLable.Object.Count-1 >=0 ? xmlLable.Object.Count : 0);
box.Paint += Bndbox_GotFocus; box.Paint += Bndbox_GotFocus;
box.MouseClick += Box_MouseClick; box.MouseClick += Box_MouseClick;
box.DoubleClick += checkedListBox1_DoubleClick;
Controls.Add(box); Controls.Add(box);
box.Parent = pictureBox1; box.Parent = pictureBox1;
bndBoxes.Add(box); bndBoxes.Add(box);
...@@ -288,7 +359,7 @@ namespace ETC_App1 ...@@ -288,7 +359,7 @@ namespace ETC_App1
string x2 = Math.Round((box.Left - black_left_width + box.Width) / rate, 0, MidpointRounding.AwayFromZero).ToString(); string x2 = Math.Round((box.Left - black_left_width + box.Width) / rate, 0, MidpointRounding.AwayFromZero).ToString();
string y2 = Math.Round((box.Top - black_top_height + box.Height) / rate, 0, MidpointRounding.AwayFromZero).ToString(); string y2 = Math.Round((box.Top - black_top_height + box.Height) / rate, 0, MidpointRounding.AwayFromZero).ToString();
XmlLableObject obj = new XmlLableObject("A", x1, y1, x2, y2); XmlLableObject obj = new XmlLableObject(name, x1, y1, x2, y2);
xmlLable.Object.Add(obj); xmlLable.Object.Add(obj);
ProcessCombobox(-1); ProcessCombobox(-1);
} }
...@@ -296,9 +367,21 @@ namespace ETC_App1 ...@@ -296,9 +367,21 @@ namespace ETC_App1
int Now_selected=-1; int Now_selected=-1;
private void Box_MouseClick(object sender, MouseEventArgs e) private void Box_MouseClick(object sender, MouseEventArgs e)
{ {
if (checkedListBox1.Items.Count > 0)
{
switch (sender)
{
case BndBox sneder:
BndBox box = (BndBox)sender; BndBox box = (BndBox)sender;
Now_selected= box.Num; Now_selected = box.Num;
checkedListBox1.SetSelected(Now_selected,true); break;
case CheckedListBox sender2:
Now_selected = sender2.SelectedIndex;
break;
}
if (Now_selected>=0)
checkedListBox1.SetSelected(Now_selected, true);
}
} }
private void Bndbox_GotFocus(Object sender , EventArgs e) private void Bndbox_GotFocus(Object sender , EventArgs e)
...@@ -311,5 +394,93 @@ namespace ETC_App1 ...@@ -311,5 +394,93 @@ namespace ETC_App1
xmlLable.Object[box.Num].modifie(x1, y1, x2, y2); xmlLable.Object[box.Num].modifie(x1, y1, x2, y2);
ProcessCombobox(box.Num); ProcessCombobox(box.Num);
} }
private bool fastkey = false;
private void ShowForm3(string name="")
{
Form3 form3 = new Form3(fastkey,name);
form3.Focus();
switch (form3.ShowDialog(this))
{
case DialogResult.Yes:
fastkey = form3.fastkey;
this.Show();
break;
case DialogResult.No:
this.Close();
break;
default:
break;
}
if (!String.IsNullOrWhiteSpace(form3.Label))
{
if (String.IsNullOrEmpty(name))
newBndbox(0, form3.Label);
else
{
xmlLable.Object[Now_selected].Name = form3.Label;
ProcessCombobox(Now_selected);
}
}
}
private void checkedListBox1_DoubleClick(object sender, EventArgs e)
{
if (checkedListBox1.Items.Count > 0)
{
if (Now_selected>=0)
ShowForm3(xmlLable.Object[Now_selected].Name);
}
}
private void button8_Click(object sender, EventArgs e)
{
if (checkedListBox1.Items.Count > 0)
{
if (Now_selected >= 0)
ShowForm3(xmlLable.Object[Now_selected].Name);
}
}
private void listBox1_SelectedValueChanged(object sender, EventArgs e)
{
string img = listBox1.SelectedItem.ToString().Remove(0, 3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
FreshImg(img);
}
private void button3_Click(object sender, EventArgs e)
{
if (listBox1.Items.Count > 0)
{
if (listBox1.Items.Count > listBox1.SelectedIndex + 1)
{
listBox1.SetSelected(listBox1.SelectedIndex + 1, true);
}
}
}
private void button4_Click(object sender, EventArgs e)
{
if (listBox1.Items.Count > 0)
{
if (0 <= listBox1.SelectedIndex - 1)
{
listBox1.SetSelected(listBox1.SelectedIndex - 1, true);
}
}
}
private void button7_Click(object sender, EventArgs e)
{
if (!String.IsNullOrEmpty(temp_n))
{
if (checkBox1.Checked && !String.IsNullOrWhiteSpace(textBox1.Text))
newBndbox(0, textBox1.Text, temp_x1, temp_y1, temp_x2 - temp_x1, temp_y2 - temp_y1);
else
newBndbox(0, temp_n, temp_x1, temp_y1, temp_x2 - temp_x1, temp_y2 - temp_y1);
}
}
} }
} }
namespace ETC_App1
{
partial class Form3
{
/// <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.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.listBox1 = new System.Windows.Forms.ListBox();
this.panel2 = new System.Windows.Forms.Panel();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.Cancel_btn = new System.Windows.Forms.Button();
this.OK_btn = new System.Windows.Forms.Button();
this.tableLayoutPanel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 23.05825F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17.71845F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 58.98058F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(364, 412);
this.tableLayoutPanel1.TabIndex = 0;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 2;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.24742F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 41.75258F));
this.tableLayoutPanel2.Controls.Add(this.panel3, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.panel4, 1, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 98);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(358, 67);
this.tableLayoutPanel2.TabIndex = 0;
//
// panel3
//
this.panel3.Controls.Add(this.Cancel_btn);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(3, 3);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(202, 61);
this.panel3.TabIndex = 0;
//
// panel4
//
this.panel4.Controls.Add(this.OK_btn);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(211, 3);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(144, 61);
this.panel4.TabIndex = 1;
//
// panel1
//
this.panel1.Controls.Add(this.listBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 171);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(358, 238);
this.panel1.TabIndex = 1;
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.ItemHeight = 18;
this.listBox1.Location = new System.Drawing.Point(20, 12);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(319, 202);
this.listBox1.TabIndex = 0;
this.listBox1.SelectedValueChanged += new System.EventHandler(this.listBox1_SelectedValueChanged);
//
// panel2
//
this.panel2.Controls.Add(this.checkBox1);
this.panel2.Controls.Add(this.textBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(3, 3);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(358, 89);
this.panel2.TabIndex = 2;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Font = new System.Drawing.Font("新細明體", 12F);
this.checkBox1.Location = new System.Drawing.Point(163, 9);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(180, 28);
this.checkBox1.TabIndex = 2;
this.checkBox1.Text = "快速輸入模式";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(20, 42);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(319, 40);
this.textBox1.TabIndex = 1;
//
// Cancel_btn
//
this.Cancel_btn.BackColor = System.Drawing.Color.PaleTurquoise;
this.Cancel_btn.FlatAppearance.BorderColor = System.Drawing.Color.LightSkyBlue;
this.Cancel_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Cancel_btn.Image = global::ETC_App1.Properties.Resources.undo;
this.Cancel_btn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.Cancel_btn.Location = new System.Drawing.Point(17, 8);
this.Cancel_btn.Name = "Cancel_btn";
this.Cancel_btn.Size = new System.Drawing.Size(165, 45);
this.Cancel_btn.TabIndex = 2;
this.Cancel_btn.Text = " Cancel";
this.Cancel_btn.UseVisualStyleBackColor = false;
this.Cancel_btn.Click += new System.EventHandler(this.Cancel_btn_Click);
//
// OK_btn
//
this.OK_btn.BackColor = System.Drawing.Color.PaleTurquoise;
this.OK_btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.OK_btn.FlatAppearance.BorderColor = System.Drawing.Color.LightSkyBlue;
this.OK_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.OK_btn.Image = global::ETC_App1.Properties.Resources.tick;
this.OK_btn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.OK_btn.Location = new System.Drawing.Point(12, 8);
this.OK_btn.Name = "OK_btn";
this.OK_btn.Size = new System.Drawing.Size(115, 45);
this.OK_btn.TabIndex = 0;
this.OK_btn.Text = " OK";
this.OK_btn.UseVisualStyleBackColor = false;
this.OK_btn.Click += new System.EventHandler(this.OK_btn_Click);
//
// Form3
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(364, 412);
this.ControlBox = false;
this.Controls.Add(this.tableLayoutPanel1);
this.KeyPreview = true;
this.Location = new System.Drawing.Point(460, 230);
this.Name = "Form3";
this.Text = "Form3";
this.TopMost = true;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form3_FormClosing);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form3_KeyDown);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button Cancel_btn;
private System.Windows.Forms.Button OK_btn;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.TextBox textBox1;
}
}
\ No newline at end of file
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 ETC_App1
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
this.StartPosition = FormStartPosition.Manual;
this.ControlBox = false;
listBox1.Items.Add("plate");
for (int j = 0; j <= 9; j++)
{
listBox1.Items.Add(j.ToString());
}
for (int i = 65; i<= 90;i++)
{
listBox1.Items.Add(((Keys)i).ToString());
}
}
public Form3(bool fastkey,string name="") : this()
{
textBox1.Text = name;
checkBox1.Checked = fastkey;
}
bool IsToForm2 = false;
public string Label;
public bool fastkey;
private void Form3_FormClosing(object sender, FormClosingEventArgs e)
{
if (IsToForm2)
{
this.DialogResult = DialogResult.Yes;
}
else
{
this.DialogResult = DialogResult.No;
}
}
private void OK_btn_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(textBox1.Text.Replace(" ","")))
{
MessageBox.Show("請輸入標籤", "系統提示", MessageBoxButtons.OK);
}
else
{
Label = textBox1.Text.Replace(" ","");
IsToForm2 = true;
this.Close();
}
}
private void Cancel_btn_Click(object sender, EventArgs e)
{
IsToForm2 = true;
this.Close();
}
private void listBox1_SelectedValueChanged(object sender, EventArgs e)
{
textBox1.Text=listBox1.SelectedItem.ToString();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
fastkey = checkBox1.Checked;
if (checkBox1.Checked)
{
listBox1.Enabled = false;
textBox1.Enabled = false;
//OK_btn.Enabled = false;
textBox1.TextChanged += textBox1_TextChanged;
}
else
{
listBox1.Enabled = true;
textBox1.Enabled = true;
//OK_btn.Enabled = true;
textBox1.TextChanged -= textBox1_TextChanged;
}
}
private void Form3_KeyDown(object sender, KeyEventArgs e)
{
if (!textBox1.Focus())
{
if (e.KeyValue >= 65 && e.KeyValue <= 90) // A~Z
{
textBox1.Text = e.KeyCode.ToString();
}
if (e.KeyValue >= 48 && e.KeyValue <= 57) // 0~9
{
textBox1.Text = e.KeyCode.ToString().Replace("NumPad", "").Replace("D", "");
}
if (e.KeyValue >= 96 && e.KeyValue <= 105) // 0~9
{
textBox1.Text = e.KeyCode.ToString().Replace("NumPad", "").Replace("D", "");
}
}
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
OK_btn.PerformClick();
}
}
}
<?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>
\ No newline at end of file
...@@ -3,47 +3,42 @@ ...@@ -3,47 +3,42 @@
// 這段程式碼是由工具產生的。 // 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000 // 執行階段版本:4.0.30319.42000
// //
// 變更這個檔案可能會導致不正確的行為,而且如果已重新產生 // 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
// 程式碼,則會遺失變更 // 變更將會遺失
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace ETC_App1.Properties namespace ETC_App1.Properties {
{ using System;
/// <summary> /// <summary>
/// 用於查詢當地語系化字串等的強類型資源類別 /// 用於查詢當地語系化字串等的強類型資源類別
/// </summary> /// </summary>
// 這個類別是自動產生的,是利用 StronglyTypedResourceBuilder // 這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
// 類別透過 ResGen 或 Visual Studio 這類工具產生 // 類別透過 ResGen 或 Visual Studio 這類工具。
// 若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen // 若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
// (利用 /str 選項),或重建您的 VS 專案。 // (利用 /str 選項),或重建您的 VS 專案。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources {
{
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources() {
{
} }
/// <summary> /// <summary>
/// 傳回這個類別使用的快取的 ResourceManager 執行個體。 /// 傳回這個類別使用的快取的 ResourceManager 執行個體。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager {
{ get {
get if (object.ReferenceEquals(resourceMan, null)) {
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ETC_App1.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ETC_App1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
...@@ -56,16 +51,123 @@ namespace ETC_App1.Properties ...@@ -56,16 +51,123 @@ namespace ETC_App1.Properties
/// 使用這個強類型資源類別的資源查閱。 /// 使用這個強類型資源類別的資源查閱。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture {
{ get {
get
{
return resourceCulture; return resourceCulture;
} }
set set {
{
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap check {
get {
object obj = ResourceManager.GetObject("check", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap files {
get {
object obj = ResourceManager.GetObject("files", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap files_and_folders {
get {
object obj = ResourceManager.GetObject("files-and-folders", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap floppy_disk {
get {
object obj = ResourceManager.GetObject("floppy-disk", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap image {
get {
object obj = ResourceManager.GetObject("image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap image__1_ {
get {
object obj = ResourceManager.GetObject("image (1)", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap left {
get {
object obj = ResourceManager.GetObject("left", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap right {
get {
object obj = ResourceManager.GetObject("right", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap tick {
get {
object obj = ResourceManager.GetObject("tick", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap undo {
get {
object obj = ResourceManager.GetObject("undo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
/// </summary>
internal static System.Drawing.Bitmap xml_file_format_symbol {
get {
object obj = ResourceManager.GetObject("xml-file-format-symbol", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
} }
} }
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
: and then encoded with base64 encoding. : 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: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:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
...@@ -68,9 +69,10 @@ ...@@ -68,9 +69,10 @@
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
...@@ -85,9 +87,10 @@ ...@@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <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="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
...@@ -109,9 +112,43 @@ ...@@ -109,9 +112,43 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="image" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="files-and-folders" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\files-and-folders.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="left" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="xml-file-format-symbol" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\xml-file-format-symbol.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tick" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\tick.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="files" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\files.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="right" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="image (1)" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\image (1).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="floppy-disk" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\floppy-disk.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="check" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="undo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\undo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>
\ No newline at end of file
787279dc622ca0322d891fa421c6a5217f3b4855 74b0bf82fb78fa6e536af08756f2ee5577844de4
...@@ -552,3 +552,4 @@ C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CoreCompile ...@@ -552,3 +552,4 @@ C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CoreCompile
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.exe C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.exe
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.pdb C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.pdb
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.Form3.resources
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment