BotAction DequeueAction() { if (HasNextAction()) { var firstAction = UpcomingActions[0]; UpcomingActions.RemoveAt(0); return(firstAction); } return(new StoppedAction(this)); }
void ExecuteAddAction(BotActionType param) { UpcomingActions.Add(actionFactory.Get(param)); Start.RaiseCanExecuteChanged(); Stop.RaiseCanExecuteChanged(); }