private void BtnAddTransaction_Click(object sender, EventArgs e) { TransactionActionForm transactionActionForm = new TransactionActionForm(); transactionActionForm.Activate(); transactionActionForm.Show(); }
private void BtnViewTransaction_Click(object sender, EventArgs e) { if (TransactionListView.SelectedItems.Count > 0) { Transaction transaction = (Transaction)TransactionListView.SelectedItems[0].Tag; TransactionActionForm eventActionForm = new TransactionActionForm(transaction); eventActionForm.Activate(); eventActionForm.Show(); } else { MessageBox.Show("Select a TRANSACTION", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }