public AllocationsListVM(FundReqCrudVM fundReqCrudVM)
 {
     _crud                    = fundReqCrudVM;
     _arg                     = _crud.AppArgs;
     _accts                   = GetGLAccounts();
     AddDebitCmd              = R2Command.Relay(_ => AddNewItem("Debit", -1), null, "Add Debit entry");
     AddCreditCmd             = R2Command.Relay(_ => AddNewItem("Credit", +1), null, "Add Credit entry");
     Items.CollectionChanged += Items_CollectionChanged;
 }
示例#2
0
 public FundReqListVM(MainWindowVM mainWindow) : base(mainWindow.AppArgs.DCDR.ActiveRequests, mainWindow.AppArgs, false)
 {
     _mainWin       = mainWindow;
     Crud           = new FundReqCrudVM(AppArgs);
     InputChequeCmd = R2Command.Relay(InputChequeDetails, null, "Input Cheque Details");
 }