private void Edit_Transaction(object sender, RoutedEventArgs e)
        {
            Operation operation = (Operation)transactionsDataGrid.SelectedItem;
            if (operation == null || operation.ID < 1)
                return;

            Transaction transaction = new Transaction(operation.ID);

            if (transaction.ShowDialog() == true)
            {
                mOperations =new ObservableCollection<Operation>(Operations.GetOperations());
                transactionsDataGrid.ItemsSource = mOperations;
            }
        }
Example #2
0
 private void btnAddTransaction_Click(object sender, RoutedEventArgs e)
 {
     Transaction tr = new Transaction();
     if (tr.ShowDialog() == true)
         ShowTransactions();
 }