예제 #1
0
 private void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);
예제 #2
0
 protected void OnSwitch(bool normallyClosed) => _switchHandler.OnSwitch(normallyClosed);
예제 #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));
 }
예제 #4
0
 private protected void OnSwitch(bool closed) => SwitchHandler.OnSwitch(closed);
예제 #5
0
 public void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);