public AccountsViewModel(IBookAccountsEndpoint bookAccountsEndpoint, IDialogService showDialog) { _bookAccountsEndpoint = bookAccountsEndpoint; _showDialog = showDialog; EditAccountCommand = new DelegateCommand(OpenEditDialog, CanEdit); AddAccountCommand = new DelegateCommand(AddAccount); }
public PartnerEditViewModel(IPartnersEndpoint partnersEndpoint, IBookAccountsEndpoint bookAccountsEndpoint) { _partnersEndpoint = partnersEndpoint; _bookAccountsEndpoint = bookAccountsEndpoint; SavePartnerCommand = new DelegateCommand(SavePartner); }
public BalanceCardDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint, IAccountingJournalEndpoint accountingJournalEndpoint, IDialogService showDialog) { _bookAccountsEndpoint = bookAccountsEndpoint; _accountingJournalEndpoint = accountingJournalEndpoint; _showDialog = showDialog; PrintCommand = new DelegateCommand <Visual>(ShowPreview); }
public AccountPairDialogViewModel(IBookAccountsEndpoint accountsEndpoint, IDialogService showDialog, IAccountPairsEndpoint accountPairsEndpoint) { _accountsEndpoint = accountsEndpoint; _showDialog = showDialog; OpenAccountsSelectionCommand = new DelegateCommand(OpenAccountsSelection); SavePairCommand = new DelegateCommand(SavePair); _accountPairsEndpoint = accountPairsEndpoint; }
public BalanceViewModel(IBalanceSheetEndpoint balanceSheetEndpoint, IDialogService showDialog, IBookAccountsEndpoint bookAccountsEndpoint) { _balanceSheetEndpoint = balanceSheetEndpoint; _showDialog = showDialog; _bookAccountsEndpoint = bookAccountsEndpoint; OpenCardCommand = new DelegateCommand(OpenBalanceCard); PrintCommand = new DelegateCommand <Visual>(ShowPreview); SelectPeriodCommand = new DelegateCommand(LoadBalanceSheet); TransferToNextYearCommand = new DelegateCommand(TransferBalanceToNextYearAsync); LoadBalanceSheet(); }
public AccountsSelectionDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint) { _bookAccountsEndpoint = bookAccountsEndpoint; SelectItemCommand = new DelegateCommand(SelectAndClose, CanReturnSelected); }
public AddEditDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint) { _bookAccountsEndpoint = bookAccountsEndpoint; SaveAccountCommand = new DelegateCommand(SaveAccount); }