|
|
@@ -222,13 +222,19 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
set { SetProperty(ref this.busyText, value); }
|
|
|
}
|
|
|
|
|
|
- private bool warningEnabled;
|
|
|
- public bool WarningEnabled
|
|
|
+ //private bool warningEnabled;
|
|
|
+ //public bool WarningEnabled
|
|
|
+ //{
|
|
|
+ // get { return warningEnabled; }
|
|
|
+ // set { SetProperty(ref this.warningEnabled, value); }
|
|
|
+ //}
|
|
|
+
|
|
|
+ eOcsState ocsState = eOcsState.DisConnect;
|
|
|
+ public eOcsState OcsState
|
|
|
{
|
|
|
- get { return warningEnabled; }
|
|
|
- set { SetProperty(ref this.warningEnabled, value); }
|
|
|
+ get { return this.ocsState; }
|
|
|
+ set { this.SetProperty(ref this.ocsState, value); }
|
|
|
}
|
|
|
-
|
|
|
#endregion
|
|
|
|
|
|
VCSystem vcSystem;
|
|
|
@@ -283,7 +289,7 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
var ezIO = this.vcSystem.IO as EzIO;
|
|
|
ezIO.OnChangedIO += EzIO_OnChangedIO;
|
|
|
|
|
|
- WarningEnabled = true;
|
|
|
+ //WarningEnabled = true;
|
|
|
}
|
|
|
|
|
|
private void ExecuteBreakOffCommand()
|
|
|
@@ -592,13 +598,15 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
{
|
|
|
var state = obj.State;
|
|
|
|
|
|
- switch(state)
|
|
|
+ switch (state)
|
|
|
{
|
|
|
case HostConnectedEventArgs.eConnectedState.Connected:
|
|
|
- WarningEnabled = false;
|
|
|
+ this.OcsState = eOcsState.Connect;
|
|
|
+ //WarningEnabled = false;
|
|
|
break;
|
|
|
case HostConnectedEventArgs.eConnectedState.Disconnected:
|
|
|
- WarningEnabled = true;
|
|
|
+ this.OcsState = eOcsState.DisConnect;
|
|
|
+ //WarningEnabled = true;
|
|
|
break;
|
|
|
}
|
|
|
}
|