using PaintDotNet.CustomControl; using System; using System.Windows.Forms; namespace PaintDotNet.Hardware { internal partial class LocationNavigationDialog : HardwareBaseDialog { #region 声明组件 private System.Windows.Forms.Panel panelall; private System.Windows.Forms.Label label9; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label5; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.GroupBox groupBox6; private System.Windows.Forms.GroupBox groupBox7; private System.Windows.Forms.GroupBox groupBox9; private System.Windows.Forms.GroupBox groupBox10; private System.Windows.Forms.GroupBox groupBox12; private System.Windows.Forms.GroupBox groupBox13; private System.Windows.Forms.GroupBox groupBox14; private System.Windows.Forms.Button btnXYDistanceClear; private System.Windows.Forms.RadioButton rbtSpeedHarmonizeNo; private System.Windows.Forms.RadioButton rbtSpeedHarmonizeYes; private GroupBox groupBox8; private Button btnZDistanceClear; private CircleControl circleControl; private CircleControl circleSportControl; #endregion /// /// Z,XY速度同步 /// protected override bool IsSpeedHarmonize => rbtSpeedHarmonizeYes.Checked; #region Dialog Initialize public LocationNavigationDialog() : base() { InitializeComponent(); } public LocationNavigationDialog(AppWorkspace appWorkspace) : base(appWorkspace) { this.DoubleBuffered = true;//设置本窗体/ SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景. SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲 InitializeComponent(); InitializeLanguageText(); this.panel1.Controls.Add(m_documentWorkspace); circleControl = initViewCircal(100); circleSportControl = initSportCircal(100); panel2.Controls.Add(circleControl); panel3.Controls.Add(circleSportControl); // 步长单位初始化 cmbXYStepUnit.Items.Clear(); cmbZStepUnit.Items.Clear(); this.cmbXYStepUnit.Items.AddRange(m_unit); this.cmbXYStepUnit.SelectedIndex = 1; this.cmbZStepUnit.Items.AddRange(m_unit); this.cmbZStepUnit.SelectedIndex = 1; } private new void InitializeLanguageText() { this.groupBox3.Text = PdnResources.GetString("Menu.Hardwontrol.Locationgation.navigate.text"); this.label6.Text = "Y" + PdnResources.GetString("Menu.position.text") + ":"; this.label5.Text = "X" + PdnResources.GetString("Menu.position.text") + ":"; this.groupBox12.Text = PdnResources.GetString("Menu.Zaxis.text"); this.groupBox13.Text = PdnResources.GetString("Menu.continuous.text"); this.groupBox14.Text = PdnResources.GetString("Menu.Fixedlength.text"); this.groupBox7.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Linkagespeedregulation.text"); this.rbtSpeedHarmonizeNo.Text = PdnResources.GetString("Menu.no.text"); this.rbtSpeedHarmonizeYes.Text = PdnResources.GetString("Menu.Yes.text"); this.groupBox8.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Zaxisposition.text"); this.btnZDistanceClear.Text = PdnResources.GetString("Menu.zeroclearing.text"); this.gboxZspeed.Text = PdnResources.GetString("Menu.Runningspeed.text"); this.groupBox9.Text = PdnResources.GetString("Menu.operation.text"); this.groupBox10.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Step-sizesetting.text"); this.groupBox6.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.navigateoperation.text"); this.groupBox5.Text = PdnResources.GetString("Menu.measuring.text"); this.btnXYDistanceClear.Text = PdnResources.GetString("Menu.zeroclearing.text"); this.groupBox4.Text = PdnResources.GetString("Menu.Hardwaontrol.Locatgation.navigatespeed.text"); this.gboxXYspeed.Text = PdnResources.GetString("Menu.Hardwaontrol.Locatavigation.Movementspeed.text"); this.groupBox2.Text = PdnResources.GetString("Menu.movementmode.text"); this.groupBox1.Text = PdnResources.GetString("Menu.viewmode.text"); this.Text = PdnResources.GetString("Menu.HardwareControl.LocationNavigation.Text"); base.InitializeLanguageText(); } private void InitializeComponent() { this.panelall = new System.Windows.Forms.Panel(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.groupBox12 = new System.Windows.Forms.GroupBox(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.btnZDistanceClear = new System.Windows.Forms.Button(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.groupBox14 = new System.Windows.Forms.GroupBox(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.rbtSpeedHarmonizeNo = new System.Windows.Forms.RadioButton(); this.rbtSpeedHarmonizeYes = new System.Windows.Forms.RadioButton(); this.groupBox9 = new System.Windows.Forms.GroupBox(); this.groupBox10 = new System.Windows.Forms.GroupBox(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.btnXYDistanceClear = new System.Windows.Forms.Button(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.panel3 = new System.Windows.Forms.Panel(); this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.panel2 = new System.Windows.Forms.Panel(); this.panelall.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox12.SuspendLayout(); this.groupBox8.SuspendLayout(); this.groupBox13.SuspendLayout(); this.groupBox14.SuspendLayout(); this.groupBox7.SuspendLayout(); this.groupBox9.SuspendLayout(); this.groupBox10.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupBox5.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // gboxXYspeed // this.gboxXYspeed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.gboxXYspeed.Location = new System.Drawing.Point(3, 518); this.gboxXYspeed.Size = new System.Drawing.Size(236, 101); this.gboxXYspeed.TabIndex = 2; this.gboxXYspeed.Text = "运动速度"; // // gboxZspeed // this.gboxZspeed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.gboxZspeed.Location = new System.Drawing.Point(11, 325); this.gboxZspeed.Size = new System.Drawing.Size(192, 126); this.gboxZspeed.TabIndex = 10; this.gboxZspeed.Text = "运行速度"; // // lblXPosition // this.lblXPosition.AutoSize = true; this.lblXPosition.Location = new System.Drawing.Point(72, 25); this.lblXPosition.Size = new System.Drawing.Size(11, 12); this.lblXPosition.TabIndex = 16; this.lblXPosition.Text = "0"; // // lblYPosition // this.lblYPosition.AutoSize = true; this.lblYPosition.Location = new System.Drawing.Point(319, 25); this.lblYPosition.Size = new System.Drawing.Size(11, 12); this.lblYPosition.TabIndex = 17; this.lblYPosition.Text = "0"; // // lblZPosition // this.lblZPosition.Location = new System.Drawing.Point(12, 25); this.lblZPosition.TabIndex = 1; // // lblXDistance // this.lblXDistance.AutoSize = true; this.lblXDistance.Location = new System.Drawing.Point(6, 21); this.lblXDistance.Size = new System.Drawing.Size(23, 12); this.lblXDistance.TabIndex = 20; this.lblXDistance.Text = "X:0"; // // lblYDistance // this.lblYDistance.AutoSize = true; this.lblYDistance.Location = new System.Drawing.Point(6, 39); this.lblYDistance.Size = new System.Drawing.Size(23, 12); this.lblYDistance.TabIndex = 1; this.lblYDistance.Text = "Y:0"; // // lblLDistance // this.lblLDistance.AutoSize = true; this.lblLDistance.Location = new System.Drawing.Point(6, 57); this.lblLDistance.Size = new System.Drawing.Size(23, 12); this.lblLDistance.TabIndex = 2; this.lblLDistance.Text = "L:0"; // // btnFreeloadstage // this.btnFreeloadstage.Location = new System.Drawing.Point(161, 48); this.btnFreeloadstage.Size = new System.Drawing.Size(52, 23); this.btnFreeloadstage.TabIndex = 5; this.btnFreeloadstage.Text = "锁定"; this.btnFreeloadstage.UseVisualStyleBackColor = true; // // btnStoploadstage // this.btnStoploadstage.Location = new System.Drawing.Point(98, 48); this.btnStoploadstage.Size = new System.Drawing.Size(52, 23); this.btnStoploadstage.TabIndex = 4; this.btnStoploadstage.Text = "停止"; this.btnStoploadstage.UseVisualStyleBackColor = true; // // btnResetloadstage // this.btnResetloadstage.Location = new System.Drawing.Point(32, 48); this.btnResetloadstage.Size = new System.Drawing.Size(52, 23); this.btnResetloadstage.TabIndex = 3; this.btnResetloadstage.Text = "复位"; this.btnResetloadstage.UseVisualStyleBackColor = true; // // btnCenterloadstage // this.btnCenterloadstage.Location = new System.Drawing.Point(161, 19); this.btnCenterloadstage.Size = new System.Drawing.Size(52, 23); this.btnCenterloadstage.TabIndex = 2; this.btnCenterloadstage.Text = "中心"; this.btnCenterloadstage.UseVisualStyleBackColor = true; // // btnInloadstage // this.btnInloadstage.Location = new System.Drawing.Point(98, 19); this.btnInloadstage.Size = new System.Drawing.Size(52, 23); this.btnInloadstage.TabIndex = 1; this.btnInloadstage.Text = "进片"; this.btnInloadstage.UseVisualStyleBackColor = true; // // btnOutloadstage // this.btnOutloadstage.Location = new System.Drawing.Point(32, 19); this.btnOutloadstage.Size = new System.Drawing.Size(52, 23); this.btnOutloadstage.TabIndex = 5; this.btnOutloadstage.Text = "出片"; this.btnOutloadstage.UseVisualStyleBackColor = true; // // btnZStop // this.btnZStop.Location = new System.Drawing.Point(18, 22); this.btnZStop.Size = new System.Drawing.Size(52, 23); this.btnZStop.TabIndex = 1; this.btnZStop.Text = "停止"; this.btnZStop.UseVisualStyleBackColor = true; // // btnZFree // this.btnZFree.Location = new System.Drawing.Point(118, 22); this.btnZFree.Size = new System.Drawing.Size(52, 23); this.btnZFree.TabIndex = 1; this.btnZFree.Text = "锁定"; this.btnZFree.UseVisualStyleBackColor = true; // // txtXStep // this.txtXStep.Location = new System.Drawing.Point(36, 232); this.txtXStep.Size = new System.Drawing.Size(55, 21); this.txtXStep.TabIndex = 48; this.txtXStep.Text = "1000"; // // txtYStep // this.txtYStep.Location = new System.Drawing.Point(122, 232); this.txtYStep.Size = new System.Drawing.Size(56, 21); this.txtYStep.TabIndex = 2; this.txtYStep.Text = "1000"; // // txtZStep // this.txtZStep.Location = new System.Drawing.Point(18, 24); this.txtZStep.Size = new System.Drawing.Size(57, 21); this.txtZStep.TabIndex = 1; this.txtZStep.Text = "200"; // // cmbXYStepUnit // this.cmbXYStepUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbXYStepUnit.FormattingEnabled = true; this.cmbXYStepUnit.Location = new System.Drawing.Point(184, 233); this.cmbXYStepUnit.Size = new System.Drawing.Size(40, 20); this.cmbXYStepUnit.TabIndex = 27; // // cmbZStepUnit // this.cmbZStepUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbZStepUnit.FormattingEnabled = true; this.cmbZStepUnit.Location = new System.Drawing.Point(113, 24); this.cmbZStepUnit.Size = new System.Drawing.Size(57, 20); this.cmbZStepUnit.TabIndex = 1; // // btnContinuityLower // this.btnContinuityLower.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; this.btnContinuityLower.Location = new System.Drawing.Point(20, 91); this.btnContinuityLower.Size = new System.Drawing.Size(50, 50); this.btnContinuityLower.TabIndex = 13; this.btnContinuityLower.UseVisualStyleBackColor = true; // // btnContinuityUp // this.btnContinuityUp.Location = new System.Drawing.Point(20, 36); this.btnContinuityUp.Size = new System.Drawing.Size(50, 50); this.btnContinuityUp.TabIndex = 12; this.btnContinuityUp.UseVisualStyleBackColor = true; // // btnFixedLower // this.btnFixedLower.Location = new System.Drawing.Point(19, 91); this.btnFixedLower.Size = new System.Drawing.Size(50, 50); this.btnFixedLower.TabIndex = 15; this.btnFixedLower.UseVisualStyleBackColor = true; // // btnFixedUp // this.btnFixedUp.Location = new System.Drawing.Point(19, 36); this.btnFixedUp.Size = new System.Drawing.Size(50, 50); this.btnFixedUp.TabIndex = 14; this.btnFixedUp.UseVisualStyleBackColor = true; // // btnCenterDisplay // this.btnCenterDisplay.Location = new System.Drawing.Point(136, 20); this.btnCenterDisplay.Size = new System.Drawing.Size(86, 23); this.btnCenterDisplay.TabIndex = 2; this.btnCenterDisplay.Text = "中心显示"; this.btnCenterDisplay.UseVisualStyleBackColor = true; // // btnStopall // this.btnStopall.Location = new System.Drawing.Point(25, 49); this.btnStopall.Size = new System.Drawing.Size(86, 23); this.btnStopall.TabIndex = 4; this.btnStopall.Text = "全部停止"; this.btnStopall.UseVisualStyleBackColor = true; // // btnDsRocker // this.btnDsRocker.Location = new System.Drawing.Point(25, 20); this.btnDsRocker.Size = new System.Drawing.Size(86, 23); this.btnDsRocker.TabIndex = 3; this.btnDsRocker.Text = "禁用摇杆"; this.btnDsRocker.UseVisualStyleBackColor = true; // // btnSetting // this.btnSetting.Location = new System.Drawing.Point(136, 49); this.btnSetting.Size = new System.Drawing.Size(86, 23); this.btnSetting.TabIndex = 5; this.btnSetting.Text = "参数设置"; this.btnSetting.UseVisualStyleBackColor = true; // // panelall // this.panelall.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.panelall.Controls.Add(this.groupBox3); this.panelall.Controls.Add(this.groupBox12); this.panelall.Controls.Add(this.groupBox6); this.panelall.Controls.Add(this.groupBox5); this.panelall.Controls.Add(this.groupBox4); this.panelall.Controls.Add(this.gboxXYspeed); this.panelall.Controls.Add(this.groupBox2); this.panelall.Controls.Add(this.groupBox1); this.panelall.Location = new System.Drawing.Point(10, 12); this.panelall.Name = "panelall"; this.panelall.Size = new System.Drawing.Size(985, 715); this.panelall.TabIndex = 1; this.panelall.Controls.SetChildIndex(this.groupBox1, 0); this.panelall.Controls.SetChildIndex(this.groupBox2, 0); this.panelall.Controls.SetChildIndex(this.gboxXYspeed, 0); this.panelall.Controls.SetChildIndex(this.groupBox4, 0); this.panelall.Controls.SetChildIndex(this.groupBox5, 0); this.panelall.Controls.SetChildIndex(this.groupBox6, 0); this.panelall.Controls.SetChildIndex(this.groupBox12, 0); this.panelall.Controls.SetChildIndex(this.groupBox3, 0); // // groupBox3 // this.groupBox3.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.groupBox3.Controls.Add(this.lblYPosition); this.groupBox3.Controls.Add(this.lblXPosition); this.groupBox3.Controls.Add(this.label6); this.groupBox3.Controls.Add(this.label5); this.groupBox3.Controls.Add(this.panel1); this.groupBox3.Location = new System.Drawing.Point(245, 6); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(507, 597); this.groupBox3.TabIndex = 17; this.groupBox3.TabStop = false; this.groupBox3.Text = "导航"; this.groupBox3.Controls.SetChildIndex(this.panel1, 0); this.groupBox3.Controls.SetChildIndex(this.label5, 0); this.groupBox3.Controls.SetChildIndex(this.label6, 0); this.groupBox3.Controls.SetChildIndex(this.lblXPosition, 0); this.groupBox3.Controls.SetChildIndex(this.lblYPosition, 0); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(253, 25); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(47, 12); this.label6.TabIndex = 15; this.label6.Text = "Y位置:"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 25); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(47, 12); this.label5.TabIndex = 14; this.label5.Text = "X位置:"; // // panel1 // this.panel1.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.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Location = new System.Drawing.Point(8, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(492, 531); this.panel1.TabIndex = 13; // // groupBox12 // this.groupBox12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox12.Controls.Add(this.groupBox8); this.groupBox12.Controls.Add(this.groupBox13); this.groupBox12.Controls.Add(this.groupBox14); this.groupBox12.Controls.Add(this.groupBox7); this.groupBox12.Controls.Add(this.gboxZspeed); this.groupBox12.Controls.Add(this.groupBox9); this.groupBox12.Controls.Add(this.groupBox10); this.groupBox12.Location = new System.Drawing.Point(758, 6); this.groupBox12.Name = "groupBox12"; this.groupBox12.Size = new System.Drawing.Size(216, 699); this.groupBox12.TabIndex = 11; this.groupBox12.TabStop = false; this.groupBox12.Text = "Z轴"; this.groupBox12.Controls.SetChildIndex(this.groupBox10, 0); this.groupBox12.Controls.SetChildIndex(this.groupBox9, 0); this.groupBox12.Controls.SetChildIndex(this.gboxZspeed, 0); this.groupBox12.Controls.SetChildIndex(this.groupBox7, 0); this.groupBox12.Controls.SetChildIndex(this.groupBox14, 0); this.groupBox12.Controls.SetChildIndex(this.groupBox13, 0); this.groupBox12.Controls.SetChildIndex(this.groupBox8, 0); // // groupBox8 // this.groupBox8.Controls.Add(this.btnZDistanceClear); this.groupBox8.Controls.Add(this.lblZPosition); this.groupBox8.Location = new System.Drawing.Point(11, 25); this.groupBox8.Name = "groupBox8"; this.groupBox8.Size = new System.Drawing.Size(192, 60); this.groupBox8.TabIndex = 14; this.groupBox8.TabStop = false; this.groupBox8.Text = "Z轴位置"; this.groupBox8.Controls.SetChildIndex(this.lblZPosition, 0); this.groupBox8.Controls.SetChildIndex(this.btnZDistanceClear, 0); // // btnZDistanceClear // this.btnZDistanceClear.Location = new System.Drawing.Point(118, 25); this.btnZDistanceClear.Name = "btnZDistanceClear"; this.btnZDistanceClear.Size = new System.Drawing.Size(52, 23); this.btnZDistanceClear.TabIndex = 0; this.btnZDistanceClear.Text = "ClearZ"; this.btnZDistanceClear.UseVisualStyleBackColor = true; this.btnZDistanceClear.Click += new System.EventHandler(this.btnZDistanceClear_Click); // // groupBox13 // this.groupBox13.Controls.Add(this.btnContinuityLower); this.groupBox13.Controls.Add(this.btnContinuityUp); this.groupBox13.Location = new System.Drawing.Point(11, 101); this.groupBox13.Name = "groupBox13"; this.groupBox13.Size = new System.Drawing.Size(93, 205); this.groupBox13.TabIndex = 12; this.groupBox13.TabStop = false; this.groupBox13.Text = "连续"; // // groupBox14 // this.groupBox14.Controls.Add(this.btnFixedLower); this.groupBox14.Controls.Add(this.btnFixedUp); this.groupBox14.Location = new System.Drawing.Point(110, 101); this.groupBox14.Name = "groupBox14"; this.groupBox14.Size = new System.Drawing.Size(93, 205); this.groupBox14.TabIndex = 13; this.groupBox14.TabStop = false; this.groupBox14.Text = "定长"; // // groupBox7 // this.groupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox7.Controls.Add(this.rbtSpeedHarmonizeNo); this.groupBox7.Controls.Add(this.rbtSpeedHarmonizeYes); this.groupBox7.Location = new System.Drawing.Point(11, 618); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new System.Drawing.Size(192, 72); this.groupBox7.TabIndex = 6; this.groupBox7.TabStop = false; this.groupBox7.Text = "联动调速"; // // rbtSpeedHarmonizeNo // this.rbtSpeedHarmonizeNo.AutoSize = true; this.rbtSpeedHarmonizeNo.Location = new System.Drawing.Point(118, 34); this.rbtSpeedHarmonizeNo.Name = "rbtSpeedHarmonizeNo"; this.rbtSpeedHarmonizeNo.Size = new System.Drawing.Size(35, 16); this.rbtSpeedHarmonizeNo.TabIndex = 1; this.rbtSpeedHarmonizeNo.Text = "否"; this.rbtSpeedHarmonizeNo.UseVisualStyleBackColor = true; // // rbtSpeedHarmonizeYes // this.rbtSpeedHarmonizeYes.AutoSize = true; this.rbtSpeedHarmonizeYes.Checked = true; this.rbtSpeedHarmonizeYes.Location = new System.Drawing.Point(18, 33); this.rbtSpeedHarmonizeYes.Name = "rbtSpeedHarmonizeYes"; this.rbtSpeedHarmonizeYes.Size = new System.Drawing.Size(35, 16); this.rbtSpeedHarmonizeYes.TabIndex = 0; this.rbtSpeedHarmonizeYes.TabStop = true; this.rbtSpeedHarmonizeYes.Text = "是"; this.rbtSpeedHarmonizeYes.UseVisualStyleBackColor = true; // // groupBox9 // this.groupBox9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBox9.Controls.Add(this.btnZFree); this.groupBox9.Controls.Add(this.btnZStop); this.groupBox9.Location = new System.Drawing.Point(11, 537); this.groupBox9.Name = "groupBox9"; this.groupBox9.Size = new System.Drawing.Size(192, 60); this.groupBox9.TabIndex = 7; this.groupBox9.TabStop = false; this.groupBox9.Text = "操作"; // // groupBox10 // this.groupBox10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBox10.Controls.Add(this.cmbZStepUnit); this.groupBox10.Controls.Add(this.txtZStep); this.groupBox10.Location = new System.Drawing.Point(11, 457); this.groupBox10.Name = "groupBox10"; this.groupBox10.Size = new System.Drawing.Size(192, 67); this.groupBox10.TabIndex = 8; this.groupBox10.TabStop = false; this.groupBox10.Text = "步长设置"; // // groupBox6 // this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.groupBox6.Controls.Add(this.btnSetting); this.groupBox6.Controls.Add(this.btnStopall); this.groupBox6.Controls.Add(this.btnCenterDisplay); this.groupBox6.Controls.Add(this.btnDsRocker); this.groupBox6.Location = new System.Drawing.Point(502, 621); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(250, 84); this.groupBox6.TabIndex = 5; this.groupBox6.TabStop = false; this.groupBox6.Text = "导航操作"; // // groupBox5 // this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox5.Controls.Add(this.btnXYDistanceClear); this.groupBox5.Controls.Add(this.lblLDistance); this.groupBox5.Controls.Add(this.lblYDistance); this.groupBox5.Controls.Add(this.lblXDistance); this.groupBox5.Location = new System.Drawing.Point(245, 621); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(251, 84); this.groupBox5.TabIndex = 4; this.groupBox5.TabStop = false; this.groupBox5.Text = "测量"; this.groupBox5.Controls.SetChildIndex(this.lblXDistance, 0); this.groupBox5.Controls.SetChildIndex(this.lblYDistance, 0); this.groupBox5.Controls.SetChildIndex(this.lblLDistance, 0); this.groupBox5.Controls.SetChildIndex(this.btnXYDistanceClear, 0); // // btnXYDistanceClear // this.btnXYDistanceClear.Location = new System.Drawing.Point(198, 34); this.btnXYDistanceClear.Name = "btnXYDistanceClear"; this.btnXYDistanceClear.Size = new System.Drawing.Size(46, 23); this.btnXYDistanceClear.TabIndex = 17; this.btnXYDistanceClear.Text = "清零"; this.btnXYDistanceClear.UseVisualStyleBackColor = true; this.btnXYDistanceClear.Click += new System.EventHandler(this.btnXYDistanceClear_Click); // // groupBox4 // this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBox4.Controls.Add(this.btnFreeloadstage); this.groupBox4.Controls.Add(this.btnStoploadstage); this.groupBox4.Controls.Add(this.btnResetloadstage); this.groupBox4.Controls.Add(this.btnCenterloadstage); this.groupBox4.Controls.Add(this.btnInloadstage); this.groupBox4.Controls.Add(this.btnOutloadstage); this.groupBox4.Location = new System.Drawing.Point(3, 621); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(236, 84); this.groupBox4.TabIndex = 3; this.groupBox4.TabStop = false; this.groupBox4.Text = "导航速度"; // // groupBox2 // this.groupBox2.Controls.Add(this.panel3); this.groupBox2.Controls.Add(this.label10); this.groupBox2.Controls.Add(this.cmbXYStepUnit); this.groupBox2.Controls.Add(this.txtYStep); this.groupBox2.Controls.Add(this.label9); this.groupBox2.Controls.Add(this.txtXStep); this.groupBox2.Location = new System.Drawing.Point(3, 246); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(236, 266); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; this.groupBox2.Text = "运动模式"; this.groupBox2.Controls.SetChildIndex(this.txtXStep, 0); this.groupBox2.Controls.SetChildIndex(this.label9, 0); this.groupBox2.Controls.SetChildIndex(this.txtYStep, 0); this.groupBox2.Controls.SetChildIndex(this.cmbXYStepUnit, 0); this.groupBox2.Controls.SetChildIndex(this.label10, 0); this.groupBox2.Controls.SetChildIndex(this.panel3, 0); // // panel3 // this.panel3.Location = new System.Drawing.Point(13, 23); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(211, 203); this.panel3.TabIndex = 45; // // label10 // this.label10.Location = new System.Drawing.Point(97, 236); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(19, 18); this.label10.TabIndex = 44; this.label10.Text = "Y:"; // // label9 // this.label9.Location = new System.Drawing.Point(11, 235); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(19, 18); this.label9.TabIndex = 1; this.label9.Text = "X:"; // // groupBox1 // this.groupBox1.Controls.Add(this.panel2); this.groupBox1.Location = new System.Drawing.Point(3, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(236, 237); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "视场模式"; // // panel2 // this.panel2.Location = new System.Drawing.Point(10, 20); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(214, 211); this.panel2.TabIndex = 0; // // LocationNavigationDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(1008, 735); this.Controls.Add(this.panelall); this.MinimumSize = new System.Drawing.Size(1024, 774); this.Name = "LocationNavigationDialog"; this.Text = "位置导航"; this.Controls.SetChildIndex(this.panelall, 0); this.panelall.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox12.ResumeLayout(false); this.groupBox8.ResumeLayout(false); this.groupBox13.ResumeLayout(false); this.groupBox14.ResumeLayout(false); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.groupBox9.ResumeLayout(false); this.groupBox10.ResumeLayout(false); this.groupBox10.PerformLayout(); this.groupBox6.ResumeLayout(false); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.groupBox4.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); } private void RbtSpeedHarmonizeYes_CheckedChanged(object sender, EventArgs e) { RadioButton tempBtn = (RadioButton)sender; bool tempB = tempBtn.Checked; if (tempB) {// 需要将xy速度选中的值与z选中的值保持一致 for (int i = 0; i < gboxXYspeed.Controls.Count; i++) { RadioButton tempSelectBtn = (RadioButton)gboxXYspeed.Controls[i]; if (tempSelectBtn.Checked) { ((RadioButton)gboxZspeed.Controls[i]).Checked = true; } } } } #endregion #region Clear Distance protected virtual void btnXYDistanceClear_Click(object sender, EventArgs e) { lblXDistance.Text = "X:0"; lblYDistance.Text = "Y:0"; lblLDistance.Text = "L:0"; m_initStepX = m_Stage.X; m_initStepY = m_Stage.Y; } protected virtual void btnZDistanceClear_Click(object sender, EventArgs e) { m_Stage.ClearPosZ(); } #endregion } }