Exemplo n.º 1
0
 public virtual void UpdateServerState(bool _isOn)
 {
     if (isOn)
     {
         powerSupply.TurnOnSupply();
         PreviousResistance = 0;
         Previouscurrent    = 0;
     }
     else
     {
         powerSupply.TurnOffSupply();
     }
 }
Exemplo n.º 2
0
 void UpdateServerState(bool _isOn)
 {
     isOnForInterface = _isOn;
     if (isOn)
     {
         RelatedDevice.TurnOnSupply();
         PreviousResistance = 0;
         Previouscurrent    = 0;
     }
     else
     {
         RelatedDevice.Data.ChangeToOff = true;
         ElectricalSynchronisation.NUStructureChangeReact.Add(this);
     }
 }