Пример #1
0
 private void iniSaveCommand()
 {
     _SaveCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = saveSelectedAccount };
 }
Пример #2
0
 private void iniDeleteCommand()
 {
     _DeleteCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = deleteSelectedAccount };
 }
Пример #3
0
 private void iniAddNewCommand()
 {
     _AddNewCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = addNewAccount };
 }
Пример #4
0
        private void initializeCommands()
        {
            ManageOwnersCommand = new ViewModelCommand();
            ManageOwnersCommand.CanExecuteFunc = obj => true;
            ManageOwnersCommand.ExecuteFunc = openOwnerManagementWindow;

            ManageAccountsCommand = new ViewModelCommand();
            ManageAccountsCommand.CanExecuteFunc = obj => true;
            ManageAccountsCommand.ExecuteFunc = openAccountManagementWindow;

            AddTransactionCommand = new ViewModelCommand();
            AddTransactionCommand.CanExecuteFunc = obj => true;
            AddTransactionCommand.ExecuteFunc = openNewTransactionWindow;

            AddIncomeCommand = new ViewModelCommand();
            AddIncomeCommand.CanExecuteFunc = obj => true;
            AddIncomeCommand.ExecuteFunc = openNewIncomeExpenseWindow;

            AddExpenseCommand = new ViewModelCommand();
            AddExpenseCommand.CanExecuteFunc = obj => true;
            AddExpenseCommand.ExecuteFunc = openNewIncomeExpenseWindow;

            ShowStatisticCommand = new ViewModelCommand();
            ShowStatisticCommand.CanExecuteFunc = obj => true;
            ShowStatisticCommand.ExecuteFunc = openStatisticWindow;
        }
Пример #5
0
 private void iniAddNewOwnerCommand()
 {
     _AddNewOwnerCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = addNewOwner };
 }
Пример #6
0
 private void iniStartTransactionCommand()
 {
     _StartTransactionCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = startTransactionCommand };
 }