示例#1
0
 public void ActionsMethod(TranAction action)
 {
     if ((int)action < 11)
     {
         if (EditActionsExecutorHandler.Do(action, Model))
         {
             Model.IsCollectionChanged = true;
         }
     }
     else
     {
         LocateActionsExecutorHandler.Do(action, Model);
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
        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);
            }
        }