Ejemplo n.º 1
0
 public virtual void UpdateServerState(bool _isOn)
 {
     if (isOn)
     {
         powerSupply.TurnOnSupply();
         PreviousResistance = 0;
         Previouscurrent    = 0;
     }
     else
     {
         powerSupply.TurnOffSupply();
     }
 }
Ejemplo 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);
     }
 }