diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs index 849c01b..37e8bca 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs @@ -28,6 +28,7 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.label12 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); @@ -86,6 +87,7 @@ this.AutoMode_D = new System.Windows.Forms.Label(); this.DmChange_S = new System.Windows.Forms.ListBox(); this.DmChange_D = new System.Windows.Forms.ListBox(); + this.ValueTimer = new System.Windows.Forms.Timer(this.components); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); @@ -747,6 +749,12 @@ this.DmChange_D.TabIndex = 3; this.DmChange_D.SelectedIndexChanged += new System.EventHandler(this.DmChange_D_SelectedIndexChanged); // + // ValueTimer + // + this.ValueTimer.Enabled = true; + this.ValueTimer.Interval = 1000; + this.ValueTimer.Tick += new System.EventHandler(this.ValueTimer_Tick); + // // ValveStateMonitor // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -826,5 +834,6 @@ private System.Windows.Forms.Label label27; private System.Windows.Forms.ListBox DmChange_S; private System.Windows.Forms.ListBox DmChange_D; + private System.Windows.Forms.Timer ValueTimer; } } \ No newline at end of file diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs index 83bdb37..96f7d55 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs @@ -16,11 +16,22 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMoni { string DmName_S = "BU3DBT06"; string DmName_D = "DV1PCP01"; + + + + public ValveStateMonitor() { InitializeComponent(); } + + private void ValueTimer_Tick(object sender, EventArgs e) + { + StateMonitor_D(DmName_D); + StateMonitor_S(DmName_S); + } + private void DmChange_S_SelectedIndexChanged(object sender, EventArgs e) { DmName_S = dmNameValue[DmChange_S.Text]; @@ -171,5 +182,7 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMoni { return GetDataNameValue(dmName, dmValue).NowValue.ToString(); } + + } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.resx index 1af7de1..e9d931c 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.resx +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file diff --git a/Main/MCEdit/Data/MCProject/nodeDataSource.xml b/Main/MCEdit/Data/MCProject/nodeDataSource.xml index 3600a0d..1c458b1 100644 --- a/Main/MCEdit/Data/MCProject/nodeDataSource.xml +++ b/Main/MCEdit/Data/MCProject/nodeDataSource.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file