public VMTransaction() { Transaction = new TransactionClass(); //Transaction.ChangesSaved += Transaction_ChangesSaved; SaveChangesCommand = new SaveChangesCommand(Transaction); DeleteTransactionUserCommand = new RelayCommand(o => Transaction.Transaction.MultiuserManager.DeleteTransactionUser()); AddTransactionUserCommand = new RelayCommand(o => Transaction.Transaction.MultiuserManager.AddTransactionUser()); }
public VMAllTransactions() { AllTransactionsClass = new AllTransactionsClass(); AllTransactionsClass.TransactionLoadSucceed += AllTransactionsClass_TransactionLoadSucceed; AllTransactionsClass.TransactionLoadFailed += AllTransactionsClass_TransactionLoadFailed; AllTransactionsClass.TransactionCreationucceed += AllTransactionsClass_TransactionCreationucceed; AllTransactionsClass.TransactionCreationFailed += AllTransactionsClass_TransactionCreationFailed; ViewTransactionCommand = new ViewTransactionCommand(AllTransactionsClass); CreateTransactionCommand = new CreateTransactionCommand(AllTransactionsClass); DeleteTransactionCommand = new DeleteTransactionCommand(AllTransactionsClass); ResetDatePickersCommand = new RelayCommand(ExecuteResetDatePickersCommand); }