public void DoAction() { AddTransactionView addTransactionView = new AddTransactionView(); addTransactionView.DataContext = new AddTransactionViewModel(_viewModel._unitOfWork); addTransactionView.ShowDialog(); }
private void DoneClick(object sender, RoutedEventArgs e) { //TODO:Refactor //if (AddTransactionView.SelectedTransaction.ChargedAccount == null) { // ShowAccountRequiredMessage(); // return; //} AddTransactionView.Save(); }
public void GoToAddTransaction() { Content = new AddTransactionView(GoToTransactions); }
private void CancelClick(object sender, RoutedEventArgs e) { AddTransactionView.Cancel(); }