protected virtual void OnShifterStateChanged(ShifterState shifterState) { var shifterStateChanged = _shifterStateChanged; if (null != shifterStateChanged) { shifterStateChanged(shifterState); } }
public virtual void ToggleShifter() { switch (ShifterState) { case ShifterState.On: ShifterState = ShifterState.Off; break; case ShifterState.Off: ShifterState = ShifterState.On; break; default: throw new ArgumentOutOfRangeException(); } }
private void ManageVisibility(ShifterState state) { switch (state) { case ShifterState.On: Console.WriteLine("ContentFormPresenter.ManageVisibility(visible)"); break; case ShifterState.Off: Console.WriteLine("ContentFormPresenter.ManageVisibility(invisible)"); CleanUp(); break; default: throw new ArgumentOutOfRangeException("state"); } }
public virtual void SetShifterState(ShifterState state) { Checked = ShifterState.On == state; }
private void ManageFormSubsystem(ShifterState state) { switch (state) { case ShifterState.On: ConstructSystem(); break; case ShifterState.Off: DestroySystem(); break; default: throw new ArgumentOutOfRangeException("state"); } }
protected void SetButtonShifterState(ShifterState state) { _view.SetShifterState(state); }
public void SetShifterState(ShifterState shifterState) { m_checked = ShifterState.On == shifterState; }