public void ActionsMethod(TranAction action) { if ((int)action < 11) { if (EditActionsExecutorHandler.Do(action, Model)) { Model.IsCollectionChanged = true; } } else { LocateActionsExecutorHandler.Do(action, Model); } }
public void Do(TranAction action, TransModel model) { _model = model; switch (action) { case TranAction.GoToDate: GoToDate(); return; case TranAction.GoToEnd: GoToEnd(); return; case TranAction.Filter: return; default: return; } }
public bool Do(TranAction action, TransModel model) { _model = model; switch (action) { case TranAction.Edit: return(Edit()); case TranAction.MoveUp: return(MoveUp(_model.SelectedTranIndex)); case TranAction.MoveDown: return(MoveDown(_model.SelectedTranIndex)); case TranAction.AddAfterSelected: return(AddAfterSelected()); case TranAction.Delete: Delete(); return(true); default: return(false); } }