public DeleteActionsViewModel() { _actionsHelper = new ActionsHelper(); Actions.Clear(); Actions = _actionsHelper.GetActions(); DeleteActionCommand = new Command(OnDeleteActionCommandExecute, OnDeleteActionCommandCanExecute); }
private void OnDeleteActionCommandExecute() { _actionsHelper.RemoveAction(SelectedAction); Actions.Clear(); Actions = _actionsHelper.GetActions(); }