private void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);
protected void OnSwitch(bool normallyClosed) => _switchHandler.OnSwitch(normallyClosed);
/// <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)); }
private protected void OnSwitch(bool closed) => SwitchHandler.OnSwitch(closed);
public void OnSwitch(bool closed) => _switchHandler.OnSwitch(closed);