private void PauseButton_Click(object sender, EventArgs e) { if (TimeMachineStore == null) { return; } TimeMachineStore.Dispatch(new PauseTimeMachineAction()); }
private void ActionPositionsStepper_ValueChanged(object sender, EventArgs e) { if (_canLetValueChange) { _canLetValueChange = false; if (TimeMachineStore == null || ActionPositionsStepper.Value == _lastState.Position) { return; } TimeMachineStore.Dispatch(new SetTimeMachinePositionAction { Position = (int)ActionPositionsStepper.Value }); } }