private void iniSaveCommand()
 {
     _SaveCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = saveSelectedAccount };
 }
 private void iniDeleteCommand()
 {
     _DeleteCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = deleteSelectedAccount };
 }
 private void iniAddNewCommand()
 {
     _AddNewCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = addNewAccount };
 }
Esempio n. 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;
        }
 private void iniAddNewOwnerCommand()
 {
     _AddNewOwnerCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = addNewOwner };
 }
Esempio n. 6
0
 private void iniStartTransactionCommand()
 {
     _StartTransactionCommand = new ViewModelCommand() { CanExecuteFunc = obj => true, ExecuteFunc = startTransactionCommand };
 }