add GDS set button

This commit is contained in:
backuppc
2025-12-09 13:33:42 +09:00
parent 9db031c305
commit 2236e3b1ba
2 changed files with 43 additions and 36 deletions

View File

@@ -39,6 +39,7 @@
this.btAutoCharge = new arCtl.arLabel(); this.btAutoCharge = new arCtl.arLabel();
this.btSpeaker = new arCtl.arLabel(); this.btSpeaker = new arCtl.arLabel();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.vcGDS = new AGVControl.ValueSelect();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.vcXBID = new AGVControl.ValueSelect(); this.vcXBID = new AGVControl.ValueSelect();
this.tbagvchannel = new System.Windows.Forms.TextBox(); this.tbagvchannel = new System.Windows.Forms.TextBox();
@@ -204,8 +205,7 @@
this.bt1 = new arCtl.arLabel(); this.bt1 = new arCtl.arLabel();
this.bt0 = new arCtl.arLabel(); this.bt0 = new arCtl.arLabel();
this.btSave = new arCtl.arLabel(); this.btSave = new arCtl.arLabel();
this.label13 = new System.Windows.Forms.Label(); this.button8 = new System.Windows.Forms.Button();
this.vcGDS = new AGVControl.ValueSelect();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage6.SuspendLayout(); this.tabPage6.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
@@ -432,7 +432,7 @@
// tabPage1 // tabPage1
// //
this.tabPage1.BackColor = System.Drawing.Color.Navy; this.tabPage1.BackColor = System.Drawing.Color.Navy;
this.tabPage1.Controls.Add(this.label13); this.tabPage1.Controls.Add(this.button8);
this.tabPage1.Controls.Add(this.vcGDS); this.tabPage1.Controls.Add(this.vcGDS);
this.tabPage1.Controls.Add(this.label7); this.tabPage1.Controls.Add(this.label7);
this.tabPage1.Controls.Add(this.vcXBID); this.tabPage1.Controls.Add(this.vcXBID);
@@ -485,6 +485,28 @@
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "AGV"; this.tabPage1.Text = "AGV";
// //
// vcGDS
//
this.vcGDS.BackColorButton = System.Drawing.Color.White;
this.vcGDS.ButtonWidth = "30";
this.vcGDS.ColorBorder = System.Drawing.Color.White;
this.vcGDS.DecimalPosition = ((ushort)(0));
this.vcGDS.Font = new System.Drawing.Font("맑은 고딕", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.vcGDS.FontSideButton = new System.Drawing.Font("Consolas", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.vcGDS.ForeColor = System.Drawing.Color.White;
this.vcGDS.ForeColorButton = System.Drawing.Color.Black;
this.vcGDS.Location = new System.Drawing.Point(633, 509);
this.vcGDS.MaxValue = 9999D;
this.vcGDS.MinValue = 0D;
this.vcGDS.Name = "vcGDS";
this.vcGDS.NullDisplay = "--";
this.vcGDS.SideButtonClickValue = 1D;
this.vcGDS.Size = new System.Drawing.Size(164, 54);
this.vcGDS.TabIndex = 80;
this.vcGDS.Tag = "SDH";
this.vcGDS.Text = "1000";
this.vcGDS.Value = 1000D;
//
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
@@ -3372,39 +3394,18 @@
this.btSave.TextVisible = true; this.btSave.TextVisible = true;
this.btSave.Click += new System.EventHandler(this.btSave_Click); this.btSave.Click += new System.EventHandler(this.btSave_Click);
// //
// label13 // button8
// //
this.label13.AutoSize = true; this.button8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label13.Font = new System.Drawing.Font("궁서체", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.button8.Font = new System.Drawing.Font("궁서체", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label13.ForeColor = System.Drawing.Color.WhiteSmoke; this.button8.Location = new System.Drawing.Point(480, 509);
this.label13.Location = new System.Drawing.Point(526, 524); this.button8.Name = "button8";
this.label13.Name = "label13"; this.button8.Size = new System.Drawing.Size(147, 54);
this.label13.Size = new System.Drawing.Size(101, 24); this.button8.TabIndex = 82;
this.label13.TabIndex = 81; this.button8.Tag = "SCH";
this.label13.Text = "TurnGDS"; this.button8.Text = "TurnGDS";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.button8.UseVisualStyleBackColor = true;
// this.button8.Click += new System.EventHandler(this.button8_Click);
// vcTurnGDS
//
this.vcGDS.BackColorButton = System.Drawing.Color.White;
this.vcGDS.ButtonWidth = "30";
this.vcGDS.ColorBorder = System.Drawing.Color.White;
this.vcGDS.DecimalPosition = ((ushort)(0));
this.vcGDS.Font = new System.Drawing.Font("맑은 고딕", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.vcGDS.FontSideButton = new System.Drawing.Font("Consolas", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.vcGDS.ForeColor = System.Drawing.Color.White;
this.vcGDS.ForeColorButton = System.Drawing.Color.Black;
this.vcGDS.Location = new System.Drawing.Point(633, 509);
this.vcGDS.MaxValue = 9999D;
this.vcGDS.MinValue = 0D;
this.vcGDS.Name = "vcTurnGDS";
this.vcGDS.NullDisplay = "--";
this.vcGDS.SideButtonClickValue = 1D;
this.vcGDS.Size = new System.Drawing.Size(164, 54);
this.vcGDS.TabIndex = 80;
this.vcGDS.Tag = "SDH";
this.vcGDS.Text = "1000";
this.vcGDS.Value = 1000D;
// //
// fSetup // fSetup
// //
@@ -3626,7 +3627,7 @@
private System.Windows.Forms.CheckBox chkClearPos; private System.Windows.Forms.CheckBox chkClearPos;
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;
private AGVControl.ValueSelect vcXBID; private AGVControl.ValueSelect vcXBID;
private System.Windows.Forms.Label label13;
private AGVControl.ValueSelect vcGDS; private AGVControl.ValueSelect vcGDS;
private System.Windows.Forms.Button button8;
} }
} }

View File

@@ -675,5 +675,11 @@ namespace Project
if (rlt.Item2.isEmpty()) return; if (rlt.Item2.isEmpty()) return;
tb.Text = rlt.Item2; tb.Text = rlt.Item2;
} }
private void button8_Click(object sender, EventArgs e)
{
var value = (ushort)vcGDS.Value;
PUB.AGV.TurnGDSCenterScope(value);
}
} }
} }