代码拉取完成,页面将自动刷新
1.8.1.0
.net framework 4.7.2
windows 11
1,设置menu的BackColor为Black, ForeColor为White,Mode为Horizontal
2,运行发现子菜单的背景依然为白色,没有变为黑色
提供完整的设计器代码
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
namespace K01
{
partial class frmMain
{
///
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
AntdUI.MenuItem menuItem1 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem2 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem3 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem4 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem5 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem6 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem7 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem8 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem9 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem10 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem11 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem12 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem13 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem14 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem15 = new AntdUI.MenuItem();
AntdUI.MenuItem menuItem16 = new AntdUI.MenuItem();
this.panel1 = new System.Windows.Forms.Panel();
this.dataGridView_P = new System.Windows.Forms.DataGridView();
this.X = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Y = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.GrpJob = new AntdUI.Panel();
this.TxtRunstatus2 = new AntdUI.Input();
this.label2 = new AntdUI.Label();
this.CmbJobName2 = new AntdUI.Select();
this.TxtIndex = new AntdUI.Input();
this.Label4 = new AntdUI.Label();
this.TxtRunstatus = new AntdUI.Input();
this.Label3 = new AntdUI.Label();
this.CmbJobName1 = new AntdUI.Select();
this.GrpOpration = new AntdUI.Panel();
this.BtnRunonce2 = new AntdUI.Button();
this.BtnCheckPro2 = new AntdUI.Button();
this.BtnCheckPro = new AntdUI.Button();
this.BtnSaveJob = new AntdUI.Button();
this.BtnRunonce = new AntdUI.Button();
this.panel2 = new AntdUI.Panel();
this.button1 = new System.Windows.Forms.Button();
this.Label1 = new System.Windows.Forms.Label();
this.checkBoxZoom = new System.Windows.Forms.CheckBox();
this.panel3 = new AntdUI.Panel();
this.Btnlive = new System.Windows.Forms.Button();
this.cogRecordDisplay2 = new Cognex.VisionPro.CogRecordDisplay();
this.cogRecordDisplay1 = new Cognex.VisionPro.CogRecordDisplay();
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menu1 = new AntdUI.Menu();
this.GroupBox4 = new AntdUI.Panel();
this.label5 = new AntdUI.Label();
this.LstInfo = new System.Windows.Forms.ListBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView_P)).BeginInit();
this.GrpJob.SuspendLayout();
this.GrpOpration.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cogRecordDisplay2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cogRecordDisplay1)).BeginInit();
this.GroupBox4.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.dataGridView_P);
this.panel1.Controls.Add(this.GrpJob);
this.panel1.Controls.Add(this.GrpOpration);
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
this.panel1.Location = new System.Drawing.Point(1454, 78);
this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(540, 1730);
this.panel1.TabIndex = 5;
//
// dataGridView_P
//
this.dataGridView_P.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView_P.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView_P.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.X,
this.Y});
this.dataGridView_P.Location = new System.Drawing.Point(24, 813);
this.dataGridView_P.Name = "dataGridView_P";
this.dataGridView_P.RowHeadersVisible = false;
this.dataGridView_P.RowHeadersWidth = 62;
this.dataGridView_P.RowTemplate.Height = 30;
this.dataGridView_P.Size = new System.Drawing.Size(489, 900);
this.dataGridView_P.TabIndex = 8;
//
// X
//
this.X.HeaderText = "X";
this.X.MaxInputLength = 10;
this.X.MinimumWidth = 8;
this.X.Name = "X";
this.X.Width = 80;
//
// Y
//
this.Y.HeaderText = "Y";
this.Y.MaxInputLength = 10;
this.Y.MinimumWidth = 8;
this.Y.Name = "Y";
this.Y.Width = 80;
//
// GrpJob
//
this.GrpJob.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.GrpJob.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
this.GrpJob.Controls.Add(this.TxtRunstatus2);
this.GrpJob.Controls.Add(this.label2);
this.GrpJob.Controls.Add(this.CmbJobName2);
this.GrpJob.Controls.Add(this.TxtIndex);
this.GrpJob.Controls.Add(this.Label4);
this.GrpJob.Controls.Add(this.TxtRunstatus);
this.GrpJob.Controls.Add(this.Label3);
this.GrpJob.Controls.Add(this.CmbJobName1);
this.GrpJob.Location = new System.Drawing.Point(9, 338);
this.GrpJob.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.GrpJob.Name = "GrpJob";
this.GrpJob.Shadow = 8;
this.GrpJob.ShadowColor = System.Drawing.Color.Black;
this.GrpJob.ShadowOpacity = 0.2F;
this.GrpJob.Size = new System.Drawing.Size(516, 468);
this.GrpJob.TabIndex = 7;
this.GrpJob.TabStop = false;
this.GrpJob.Text = "Jobinfo:";
this.GrpJob.Enter += new System.EventHandler(this.GrpJob_Enter);
//
// TxtRunstatus2
//
this.TxtRunstatus2.BackColor = System.Drawing.Color.White;
this.TxtRunstatus2.Enabled = false;
this.TxtRunstatus2.Location = new System.Drawing.Point(117, 282);
this.TxtRunstatus2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtRunstatus2.Name = "TxtRunstatus2";
this.TxtRunstatus2.ReadOnly = true;
this.TxtRunstatus2.Size = new System.Drawing.Size(296, 72);
this.TxtRunstatus2.TabIndex = 7;
this.TxtRunstatus2.TextChanged += new System.EventHandler(this.TxtRunstatus2_TextChanged);
//
// label2
//
this.label2.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.label2.Location = new System.Drawing.Point(28, 298);
this.label2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(90, 44);
this.label2.TabIndex = 6;
this.label2.Text = "相机2\r\n运行状态:";
//
// CmbJobName2
//
this.CmbJobName2.BorderColor = System.Drawing.Color.Black;
this.CmbJobName2.Enabled = false;
this.CmbJobName2.Location = new System.Drawing.Point(27, 111);
this.CmbJobName2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.CmbJobName2.Name = "CmbJobName2";
this.CmbJobName2.Size = new System.Drawing.Size(387, 72);
this.CmbJobName2.TabIndex = 2;
//
// TxtIndex
//
this.TxtIndex.BackColor = System.Drawing.Color.White;
this.TxtIndex.Enabled = false;
this.TxtIndex.Location = new System.Drawing.Point(117, 363);
this.TxtIndex.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtIndex.Name = "TxtIndex";
this.TxtIndex.Size = new System.Drawing.Size(296, 72);
this.TxtIndex.TabIndex = 5;
this.TxtIndex.Text = "1234";
this.TxtIndex.TextChanged += new System.EventHandler(this.TxtIndex_TextChanged);
//
// Label4
//
this.Label4.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.Label4.Location = new System.Drawing.Point(26, 387);
this.Label4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(62, 44);
this.Label4.TabIndex = 4;
this.Label4.Text = "显示\r\n图号:";
//
// TxtRunstatus
//
this.TxtRunstatus.BackColor = System.Drawing.Color.White;
this.TxtRunstatus.Enabled = false;
this.TxtRunstatus.Location = new System.Drawing.Point(117, 201);
this.TxtRunstatus.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtRunstatus.Name = "TxtRunstatus";
this.TxtRunstatus.ReadOnly = true;
this.TxtRunstatus.Size = new System.Drawing.Size(296, 72);
this.TxtRunstatus.TabIndex = 3;
this.TxtRunstatus.TextChanged += new System.EventHandler(this.TxtRunstatus_TextChanged);
//
// Label3
//
this.Label3.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.Label3.Location = new System.Drawing.Point(28, 216);
this.Label3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(90, 44);
this.Label3.TabIndex = 2;
this.Label3.Text = "相机1\r\n运行状态:";
//
// CmbJobName1
//
this.CmbJobName1.BorderColor = System.Drawing.Color.Black;
this.CmbJobName1.Enabled = false;
this.CmbJobName1.Location = new System.Drawing.Point(27, 30);
this.CmbJobName1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.CmbJobName1.Name = "CmbJobName1";
this.CmbJobName1.Size = new System.Drawing.Size(387, 72);
this.CmbJobName1.TabIndex = 1;
//
// GrpOpration
//
this.GrpOpration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.GrpOpration.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
this.GrpOpration.Controls.Add(this.BtnRunonce2);
this.GrpOpration.Controls.Add(this.BtnCheckPro2);
this.GrpOpration.Controls.Add(this.BtnCheckPro);
this.GrpOpration.Controls.Add(this.BtnSaveJob);
this.GrpOpration.Controls.Add(this.BtnRunonce);
this.GrpOpration.Location = new System.Drawing.Point(9, 9);
this.GrpOpration.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.GrpOpration.Name = "GrpOpration";
this.GrpOpration.Shadow = 8;
this.GrpOpration.ShadowColor = System.Drawing.Color.Black;
this.GrpOpration.ShadowOpacity = 0.2F;
this.GrpOpration.Size = new System.Drawing.Size(516, 332);
this.GrpOpration.TabIndex = 5;
this.GrpOpration.TabStop = false;
this.GrpOpration.Text = "Operation:";
this.GrpOpration.Enter += new System.EventHandler(this.GrpOpration_Enter);
//
// BtnRunonce2
//
this.BtnRunonce2.BackColor = System.Drawing.Color.Transparent;
this.BtnRunonce2.BorderWidth = 1F;
this.BtnRunonce2.DefaultBack = System.Drawing.Color.Black;
this.BtnRunonce2.DefaultBorderColor = System.Drawing.Color.Black;
this.BtnRunonce2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnRunonce2.ForeColor = System.Drawing.Color.White;
this.BtnRunonce2.Icon = ((System.Drawing.Image)(resources.GetObject("BtnRunonce2.Icon")));
this.BtnRunonce2.IconGap = 0.01F;
this.BtnRunonce2.IconHover = ((System.Drawing.Image)(resources.GetObject("BtnRunonce2.IconHover")));
this.BtnRunonce2.IconRatio = 1F;
this.BtnRunonce2.Location = new System.Drawing.Point(266, 28);
this.BtnRunonce2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnRunonce2.Name = "BtnRunonce2";
this.BtnRunonce2.Radius = 5;
this.BtnRunonce2.Size = new System.Drawing.Size(232, 84);
this.BtnRunonce2.TabIndex = 5;
this.BtnRunonce2.Text = "单次运行2";
this.BtnRunonce2.Click += new System.EventHandler(this.BtnRunonce2_Click);
//
// BtnCheckPro2
//
this.BtnCheckPro2.BackColor = System.Drawing.Color.Transparent;
this.BtnCheckPro2.BorderWidth = 1F;
this.BtnCheckPro2.DefaultBack = System.Drawing.Color.Black;
this.BtnCheckPro2.DefaultBorderColor = System.Drawing.Color.Black;
this.BtnCheckPro2.Enabled = false;
this.BtnCheckPro2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnCheckPro2.ForeColor = System.Drawing.Color.White;
this.BtnCheckPro2.Location = new System.Drawing.Point(268, 214);
this.BtnCheckPro2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnCheckPro2.Name = "BtnCheckPro2";
this.BtnCheckPro2.Radius = 5;
this.BtnCheckPro2.Size = new System.Drawing.Size(232, 84);
this.BtnCheckPro2.TabIndex = 4;
this.BtnCheckPro2.Text = "检测2编写";
this.BtnCheckPro2.Click += new System.EventHandler(this.BtnCheckPro2_Click);
//
// BtnCheckPro
//
this.BtnCheckPro.BackColor = System.Drawing.Color.Transparent;
this.BtnCheckPro.BorderWidth = 1F;
this.BtnCheckPro.DefaultBack = System.Drawing.Color.Black;
this.BtnCheckPro.DefaultBorderColor = System.Drawing.Color.Black;
this.BtnCheckPro.Enabled = false;
this.BtnCheckPro.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnCheckPro.ForeColor = System.Drawing.Color.White;
this.BtnCheckPro.Location = new System.Drawing.Point(28, 214);
this.BtnCheckPro.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnCheckPro.Name = "BtnCheckPro";
this.BtnCheckPro.Radius = 5;
this.BtnCheckPro.Size = new System.Drawing.Size(232, 84);
this.BtnCheckPro.TabIndex = 3;
this.BtnCheckPro.Text = "检测1编写";
this.BtnCheckPro.Click += new System.EventHandler(this.BtnCheckPro_Click);
//
// BtnSaveJob
//
this.BtnSaveJob.BackColor = System.Drawing.Color.Transparent;
this.BtnSaveJob.BorderWidth = 1F;
this.BtnSaveJob.DefaultBack = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(73)))), ((int)(((byte)(3)))));
this.BtnSaveJob.DefaultBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(73)))), ((int)(((byte)(3)))));
this.BtnSaveJob.Enabled = false;
this.BtnSaveJob.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BtnSaveJob.ForeColor = System.Drawing.Color.White;
this.BtnSaveJob.Icon = ((System.Drawing.Image)(resources.GetObject("BtnSaveJob.Icon")));
this.BtnSaveJob.IconGap = 0.01F;
this.BtnSaveJob.IconHover = ((System.Drawing.Image)(resources.GetObject("BtnSaveJob.IconHover")));
this.BtnSaveJob.IconRatio = 0.8F;
this.BtnSaveJob.Location = new System.Drawing.Point(28, 122);
this.BtnSaveJob.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnSaveJob.Name = "BtnSaveJob";
this.BtnSaveJob.Radius = 5;
this.BtnSaveJob.Size = new System.Drawing.Size(470, 84);
this.BtnSaveJob.TabIndex = 1;
this.BtnSaveJob.Text = "保存作业";
this.BtnSaveJob.Click += new System.EventHandler(this.BtnSaveJob_Click);
//
// BtnRunonce
//
this.BtnRunonce.BackColor = System.Drawing.Color.Transparent;
this.BtnRunonce.BorderWidth = 1F;
this.BtnRunonce.DefaultBack = System.Drawing.Color.Black;
this.BtnRunonce.DefaultBorderColor = System.Drawing.Color.Black;
this.BtnRunonce.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnRunonce.ForeColor = System.Drawing.Color.White;
this.BtnRunonce.Icon = ((System.Drawing.Image)(resources.GetObject("BtnRunonce.Icon")));
this.BtnRunonce.IconGap = 0.01F;
this.BtnRunonce.IconHover = ((System.Drawing.Image)(resources.GetObject("BtnRunonce.IconHover")));
this.BtnRunonce.IconRatio = 1F;
this.BtnRunonce.Location = new System.Drawing.Point(28, 28);
this.BtnRunonce.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnRunonce.Name = "BtnRunonce";
this.BtnRunonce.Radius = 5;
this.BtnRunonce.Size = new System.Drawing.Size(232, 84);
this.BtnRunonce.TabIndex = 0;
this.BtnRunonce.Text = "单次运行1";
this.BtnRunonce.Click += new System.EventHandler(this.BtnRunonce_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
this.panel2.Controls.Add(this.button1);
this.panel2.Controls.Add(this.Label1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 78);
this.panel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel2.Name = "panel2";
this.panel2.Shadow = 8;
this.panel2.ShadowColor = System.Drawing.Color.Black;
this.panel2.ShadowOpacity = 0.2F;
this.panel2.Size = new System.Drawing.Size(1454, 219);
this.panel2.TabIndex = 6;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(1280, 130);
this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(124, 52);
this.button1.TabIndex = 2;
this.button1.Text = "打开光源";
this.button1.UseVisualStyleBackColor = true;
this.button1.Visible = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Label1
//
this.Label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Label1.BackColor = System.Drawing.Color.White;
this.Label1.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Label1.Image = ((System.Drawing.Image)(resources.GetObject("Label1.Image")));
this.Label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.Label1.Location = new System.Drawing.Point(24, 38);
this.Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(1406, 154);
this.Label1.TabIndex = 1;
this.Label1.Text = "XML配置项目名称";
this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// checkBoxZoom
//
this.checkBoxZoom.AutoSize = true;
this.checkBoxZoom.BackColor = System.Drawing.Color.White;
this.checkBoxZoom.Checked = true;
this.checkBoxZoom.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxZoom.Location = new System.Drawing.Point(38, 45);
this.checkBoxZoom.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.checkBoxZoom.Name = "checkBoxZoom";
this.checkBoxZoom.Size = new System.Drawing.Size(106, 22);
this.checkBoxZoom.TabIndex = 1;
this.checkBoxZoom.Text = "自动缩放";
this.checkBoxZoom.UseVisualStyleBackColor = false;
this.checkBoxZoom.CheckedChanged += new System.EventHandler(this.checkBoxZoom_CheckedChanged);
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
this.panel3.Controls.Add(this.checkBoxZoom);
this.panel3.Controls.Add(this.Btnlive);
this.panel3.Controls.Add(this.cogRecordDisplay2);
this.panel3.Controls.Add(this.cogRecordDisplay1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 297);
this.panel3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel3.Name = "panel3";
this.panel3.Shadow = 8;
this.panel3.ShadowColor = System.Drawing.Color.Black;
this.panel3.ShadowOpacity = 0.2F;
this.panel3.Size = new System.Drawing.Size(1454, 1080);
this.panel3.TabIndex = 7;
//
// Btnlive
//
this.Btnlive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Btnlive.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.Btnlive.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Btnlive.Location = new System.Drawing.Point(24, 32);
this.Btnlive.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Btnlive.Name = "Btnlive";
this.Btnlive.Size = new System.Drawing.Size(1406, 69);
this.Btnlive.TabIndex = 2;
this.Btnlive.Text = "相 机 实 时 中";
this.Btnlive.UseVisualStyleBackColor = false;
this.Btnlive.Visible = false;
this.Btnlive.Click += new System.EventHandler(this.Btnlive_Click);
//
// cogRecordDisplay2
//
this.cogRecordDisplay2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.cogRecordDisplay2.ColorMapLowerClipColor = System.Drawing.Color.Black;
this.cogRecordDisplay2.ColorMapLowerRoiLimit = 0D;
this.cogRecordDisplay2.ColorMapPredefined = Cognex.VisionPro.Display.CogDisplayColorMapPredefinedConstants.None;
this.cogRecordDisplay2.ColorMapUpperClipColor = System.Drawing.Color.Black;
this.cogRecordDisplay2.ColorMapUpperRoiLimit = 1D;
this.cogRecordDisplay2.DoubleTapZoomCycleLength = 2;
this.cogRecordDisplay2.DoubleTapZoomSensitivity = 2.5D;
this.cogRecordDisplay2.Location = new System.Drawing.Point(482, 16);
this.cogRecordDisplay2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cogRecordDisplay2.MouseWheelMode = Cognex.VisionPro.Display.CogDisplayMouseWheelModeConstants.Zoom1;
this.cogRecordDisplay2.MouseWheelSensitivity = 1D;
this.cogRecordDisplay2.Name = "cogRecordDisplay2";
this.cogRecordDisplay2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("cogRecordDisplay2.OcxState")));
this.cogRecordDisplay2.Size = new System.Drawing.Size(1590, 2283);
this.cogRecordDisplay2.TabIndex = 3;
//
// cogRecordDisplay1
//
this.cogRecordDisplay1.ColorMapLowerClipColor = System.Drawing.Color.Black;
this.cogRecordDisplay1.ColorMapLowerRoiLimit = 0D;
this.cogRecordDisplay1.ColorMapPredefined = Cognex.VisionPro.Display.CogDisplayColorMapPredefinedConstants.None;
this.cogRecordDisplay1.ColorMapUpperClipColor = System.Drawing.Color.Black;
this.cogRecordDisplay1.ColorMapUpperRoiLimit = 1D;
this.cogRecordDisplay1.DoubleTapZoomCycleLength = 2;
this.cogRecordDisplay1.DoubleTapZoomSensitivity = 2.5D;
this.cogRecordDisplay1.Location = new System.Drawing.Point(16, 16);
this.cogRecordDisplay1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cogRecordDisplay1.MouseWheelMode = Cognex.VisionPro.Display.CogDisplayMouseWheelModeConstants.Zoom1;
this.cogRecordDisplay1.MouseWheelSensitivity = 1D;
this.cogRecordDisplay1.Name = "cogRecordDisplay1";
this.cogRecordDisplay1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("cogRecordDisplay1.OcxState")));
this.cogRecordDisplay1.Size = new System.Drawing.Size(1590, 2283);
this.cogRecordDisplay1.TabIndex = 0;
//
// 关于ToolStripMenuItem
//
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.关于ToolStripMenuItem.Text = "关于";
//
// menu1
//
this.menu1.BackActive = System.Drawing.Color.Black;
this.menu1.BackColor = System.Drawing.Color.Black;
this.menu1.BackHover = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255)))));
this.menu1.Dock = System.Windows.Forms.DockStyle.Top;
this.menu1.ForeActive = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255)))));
this.menu1.ForeColor = System.Drawing.Color.White;
menuItem1.Font = new System.Drawing.Font("宋体", 9F);
menuItem2.Font = new System.Drawing.Font("宋体", 9F);
menuItem2.Text = "清除结果显示";
menuItem1.Sub.Add(menuItem2);
menuItem1.Text = "菜单";
menuItem3.Font = new System.Drawing.Font("宋体", 9F);
menuItem4.Enabled = false;
menuItem4.Font = new System.Drawing.Font("宋体", 9F);
menuItem4.Text = "相机联机";
menuItem5.Font = new System.Drawing.Font("宋体", 9F);
menuItem5.Text = "相机1实时";
menuItem6.Font = new System.Drawing.Font("宋体", 9F);
menuItem6.Text = "相机2实时";
menuItem7.Font = new System.Drawing.Font("宋体", 9F);
menuItem7.Text = "机器人1标定";
menuItem8.Font = new System.Drawing.Font("宋体", 9F);
menuItem8.Text = "机器人2标定";
menuItem3.Sub.Add(menuItem4);
menuItem3.Sub.Add(menuItem5);
menuItem3.Sub.Add(menuItem6);
menuItem3.Sub.Add(menuItem7);
menuItem3.Sub.Add(menuItem8);
menuItem3.Text = "相机";
menuItem9.Font = new System.Drawing.Font("宋体", 9F);
menuItem10.Enabled = false;
menuItem10.Font = new System.Drawing.Font("宋体", 9F);
menuItem10.Text = "TCP/IP";
menuItem11.Font = new System.Drawing.Font("宋体", 9F);
menuItem11.Text = "SerialPort";
menuItem12.Font = new System.Drawing.Font("宋体", 9F);
menuItem12.Icon = global::Vision.Properties.Resources.connect_red;
menuItem12.Text = "联机";
menuItem13.Font = new System.Drawing.Font("宋体", 9F);
menuItem13.Text = "光源控制";
menuItem9.Sub.Add(menuItem10);
menuItem9.Sub.Add(menuItem11);
menuItem9.Sub.Add(menuItem12);
menuItem9.Sub.Add(menuItem13);
menuItem9.Text = "控制";
menuItem14.Font = new System.Drawing.Font("宋体", 9F);
menuItem14.Text = "登录";
menuItem15.Font = new System.Drawing.Font("宋体", 9F);
menuItem15.Text = "补偿";
menuItem16.Font = new System.Drawing.Font("宋体", 9F);
menuItem16.Text = "退出";
this.menu1.Items.Add(menuItem1);
this.menu1.Items.Add(menuItem3);
this.menu1.Items.Add(menuItem9);
this.menu1.Items.Add(menuItem14);
this.menu1.Items.Add(menuItem15);
this.menu1.Items.Add(menuItem16);
this.menu1.Location = new System.Drawing.Point(0, 0);
this.menu1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.menu1.Mode = AntdUI.TMenuMode.Horizontal;
this.menu1.Name = "menu1";
this.menu1.Round = true;
this.menu1.ShowSubBack = true;
this.menu1.Size = new System.Drawing.Size(1994, 78);
this.menu1.TabIndex = 3;
this.menu1.Text = "menu1";
this.menu1.Theme = AntdUI.TAMode.Light;
this.menu1.SelectChanged += new AntdUI.SelectEventHandler(this.menu1_SelectChanged);
//
// GroupBox4
//
this.GroupBox4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
this.GroupBox4.Controls.Add(this.label5);
this.GroupBox4.Controls.Add(this.LstInfo);
this.GroupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
this.GroupBox4.Location = new System.Drawing.Point(0, 1377);
this.GroupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.GroupBox4.Name = "GroupBox4";
this.GroupBox4.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8);
this.GroupBox4.Shadow = 8;
this.GroupBox4.ShadowColor = System.Drawing.Color.Black;
this.GroupBox4.ShadowOpacity = 0.2F;
this.GroupBox4.Size = new System.Drawing.Size(1454, 431);
this.GroupBox4.TabIndex = 9;
this.GroupBox4.TabStop = false;
//
// label5
//
this.label5.Location = new System.Drawing.Point(27, 39);
this.label5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(112, 34);
this.label5.TabIndex = 1;
this.label5.Text = "历史事件";
//
// LstInfo
//
this.LstInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LstInfo.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.LstInfo.Font = new System.Drawing.Font("仿宋", 10F);
this.LstInfo.FormattingEnabled = true;
this.LstInfo.HorizontalScrollbar = true;
this.LstInfo.ItemHeight = 20;
this.LstInfo.Location = new System.Drawing.Point(36, 82);
this.LstInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.LstInfo.Name = "LstInfo";
this.LstInfo.ScrollAlwaysVisible = true;
this.LstInfo.Size = new System.Drawing.Size(1368, 300);
this.LstInfo.TabIndex = 0;
//
// frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1994, 1808);
this.Controls.Add(this.GroupBox4);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.menu1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "frmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "埋螺母视觉定位";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing);
this.Load += new System.EventHandler(this.frmMain_Load);
this.Resize += new System.EventHandler(this.frmMain_Resize);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView_P)).EndInit();
this.GrpJob.ResumeLayout(false);
this.GrpJob.PerformLayout();
this.GrpOpration.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cogRecordDisplay2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cogRecordDisplay1)).EndInit();
this.GroupBox4.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private AntdUI.Panel panel2;
private AntdUI.Panel panel3;
internal AntdUI.Panel GrpJob;
internal AntdUI.Input TxtIndex;
internal AntdUI.Label Label4;
internal AntdUI.Input TxtRunstatus;
internal AntdUI.Label Label3;
internal AntdUI.Select CmbJobName1;
internal AntdUI.Panel GrpOpration;
internal AntdUI.Button BtnSaveJob;
internal AntdUI.Button BtnRunonce;
internal System.Windows.Forms.Label Label1;
private Cognex.VisionPro.CogRecordDisplay cogRecordDisplay1;
private System.Windows.Forms.CheckBox checkBoxZoom;
private System.Windows.Forms.Button button1;
internal System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
internal AntdUI.Button BtnCheckPro;
private System.Windows.Forms.Button Btnlive;
internal AntdUI.Select CmbJobName2;
internal AntdUI.Button BtnCheckPro2;
internal AntdUI.Button BtnRunonce2;
internal AntdUI.Input TxtRunstatus2;
internal AntdUI.Label label2;
private Cognex.VisionPro.CogRecordDisplay cogRecordDisplay2;
private AntdUI.Menu menu1;
internal AntdUI.Panel GroupBox4;
private AntdUI.Label label5;
internal System.Windows.Forms.ListBox LstInfo;
public System.Windows.Forms.DataGridView dataGridView_P;
private System.Windows.Forms.DataGridViewTextBoxColumn X;
private System.Windows.Forms.DataGridViewTextBoxColumn Y;
}
}
登录 后才可以发表评论