コード例 #1
0
        public AccountsViewModel(IBookAccountsEndpoint bookAccountsEndpoint, IDialogService showDialog)
        {
            _bookAccountsEndpoint = bookAccountsEndpoint;
            _showDialog           = showDialog;

            EditAccountCommand = new DelegateCommand(OpenEditDialog, CanEdit);
            AddAccountCommand  = new DelegateCommand(AddAccount);
        }
コード例 #2
0
        public PartnerEditViewModel(IPartnersEndpoint partnersEndpoint,
                                    IBookAccountsEndpoint bookAccountsEndpoint)
        {
            _partnersEndpoint     = partnersEndpoint;
            _bookAccountsEndpoint = bookAccountsEndpoint;

            SavePartnerCommand = new DelegateCommand(SavePartner);
        }
コード例 #3
0
        public BalanceCardDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint,
                                          IAccountingJournalEndpoint accountingJournalEndpoint,
                                          IDialogService showDialog)
        {
            _bookAccountsEndpoint      = bookAccountsEndpoint;
            _accountingJournalEndpoint = accountingJournalEndpoint;
            _showDialog = showDialog;

            PrintCommand = new DelegateCommand <Visual>(ShowPreview);
        }
コード例 #4
0
        public AccountPairDialogViewModel(IBookAccountsEndpoint accountsEndpoint,
                                          IDialogService showDialog,
                                          IAccountPairsEndpoint accountPairsEndpoint)
        {
            _accountsEndpoint = accountsEndpoint;
            _showDialog       = showDialog;

            OpenAccountsSelectionCommand = new DelegateCommand(OpenAccountsSelection);
            SavePairCommand       = new DelegateCommand(SavePair);
            _accountPairsEndpoint = accountPairsEndpoint;
        }
コード例 #5
0
        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();
        }
コード例 #6
0
 public AccountsSelectionDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint)
 {
     _bookAccountsEndpoint = bookAccountsEndpoint;
     SelectItemCommand     = new DelegateCommand(SelectAndClose, CanReturnSelected);
 }
コード例 #7
0
        public AddEditDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint)
        {
            _bookAccountsEndpoint = bookAccountsEndpoint;

            SaveAccountCommand = new DelegateCommand(SaveAccount);
        }