Ejemplo n.º 1
0
 private void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);
Ejemplo n.º 2
0
 protected void OnSwitch(bool normallyClosed) => _switchHandler.OnSwitch(normallyClosed);
Ejemplo n.º 3
0
 /// <summary>
 /// Enables or disables the switch.
 /// </summary>
 /// <param name="enabled">If true, closes mechanical switch or opens opto switch. If false, opens mechanical switch or closes opto switch.</param>
 public void SetSwitch(bool enabled)
 {
     _switchHandler.OnSwitch(enabled);
     Switch?.Invoke(this, new SwitchEventArgs(enabled, Entity.Null));
 }
Ejemplo n.º 4
0
 private protected void OnSwitch(bool closed) => SwitchHandler.OnSwitch(closed);
Ejemplo n.º 5
0
 public void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);