186 lines
6.5 KiB
C#
186 lines
6.5 KiB
C#
namespace Camera_connect
|
|
{
|
|
partial class Main
|
|
{
|
|
/// <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()
|
|
{
|
|
Bt_connect = new Button();
|
|
Bt_OneShot = new Button();
|
|
Bt_KeepShot = new Button();
|
|
Bt_Stop = new Button();
|
|
pictureBox1 = new PictureBox();
|
|
Label_status = new Label();
|
|
comboBox1 = new ComboBox();
|
|
camera_serialnumber = new TextBox();
|
|
label2 = new Label();
|
|
label3 = new Label();
|
|
Bt_disconnect = new Button();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// Bt_connect
|
|
//
|
|
Bt_connect.Location = new Point(99, 75);
|
|
Bt_connect.Name = "Bt_connect";
|
|
Bt_connect.Size = new Size(116, 63);
|
|
Bt_connect.TabIndex = 0;
|
|
Bt_connect.Text = "相機連線";
|
|
Bt_connect.UseVisualStyleBackColor = true;
|
|
Bt_connect.Click += Bt_connect_Click;
|
|
//
|
|
// Bt_OneShot
|
|
//
|
|
Bt_OneShot.Location = new Point(99, 242);
|
|
Bt_OneShot.Name = "Bt_OneShot";
|
|
Bt_OneShot.Size = new Size(116, 63);
|
|
Bt_OneShot.TabIndex = 1;
|
|
Bt_OneShot.Text = "單張擷取";
|
|
Bt_OneShot.UseVisualStyleBackColor = true;
|
|
Bt_OneShot.Click += Bt_OneShot_Click;
|
|
//
|
|
// Bt_KeepShot
|
|
//
|
|
Bt_KeepShot.Location = new Point(243, 242);
|
|
Bt_KeepShot.Name = "Bt_KeepShot";
|
|
Bt_KeepShot.Size = new Size(116, 63);
|
|
Bt_KeepShot.TabIndex = 2;
|
|
Bt_KeepShot.Text = "連續取像";
|
|
Bt_KeepShot.UseVisualStyleBackColor = true;
|
|
Bt_KeepShot.Click += Bt_KeepShot_Click;
|
|
//
|
|
// Bt_Stop
|
|
//
|
|
Bt_Stop.Location = new Point(385, 242);
|
|
Bt_Stop.Name = "Bt_Stop";
|
|
Bt_Stop.Size = new Size(116, 63);
|
|
Bt_Stop.TabIndex = 3;
|
|
Bt_Stop.Text = "停止";
|
|
Bt_Stop.UseVisualStyleBackColor = true;
|
|
Bt_Stop.Click += Bt_Stop_Click;
|
|
//
|
|
// pictureBox1
|
|
//
|
|
pictureBox1.Location = new Point(99, 328);
|
|
pictureBox1.Name = "pictureBox1";
|
|
pictureBox1.Size = new Size(1219, 940);
|
|
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
|
|
pictureBox1.TabIndex = 4;
|
|
pictureBox1.TabStop = false;
|
|
//
|
|
// Label_status
|
|
//
|
|
Label_status.AutoSize = true;
|
|
Label_status.Location = new Point(99, 176);
|
|
Label_status.Name = "Label_status";
|
|
Label_status.Size = new Size(82, 23);
|
|
Label_status.TabIndex = 5;
|
|
Label_status.Text = "當前狀態";
|
|
//
|
|
// comboBox1
|
|
//
|
|
comboBox1.FormattingEnabled = true;
|
|
comboBox1.Items.AddRange(new object[] { "Basler", "IDS" });
|
|
comboBox1.Location = new Point(424, 74);
|
|
comboBox1.Name = "comboBox1";
|
|
comboBox1.Size = new Size(182, 31);
|
|
comboBox1.TabIndex = 6;
|
|
//
|
|
// camera_serialnumber
|
|
//
|
|
camera_serialnumber.Location = new Point(1279, 75);
|
|
camera_serialnumber.Name = "camera_serialnumber";
|
|
camera_serialnumber.Size = new Size(182, 30);
|
|
camera_serialnumber.TabIndex = 7;
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(1279, 29);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(75, 23);
|
|
label2.TabIndex = 10;
|
|
label2.Text = "IDS參數";
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Location = new Point(1172, 78);
|
|
label3.Name = "label3";
|
|
label3.Size = new Size(82, 23);
|
|
label3.TabIndex = 11;
|
|
label3.Text = "相機序號";
|
|
//
|
|
// Bt_disconnect
|
|
//
|
|
Bt_disconnect.Location = new Point(263, 75);
|
|
Bt_disconnect.Name = "Bt_disconnect";
|
|
Bt_disconnect.Size = new Size(116, 63);
|
|
Bt_disconnect.TabIndex = 12;
|
|
Bt_disconnect.Text = "中斷連線";
|
|
Bt_disconnect.UseVisualStyleBackColor = true;
|
|
Bt_disconnect.Click += Bt_disconnect_Click;
|
|
//
|
|
// Main
|
|
//
|
|
AutoScaleDimensions = new SizeF(11F, 23F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(1746, 1294);
|
|
Controls.Add(Bt_disconnect);
|
|
Controls.Add(label3);
|
|
Controls.Add(label2);
|
|
Controls.Add(camera_serialnumber);
|
|
Controls.Add(comboBox1);
|
|
Controls.Add(Label_status);
|
|
Controls.Add(pictureBox1);
|
|
Controls.Add(Bt_Stop);
|
|
Controls.Add(Bt_KeepShot);
|
|
Controls.Add(Bt_OneShot);
|
|
Controls.Add(Bt_connect);
|
|
Name = "Main";
|
|
Text = "Form1";
|
|
FormClosed += Form1_FormClosed;
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button Bt_connect;
|
|
private Button Bt_OneShot;
|
|
private Button Bt_KeepShot;
|
|
private Button Bt_Stop;
|
|
public PictureBox pictureBox1;
|
|
private Label Label_status;
|
|
private ComboBox comboBox1;
|
|
private TextBox camera_serialnumber;
|
|
private Label label2;
|
|
private Label label3;
|
|
private Button Bt_disconnect;
|
|
}
|
|
}
|