Exemplo n.º 1
0
        private void AddTransaction_Click(object sender, RoutedEventArgs e)
        {
            TransactionDialog transactionDialog = new TransactionDialog();
            bool?response = transactionDialog.ShowDialog();

            if (response == true)
            {
                this.GetTransactions();
            }
        }
Exemplo n.º 2
0
        private void editTransaction_Click(object sender, RoutedEventArgs e)
        {
            Transaction transaction = (Transaction)transactionGrid.SelectedItem;

            transactionGrid.UnselectAll();
            TransactionDialog transactionDialog = new TransactionDialog(transaction);
            bool?response = transactionDialog.ShowDialog();

            if (response == true)
            {
                this.GetTransactions();
            }
        }