修改客户端和远程端换班和配方设置对应的问题

18661908385 2 years ago
parent e4a6e2a63e
commit b1ee0a5fdf

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>Diaoyong</RootNamespace> <RootNamespace>Diaoyong</RootNamespace>
<AssemblyName>Diaoyong</AssemblyName> <AssemblyName>Diaoyong</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<TargetFrameworkProfile /> <TargetFrameworkProfile />

@ -19,7 +19,7 @@ namespace Diaoyong.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。 // (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -47,8 +47,8 @@ namespace Diaoyong.Properties {
} }
/// <summary> /// <summary>
/// 重写当前线程的 CurrentUICulture 属性 /// 重写当前线程的 CurrentUICulture 属性,对
/// 重写当前线程的 CurrentUICulture 属性 /// 使用此强类型资源类的所有资源查找执行重写。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {

@ -12,7 +12,7 @@ namespace Diaoyong.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

@ -1 +1 @@
774ef8506e7238e895c644d7bbd3b6f8ce76a83e c9a2dce3f7ca9de12d24b70901df956a18582066

@ -36,15 +36,16 @@ C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.CopyComplete C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.CopyComplete
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.exe C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.exe
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.pdb C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.pdb
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\Diaoyong.exe.config D:\230512-UDPSend\230508-UDPSend\Publish\Diaoyong.exe.config
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\Diaoyong.exe D:\230512-UDPSend\230508-UDPSend\Publish\Diaoyong.exe
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\Diaoyong.pdb D:\230512-UDPSend\230508-UDPSend\Publish\Diaoyong.pdb
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.csproj.AssemblyReference.cache D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.AssemblyReference.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.ConnectionTest.resources D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.SuggestedBindingRedirects.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.Form1.resources D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.ConnectionTest.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.Properties.Resources.resources D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.Form1.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.csproj.GenerateResource.cache D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.Properties.Resources.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.csproj.CoreCompileInputs.cache D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.GenerateResource.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.csproj.CopyComplete D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.CoreCompileInputs.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.exe D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.csproj.CopyComplete
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Diaoyong\obj\Debug\Diaoyong.pdb D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.exe
D:\230512-UDPSend\230508-UDPSend\Diaoyong\obj\Debug\Diaoyong.pdb

Binary file not shown.

Binary file not shown.

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

@ -101,7 +101,6 @@
this.label_pic1.Size = new System.Drawing.Size(72, 20); this.label_pic1.Size = new System.Drawing.Size(72, 20);
this.label_pic1.TabIndex = 0; this.label_pic1.TabIndex = 0;
this.label_pic1.Text = "第一张"; this.label_pic1.Text = "第一张";
this.label_pic1.Click += new System.EventHandler(this.label1_Click);
// //
// label_pic2 // label_pic2
// //
@ -134,7 +133,6 @@
this.label1.Size = new System.Drawing.Size(83, 20); this.label1.Size = new System.Drawing.Size(83, 20);
this.label1.TabIndex = 3; this.label1.TabIndex = 3;
this.label1.Text = "1号相机"; this.label1.Text = "1号相机";
this.label1.Click += new System.EventHandler(this.label4_Click);
// //
// numericUpDown11 // numericUpDown11
// //
@ -205,7 +203,6 @@
this.label3.Size = new System.Drawing.Size(83, 20); this.label3.Size = new System.Drawing.Size(83, 20);
this.label3.TabIndex = 11; this.label3.TabIndex = 11;
this.label3.Text = "3号相机"; this.label3.Text = "3号相机";
this.label3.Click += new System.EventHandler(this.label6_Click);
// //
// numericUpDown31 // numericUpDown31
// //
@ -230,7 +227,6 @@
this.numericUpDown33.Name = "numericUpDown33"; this.numericUpDown33.Name = "numericUpDown33";
this.numericUpDown33.Size = new System.Drawing.Size(78, 25); this.numericUpDown33.Size = new System.Drawing.Size(78, 25);
this.numericUpDown33.TabIndex = 14; this.numericUpDown33.TabIndex = 14;
this.numericUpDown33.ValueChanged += new System.EventHandler(this.numericUpDown33_ValueChanged);
// //
// label_expo4 // label_expo4
// //
@ -277,7 +273,6 @@
this.label5.Size = new System.Drawing.Size(83, 20); this.label5.Size = new System.Drawing.Size(83, 20);
this.label5.TabIndex = 19; this.label5.TabIndex = 19;
this.label5.Text = "5号相机"; this.label5.Text = "5号相机";
this.label5.Click += new System.EventHandler(this.label9_Click);
// //
// numericUpDown51 // numericUpDown51
// //
@ -286,7 +281,6 @@
this.numericUpDown51.Name = "numericUpDown51"; this.numericUpDown51.Name = "numericUpDown51";
this.numericUpDown51.Size = new System.Drawing.Size(78, 25); this.numericUpDown51.Size = new System.Drawing.Size(78, 25);
this.numericUpDown51.TabIndex = 20; this.numericUpDown51.TabIndex = 20;
this.numericUpDown51.ValueChanged += new System.EventHandler(this.numericUpDown51_ValueChanged);
// //
// numericUpDown52 // numericUpDown52
// //
@ -295,7 +289,6 @@
this.numericUpDown52.Name = "numericUpDown52"; this.numericUpDown52.Name = "numericUpDown52";
this.numericUpDown52.Size = new System.Drawing.Size(78, 25); this.numericUpDown52.Size = new System.Drawing.Size(78, 25);
this.numericUpDown52.TabIndex = 21; this.numericUpDown52.TabIndex = 21;
this.numericUpDown52.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
// //
// numericUpDown53 // numericUpDown53
// //
@ -304,7 +297,6 @@
this.numericUpDown53.Name = "numericUpDown53"; this.numericUpDown53.Name = "numericUpDown53";
this.numericUpDown53.Size = new System.Drawing.Size(78, 25); this.numericUpDown53.Size = new System.Drawing.Size(78, 25);
this.numericUpDown53.TabIndex = 22; this.numericUpDown53.TabIndex = 22;
this.numericUpDown53.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged);
// //
// label_gain2 // label_gain2
// //
@ -324,7 +316,6 @@
this.numericUpDown61.Name = "numericUpDown61"; this.numericUpDown61.Name = "numericUpDown61";
this.numericUpDown61.Size = new System.Drawing.Size(78, 25); this.numericUpDown61.Size = new System.Drawing.Size(78, 25);
this.numericUpDown61.TabIndex = 24; this.numericUpDown61.TabIndex = 24;
this.numericUpDown61.ValueChanged += new System.EventHandler(this.numericUpDown6_ValueChanged);
// //
// numericUpDown62 // numericUpDown62
// //
@ -341,7 +332,6 @@
this.numericUpDown63.Name = "numericUpDown63"; this.numericUpDown63.Name = "numericUpDown63";
this.numericUpDown63.Size = new System.Drawing.Size(78, 25); this.numericUpDown63.Size = new System.Drawing.Size(78, 25);
this.numericUpDown63.TabIndex = 26; this.numericUpDown63.TabIndex = 26;
this.numericUpDown63.ValueChanged += new System.EventHandler(this.numericUpDown5_ValueChanged);
// //
// label_gain3 // label_gain3
@ -413,7 +403,6 @@
this.numericUpDown83.Name = "numericUpDown83"; this.numericUpDown83.Name = "numericUpDown83";
this.numericUpDown83.Size = new System.Drawing.Size(78, 25); this.numericUpDown83.Size = new System.Drawing.Size(78, 25);
this.numericUpDown83.TabIndex = 34; this.numericUpDown83.TabIndex = 34;
this.numericUpDown83.ValueChanged += new System.EventHandler(this.numericUpDown14_ValueChanged);
// //
// button_pwd_ok // button_pwd_ok

@ -18,26 +18,6 @@ namespace WindowsFormsApp2
InitializeComponent(); InitializeComponent();
} }
private void label4_Click(object sender, EventArgs e)
{
}
private void label6_Click(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void Camera_glue_Load(object sender, EventArgs e) private void Camera_glue_Load(object sender, EventArgs e)
{ {
this.numericUpDown11.Value = DialogSetup.cam_setting.Cameraglue[0].shoot[0]; this.numericUpDown11.Value = DialogSetup.cam_setting.Cameraglue[0].shoot[0];
@ -111,45 +91,5 @@ namespace WindowsFormsApp2
this.Close(); this.Close();
MessageBox.Show("请点击‘保存参数’按钮,进行保存设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); MessageBox.Show("请点击‘保存参数’按钮,进行保存设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
} }
private void label9_Click(object sender, EventArgs e)
{
}
private void numericUpDown2_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown51_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown33_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown6_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown5_ValueChanged(object sender, EventArgs e)
{
}
private void numericUpDown14_ValueChanged(object sender, EventArgs e)
{
}
} }
} }

@ -64,7 +64,6 @@
this.label1.Size = new System.Drawing.Size(30, 15); this.label1.Size = new System.Drawing.Size(30, 15);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "A班"; this.label1.Text = "A班";
this.label1.Click += new System.EventHandler(this.label1_Click);
// //
// label2 // label2
// //
@ -272,6 +271,7 @@
this.Name = "Change_shift"; this.Name = "Change_shift";
this.Text = "换班设置"; this.Text = "换班设置";
this.Load += new System.EventHandler(this.Change_shift_Load); this.Load += new System.EventHandler(this.Change_shift_Load);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown_A_hour)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_A_hour)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown_A_minute)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_A_minute)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown_B_minute)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_B_minute)).EndInit();

@ -10,32 +10,51 @@ namespace WindowsFormsApp2
public Change_shift() public Change_shift()
{ {
InitializeComponent(); InitializeComponent();
if (DialogSetup.cam_setting.changeshift.shift_byhand == 1)
} {
this.radioButton_byhand.Checked = true;
private void label1_Click(object sender, EventArgs e) this.radioButton_time.Checked = false;
{ }
else if (DialogSetup.cam_setting.changeshift.shift_time == 1)
{
this.radioButton_time.Checked = true;
this.radioButton_byhand.Checked = false;
}
} }
private void Change_shift_Load(object sender, EventArgs e) private void Change_shift_Load(object sender, EventArgs e)
{ {
//if (DialogSetup.cam_setting.changeshift.shift_byhand == 1)
//{
// this.radioButton_byhand.Checked = true;
// this.radioButton_time.Checked = false;
//}
//else if (DialogSetup.cam_setting.changeshift.shift_time == 1)
//{
// this.radioButton_time.Checked = true;
// this.radioButton_byhand.Checked = false;
//}
this.radioButton_byhand.Checked = DialogSetup.cam_setting.changeshift.shift_byhand == 1 ? true: false;
this.radioButton_time.Checked = DialogSetup.cam_setting.changeshift.shift_time == 1 ? true : false;
this.numericUpDown_A_hour.Value = DialogSetup.cam_setting.changeshift.Ah; this.numericUpDown_A_hour.Value = DialogSetup.cam_setting.changeshift.Ah;
this.numericUpDown_A_minute.Value = DialogSetup.cam_setting.changeshift.Am; this.numericUpDown_A_minute.Value = DialogSetup.cam_setting.changeshift.Am;
this.numericUpDown_B_hour.Value = DialogSetup.cam_setting.changeshift.Bh; this.numericUpDown_B_hour.Value = DialogSetup.cam_setting.changeshift.Bh;
this.numericUpDown_B_minute.Value = DialogSetup.cam_setting.changeshift.Bm; this.numericUpDown_B_minute.Value = DialogSetup.cam_setting.changeshift.Bm;
this.numericUpDown_C_hour.Value = DialogSetup.cam_setting.changeshift.Ch; this.numericUpDown_C_hour.Value = DialogSetup.cam_setting.changeshift.Ch;
this.numericUpDown_C_minute.Value = DialogSetup.cam_setting.changeshift.Cm; this.numericUpDown_C_minute.Value = DialogSetup.cam_setting.changeshift.Cm;
} }
private void button_apply_Click(object sender, EventArgs e) private void button_apply_Click(object sender, EventArgs e)
{ {
if (this.radioButton_time.Checked == true) { if (this.radioButton_time.Checked) {
cam_setting.shift_byhand = 0; DialogSetup.cam_setting.changeshift.shift_byhand = Convert.ToInt32(this.radioButton_byhand.Checked);
cam_setting.shift_time = 1; DialogSetup.cam_setting.changeshift.shift_time = Convert.ToInt32(this.radioButton_time.Checked);
} else if (this.radioButton_byhand.Checked == true) { } else if (this.radioButton_byhand.Checked) {
cam_setting.shift_byhand = 1; DialogSetup.cam_setting.changeshift.shift_byhand = Convert.ToInt32(this.radioButton_byhand.Checked);
cam_setting.shift_time = 0; DialogSetup.cam_setting.changeshift.shift_time = Convert.ToInt32(this.radioButton_time.Checked);
} }
DialogSetup.cam_setting.changeshift.Ah = Convert.ToInt32(this.numericUpDown_A_hour.Value); DialogSetup.cam_setting.changeshift.Ah = Convert.ToInt32(this.numericUpDown_A_hour.Value);
DialogSetup.cam_setting.changeshift.Am = Convert.ToInt32(this.numericUpDown_A_minute.Value); DialogSetup.cam_setting.changeshift.Am = Convert.ToInt32(this.numericUpDown_A_minute.Value);
@ -50,30 +69,33 @@ namespace WindowsFormsApp2
private void radioButton_byhand_CheckedChanged(object sender, EventArgs e) private void radioButton_byhand_CheckedChanged(object sender, EventArgs e)
{ {
/// 点手动换班 A/B/C三班时间清0 /// 选择“手动换班”按钮 -> A/B/C三班时间清0
if (this.radioButton_byhand.Checked) ///
{ if (this.radioButton_byhand.Checked) {
this.radioButton_byhand.Checked = true; DialogSetup.cam_setting.changeshift.shift_byhand = Convert.ToInt32(this.radioButton_byhand.Checked);
this.radioButton_time.Checked = false; DialogSetup.cam_setting.changeshift.shift_time = Convert.ToInt32(this.radioButton_time.Checked);
} }
DialogSetup.cam_setting.changeshift.Ah = Convert.ToInt32(this.numericUpDown_A_hour.Minimum); DialogSetup.cam_setting.changeshift.Ah = Convert.ToInt32(this.numericUpDown_A_hour.Minimum);
DialogSetup.cam_setting.changeshift.Am = Convert.ToInt32(this.numericUpDown_A_minute.Minimum); DialogSetup.cam_setting.changeshift.Am = Convert.ToInt32(this.numericUpDown_A_minute.Minimum);
DialogSetup.cam_setting.changeshift.Bh = Convert.ToInt32(this.numericUpDown_B_hour.Minimum); DialogSetup.cam_setting.changeshift.Bh = Convert.ToInt32(this.numericUpDown_B_hour.Minimum);
DialogSetup.cam_setting.changeshift.Bm = Convert.ToInt32(this.numericUpDown_B_minute.Minimum); DialogSetup.cam_setting.changeshift.Bm = Convert.ToInt32(this.numericUpDown_B_minute.Minimum);
DialogSetup.cam_setting.changeshift.Ch = Convert.ToInt32(this.numericUpDown_C_hour.Minimum); DialogSetup.cam_setting.changeshift.Ch = Convert.ToInt32(this.numericUpDown_C_hour.Minimum);
DialogSetup.cam_setting.changeshift.Cm = Convert.ToInt32(this.numericUpDown_C_minute.Minimum); DialogSetup.cam_setting.changeshift.Cm = Convert.ToInt32(this.numericUpDown_C_minute.Minimum);
this.Close(); //this.Close();
MessageBox.Show("请点击‘保存参数’按钮,进行保存设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification); //MessageBox.Show("请点击‘保存参数’按钮,进行保存设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification);
} }
private void radioButton_time_CheckedChanged(object sender, EventArgs e) private void radioButton_time_CheckedChanged(object sender, EventArgs e)
{ /// 定时换班 { /// 定时换班
if (this.radioButton_time.Checked) if (this.radioButton_time.Checked)
{ {
this.radioButton_time.Checked = true; DialogSetup.cam_setting.changeshift.shift_byhand = Convert.ToInt32(this.radioButton_byhand.Checked);
this.radioButton_byhand.Checked = false; DialogSetup.cam_setting.changeshift.shift_time = Convert.ToInt32(this.radioButton_time.Checked);
} }
//DialogSetup.cam_setting.changeshift.shift_time = 1;
//DialogSetup.cam_setting.changeshift.shift_byhand = 0;
} }
} }
} }

@ -1044,7 +1044,7 @@
this.button3.TabIndex = 12; this.button3.TabIndex = 12;
this.button3.Text = "保存参数"; this.button3.Text = "保存参数";
this.button3.UseVisualStyleBackColor = true; this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click_1); this.button3.Click += new System.EventHandler(this.button3_Click);
// //
// button4 // button4
// //

@ -33,6 +33,8 @@ namespace WindowsFormsApp2
public int Ch; public int Ch;
public int Cm; public int Cm;
public int shift_time;
public int shift_byhand;
public static implicit operator ChangeShift(int v) public static implicit operator ChangeShift(int v)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
@ -55,8 +57,6 @@ namespace WindowsFormsApp2
public PassWord mapsd; public PassWord mapsd;
public PassWord oppsd; public PassWord oppsd;
public ChangeShift changeshift; public ChangeShift changeshift;
public int shift_time;
public int shift_byhand;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType =UnmanagedType.Struct)] [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType =UnmanagedType.Struct)]
public CameraGlue[] Cameraglue; public CameraGlue[] Cameraglue;
}; };
@ -120,8 +120,6 @@ namespace WindowsFormsApp2
cam_setting.IsAutoOpenCam = false; cam_setting.IsAutoOpenCam = false;
cam_setting.IsAutoWork = false; cam_setting.IsAutoWork = false;
cam_setting.saveimage = 0; cam_setting.saveimage = 0;
cam_setting.shift_time = 0;
cam_setting.shift_byhand = 0;
cam_setting.camerasetting = new CamSetting[NumberOfSupportedCameras]; cam_setting.camerasetting = new CamSetting[NumberOfSupportedCameras];
for (; index < NumberOfSupportedCameras; index++) for (; index < NumberOfSupportedCameras; index++)
{ {
@ -130,6 +128,9 @@ namespace WindowsFormsApp2
cam_setting.camerasetting[index].filt = 0; cam_setting.camerasetting[index].filt = 0;
} }
index = 6 + NumberOfSupportedCameras * 3; index = 6 + NumberOfSupportedCameras * 3;
cam_setting.changeshift.shift_byhand = 0;
cam_setting.changeshift.shift_time = 0;
index = index + 2;
cam_setting.changeshift.Ah = 0; cam_setting.changeshift.Ah = 0;
cam_setting.changeshift.Am = 0; cam_setting.changeshift.Am = 0;
cam_setting.changeshift.Bh = 0; cam_setting.changeshift.Bh = 0;
@ -137,6 +138,7 @@ namespace WindowsFormsApp2
cam_setting.changeshift.Ch = 0; cam_setting.changeshift.Ch = 0;
cam_setting.changeshift.Cm = 0; cam_setting.changeshift.Cm = 0;
index = index + 6; index = index + 6;
cam_setting.Cameraglue = new CameraGlue[NumberOfSupportedCameras]; cam_setting.Cameraglue = new CameraGlue[NumberOfSupportedCameras];
for (int i = 0; i < NumberOfSupportedCameras; i++) for (int i = 0; i < NumberOfSupportedCameras; i++)
@ -197,11 +199,6 @@ namespace WindowsFormsApp2
outputStatistic.ShowDialog(); outputStatistic.ShowDialog();
} }
private void button3_Click(object sender, EventArgs e)
{
}
private void checkBox_auto_open_CheckedChanged(object sender, EventArgs e) private void checkBox_auto_open_CheckedChanged(object sender, EventArgs e)
{ {
cam_setting.IsAutoOpenCam = this.checkBox_auto_open.Checked; cam_setting.IsAutoOpenCam = this.checkBox_auto_open.Checked;
@ -372,8 +369,9 @@ namespace WindowsFormsApp2
cam_setting.camerasetting[7].filt = Convert.ToInt32(this.textBox_filter_8.Text.ToString()); cam_setting.camerasetting[7].filt = Convert.ToInt32(this.textBox_filter_8.Text.ToString());
} }
private void button3_Click_1(object sender, EventArgs e) private void button3_Click(object sender, EventArgs e)
{ {
// 保存参数
String msg = "UPDSETTING:"; String msg = "UPDSETTING:";
msg += NumberOfSupportedCameras.ToString() + ":"; msg += NumberOfSupportedCameras.ToString() + ":";
msg += cam_setting.IsAutoOpenCam.ToString() + ":"; msg += cam_setting.IsAutoOpenCam.ToString() + ":";
@ -385,6 +383,8 @@ namespace WindowsFormsApp2
msg += cam_setting.camerasetting[index].gain.ToString() + ":"; msg += cam_setting.camerasetting[index].gain.ToString() + ":";
msg += cam_setting.camerasetting[index].filt.ToString() + ":"; msg += cam_setting.camerasetting[index].filt.ToString() + ":";
} }
msg += cam_setting.changeshift.shift_byhand.ToString() + ":";
msg += cam_setting.changeshift.shift_time.ToString() + ":";
msg += cam_setting.changeshift.Ah.ToString() + ":"; msg += cam_setting.changeshift.Ah.ToString() + ":";
msg += cam_setting.changeshift.Am.ToString() + ":"; msg += cam_setting.changeshift.Am.ToString() + ":";
msg += cam_setting.changeshift.Bh.ToString() + ":"; msg += cam_setting.changeshift.Bh.ToString() + ":";

@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace WindowsFormsApp2 namespace WindowsFormsApp2
{ {
public partial class FullScreen : Form public partial class FullScreen : Form
{ {
public FullScreen() public FullScreen()
{ {
@ -22,6 +22,5 @@ namespace WindowsFormsApp2
{ {
singleCam1.setCamId(d); singleCam1.setCamId(d);
} }
} }
} }

@ -19,7 +19,7 @@ namespace WindowsFormsApp2.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。 // (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -47,8 +47,8 @@ namespace WindowsFormsApp2.Properties {
} }
/// <summary> /// <summary>
/// 重写当前线程的 CurrentUICulture 属性 /// 重写当前线程的 CurrentUICulture 属性,对
/// 重写当前线程的 CurrentUICulture 属性 /// 使用此强类型资源类的所有资源查找执行重写。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {

@ -12,7 +12,7 @@ namespace WindowsFormsApp2.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

@ -279,7 +279,7 @@
// label7 // label7
// //
this.label7.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label7.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.Lime; this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(6, 536); this.label7.Location = new System.Drawing.Point(6, 536);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(101, 25); this.label7.Size = new System.Drawing.Size(101, 25);
@ -288,14 +288,14 @@
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label7.DoubleClick += new System.EventHandler(this.label7_DoubleClick); this.label7.DoubleClick += new System.EventHandler(this.label7_DoubleClick);
// //
// button1 // button_apply
// //
this.button1.BackgroundImage = global::WindowsFormsApp2.Properties.Resources.start; this.button1.BackgroundImage = global::WindowsFormsApp2.Properties.Resources.start;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(4, 80); this.button1.Location = new System.Drawing.Point(4, 80);
this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.button1.Name = "button1"; this.button1.Name = "button_apply";
this.button1.Size = new System.Drawing.Size(104, 91); this.button1.Size = new System.Drawing.Size(104, 91);
this.button1.TabIndex = 0; this.button1.TabIndex = 0;
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;

@ -33,8 +33,6 @@ namespace WindowsFormsApp2
UdpClient fileu = null; UdpClient fileu = null;
public static int[] status = new int[5]; public static int[] status = new int[5];
DialogSetup setup = new DialogSetup(); DialogSetup setup = new DialogSetup();
public static bool Stop = true;//停止
protected virtual void OnClosing(System.ComponentModel.CancelEventArgs e) protected virtual void OnClosing(System.ComponentModel.CancelEventArgs e)
{ {
m_Done = true; m_Done = true;
@ -392,8 +390,6 @@ namespace WindowsFormsApp2
DialogSetup.cam_setting.IsAutoOpenCam = Convert.ToBoolean(int.Parse(str[1])); DialogSetup.cam_setting.IsAutoOpenCam = Convert.ToBoolean(int.Parse(str[1]));
DialogSetup.cam_setting.IsAutoWork = Convert.ToBoolean(int.Parse(str[2])); DialogSetup.cam_setting.IsAutoWork = Convert.ToBoolean(int.Parse(str[2]));
DialogSetup.cam_setting.saveimage = int.Parse(str[3]); DialogSetup.cam_setting.saveimage = int.Parse(str[3]);
DialogSetup.cam_setting.shift_time = int.Parse(str[1]);
DialogSetup.cam_setting.shift_byhand = int.Parse(str[1]);
for (;index<NumberOfSupportedCameras;index++) for (;index<NumberOfSupportedCameras;index++)
{ {
DialogSetup.cam_setting.camerasetting[index].expo = int.Parse(str[4+index*3]); DialogSetup.cam_setting.camerasetting[index].expo = int.Parse(str[4+index*3]);
@ -401,14 +397,18 @@ namespace WindowsFormsApp2
DialogSetup.cam_setting.camerasetting[index].filt = int.Parse(str[6+index*3]); DialogSetup.cam_setting.camerasetting[index].filt = int.Parse(str[6+index*3]);
} }
index = 4+NumberOfSupportedCameras*3; index = 4+NumberOfSupportedCameras*3;
DialogSetup.cam_setting.changeshift.shift_byhand = int.Parse(str[index]); //str[28]
DialogSetup.cam_setting.changeshift.shift_time = int.Parse(str[index + 1]); //str[29]
index = index + 2;
DialogSetup.cam_setting.changeshift.Ah =int.Parse(str[index]); DialogSetup.cam_setting.changeshift.Ah =int.Parse(str[index]);
DialogSetup.cam_setting.changeshift.Am =int.Parse(str[index+1]); DialogSetup.cam_setting.changeshift.Am =int.Parse(str[index+1]);
DialogSetup.cam_setting.changeshift.Bh =int.Parse(str[index+2]); DialogSetup.cam_setting.changeshift.Bh =int.Parse(str[index+2]);
DialogSetup.cam_setting.changeshift.Bm =int.Parse(str[index+3]); DialogSetup.cam_setting.changeshift.Bm =int.Parse(str[index+3]);
DialogSetup.cam_setting.changeshift.Ch =int.Parse(str[index+4]); DialogSetup.cam_setting.changeshift.Ch =int.Parse(str[index+4]);
DialogSetup.cam_setting.changeshift.Cm =int.Parse(str[index+5]); DialogSetup.cam_setting.changeshift.Cm =int.Parse(str[index+5]);
index = index +6; index = index + 6;
for(int i =0;i<NumberOfSupportedCameras;i++)
for (int i =0;i<NumberOfSupportedCameras;i++)
{ {
DialogSetup.cam_setting.Cameraglue[i].shoot[0] = int.Parse(str[index + i*3]); DialogSetup.cam_setting.Cameraglue[i].shoot[0] = int.Parse(str[index + i*3]);
DialogSetup.cam_setting.Cameraglue[i].shoot[1] = int.Parse(str[index + i*3+1]); DialogSetup.cam_setting.Cameraglue[i].shoot[1] = int.Parse(str[index + i*3+1]);
@ -423,47 +423,38 @@ namespace WindowsFormsApp2
if(alarm_code == 0) if(alarm_code == 0)
{ {
label7.Text = "无报警"; label7.Text = "无报警";
label7.ForeColor = Color.Lime;
}
if (alarm_code == 5)
{
label7.Text = "1#相机断开";
label7.ForeColor= Color.Red;
}
if (alarm_code == 6)
{
label7.Text = "2#相机断开";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 7) if (alarm_code == 7)
{ {
label7.Text = "3#相机断开"; label7.Text = "重连1#相机";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 8) if (alarm_code == 8)
{ {
label7.Text = "4#相机断开"; label7.Text = "重连2#相机";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 9) if (alarm_code == 9)
{ {
label7.Text = "5#相机断开"; label7.Text = "重连3#相机";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 10) if (alarm_code == 10)
{ {
label7.Text = "6#相机断开"; label7.Text = "重连4#相机";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 11) if (alarm_code == 11)
{ {
label7.Text = "7#相机断开"; label7.Text = "重连5#相机";
label7.ForeColor = Color.Red;
} }
if (alarm_code == 12) if (alarm_code == 12)
{ {
label7.Text = "8#相机断开"; label7.Text = "重连6#相机";
label7.ForeColor = Color.Red; }
if (alarm_code == 13)
{
label7.Text = "重连7#相机";
}
if (alarm_code == 14)
{
label7.Text = "重连8#相机";
} }
} }
} }
@ -548,17 +539,12 @@ namespace WindowsFormsApp2
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
Stop = true;
SendMsg("START"); SendMsg("START");
} }
private void button2_Click(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e)
{ {
Stop = false;
SendMsg("END"); SendMsg("END");
} }
private void button3_Click(object sender, EventArgs e) private void button3_Click(object sender, EventArgs e)

@ -171,7 +171,7 @@
RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP
lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l
f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK
j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAAOvQAADr0BR/uQrQAAI+pJREFUeF7Vegd4FOX+ j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAAOvwAADr8BOAVTJAAAI+pJREFUeF7Vegd4FOX+
9Y/QsSCiSJUiRRREBZQuSBFFpAqCgEAoivQiHSH0HkoSIPQAgQRCEiABQgkkIYWQTnpI74X0urvnf97d 9Y/QsSCiSJUiRRREBZQuSBFFpAqCgEAoivQiHSH0HkoSIPQAgQRCEiABQgkkIYWQTnpI74X0urvnf97d
RLHcexXv9zzfXZ7DOzM7s5lz3l+deSUqGf8YT9IgD0MLZc12Lzl1MVEiozTyOLRcQisRFq6Rhw+fyi4z RLHcexXv9zzfXZ7DOzM7s5lz3l+deSUqGf8YT9IgD0MLZc12Lzl1MVEiozTyOLRcQisRFq6Rhw+fyi4z
F/np7MNh088Fne0609qry4gDzpNXXlzgnlD4cmyxTqIL8VsUQWJLdHLhbq7Y3sqUuAIey4HEPP3v4U8J F/np7MNh088Fne0609qry4gDzpNXXlzgnlD4cmyxTqIL8VsUQWJLdHLhbq7Y3sqUuAIey4HEPP3v4U8J

@ -8,7 +8,7 @@
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<RootNamespace>WindowsFormsApp2</RootNamespace> <RootNamespace>WindowsFormsApp2</RootNamespace>
<AssemblyName>WindowsFormsApp2</AssemblyName> <AssemblyName>WindowsFormsApp2</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
@ -167,6 +167,7 @@
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UserControl1.resx"> <EmbeddedResource Include="UserControl1.resx">
<DependentUpon>UserControl1.cs</DependentUpon> <DependentUpon>UserControl1.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="DialogLogin.resx"> <EmbeddedResource Include="DialogLogin.resx">
<DependentUpon>DialogLogin.cs</DependentUpon> <DependentUpon>DialogLogin.cs</DependentUpon>

@ -28,27 +28,17 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.singleCam5 = new WindowsFormsApp2.singleCam();
this.singleCam8 = new WindowsFormsApp2.singleCam(); this.singleCam8 = new WindowsFormsApp2.singleCam();
this.singleCam7 = new WindowsFormsApp2.singleCam(); this.singleCam7 = new WindowsFormsApp2.singleCam();
this.singleCam6 = new WindowsFormsApp2.singleCam(); this.singleCam6 = new WindowsFormsApp2.singleCam();
this.singleCam4 = new WindowsFormsApp2.singleCam(); this.singleCam5 = new WindowsFormsApp2.singleCam();
this.singleCam3 = new WindowsFormsApp2.singleCam(); this.singleCam3 = new WindowsFormsApp2.singleCam();
this.singleCam4 = new WindowsFormsApp2.singleCam();
this.singleCam2 = new WindowsFormsApp2.singleCam(); this.singleCam2 = new WindowsFormsApp2.singleCam();
this.singleCam1 = new WindowsFormsApp2.singleCam(); this.singleCam1 = new WindowsFormsApp2.singleCam();
this.userControl11 = new WindowsFormsApp2.UserControl1(); this.userControl11 = new WindowsFormsApp2.UserControl1();
this.SuspendLayout(); this.SuspendLayout();
// //
// singleCam5
//
this.singleCam5.BackColor = System.Drawing.Color.Black;
this.singleCam5.Location = new System.Drawing.Point(720, 67);
this.singleCam5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.singleCam5.Name = "singleCam5";
this.singleCam5.Size = new System.Drawing.Size(600, 200);
this.singleCam5.TabIndex = 5;
//this.singleCam5.DoubleClick += new System.EventHandler(this.singleCam5_DoubleClick);
//
// singleCam8 // singleCam8
// //
this.singleCam8.BackColor = System.Drawing.Color.Black; this.singleCam8.BackColor = System.Drawing.Color.Black;
@ -76,14 +66,15 @@
this.singleCam6.Size = new System.Drawing.Size(600, 200); this.singleCam6.Size = new System.Drawing.Size(600, 200);
this.singleCam6.TabIndex = 6; this.singleCam6.TabIndex = 6;
// //
// singleCam4 // singleCam5
// //
this.singleCam4.BackColor = System.Drawing.Color.Black; this.singleCam5.BackColor = System.Drawing.Color.Black;
this.singleCam4.Location = new System.Drawing.Point(112, 685); this.singleCam5.Location = new System.Drawing.Point(720, 67);
this.singleCam4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.singleCam5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.singleCam4.Name = "singleCam4"; this.singleCam5.Name = "singleCam5";
this.singleCam4.Size = new System.Drawing.Size(600, 200); this.singleCam5.Size = new System.Drawing.Size(600, 200);
this.singleCam4.TabIndex = 4; this.singleCam5.TabIndex = 5;
this.singleCam5.DoubleClick += new System.EventHandler(this.singleCam5_DoubleClick);
// //
// singleCam3 // singleCam3
// //
@ -93,7 +84,15 @@
this.singleCam3.Name = "singleCam3"; this.singleCam3.Name = "singleCam3";
this.singleCam3.Size = new System.Drawing.Size(600, 200); this.singleCam3.Size = new System.Drawing.Size(600, 200);
this.singleCam3.TabIndex = 3; this.singleCam3.TabIndex = 3;
//this.singleCam3.Load += new System.EventHandler(this.singleCam3_Load); //
// singleCam4
//
this.singleCam4.BackColor = System.Drawing.Color.Black;
this.singleCam4.Location = new System.Drawing.Point(112, 685);
this.singleCam4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.singleCam4.Name = "singleCam4";
this.singleCam4.Size = new System.Drawing.Size(600, 200);
this.singleCam4.TabIndex = 4;
// //
// singleCam2 // singleCam2
// //
@ -112,7 +111,7 @@
this.singleCam1.Name = "singleCam1"; this.singleCam1.Name = "singleCam1";
this.singleCam1.Size = new System.Drawing.Size(600, 200); this.singleCam1.Size = new System.Drawing.Size(600, 200);
this.singleCam1.TabIndex = 1; this.singleCam1.TabIndex = 1;
//this.singleCam1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.singleCam1_MouseDoubleClick); this.singleCam1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.singleCam1_MouseDoubleClick);
// //
// userControl11 // userControl11
// //
@ -122,7 +121,7 @@
this.userControl11.Name = "userControl11"; this.userControl11.Name = "userControl11";
this.userControl11.Size = new System.Drawing.Size(1330, 900); this.userControl11.Size = new System.Drawing.Size(1330, 900);
this.userControl11.TabIndex = 0; this.userControl11.TabIndex = 0;
// this.userControl11.Load += new System.EventHandler(this.userControl11_Load); this.userControl11.Load += new System.EventHandler(this.userControl11_Load);
// //
// displayResult // displayResult
// //
@ -144,7 +143,7 @@
this.MinimumSize = new System.Drawing.Size(1330, 900); this.MinimumSize = new System.Drawing.Size(1330, 900);
this.Name = "displayResult"; this.Name = "displayResult";
this.Size = new System.Drawing.Size(1330, 900); this.Size = new System.Drawing.Size(1330, 900);
// this.Load += new System.EventHandler(this.displayResult_Load); this.Load += new System.EventHandler(this.displayResult_Load);
this.ResumeLayout(false); this.ResumeLayout(false);
} }

@ -1,12 +1,10 @@
using System.Drawing; using System.Windows.Forms;
using System.Reflection.Emit;
using System.Windows.Forms;
namespace WindowsFormsApp2 namespace WindowsFormsApp2
{ {
public partial class displayResult : UserControl public partial class displayResult : UserControl
{ {
public displayResult() public displayResult()
{ {
InitializeComponent(); InitializeComponent();
@ -27,14 +25,12 @@ namespace WindowsFormsApp2
{ {
dial.bindCam(id); dial.bindCam(id);
dial.Show(); dial.Show();
} }
} }
public void init() public void init()
{ {
singleCam1.setCamId(0); singleCam1.setCamId(0);
singleCam2.setCamId(1); singleCam2.setCamId(1);
singleCam3.setCamId(2); singleCam3.setCamId(2);
@ -58,6 +54,38 @@ namespace WindowsFormsApp2
userControl11.closeSocket(); userControl11.closeSocket();
} }
private void displayResult_Load(object sender, System.EventArgs e)
{
}
private void userControl11_Load(object sender, System.EventArgs e)
{
}
private void singleCam5_DoubleClick(object sender, System.EventArgs e)
{
}
private void singleCam1_MouseDoubleClick(object sender, MouseEventArgs e)
{
//////双击图片时进入全屏或者还原
//if (singleCam1.pictureBox1.Size == singleCam1.pictureBox1.MaximumSize)
//{
// singleCam1.pictureBox1.Size = singleCam1.pictureBox1.MinimumSize;
// this.singleCam1.pictureBox1.Dock = DockStyle.None;
// this.singleCam1.pictureBox1.Refresh();
//}
//else
//{
// singleCam1.pictureBox1.Size = singleCam1.pictureBox1.MaximumSize;
// this.singleCam1.pictureBox1.Dock = DockStyle.None;
// this.singleCam1.pictureBox1.Refresh();
//}
}
} }
} }

@ -1 +1 @@
3cb51a4ee86f4329065ded9e51221a519b65346f efae7d3405c08cd599c1ade1c54aa61a6fa5c3a5

@ -59,24 +59,24 @@ C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\W
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll.config C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll.config
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll
C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.dll C:\Users\PC\Downloads\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.dll
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\WindowsFormsApp2.dll.config D:\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll.config
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\WindowsFormsApp2.dll D:\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.dll
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\Publish\WindowsFormsApp2.pdb D:\230512-UDPSend\230508-UDPSend\Publish\WindowsFormsApp2.pdb
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.AssemblyReference.cache D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.AssemblyReference.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Alarm_Record.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Alarm_Record.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Camera_glue.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Camera_glue.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Change_shift.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Change_shift.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.displayResult.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.displayResult.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Form1.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Form1.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.DialogSetup.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.DialogSetup.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.FullScreen.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.FullScreen.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Output_statistic.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Output_statistic.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Properties.Resources.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Properties.Resources.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.singleCam.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.singleCam.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.singleCam2.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.singleCam2.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.UserControl1.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.UserControl1.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.DialogLogin.resources D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.DialogLogin.resources
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.GenerateResource.cache D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.GenerateResource.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CoreCompileInputs.cache D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CoreCompileInputs.cache
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.dll D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.dll
D:\烟厂资料\烟厂程序\程序测试\远程端\230517-UDPSend-尹工修改双击放大\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.pdb D:\230512-UDPSend\230508-UDPSend\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.pdb

@ -66,7 +66,7 @@
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1576, 50); this.panel1.Size = new System.Drawing.Size(1576, 50);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
//this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
// //
// groupBox1 // groupBox1
// //
@ -89,7 +89,7 @@
this.groupBox1.TabIndex = 9; this.groupBox1.TabIndex = 9;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "1#分析结果"; this.groupBox1.Text = "1#分析结果";
//this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter); this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
// //
// textBox7 // textBox7
// //
@ -103,7 +103,7 @@
this.textBox7.ReadOnly = true; this.textBox7.ReadOnly = true;
this.textBox7.Size = new System.Drawing.Size(69, 21); this.textBox7.Size = new System.Drawing.Size(69, 21);
this.textBox7.TabIndex = 18; this.textBox7.TabIndex = 18;
//this.textBox7.TextChanged += new System.EventHandler(this.textBox7_TextChanged); this.textBox7.TextChanged += new System.EventHandler(this.textBox7_TextChanged);
// //
// label7 // label7
// //
@ -119,7 +119,6 @@
// //
// label8 // label8
// //
this.label8.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
this.label8.BackColor = System.Drawing.Color.Lime; this.label8.BackColor = System.Drawing.Color.Lime;
this.label8.Font = new System.Drawing.Font("宋体", 15F); this.label8.Font = new System.Drawing.Font("宋体", 15F);
this.label8.Location = new System.Drawing.Point(525, 20); this.label8.Location = new System.Drawing.Point(525, 20);
@ -128,8 +127,7 @@
this.label8.Size = new System.Drawing.Size(60, 24); this.label8.Size = new System.Drawing.Size(60, 24);
this.label8.TabIndex = 15; this.label8.TabIndex = 15;
this.label8.Text = " OK "; this.label8.Text = " OK ";
this.label8.Visible = false; this.label8.Click += new System.EventHandler(this.label8_Click);
// this.label8.Click += new System.EventHandler(this.label8_Click);
// //
// textBox6 // textBox6
// //
@ -143,7 +141,7 @@
this.textBox6.ReadOnly = true; this.textBox6.ReadOnly = true;
this.textBox6.Size = new System.Drawing.Size(69, 21); this.textBox6.Size = new System.Drawing.Size(69, 21);
this.textBox6.TabIndex = 12; this.textBox6.TabIndex = 12;
//this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged); this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged);
// //
// label6 // label6
// //
@ -156,7 +154,7 @@
this.label6.Size = new System.Drawing.Size(93, 17); this.label6.Size = new System.Drawing.Size(93, 17);
this.label6.TabIndex = 11; this.label6.TabIndex = 11;
this.label6.Text = "胶点个数:"; this.label6.Text = "胶点个数:";
// this.label6.Click += new System.EventHandler(this.label6_Click); this.label6.Click += new System.EventHandler(this.label6_Click);
// //
// textBox5 // textBox5
// //
@ -164,13 +162,13 @@
this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox5.Font = new System.Drawing.Font("宋体", 11F); this.textBox5.Font = new System.Drawing.Font("宋体", 11F);
this.textBox5.ForeColor = System.Drawing.Color.White; this.textBox5.ForeColor = System.Drawing.Color.White;
this.textBox5.Location = new System.Drawing.Point(91, 22); this.textBox5.Location = new System.Drawing.Point(91, 19);
this.textBox5.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2); this.textBox5.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
this.textBox5.Name = "textBox5"; this.textBox5.Name = "textBox5";
this.textBox5.ReadOnly = true; this.textBox5.ReadOnly = true;
this.textBox5.Size = new System.Drawing.Size(69, 21); this.textBox5.Size = new System.Drawing.Size(69, 21);
this.textBox5.TabIndex = 10; this.textBox5.TabIndex = 10;
//this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged); this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
// //
// label5 // label5
// //
@ -183,7 +181,7 @@
this.label5.Size = new System.Drawing.Size(85, 17); this.label5.Size = new System.Drawing.Size(85, 17);
this.label5.TabIndex = 9; this.label5.TabIndex = 9;
this.label5.Text = "采集速度:"; this.label5.Text = "采集速度:";
// this.label5.Click += new System.EventHandler(this.label5_Click); this.label5.Click += new System.EventHandler(this.label5_Click);
// //
// panel2 // panel2
// //
@ -195,7 +193,7 @@
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1576, 897); this.panel2.Size = new System.Drawing.Size(1576, 897);
this.panel2.TabIndex = 2; this.panel2.TabIndex = 2;
//this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint); this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
// //
// pictureBox1 // pictureBox1
// //
@ -210,7 +208,7 @@
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 1; this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
//this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
this.pictureBox1.DoubleClick += new System.EventHandler(this.pictureBox1_DoubleClick); this.pictureBox1.DoubleClick += new System.EventHandler(this.pictureBox1_DoubleClick);
// //
// panel3 // panel3
@ -232,7 +230,7 @@
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(200, 897); this.panel3.Size = new System.Drawing.Size(200, 897);
this.panel3.TabIndex = 0; this.panel3.TabIndex = 0;
//this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint); this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint);
// //
// textBox4 // textBox4
// //
@ -246,7 +244,7 @@
this.textBox4.Size = new System.Drawing.Size(60, 21); this.textBox4.Size = new System.Drawing.Size(60, 21);
this.textBox4.TabIndex = 7; this.textBox4.TabIndex = 7;
this.textBox4.Text = "0"; this.textBox4.Text = "0";
//this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged); this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged);
// //
// textBox3 // textBox3
// //
@ -260,7 +258,7 @@
this.textBox3.Size = new System.Drawing.Size(60, 21); this.textBox3.Size = new System.Drawing.Size(60, 21);
this.textBox3.TabIndex = 6; this.textBox3.TabIndex = 6;
this.textBox3.Text = "0"; this.textBox3.Text = "0";
//this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged); this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
// //
// textBox2 // textBox2
// //
@ -274,7 +272,7 @@
this.textBox2.Size = new System.Drawing.Size(60, 21); this.textBox2.Size = new System.Drawing.Size(60, 21);
this.textBox2.TabIndex = 5; this.textBox2.TabIndex = 5;
this.textBox2.Text = "0"; this.textBox2.Text = "0";
//this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
// //
// textBox1 // textBox1
// //
@ -288,7 +286,7 @@
this.textBox1.Size = new System.Drawing.Size(60, 21); this.textBox1.Size = new System.Drawing.Size(60, 21);
this.textBox1.TabIndex = 4; this.textBox1.TabIndex = 4;
this.textBox1.Text = "0"; this.textBox1.Text = "0";
// this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
// //
// label4 // label4
// //
@ -300,7 +298,7 @@
this.label4.Size = new System.Drawing.Size(86, 19); this.label4.Size = new System.Drawing.Size(86, 19);
this.label4.TabIndex = 3; this.label4.TabIndex = 3;
this.label4.Text = "1#剔除数"; this.label4.Text = "1#剔除数";
//this.label4.Click += new System.EventHandler(this.label4_Click); this.label4.Click += new System.EventHandler(this.label4_Click);
// //
// label3 // label3
// //
@ -312,7 +310,7 @@
this.label3.Size = new System.Drawing.Size(68, 19); this.label3.Size = new System.Drawing.Size(68, 19);
this.label3.TabIndex = 2; this.label3.TabIndex = 2;
this.label3.Text = "1#NG数"; this.label3.Text = "1#NG数";
//this.label3.Click += new System.EventHandler(this.label3_Click); this.label3.Click += new System.EventHandler(this.label3_Click);
// //
// label2 // label2
// //
@ -324,7 +322,7 @@
this.label2.Size = new System.Drawing.Size(68, 19); this.label2.Size = new System.Drawing.Size(68, 19);
this.label2.TabIndex = 1; this.label2.TabIndex = 1;
this.label2.Text = "1#OK数"; this.label2.Text = "1#OK数";
//this.label2.Click += new System.EventHandler(this.label2_Click); this.label2.Click += new System.EventHandler(this.label2_Click);
// //
// label1 // label1
// //
@ -336,7 +334,7 @@
this.label1.Size = new System.Drawing.Size(86, 19); this.label1.Size = new System.Drawing.Size(86, 19);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "1#检测数"; this.label1.Text = "1#检测数";
//this.label1.Click += new System.EventHandler(this.label1_Click); this.label1.Click += new System.EventHandler(this.label1_Click);
// //
// singleCam // singleCam
// //
@ -363,6 +361,7 @@
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox6; private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label6;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
@ -380,6 +379,5 @@
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox7; private System.Windows.Forms.TextBox textBox7;
public System.Windows.Forms.PictureBox pictureBox1; public System.Windows.Forms.PictureBox pictureBox1;
public System.Windows.Forms.Label label8;
} }
} }

@ -12,7 +12,7 @@ namespace WindowsFormsApp2
{ {
public partial class singleCam : UserControl public partial class singleCam : UserControl
{ {
// UserControl1 u1 = new UserControl1();//
static singleCam() static singleCam()
{ {
@ -195,28 +195,124 @@ namespace WindowsFormsApp2
if (label8.InvokeRequired) { label8.Invoke(new Action<bool>(updateLabel), ok); return; } if (label8.InvokeRequired) { label8.Invoke(new Action<bool>(updateLabel), ok); return; }
else else
{ {
if (UserControl1.Stop) if (ok)
{ {
label8.Visible = true; label8.Text = "OK";
if (ok) label8.BackColor = Color.Lime;
{
label8.Text = "OK";
label8.BackColor = Color.Lime;
}
else
{
label8.Text = "NG";
label8.BackColor = Color.Red;
}
} }
else else
{ {
label8.Visible = false; label8.Text = "NG";
label8.BackColor = Color.Red;
} }
} }
} }
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void panel3_Paint(object sender, PaintEventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void label8_Click(object sender, EventArgs e)
{
}
private void textBox7_TextChanged(object sender, EventArgs e)
{
}
private void label7_Click(object sender, EventArgs e)
{
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void label6_Click(object sender, EventArgs e)
{
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
}
private void label5_Click(object sender, EventArgs e)
{
}
private void panel2_Paint(object sender, PaintEventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label3_Click(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
}
private void textBox7_TextChanged_1(object sender, EventArgs e)
{
}
public Action<int> callback = null; public Action<int> callback = null;
private int thisId = -1; private int thisId = -1;

Loading…
Cancel
Save