Ejemplo n.º 1
0
 public MakeAcntTxnCommand(MakeAcntTxnVM makeAcntTxnVM, BankAccountStore bankAccountStore, NavigationService <AcntTxnListingVM> makeAcntTcnViewnavigationService)
 {
     _makeAcntTxnVM    = makeAcntTxnVM;
     _bankAccountStore = bankAccountStore;
     _makeAcntTcnViewnavigationService = makeAcntTcnViewnavigationService;
     _makeAcntTxnVM.PropertyChanged   += OnMakeAcntTxnVM_PropertyChanged;
 }
Ejemplo n.º 2
0
    public MakeAcntTxnVM(BankAccountStore bankAccountStore, NavigationService <AcntTxnListingVM> makeAcntTcnViewnavigationService)
    {
        //_bankAccountStore = bankAccountStore;

        SubmitCommand = new MakeAcntTxnCommand(this, bankAccountStore, makeAcntTcnViewnavigationService);
        CancelCommand = new NavigateCommand <AcntTxnListingVM>(makeAcntTcnViewnavigationService);

        TxnAmnt = DateTime.Now.Hour + .01m * DateTime.Now.Minute;
        TxnTime = DateTime.Today;
    }
Ejemplo n.º 3
0
    public AcntTxnListingVM(BankAccountStore bankAccountStore, NavigationService <MakeAcntTxnVM> makeAcntTcnViewnavigationService)
    {
        _bankAccountStore = bankAccountStore;
        _accountTxnVMs    = new ObservableCollection <AccountTxnVM>();

        LoadAcntTxnsCommand = new LoadReservationCommand(this, bankAccountStore);
        MakeAcntTxnCommand  = new NavigateCommand <MakeAcntTxnVM>(makeAcntTcnViewnavigationService);

        AddTxnCommand = new NavigateCommand <MakeAcntTxnVM>(makeAcntTcnViewnavigationService); //todo: ?? not in the org: https://youtu.be/ZQadPrZ7E_A?list=PLA8ZIAm2I03hS41Fy4vFpRw8AdYNBXmNm&t=482

        bankAccountStore.AccountTxnsMade += OnAccountTxnsMade;
    }
 public LoadReservationCommand(AcntTxnListingVM vm, BankAccountStore bankAccountStore)
 {
     _bankAccountStore = bankAccountStore;
     _vm = vm;
 }