Example #1
0
        private void AddClick(object sender, EventArgs e)
        {
            AddEditTransaction addEditTransaction = new AddEditTransaction();

            addEditTransaction.Activate();
            addEditTransaction.ShowDialog();
        }
Example #2
0
 private void EditClick(object sender, EventArgs e)
 {
     if (lv_transactions.SelectedItems.Count > 0)
     {
         if (isRecurring)
         {
             RecurringTransaction transaction        = (RecurringTransaction)lv_transactions.SelectedItems[0].Tag;
             AddEditTransaction   addEditTransaction = new AddEditTransaction(transaction);
             addEditTransaction.Activate();
             addEditTransaction.ShowDialog();
         }
         else
         {
             Transaction        transaction        = (Transaction)lv_transactions.SelectedItems[0].Tag;
             AddEditTransaction addEditTransaction = new AddEditTransaction(transaction);
             addEditTransaction.Activate();
             addEditTransaction.ShowDialog();
         }
     }
 }