..
This commit is contained in:
8
HMI/Project/Dialog/fLog.Designer.cs
generated
8
HMI/Project/Dialog/fLog.Designer.cs
generated
@@ -28,6 +28,7 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.rtsys = new arCtl.LogTextBox();
|
||||
this.rtTx = new arCtl.LogTextBox();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
@@ -40,6 +41,7 @@
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.rtAGV = new arCtl.LogTextBox();
|
||||
this.titleAGV = new System.Windows.Forms.Label();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
@@ -230,6 +232,11 @@
|
||||
this.titleAGV.Text = "AGV";
|
||||
this.titleAGV.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 1000;
|
||||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||
//
|
||||
// fLog
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -263,5 +270,6 @@
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Label titleBMS;
|
||||
private System.Windows.Forms.Label titleAGV;
|
||||
private System.Windows.Forms.Timer timer1;
|
||||
}
|
||||
}
|
||||
@@ -20,12 +20,31 @@ namespace Project.Dialog
|
||||
|
||||
private void FLog_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
timer1.Stop();
|
||||
PUB.log.RaiseMsg -= Log_RaiseMsg;
|
||||
PUB.logagv.RaiseMsg -= Log_RaiseMsgagv;
|
||||
PUB.logplc.RaiseMsg -= Log_RaiseMsgplc;
|
||||
PUB.logbms.RaiseMsg -= Log_RaiseMsgbms;
|
||||
PUB.logxbee.RaiseMsg -= Log_RaiseMsgcal;
|
||||
}
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
//포트열림상태표시 2600202
|
||||
if (PUB.XBE.IsOpen)
|
||||
titleXBEE.BackColor = Color.Lime;
|
||||
else
|
||||
titleXBEE.BackColor = Color.Tomato;
|
||||
|
||||
if (PUB.AGV.IsOpen)
|
||||
titleAGV.BackColor = Color.Lime;
|
||||
else
|
||||
titleAGV.BackColor = Color.Tomato;
|
||||
|
||||
if (PUB.BMS.IsOpen)
|
||||
titleBMS.BackColor = Color.Lime;
|
||||
else
|
||||
titleBMS.BackColor = Color.Tomato;
|
||||
}
|
||||
|
||||
private void fLog_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -52,6 +71,7 @@ namespace Project.Dialog
|
||||
PUB.logplc.RaiseMsg += Log_RaiseMsgplc;
|
||||
PUB.logbms.RaiseMsg += Log_RaiseMsgbms;
|
||||
PUB.logxbee.RaiseMsg += Log_RaiseMsgcal;
|
||||
timer1.Start();
|
||||
}
|
||||
|
||||
private void Log_RaiseMsg(DateTime LogTime, string TypeStr, string Message)
|
||||
@@ -81,5 +101,6 @@ namespace Project.Dialog
|
||||
rtRx.AddMsg(LogTime, TypeStr, Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user