Ejemplo n.º 1
0
        private void PauseButton_Click(object sender, EventArgs e)
        {
            if (TimeMachineStore == null)
            {
                return;
            }

            TimeMachineStore.Dispatch(new PauseTimeMachineAction());
        }
Ejemplo n.º 2
0
        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
                });
            }
        }
Ejemplo n.º 3
0
 private void SubscribeToTimeMachineStore()
 {
     _storeSubscription = TimeMachineStore.Subscribe(OnStateChange);
 }