Exemplo n.º 1
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;
            }
        }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
0
 public TransViewModel(KeeperDb db)
 {
     Model = new TransModel(db);
     Top   = 100;
     Left  = 700;
 }