Пример #1
0
            public void DoAction()
            {
                AddTransactionView addTransactionView = new AddTransactionView();

                addTransactionView.DataContext = new AddTransactionViewModel(_viewModel._unitOfWork);
                addTransactionView.ShowDialog();
            }
Пример #2
0
        private void DoneClick(object sender, RoutedEventArgs e)
        {
            //TODO:Refactor
            //if (AddTransactionView.SelectedTransaction.ChargedAccount == null) {
            //    ShowAccountRequiredMessage();
            //    return;
            //}

            AddTransactionView.Save();
        }
Пример #3
0
 public void GoToAddTransaction()
 {
     Content = new AddTransactionView(GoToTransactions);
 }
Пример #4
0
 private void CancelClick(object sender, RoutedEventArgs e)
 {
     AddTransactionView.Cancel();
 }