- 메뉴 상단 Alarm 라벨 안보이는 버그
parent
342918bd89
commit
d9b19e2021
|
@ -1400,8 +1400,13 @@ namespace INT_PT002.Forms
|
|||
|
||||
if (this.CurrentSystemStatus.CurrentDisplayMode == Define.E_DisplayModeStore.MainDisplay)
|
||||
this.ChildFormMainDisplay.UpdateDisplayAlarmView(this.CurrentAlarmList);
|
||||
else if (this.CurrentSystemStatus.CurrentDisplayMode == Define.E_DisplayModeStore.IOTest)
|
||||
this.ChildFormMenu.UpdateDisplayIOTestAlarmView(this.CurrentAlarmList);
|
||||
else
|
||||
{
|
||||
if (this.CurrentSystemStatus.CurrentDisplayMode == Define.E_DisplayModeStore.IOTest)
|
||||
this.ChildFormMenu.UpdateDisplayIOTestAlarmView(this.CurrentAlarmList);
|
||||
|
||||
this.ChildFormMenu.UpdateDisplayAlarmView(this.CurrentAlarmList);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -761,7 +761,7 @@ namespace INT_PT002.Forms
|
|||
this.CollectionLabelSbAlarm[9].Visible = alarm.CollectionIsSensorBoardError[9];
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 8, 20);
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 400)
|
||||
|
|
|
@ -47,7 +47,16 @@
|
|||
this.buttonRecipe = new SmartX.SmartButton();
|
||||
this.buttonHome = new SmartX.SmartButton();
|
||||
this.smartGroupBox1 = new SmartX.SmartGroupBox();
|
||||
this.labelAlarm = new SmartX.SmartLabel();
|
||||
this.smartTimerAlarm = new SmartX.SmartTimer();
|
||||
this.smartGroupBox2 = new SmartX.SmartGroupBox();
|
||||
this.smartGroupBox3 = new SmartX.SmartGroupBox();
|
||||
this.smartButton1 = new SmartX.SmartButton();
|
||||
this.smartButton2 = new SmartX.SmartButton();
|
||||
this.smartButton3 = new SmartX.SmartButton();
|
||||
this.smartButton4 = new SmartX.SmartButton();
|
||||
this.smartForm1.SuspendLayout();
|
||||
this.smartGroupBox3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// smartForm1
|
||||
|
@ -56,6 +65,12 @@
|
|||
this.smartForm1.BackGroundFillStyle = SmartXUIBase.SmartUIControlFormBase.BackGroundFillStyles.UseBackImage;
|
||||
this.smartForm1.BackImage = null;
|
||||
this.smartForm1.CenterLocation = false;
|
||||
this.smartForm1.Controls.Add(this.smartButton4);
|
||||
this.smartForm1.Controls.Add(this.smartButton3);
|
||||
this.smartForm1.Controls.Add(this.smartButton2);
|
||||
this.smartForm1.Controls.Add(this.smartButton1);
|
||||
this.smartForm1.Controls.Add(this.smartGroupBox3);
|
||||
this.smartForm1.Controls.Add(this.smartGroupBox2);
|
||||
this.smartForm1.Controls.Add(this.labelStop);
|
||||
this.smartForm1.Controls.Add(this.labelStart);
|
||||
this.smartForm1.Controls.Add(this.buttonUser);
|
||||
|
@ -178,7 +193,7 @@
|
|||
this.labelUserID.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelUserID.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelUserID.LineSpacing = 0F;
|
||||
this.labelUserID.Location = new System.Drawing.Point(703, 13);
|
||||
this.labelUserID.Location = new System.Drawing.Point(705, 13);
|
||||
this.labelUserID.Name = "labelUserID";
|
||||
this.labelUserID.OverlapOptimize = true;
|
||||
this.labelUserID.PasswordChar = '\0';
|
||||
|
@ -201,7 +216,7 @@
|
|||
this.labelUserLevel.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelUserLevel.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelUserLevel.LineSpacing = 0F;
|
||||
this.labelUserLevel.Location = new System.Drawing.Point(809, 13);
|
||||
this.labelUserLevel.Location = new System.Drawing.Point(811, 13);
|
||||
this.labelUserLevel.Name = "labelUserLevel";
|
||||
this.labelUserLevel.OverlapOptimize = true;
|
||||
this.labelUserLevel.PasswordChar = '\0';
|
||||
|
@ -237,7 +252,7 @@
|
|||
this.smartLabel1.PasswordChar = '\0';
|
||||
this.smartLabel1.Radius = 3;
|
||||
this.smartLabel1.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.smartLabel1.Size = new System.Drawing.Size(200, 30);
|
||||
this.smartLabel1.Size = new System.Drawing.Size(166, 30);
|
||||
this.smartLabel1.TabIndex = 0;
|
||||
this.smartLabel1.Text = "2023-02-13 16:30:25";
|
||||
this.smartLabel1.TextColor = System.Drawing.Color.White;
|
||||
|
@ -588,6 +603,218 @@
|
|||
this.smartGroupBox1.Text = "기본 > ";
|
||||
this.smartGroupBox1.TextColor = System.Drawing.Color.White;
|
||||
//
|
||||
// labelAlarm
|
||||
//
|
||||
this.labelAlarm.BackGround = this.smartForm1;
|
||||
this.labelAlarm.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.labelAlarm.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelAlarm.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelAlarm.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelAlarm.LineSpacing = 0F;
|
||||
this.labelAlarm.Location = new System.Drawing.Point(0, 0);
|
||||
this.labelAlarm.Name = "labelAlarm";
|
||||
this.labelAlarm.OverlapOptimize = true;
|
||||
this.labelAlarm.PasswordChar = '\0';
|
||||
this.labelAlarm.Radius = 3;
|
||||
this.labelAlarm.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.labelAlarm.Size = new System.Drawing.Size(465, 30);
|
||||
this.labelAlarm.TabIndex = 90;
|
||||
this.labelAlarm.TextColor = System.Drawing.Color.White;
|
||||
this.labelAlarm.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.labelAlarm.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelAlarm.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelAlarm.Wordwrap = false;
|
||||
//
|
||||
// smartTimerAlarm
|
||||
//
|
||||
this.smartTimerAlarm.CounterMode = SmartX.SmartTimer.CounterModes.Up_Counter;
|
||||
this.smartTimerAlarm.Interval = 100;
|
||||
this.smartTimerAlarm.IntervalSeries = null;
|
||||
this.smartTimerAlarm.TimeCount = ((long)(1000000));
|
||||
this.smartTimerAlarm.TimeFormStringSeparator = ":";
|
||||
this.smartTimerAlarm.Tick += new System.EventHandler(this.smartTimerAlarm_Tick);
|
||||
//
|
||||
// smartGroupBox2
|
||||
//
|
||||
this.smartGroupBox2.BackGround = null;
|
||||
this.smartGroupBox2.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartGroupBox2.BackImage = null;
|
||||
this.smartGroupBox2.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
|
||||
this.smartGroupBox2.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
|
||||
this.smartGroupBox2.FrameLineThickness = 2;
|
||||
this.smartGroupBox2.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.None;
|
||||
this.smartGroupBox2.HeaderHeightOffset = 12;
|
||||
this.smartGroupBox2.Location = new System.Drawing.Point(234, 3);
|
||||
this.smartGroupBox2.Name = "smartGroupBox2";
|
||||
this.smartGroupBox2.RoundRadius = 5;
|
||||
this.smartGroupBox2.Size = new System.Drawing.Size(465, 30);
|
||||
this.smartGroupBox2.TabIndex = 90;
|
||||
this.smartGroupBox2.Text = "smartGroupBox2";
|
||||
this.smartGroupBox2.TextColor = System.Drawing.Color.White;
|
||||
//
|
||||
// smartGroupBox3
|
||||
//
|
||||
this.smartGroupBox3.BackGround = null;
|
||||
this.smartGroupBox3.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartGroupBox3.BackImage = null;
|
||||
this.smartGroupBox3.Controls.Add(this.labelAlarm);
|
||||
this.smartGroupBox3.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
|
||||
this.smartGroupBox3.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
|
||||
this.smartGroupBox3.FrameLineThickness = 2;
|
||||
this.smartGroupBox3.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.None;
|
||||
this.smartGroupBox3.HeaderHeightOffset = 12;
|
||||
this.smartGroupBox3.Location = new System.Drawing.Point(231, 3);
|
||||
this.smartGroupBox3.Name = "smartGroupBox3";
|
||||
this.smartGroupBox3.RoundRadius = 5;
|
||||
this.smartGroupBox3.Size = new System.Drawing.Size(465, 30);
|
||||
this.smartGroupBox3.TabIndex = 91;
|
||||
this.smartGroupBox3.Text = "smartGroupBox3";
|
||||
this.smartGroupBox3.TextColor = System.Drawing.Color.White;
|
||||
//
|
||||
// smartButton1
|
||||
//
|
||||
this.smartButton1.BackGround = this.smartForm1;
|
||||
this.smartButton1.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartButton1.ButtonColor = System.Drawing.Color.Teal;
|
||||
this.smartButton1.ButtonDownColor = System.Drawing.Color.DarkSlateGray;
|
||||
this.smartButton1.ButtonImageAutoSize = true;
|
||||
this.smartButton1.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound;
|
||||
this.smartButton1.ButtonText = "2";
|
||||
this.smartButton1.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.smartButton1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.smartButton1.GroupID = 0;
|
||||
this.smartButton1.ImageDisable = null;
|
||||
this.smartButton1.ImageDown = null;
|
||||
this.smartButton1.ImageUp = null;
|
||||
this.smartButton1.Location = new System.Drawing.Point(917, 490);
|
||||
this.smartButton1.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.smartButton1.Name = "smartButton1";
|
||||
this.smartButton1.NestedClickEventPrevent = false;
|
||||
this.smartButton1.OutlinePixel = 2;
|
||||
this.smartButton1.OverlapOptimize = true;
|
||||
this.smartButton1.RepeatInterval = 200;
|
||||
this.smartButton1.RepeatIntervalAccelerate = null;
|
||||
this.smartButton1.RoundSize = 10;
|
||||
this.smartButton1.SafeInterval = 200;
|
||||
this.smartButton1.Size = new System.Drawing.Size(100, 60);
|
||||
this.smartButton1.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.smartButton1.TabIndex = 92;
|
||||
this.smartButton1.Text = null;
|
||||
this.smartButton1.TextColor = System.Drawing.Color.White;
|
||||
this.smartButton1.TextColorDisable = System.Drawing.Color.Gainsboro;
|
||||
this.smartButton1.TextDownColor = System.Drawing.Color.Chartreuse;
|
||||
this.smartButton1.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton1.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton1.Click += new System.EventHandler(this.smartButton2_Click);
|
||||
//
|
||||
// smartButton2
|
||||
//
|
||||
this.smartButton2.BackGround = this.smartForm1;
|
||||
this.smartButton2.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartButton2.ButtonColor = System.Drawing.Color.Teal;
|
||||
this.smartButton2.ButtonDownColor = System.Drawing.Color.DarkSlateGray;
|
||||
this.smartButton2.ButtonImageAutoSize = true;
|
||||
this.smartButton2.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound;
|
||||
this.smartButton2.ButtonText = "1";
|
||||
this.smartButton2.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.smartButton2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.smartButton2.GroupID = 0;
|
||||
this.smartButton2.ImageDisable = null;
|
||||
this.smartButton2.ImageDown = null;
|
||||
this.smartButton2.ImageUp = null;
|
||||
this.smartButton2.Location = new System.Drawing.Point(917, 424);
|
||||
this.smartButton2.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.smartButton2.Name = "smartButton2";
|
||||
this.smartButton2.NestedClickEventPrevent = false;
|
||||
this.smartButton2.OutlinePixel = 2;
|
||||
this.smartButton2.OverlapOptimize = true;
|
||||
this.smartButton2.RepeatInterval = 200;
|
||||
this.smartButton2.RepeatIntervalAccelerate = null;
|
||||
this.smartButton2.RoundSize = 10;
|
||||
this.smartButton2.SafeInterval = 200;
|
||||
this.smartButton2.Size = new System.Drawing.Size(100, 60);
|
||||
this.smartButton2.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.smartButton2.TabIndex = 93;
|
||||
this.smartButton2.Text = null;
|
||||
this.smartButton2.TextColor = System.Drawing.Color.White;
|
||||
this.smartButton2.TextColorDisable = System.Drawing.Color.Gainsboro;
|
||||
this.smartButton2.TextDownColor = System.Drawing.Color.Chartreuse;
|
||||
this.smartButton2.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton2.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton2.Click += new System.EventHandler(this.smartButton1_Click);
|
||||
//
|
||||
// smartButton3
|
||||
//
|
||||
this.smartButton3.BackGround = this.smartForm1;
|
||||
this.smartButton3.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartButton3.ButtonColor = System.Drawing.Color.Teal;
|
||||
this.smartButton3.ButtonDownColor = System.Drawing.Color.DarkSlateGray;
|
||||
this.smartButton3.ButtonImageAutoSize = true;
|
||||
this.smartButton3.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound;
|
||||
this.smartButton3.ButtonText = "3";
|
||||
this.smartButton3.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.smartButton3.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.smartButton3.GroupID = 0;
|
||||
this.smartButton3.ImageDisable = null;
|
||||
this.smartButton3.ImageDown = null;
|
||||
this.smartButton3.ImageUp = null;
|
||||
this.smartButton3.Location = new System.Drawing.Point(917, 556);
|
||||
this.smartButton3.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.smartButton3.Name = "smartButton3";
|
||||
this.smartButton3.NestedClickEventPrevent = false;
|
||||
this.smartButton3.OutlinePixel = 2;
|
||||
this.smartButton3.OverlapOptimize = true;
|
||||
this.smartButton3.RepeatInterval = 200;
|
||||
this.smartButton3.RepeatIntervalAccelerate = null;
|
||||
this.smartButton3.RoundSize = 10;
|
||||
this.smartButton3.SafeInterval = 200;
|
||||
this.smartButton3.Size = new System.Drawing.Size(100, 60);
|
||||
this.smartButton3.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.smartButton3.TabIndex = 94;
|
||||
this.smartButton3.Text = null;
|
||||
this.smartButton3.TextColor = System.Drawing.Color.White;
|
||||
this.smartButton3.TextColorDisable = System.Drawing.Color.Gainsboro;
|
||||
this.smartButton3.TextDownColor = System.Drawing.Color.Chartreuse;
|
||||
this.smartButton3.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton3.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton3.Click += new System.EventHandler(this.smartButton3_Click);
|
||||
//
|
||||
// smartButton4
|
||||
//
|
||||
this.smartButton4.BackGround = this.smartForm1;
|
||||
this.smartButton4.BackGroundColor = System.Drawing.Color.Black;
|
||||
this.smartButton4.ButtonColor = System.Drawing.Color.Teal;
|
||||
this.smartButton4.ButtonDownColor = System.Drawing.Color.DarkSlateGray;
|
||||
this.smartButton4.ButtonImageAutoSize = true;
|
||||
this.smartButton4.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound;
|
||||
this.smartButton4.ButtonText = "4";
|
||||
this.smartButton4.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.smartButton4.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.smartButton4.GroupID = 0;
|
||||
this.smartButton4.ImageDisable = null;
|
||||
this.smartButton4.ImageDown = null;
|
||||
this.smartButton4.ImageUp = null;
|
||||
this.smartButton4.Location = new System.Drawing.Point(917, 622);
|
||||
this.smartButton4.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.smartButton4.Name = "smartButton4";
|
||||
this.smartButton4.NestedClickEventPrevent = false;
|
||||
this.smartButton4.OutlinePixel = 2;
|
||||
this.smartButton4.OverlapOptimize = true;
|
||||
this.smartButton4.RepeatInterval = 200;
|
||||
this.smartButton4.RepeatIntervalAccelerate = null;
|
||||
this.smartButton4.RoundSize = 10;
|
||||
this.smartButton4.SafeInterval = 200;
|
||||
this.smartButton4.Size = new System.Drawing.Size(100, 60);
|
||||
this.smartButton4.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.smartButton4.TabIndex = 95;
|
||||
this.smartButton4.Text = null;
|
||||
this.smartButton4.TextColor = System.Drawing.Color.White;
|
||||
this.smartButton4.TextColorDisable = System.Drawing.Color.Gainsboro;
|
||||
this.smartButton4.TextDownColor = System.Drawing.Color.Chartreuse;
|
||||
this.smartButton4.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton4.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton4.Click += new System.EventHandler(this.smartButton4_Click);
|
||||
//
|
||||
// FormMenu
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
|
@ -599,6 +826,7 @@
|
|||
this.Name = "FormMenu";
|
||||
this.Text = "FormMenu";
|
||||
this.smartForm1.ResumeLayout(false);
|
||||
this.smartGroupBox3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -623,5 +851,13 @@
|
|||
private SmartX.SmartButton buttonManual;
|
||||
private SmartX.SmartButton buttonSystem;
|
||||
private SmartX.SmartButton buttonUser;
|
||||
private SmartX.SmartLabel labelAlarm;
|
||||
private SmartX.SmartTimer smartTimerAlarm;
|
||||
private SmartX.SmartGroupBox smartGroupBox2;
|
||||
private SmartX.SmartGroupBox smartGroupBox3;
|
||||
private SmartX.SmartButton smartButton4;
|
||||
private SmartX.SmartButton smartButton3;
|
||||
private SmartX.SmartButton smartButton2;
|
||||
private SmartX.SmartButton smartButton1;
|
||||
}
|
||||
}
|
|
@ -185,6 +185,44 @@ namespace INT_PT002.Forms
|
|||
if (this.labelUserID.Text != id)
|
||||
this.labelUserID.Text = id;
|
||||
}
|
||||
public void UpdateDisplayAlarmView(AlarmList alarm)
|
||||
{
|
||||
string value = "";
|
||||
|
||||
// ServoEmergencyStop
|
||||
if (alarm.IsServoEmergencyStop == true)
|
||||
value = "a1_Servo emergency stop ";
|
||||
// Servo1Alarm
|
||||
if (alarm.IsServo1Alarm == true)
|
||||
value += "a2_Servo1 ";
|
||||
// Servo2Alarm
|
||||
if (alarm.IsServo2Alarm == true)
|
||||
value += "a3_Servo2 ";
|
||||
// ServoTorque1AlarmTorque
|
||||
if (alarm.IsServoTorque1AlarmTorque == true)
|
||||
value += "a4_Servo1 Torque ";
|
||||
// ServoTorque2AlarmTorque
|
||||
if (alarm.IsServoTorque2AlarmTorque == true)
|
||||
value += "a5_Servo2 Torque ";
|
||||
// PressureError
|
||||
if (alarm.IsPressureError == true)
|
||||
value += "a6_Pressure ";
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 465)
|
||||
{
|
||||
if (this.labelAlarm.Text != "")
|
||||
this.smartTimerAlarm.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.smartTimerAlarm.Stop();
|
||||
this.labelAlarm.Location = new Point(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#region Log
|
||||
// FileCopy
|
||||
|
@ -923,6 +961,129 @@ namespace INT_PT002.Forms
|
|||
if (this.ParentForm.CurrentSystemStatus.CurrentDisplayMode == Define.E_DisplayModeStore.Equipment)
|
||||
this.ParentForm.TransferData(CommunicationCommand.Start, CommunicationID.MainBoard);
|
||||
}
|
||||
|
||||
private void smartTimerAlarm_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.labelAlarm.Left = this.labelAlarm.Left - 5;
|
||||
if (this.labelAlarm.Left < 0 - this.labelAlarm.Width - 20)
|
||||
this.labelAlarm.Left = this.smartGroupBox1.Width - 10;
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void smartButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string value = "";
|
||||
|
||||
this.smartTimerAlarm.Stop();
|
||||
|
||||
value = "a1_Servo emergency stop ";
|
||||
//value += "a2_Servo1 ";
|
||||
//value += "a3_Servo2 ";
|
||||
//value += "a4_Servo1 Torque ";
|
||||
//value += "a5_Servo2 Torque ";
|
||||
//value += "a6_Pressure ";
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 465)
|
||||
{
|
||||
if (this.labelAlarm.Text != "")
|
||||
this.smartTimerAlarm.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.smartTimerAlarm.Stop();
|
||||
this.labelAlarm.Location = new Point(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private void smartButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string value = "";
|
||||
|
||||
this.smartTimerAlarm.Stop();
|
||||
|
||||
value = "a1_Servo emergency stop ";
|
||||
value += "a2_Servo1 ";
|
||||
//value += "a3_Servo2 ";
|
||||
//value += "a4_Servo1 Torque ";
|
||||
//value += "a5_Servo2 Torque ";
|
||||
//value += "a6_Pressure ";
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 465)
|
||||
{
|
||||
if (this.labelAlarm.Text != "")
|
||||
this.smartTimerAlarm.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.smartTimerAlarm.Stop();
|
||||
this.labelAlarm.Location = new Point(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private void smartButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string value = "";
|
||||
|
||||
this.smartTimerAlarm.Stop();
|
||||
|
||||
value = "a1_Servo emergency stop ";
|
||||
value += "a2_Servo1 ";
|
||||
value += "a3_Servo2 ";
|
||||
//value += "a4_Servo1 Torque ";
|
||||
//value += "a5_Servo2 Torque ";
|
||||
//value += "a6_Pressure ";
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 465)
|
||||
{
|
||||
if (this.labelAlarm.Text != "")
|
||||
this.smartTimerAlarm.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.smartTimerAlarm.Stop();
|
||||
this.labelAlarm.Location = new Point(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private void smartButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
string value = "";
|
||||
|
||||
this.smartTimerAlarm.Stop();
|
||||
|
||||
value = "a1_Servo emergency stop ";
|
||||
value += "a2_Servo1 ";
|
||||
value += "a3_Servo2 ";
|
||||
value += "a4_Servo1 Torque ";
|
||||
value += "a5_Servo2 Torque ";
|
||||
//value += "a6_Pressure ";
|
||||
|
||||
value = value.Trim();
|
||||
this.labelAlarm.Size = new Size(value.Length * 9, 30);
|
||||
this.labelAlarm.Text = value;
|
||||
|
||||
if (this.labelAlarm.Width > 465)
|
||||
{
|
||||
if (this.labelAlarm.Text != "")
|
||||
this.smartTimerAlarm.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.smartTimerAlarm.Stop();
|
||||
this.labelAlarm.Location = new Point(0,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -199,10 +199,16 @@
|
|||
X43YVTGzAr2LMHWepKzsHxq3vd+iPTE2AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="smartTimerAlarm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 7</value>
|
||||
</metadata>
|
||||
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
|
||||
<value>WEBPAD</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>39</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Reference in New Issue