Commit d3ccc6be authored by Bruce's avatar Bruce

-v 0.3.1

parents 4190c763 f323fae3
......@@ -11,17 +11,31 @@ namespace ETC_App1
public class BndBox : Panel
{
int dotSize = 10; //需要被 2 整除
public BndBox(Point location, Size size)
List <Color> colors=new List<Color> { Color.Red,Color.Orange,Color.Yellow,Color.Green,Color.Blue,Color.Brown,Color.Purple};
int Color_ind;
public int Num;
public BndBox(Point location, Size size , int color)
{
InitializeComponent();
this.DoubleBuffered = true;
this.Location = location;
this.Size = size;
this.Num = color;
if (colors.Count <= color)
{
Random rnd = new Random();
colors.Add(Color.FromArgb(255, rnd.Next(100, 255), rnd.Next(100, 255), rnd.Next(100, 255)));
this.Color_ind = 7;
}
else
this.Color_ind = color;
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
Panel pl = (Panel)sender;
e.Graphics.DrawRectangle(new Pen(Color.Red, 2), dotSize / 2, dotSize / 2, pl.Width - dotSize, pl.Height - dotSize);
e.Graphics.DrawRectangle(new Pen(colors[Color_ind], 2), dotSize / 2, dotSize / 2, pl.Width - dotSize, pl.Height - dotSize);
Point x1 = new Point(0, 0);
Point y1 = new Point(0, pl.Height);
......@@ -115,16 +129,16 @@ namespace ETC_App1
//
this.BackColor = System.Drawing.Color.Transparent;
this.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.BndBox_MouseClick);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseDown);
this.MouseLeave += new System.EventHandler(this.BndBox_MouseLeave);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseMove);
this.ResumeLayout(false);
}
private void BndBox_MouseLeave(object sender, EventArgs e)
private void BndBox_MouseClick(object sender, MouseEventArgs e)
{
this.BringToFront();
}
}
}
......@@ -162,6 +162,12 @@
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</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="Json.cs" />
<Compile Include="JsonPlate.cs" />
......@@ -215,6 +221,9 @@
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
......@@ -223,6 +232,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="UserControl1.resx">
<DependentUpon>UserControl1.cs</DependentUpon>
......@@ -245,6 +255,17 @@
</ItemGroup>
<ItemGroup>
<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>
<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')" />
......
......@@ -527,9 +527,14 @@ namespace ETC_App1
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
// 取得批次處理結果,並篩選錯誤的物件的檔案路徑
string[] file = (from i in etcPictureCheckBox1.Data where i.tickoff select i.filename).ToArray();
Form2 form2 = new Form2(file);
string[] plate = (from i in etcPictureCheckBox1.Data where i.tickoff select i.message1).ToArray();
JsonPlateROI[] roi = (from i in etcPictureCheckBox1.Data where i.tickoff select i.roi).ToArray();
Form2 form2 = new Form2(file, plate, roi);
switch (form2.ShowDialog(this))
{
case DialogResult.Yes:
......
......@@ -31,85 +31,49 @@
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.button9 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer9 = new System.Windows.Forms.SplitContainer();
this.button7 = new System.Windows.Forms.Button();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1 = new System.Windows.Forms.Panel();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.label8 = new System.Windows.Forms.Label();
this.splitContainer8 = new System.Windows.Forms.SplitContainer();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.splitContainer7 = new System.Windows.Forms.SplitContainer();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.splitContainer6 = new System.Windows.Forms.SplitContainer();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
this.xml_path_btn = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.xml_path_btn = new System.Windows.Forms.Button();
this.img_path_btn = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.splitContainer10 = new System.Windows.Forms.SplitContainer();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.splitContainer11 = new System.Windows.Forms.SplitContainer();
this.button8 = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button8 = new System.Windows.Forms.Button();
this.label9 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.listBox1 = new System.Windows.Forms.ListBox();
this.label10 = new System.Windows.Forms.Label();
this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
this.panel4 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer9)).BeginInit();
this.splitContainer9.Panel1.SuspendLayout();
this.splitContainer9.Panel2.SuspendLayout();
this.splitContainer9.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer8)).BeginInit();
this.splitContainer8.Panel1.SuspendLayout();
this.splitContainer8.Panel2.SuspendLayout();
this.splitContainer8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer7)).BeginInit();
this.splitContainer7.Panel1.SuspendLayout();
this.splitContainer7.Panel2.SuspendLayout();
this.splitContainer7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer6)).BeginInit();
this.splitContainer6.Panel1.SuspendLayout();
this.splitContainer6.Panel2.SuspendLayout();
this.splitContainer6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
this.splitContainer5.Panel2.SuspendLayout();
this.splitContainer5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
this.splitContainer4.Panel1.SuspendLayout();
this.splitContainer4.Panel2.SuspendLayout();
this.splitContainer4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
this.splitContainer3.Panel1.SuspendLayout();
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer10)).BeginInit();
this.splitContainer10.Panel1.SuspendLayout();
this.splitContainer10.Panel2.SuspendLayout();
this.splitContainer10.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer11)).BeginInit();
this.splitContainer11.Panel1.SuspendLayout();
this.splitContainer11.Panel2.SuspendLayout();
this.splitContainer11.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
......@@ -127,16 +91,16 @@
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(1190, 881);
this.splitContainer1.SplitterDistance = 35;
this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1);
this.splitContainer1.Size = new System.Drawing.Size(963, 587);
this.splitContainer1.SplitterDistance = 27;
this.splitContainer1.TabIndex = 0;
//
// button9
//
this.button9.Location = new System.Drawing.Point(153, 7);
this.button9.Location = new System.Drawing.Point(150, 7);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(75, 23);
this.button9.Size = new System.Drawing.Size(89, 23);
this.button9.TabIndex = 1;
this.button9.Text = "回到檢查視窗";
this.button9.UseVisualStyleBackColor = true;
......@@ -154,422 +118,335 @@
this.label1.TabIndex = 0;
this.label1.Text = "上選單區域";
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.splitContainer9);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer8);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer7);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer6);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer5);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer4);
this.splitContainer2.Panel1.Controls.Add(this.splitContainer3);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.splitContainer10);
this.splitContainer2.Size = new System.Drawing.Size(1190, 842);
this.splitContainer2.SplitterDistance = 196;
this.splitContainer2.TabIndex = 0;
//
// splitContainer9
//
this.splitContainer9.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer9.Location = new System.Drawing.Point(0, 720);
this.splitContainer9.Name = "splitContainer9";
this.splitContainer9.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer9.Panel1
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 18.3355F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.84265F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 22.78621F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.panel4, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, -109);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(963, 665);
this.tableLayoutPanel1.TabIndex = 3;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.tableLayoutPanel3);
this.panel1.Cursor = System.Windows.Forms.Cursors.Default;
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(2, 2);
this.panel1.Margin = new System.Windows.Forms.Padding(2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(172, 661);
this.panel1.TabIndex = 2;
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.BackColor = System.Drawing.Color.White;
this.tableLayoutPanel3.ColumnCount = 1;
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.button7, 0, 12);
this.tableLayoutPanel3.Controls.Add(this.label7, 0, 11);
this.tableLayoutPanel3.Controls.Add(this.button6, 0, 10);
this.tableLayoutPanel3.Controls.Add(this.label6, 0, 9);
this.tableLayoutPanel3.Controls.Add(this.button5, 0, 8);
this.tableLayoutPanel3.Controls.Add(this.label5, 0, 7);
this.tableLayoutPanel3.Controls.Add(this.button4, 0, 6);
this.tableLayoutPanel3.Controls.Add(this.label4, 0, 5);
this.tableLayoutPanel3.Controls.Add(this.button3, 0, 4);
this.tableLayoutPanel3.Controls.Add(this.label3, 0, 3);
this.tableLayoutPanel3.Controls.Add(this.xml_path_btn, 0, 2);
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.Location = new System.Drawing.Point(-12, 0);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(2);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 14;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.366119F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.922997F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.36215F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(184, 661);
this.tableLayoutPanel3.TabIndex = 5;
//
this.splitContainer9.Panel1.Controls.Add(this.button7);
this.splitContainer9.Panel1.UseWaitCursor = true;
//
// splitContainer9.Panel2
// label8
//
this.splitContainer9.Panel2.Controls.Add(this.label8);
this.splitContainer9.Panel2.UseWaitCursor = true;
this.splitContainer9.Size = new System.Drawing.Size(196, 120);
this.splitContainer9.SplitterDistance = 80;
this.splitContainer9.TabIndex = 6;
this.splitContainer9.UseWaitCursor = true;
this.label8.AutoSize = true;
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(3, 623);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(178, 22);
this.label8.TabIndex = 14;
this.label8.Text = "沿用區塊(Clt+E)";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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(0, 0);
this.button7.Location = new System.Drawing.Point(3, 561);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(196, 80);
this.button7.TabIndex = 0;
this.button7.Text = "沿用區塊";
this.button7.Size = new System.Drawing.Size(178, 59);
this.button7.TabIndex = 13;
this.button7.UseVisualStyleBackColor = true;
this.button7.UseWaitCursor = true;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("新細明體", 16F);
this.label8.Location = new System.Drawing.Point(1, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(181, 22);
this.label8.TabIndex = 0;
this.label8.Text = "沿用區塊( Clt+ E )";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label8.UseWaitCursor = true;
//
// splitContainer8
this.button7.Click += new System.EventHandler(this.button7_Click);
//
this.splitContainer8.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer8.Location = new System.Drawing.Point(0, 600);
this.splitContainer8.Name = "splitContainer8";
this.splitContainer8.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer8.Panel1
//
this.splitContainer8.Panel1.Controls.Add(this.button6);
this.splitContainer8.Panel1.UseWaitCursor = true;
//
// splitContainer8.Panel2
// label7
//
this.splitContainer8.Panel2.Controls.Add(this.label7);
this.splitContainer8.Panel2.UseWaitCursor = true;
this.splitContainer8.Size = new System.Drawing.Size(196, 120);
this.splitContainer8.SplitterDistance = 80;
this.splitContainer8.TabIndex = 5;
this.splitContainer8.UseWaitCursor = true;
this.label7.AutoSize = true;
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(3, 530);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(178, 22);
this.label7.TabIndex = 12;
this.label7.Text = "創建區塊(Clt+W)";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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(0, 0);
this.button6.Location = new System.Drawing.Point(3, 468);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(196, 80);
this.button6.TabIndex = 0;
this.button6.Text = "創建區塊";
this.button6.Size = new System.Drawing.Size(178, 59);
this.button6.TabIndex = 11;
this.button6.UseVisualStyleBackColor = true;
this.button6.UseWaitCursor = true;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("新細明體", 16F);
this.label7.Location = new System.Drawing.Point(1, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(188, 22);
this.label7.TabIndex = 0;
this.label7.Text = "創建區塊( Clt+ W )";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label7.UseWaitCursor = true;
//
// splitContainer7
//
this.splitContainer7.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer7.Location = new System.Drawing.Point(0, 480);
this.splitContainer7.Name = "splitContainer7";
this.splitContainer7.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer7.Panel1
//
this.splitContainer7.Panel1.Controls.Add(this.button5);
this.splitContainer7.Panel1.UseWaitCursor = true;
//
// splitContainer7.Panel2
// label6
//
this.splitContainer7.Panel2.Controls.Add(this.label6);
this.splitContainer7.Panel2.UseWaitCursor = true;
this.splitContainer7.Size = new System.Drawing.Size(196, 120);
this.splitContainer7.SplitterDistance = 80;
this.splitContainer7.TabIndex = 4;
this.splitContainer7.UseWaitCursor = 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.Location = new System.Drawing.Point(3, 437);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(178, 22);
this.label6.TabIndex = 10;
this.label6.Text = "儲存( Ctl+S )";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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(0, 0);
this.button5.Location = new System.Drawing.Point(3, 375);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(196, 80);
this.button5.TabIndex = 0;
this.button5.Text = "儲存";
this.button5.Size = new System.Drawing.Size(178, 59);
this.button5.TabIndex = 9;
this.button5.UseVisualStyleBackColor = true;
this.button5.UseWaitCursor = true;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("新細明體", 19F);
this.label6.Location = new System.Drawing.Point(16, -1);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(152, 26);
this.label6.TabIndex = 0;
this.label6.Text = "儲存( Ctl+S )";
this.label6.UseWaitCursor = true;
//
// splitContainer6
//
this.splitContainer6.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer6.Location = new System.Drawing.Point(0, 360);
this.splitContainer6.Name = "splitContainer6";
this.splitContainer6.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer6.Panel1
//
this.splitContainer6.Panel1.Controls.Add(this.button4);
this.splitContainer6.Panel1.UseWaitCursor = true;
//
// splitContainer6.Panel2
// label5
//
this.splitContainer6.Panel2.Controls.Add(this.label5);
this.splitContainer6.Panel2.UseWaitCursor = true;
this.splitContainer6.Size = new System.Drawing.Size(196, 120);
this.splitContainer6.SplitterDistance = 80;
this.splitContainer6.TabIndex = 3;
this.splitContainer6.UseWaitCursor = 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.Location = new System.Drawing.Point(3, 344);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(178, 22);
this.label5.TabIndex = 8;
this.label5.Text = "上一張 ( A )";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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(0, 0);
this.button4.Location = new System.Drawing.Point(3, 282);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(196, 80);
this.button4.TabIndex = 0;
this.button4.Text = "<=";
this.button4.Size = new System.Drawing.Size(178, 59);
this.button4.TabIndex = 7;
this.button4.UseVisualStyleBackColor = true;
this.button4.UseWaitCursor = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("新細明體", 19F);
this.label5.Location = new System.Drawing.Point(23, -1);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(145, 26);
this.label5.TabIndex = 0;
this.label5.Text = "上一張 ( A )";
this.label5.UseWaitCursor = true;
//
// splitContainer5
//
this.splitContainer5.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer5.Location = new System.Drawing.Point(0, 240);
this.splitContainer5.Name = "splitContainer5";
this.splitContainer5.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer5.Panel1
//
this.splitContainer5.Panel1.Controls.Add(this.button3);
this.splitContainer5.Panel1.UseWaitCursor = true;
//
// splitContainer5.Panel2
//
this.splitContainer5.Panel2.Controls.Add(this.label4);
this.splitContainer5.Panel2.UseWaitCursor = true;
this.splitContainer5.Size = new System.Drawing.Size(196, 120);
this.splitContainer5.SplitterDistance = 80;
this.splitContainer5.TabIndex = 2;
this.splitContainer5.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(0, 0);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(196, 80);
this.button3.TabIndex = 0;
this.button3.Text = "=>";
this.button3.UseVisualStyleBackColor = true;
this.button3.UseWaitCursor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("新細明體", 19F);
this.label4.Location = new System.Drawing.Point(23, -1);
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.Location = new System.Drawing.Point(3, 251);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(145, 26);
this.label4.TabIndex = 0;
this.label4.Size = new System.Drawing.Size(178, 22);
this.label4.TabIndex = 6;
this.label4.Text = "下一張 ( D )";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label4.UseWaitCursor = true;
//
// splitContainer4
//
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer4.Location = new System.Drawing.Point(0, 120);
this.splitContainer4.Name = "splitContainer4";
this.splitContainer4.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer4.Panel1
// button3
//
this.splitContainer4.Panel1.Controls.Add(this.xml_path_btn);
this.splitContainer4.Panel1.UseWaitCursor = true;
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(3, 189);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(178, 59);
this.button3.TabIndex = 5;
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// splitContainer4.Panel2
// label3
//
this.splitContainer4.Panel2.Controls.Add(this.label3);
this.splitContainer4.Panel2.UseWaitCursor = true;
this.splitContainer4.Size = new System.Drawing.Size(196, 120);
this.splitContainer4.SplitterDistance = 80;
this.splitContainer4.TabIndex = 1;
this.splitContainer4.UseWaitCursor = 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.Location = new System.Drawing.Point(3, 158);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(178, 22);
this.label3.TabIndex = 4;
this.label3.Text = "存放標籤目錄";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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.Location = new System.Drawing.Point(0, 0);
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(3, 96);
this.xml_path_btn.Name = "xml_path_btn";
this.xml_path_btn.Size = new System.Drawing.Size(196, 80);
this.xml_path_btn.TabIndex = 0;
this.xml_path_btn.Text = "存放標記目錄";
this.xml_path_btn.Size = new System.Drawing.Size(178, 59);
this.xml_path_btn.TabIndex = 3;
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);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("新細明體", 19F);
this.label3.Location = new System.Drawing.Point(11, -1);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(168, 26);
this.label3.TabIndex = 0;
this.label3.Text = "存放標籤目錄";
this.label3.UseWaitCursor = true;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Top;
this.splitContainer3.Location = new System.Drawing.Point(0, 0);
this.splitContainer3.Name = "splitContainer3";
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.img_path_btn);
this.splitContainer3.Panel1.UseWaitCursor = true;
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.label2);
this.splitContainer3.Panel2.UseWaitCursor = true;
this.splitContainer3.Size = new System.Drawing.Size(196, 120);
this.splitContainer3.SplitterDistance = 80;
this.splitContainer3.TabIndex = 0;
this.splitContainer3.UseWaitCursor = true;
//
// 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.Location = new System.Drawing.Point(0, 0);
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(3, 3);
this.img_path_btn.Name = "img_path_btn";
this.img_path_btn.Size = new System.Drawing.Size(196, 80);
this.img_path_btn.TabIndex = 0;
this.img_path_btn.Text = "開啟圖片目錄";
this.img_path_btn.UseVisualStyleBackColor = true;
this.img_path_btn.UseWaitCursor = true;
this.img_path_btn.Size = new System.Drawing.Size(178, 59);
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);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("新細明體", 19F);
this.label2.Location = new System.Drawing.Point(11, -1);
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.Location = new System.Drawing.Point(3, 65);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(168, 26);
this.label2.TabIndex = 0;
this.label2.Size = new System.Drawing.Size(178, 22);
this.label2.TabIndex = 2;
this.label2.Text = "開啟圖片目錄";
this.label2.UseWaitCursor = true;
//
// splitContainer10
//
this.splitContainer10.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer10.Location = new System.Drawing.Point(0, 0);
this.splitContainer10.Name = "splitContainer10";
//
// splitContainer10.Panel1
//
this.splitContainer10.Panel1.BackColor = System.Drawing.Color.LightGray;
this.splitContainer10.Panel1.Controls.Add(this.pictureBox1);
//
// splitContainer10.Panel2
//
this.splitContainer10.Panel2.Controls.Add(this.splitContainer11);
this.splitContainer10.Size = new System.Drawing.Size(990, 842);
this.splitContainer10.SplitterDistance = 754;
this.splitContainer10.TabIndex = 0;
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(754, 842);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// splitContainer11
//
this.splitContainer11.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer11.Location = new System.Drawing.Point(0, 0);
this.splitContainer11.Name = "splitContainer11";
this.splitContainer11.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer11.Panel1
//
this.splitContainer11.Panel1.Controls.Add(this.button8);
this.splitContainer11.Panel1.Controls.Add(this.textBox1);
this.splitContainer11.Panel1.Controls.Add(this.checkBox1);
this.splitContainer11.Panel1.Controls.Add(this.label9);
//
// splitContainer11.Panel2
//
this.splitContainer11.Panel2.Controls.Add(this.listBox1);
this.splitContainer11.Panel2.Controls.Add(this.label10);
this.splitContainer11.Panel2.Controls.Add(this.checkedListBox1);
this.splitContainer11.Size = new System.Drawing.Size(232, 842);
this.splitContainer11.SplitterDistance = 133;
this.splitContainer11.TabIndex = 0;
//
// button8
//
this.button8.Font = new System.Drawing.Font("新細明體", 12F);
this.button8.Location = new System.Drawing.Point(9, 41);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(94, 23);
this.button8.TabIndex = 3;
this.button8.Text = "編輯標籤";
this.button8.UseVisualStyleBackColor = true;
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 1;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel2.Controls.Add(this.panel2, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.panel3, 0, 2);
this.tableLayoutPanel2.Controls.Add(this.checkedListBox1, 0, 1);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(744, 2);
this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(2);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 3;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 34.85839F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 65.14161F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 341F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 13F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(217, 661);
this.tableLayoutPanel2.TabIndex = 3;
//
// panel2
//
this.panel2.Controls.Add(this.textBox1);
this.panel2.Controls.Add(this.checkBox1);
this.panel2.Controls.Add(this.button8);
this.panel2.Controls.Add(this.label9);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(2, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(232, 107);
this.panel2.TabIndex = 5;
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("新細明體", 12F);
this.textBox1.Location = new System.Drawing.Point(129, 79);
this.textBox1.Location = new System.Drawing.Point(125, 64);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 27);
this.textBox1.TabIndex = 2;
this.textBox1.TabIndex = 9;
this.textBox1.Text = "plate";
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Font = new System.Drawing.Font("新細明體", 12F);
this.checkBox1.Location = new System.Drawing.Point(7, 84);
this.checkBox1.Location = new System.Drawing.Point(3, 69);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(123, 20);
this.checkBox1.TabIndex = 1;
this.checkBox1.TabIndex = 8;
this.checkBox1.Text = "使用預設標籤";
this.checkBox1.UseVisualStyleBackColor = true;
//
// button8
//
this.button8.Cursor = System.Windows.Forms.Cursors.Default;
this.button8.Font = new System.Drawing.Font("新細明體", 12F);
this.button8.Location = new System.Drawing.Point(7, 31);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(94, 30);
this.button8.TabIndex = 5;
this.button8.Text = "編輯標籤";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// label9
//
this.label9.AutoSize = true;
......@@ -577,37 +454,76 @@
this.label9.Location = new System.Drawing.Point(3, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(120, 22);
this.label9.TabIndex = 0;
this.label9.TabIndex = 1;
this.label9.Text = "區塊的標籤";
//
// panel3
//
this.panel3.Controls.Add(this.listBox1);
this.panel3.Controls.Add(this.label10);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(2, 321);
this.panel3.Margin = new System.Windows.Forms.Padding(2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(232, 338);
this.panel3.TabIndex = 7;
//
// listBox1
//
this.listBox1.Font = new System.Drawing.Font("新細明體", 12F);
this.listBox1.FormattingEnabled = true;
this.listBox1.ItemHeight = 16;
this.listBox1.Location = new System.Drawing.Point(9, 276);
this.listBox1.Location = new System.Drawing.Point(3, 31);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(220, 436);
this.listBox1.TabIndex = 6;
this.listBox1.Size = new System.Drawing.Size(225, 292);
this.listBox1.TabIndex = 7;
this.listBox1.SelectedValueChanged += new System.EventHandler(this.listBox1_SelectedValueChanged);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("新細明體", 16F);
this.label10.Location = new System.Drawing.Point(3, 251);
this.label10.Location = new System.Drawing.Point(5, 7);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(98, 22);
this.label10.TabIndex = 5;
this.label10.TabIndex = 6;
this.label10.Text = "檔案清單";
//
// checkedListBox1
//
this.checkedListBox1.Font = new System.Drawing.Font("新細明體", 14F);
this.checkedListBox1.FormattingEnabled = true;
this.checkedListBox1.Location = new System.Drawing.Point(9, 3);
this.checkedListBox1.Location = new System.Drawing.Point(3, 114);
this.checkedListBox1.Name = "checkedListBox1";
this.checkedListBox1.Size = new System.Drawing.Size(220, 229);
this.checkedListBox1.TabIndex = 0;
this.checkedListBox1.Size = new System.Drawing.Size(225, 179);
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
//
this.panel4.BackColor = System.Drawing.Color.LightGray;
this.panel4.Controls.Add(this.pictureBox1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(178, 2);
this.panel4.Margin = new System.Windows.Forms.Padding(2);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(562, 661);
this.panel4.TabIndex = 4;
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.ErrorImage = null;
this.pictureBox1.InitialImage = null;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(562, 661);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Box_MouseClick);
//
// openFileDialog1
//
......@@ -617,70 +533,31 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1190, 881);
this.ClientSize = new System.Drawing.Size(963, 587);
this.Controls.Add(this.splitContainer1);
this.KeyPreview = true;
this.MinimumSize = new System.Drawing.Size(16, 858);
this.MinimumSize = new System.Drawing.Size(20, 585);
this.Name = "Form2";
this.Text = "Form2";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form2_FormClosing);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form2_KeyDown);
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Form2_KeyPress);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.splitContainer9.Panel1.ResumeLayout(false);
this.splitContainer9.Panel2.ResumeLayout(false);
this.splitContainer9.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer9)).EndInit();
this.splitContainer9.ResumeLayout(false);
this.splitContainer8.Panel1.ResumeLayout(false);
this.splitContainer8.Panel2.ResumeLayout(false);
this.splitContainer8.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer8)).EndInit();
this.splitContainer8.ResumeLayout(false);
this.splitContainer7.Panel1.ResumeLayout(false);
this.splitContainer7.Panel2.ResumeLayout(false);
this.splitContainer7.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer7)).EndInit();
this.splitContainer7.ResumeLayout(false);
this.splitContainer6.Panel1.ResumeLayout(false);
this.splitContainer6.Panel2.ResumeLayout(false);
this.splitContainer6.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer6)).EndInit();
this.splitContainer6.ResumeLayout(false);
this.splitContainer5.Panel1.ResumeLayout(false);
this.splitContainer5.Panel2.ResumeLayout(false);
this.splitContainer5.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit();
this.splitContainer5.ResumeLayout(false);
this.splitContainer4.Panel1.ResumeLayout(false);
this.splitContainer4.Panel2.ResumeLayout(false);
this.splitContainer4.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
this.splitContainer4.ResumeLayout(false);
this.splitContainer3.Panel1.ResumeLayout(false);
this.splitContainer3.Panel2.ResumeLayout(false);
this.splitContainer3.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
this.splitContainer10.Panel1.ResumeLayout(false);
this.splitContainer10.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer10)).EndInit();
this.splitContainer10.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.tableLayoutPanel3.ResumeLayout(false);
this.tableLayoutPanel3.PerformLayout();
this.tableLayoutPanel2.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.splitContainer11.Panel1.ResumeLayout(false);
this.splitContainer11.Panel1.PerformLayout();
this.splitContainer11.Panel2.ResumeLayout(false);
this.splitContainer11.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer11)).EndInit();
this.splitContainer11.ResumeLayout(false);
this.ResumeLayout(false);
}
......@@ -688,41 +565,38 @@
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.SplitContainer splitContainer6;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.SplitContainer splitContainer5;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.SplitContainer splitContainer4;
private System.Windows.Forms.Button xml_path_btn;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.SplitContainer splitContainer3;
private System.Windows.Forms.Button img_path_btn;
private System.Windows.Forms.Button xml_path_btn;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.SplitContainer splitContainer9;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.SplitContainer splitContainer8;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.SplitContainer splitContainer7;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.SplitContainer splitContainer10;
private System.Windows.Forms.SplitContainer splitContainer11;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button img_path_btn;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.CheckedListBox checkedListBox1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.CheckedListBox checkedListBox1;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.PictureBox pictureBox1;
}
}
\ No newline at end of file
......@@ -5,6 +5,7 @@ using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
......@@ -17,6 +18,7 @@ namespace ETC_App1
private string Imgs_path = "";
private string Xmls_path = "";
private XmlLable xmlLable = new XmlLable();
private List<BndBox> bndBoxes= new List<BndBox>();
//private Form ROI { get; set; }
public Form2()
......@@ -29,6 +31,11 @@ namespace ETC_App1
listBox1.Items.AddRange(files);
}
public Form2(string[] files, string[] plate, JsonPlateROI[] roi)
{
//
}
bool IsToForm1 = false;
private void button9_Click(object sender, EventArgs e)
{
......@@ -72,6 +79,7 @@ namespace ETC_App1
string img = listBox1.SelectedItem.ToString().Remove(0,3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
FreshImg(img);
}
}
}
......@@ -80,93 +88,170 @@ namespace ETC_App1
FolderBrowserDialog path = new FolderBrowserDialog();
path.ShowDialog();
Xmls_path = path.SelectedPath;
}
XmlLableObject obj1 = new XmlLableObject("A", "11", "12", "13", "14");
XmlLableObject obj2 = new XmlLableObject("B", "15", "16", "17", "18");
XmlLableObject obj3 = new XmlLableObject("C", "19", "20", "21", "22");
double rate;
int black_left_width;
int black_top_height;
private void FreshImg(string img)
{
Now_selected = -1;
int originalWidth = this.pictureBox1.Image.Width;
int originalHeight = this.pictureBox1.Image.Height;
PropertyInfo rectangleProperty = this.pictureBox1.GetType().GetProperty("ImageRectangle", BindingFlags.Instance | BindingFlags.NonPublic);
Rectangle rectangle = (Rectangle)rectangleProperty.GetValue(this.pictureBox1, null);
xmlLable.Object.Add(obj1);
xmlLable.Object.Add(obj2);
xmlLable.Object.Add(obj3);
int currentWidth = rectangle.Width;
int currentHeight = rectangle.Height;
ProcessCombobox();
rate = (double)currentHeight / (double)originalHeight;
CreateXmlTree(@"C:\Users\Bruce\source\repos\e-eye\ETC_App1\bin\Debug\form2_config\Eample.xml", Xmls_path+@"\Eample2.xml");
}
black_left_width = (currentWidth == this.pictureBox1.Width) ? 0 : (this.pictureBox1.Width - currentWidth) / 2;
black_top_height = (currentHeight == this.pictureBox1.Height) ? 0 : (this.pictureBox1.Height - currentHeight) / 2;
private void Form2_KeyPress(object sender, KeyPressEventArgs e)
this.xmlLable = new XmlLable();
foreach(BndBox box in bndBoxes)
{
box.Dispose();
}
this.bndBoxes = new List<BndBox>();
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)
{
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 > listBox1.SelectedIndex + 1)
{
listBox1.SetSelected(listBox1.SelectedIndex+1 , true);
string img = listBox1.SelectedItem.ToString().Remove(0, 3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
this.xmlLable = new XmlLable();
checkedListBox1.Items.Clear();
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 (0 <= listBox1.SelectedIndex -1)
{
listBox1.SetSelected(listBox1.SelectedIndex - 1, true);
string img = listBox1.SelectedItem.ToString().Remove(0, 3);
Bitmap bitmap = new Bitmap(img);
pictureBox1.Image = bitmap;
this.xmlLable = new XmlLable();
checkedListBox1.Items.Clear();
}
}
}
if (e.Control && e.KeyCode == Keys.S) //儲存按鈕
else if (e.Control && e.KeyCode == Keys.S) //儲存按鈕
{
string path =Application.StartupPath;
string save_path = Path.Combine(Xmls_path,xmlLable.Filename.Replace(".jpg", ".xml").Replace(".png", ".xml"));
CreateXmlTree(path+@"\form2_config\Eample.xml", save_path);
}
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)
{
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.W) //創建區塊 按鈕
}
else if (e.Control && e.KeyCode == Keys.E) //沿用區塊 按鈕
{
Point pp = new Point(300, 300);
Size ss = new Size(50, 50);
BndBox box = new BndBox(pp,ss);
Controls.Add(box);
box.Parent = pictureBox1;
box.Refresh();
box.Show();
box.BringToFront();
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.Control && e.KeyCode == Keys.E) //儲存按鈕
else if (e.KeyCode == Keys.Delete)
{
if (Now_selected >= 0)
{
for (int i= Now_selected+1;i < bndBoxes.Count;i++)
{
bndBoxes[i].Num=i-1;
}
bndBoxes[Now_selected].Dispose();
bndBoxes.RemoveAt(Now_selected);
xmlLable.Object.RemoveAt(Now_selected);
ProcessCombobox(-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)
{
XmlDocument doc = new XmlDocument();
doc.Load(src_path);
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;
for (int i = 0; i < obj.Count; i++)
for (int i = 0; i < obj.Count; i++) // object 節點
{
if (i != 0)
{
......@@ -210,23 +295,197 @@ namespace ETC_App1
}
doc.Save(save_path);
}
public void ProcessCombobox()
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)
{
List<XmlLableObject> objs = xmlLable.Object;
if (index < 0)
{
checkedListBox1.Items.Clear();
foreach (XmlLableObject obj in objs)
{
string temp = String.Format("{0}: {1},{2},{3},{4}", obj.Name, obj.X1, obj.Y1, obj.X2, obj.Y2);
if (checkedListBox1.Items.IndexOf(temp) < 0 || true)
{
checkedListBox1.Items.Add(temp);
checkedListBox1.SetItemChecked(checkedListBox1.Items.IndexOf(temp), true);
}
}
else
{
XmlLableObject obj=objs[index];
string temp = String.Format("{0}: {1},{2},{3},{4}", obj.Name, obj.X1, obj.Y1, obj.X2, obj.Y2);
checkedListBox1.Items[index] = temp;
checkedListBox1.SetItemChecked(checkedListBox1.Items.IndexOf(temp), true);
}
}
public void newBndbox(int move = -1, string name = "A", int x=300 ,int y=156,int w=300 ,int h=208)
{
if (move >= 0)
move = xmlLable.Object.Count - 1 >= 0 ? xmlLable.Object.Count : 0;
else
move = 0;
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);
Size ss = new Size(mapping_w, mapping_h);
BndBox box = new BndBox(pp, ss, xmlLable.Object.Count-1 >=0 ? xmlLable.Object.Count : 0);
box.Paint += Bndbox_GotFocus;
box.MouseClick += Box_MouseClick;
box.DoubleClick += checkedListBox1_DoubleClick;
Controls.Add(box);
box.Parent = pictureBox1;
bndBoxes.Add(box);
box.BringToFront();
string x1 = Math.Round((box.Left - black_left_width) / rate, 0, MidpointRounding.AwayFromZero).ToString();
string y1 = Math.Round((box.Top - black_top_height) / 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();
XmlLableObject obj = new XmlLableObject(name, x1, y1, x2, y2);
xmlLable.Object.Add(obj);
ProcessCombobox(-1);
}
int Now_selected=-1;
private void Box_MouseClick(object sender, MouseEventArgs e)
{
if (checkedListBox1.Items.Count > 0)
{
switch (sender)
{
case BndBox sneder:
BndBox box = (BndBox)sender;
Now_selected = box.Num;
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)
{
BndBox box = (BndBox)sender;
string x1 = Math.Round((box.Left - black_left_width) / rate, 0, MidpointRounding.AwayFromZero).ToString();
string y1 = Math.Round((box.Top - black_top_height) / 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();
xmlLable.Object[box.Num].modifie(x1, y1, x2, y2);
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);
}
}
}
}
......@@ -123,4 +123,7 @@
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>195, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>
\ No newline at end of file
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 @@
// 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000
//
// 變更這個檔案可能會導致不正確的行為,而且如果已重新產生
// 程式碼,則會遺失變更
// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
// 變更將會遺失
// </auto-generated>
//------------------------------------------------------------------------------
namespace ETC_App1.Properties
{
namespace ETC_App1.Properties {
using System;
/// <summary>
/// 用於查詢當地語系化字串等的強類型資源類別
/// 用於查詢當地語系化字串等的強類型資源類別
/// </summary>
// 這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
// 類別透過 ResGen 或 Visual Studio 這類工具產生
// 類別透過 ResGen 或 Visual Studio 這類工具。
// 若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
// (利用 /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.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
internal Resources() {
}
/// <summary>
/// 傳回這個類別使用的快取的 ResourceManager 執行個體。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ETC_App1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
......@@ -56,16 +51,123 @@ namespace ETC_App1.Properties
/// 使用這個強類型資源類別的資源查閱。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set
{
set {
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 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
......@@ -60,6 +60,7 @@
: 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">
......@@ -68,9 +69,10 @@
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</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="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
......@@ -85,9 +87,10 @@
<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" 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="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
......@@ -109,9 +112,43 @@
<value>2.0</value>
</resheader>
<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 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>
<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>
\ No newline at end of file
......@@ -24,5 +24,13 @@ namespace ETC_App1
this.Y2 = y2;
}
public void modifie(string x1, string y1, string x2, string y2)
{
this.X1 = x1;
this.X2 = x2;
this.Y1 = y1;
this.Y2 = y2;
}
}
}
e0043c7e390cd0b592b3be354e86de0f9dd09bd3
74b0bf82fb78fa6e536af08756f2ee5577844de4
......@@ -487,3 +487,70 @@ C:\Users\ivan\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.exe
C:\Users\ivan\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.pdb
C:\Users\ivan\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.UserControl1.resources
C:\Users\ivan\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.BndBox.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x64\concrt140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x64\cvextern.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x64\msvcp140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x64\opencv_ffmpeg401_64.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x64\vcruntime140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x86\concrt140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x86\cvextern.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x86\msvcp140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x86\opencv_ffmpeg401.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\x86\vcruntime140.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ETC_App1.exe.config
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ETC_App1.exe
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ETC_App1.pdb
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\DuoVia.FuzzyStrings.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\MySql.Data.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\NPOI.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\NPOI.OOXML.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\NPOI.OpenXml4Net.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\NPOI.OpenXmlFormats.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\RestSharp.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ZedGraph.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\MySql.Data.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\RestSharp.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ZedGraph.xml
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\de\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\es\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\fr\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\hu\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\it\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ja\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\pt\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\ru\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\sk\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\sv\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csprojAssemblyReference.cache
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.BndBox.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker1.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker2.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker3.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureBox.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureCheckBox.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCStatusStrip.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCToolStrip.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.Form1.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.Form2.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.Properties.Resources.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.UserControl1.resources
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.GenerateResource.cache
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CoreCompileInputs.cache
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.pdb
C:\Users\aa349\source\repos\e-eye\ETC_App1\obj\Debug\ETC_App1.Form3.resources
C:\Users\ivan\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