Example #1
0
        private void bAdd_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddUpdateForm oAddUpdate = new AddUpdateForm();

            oAddUpdate.oMainForm = this;

            oAddUpdate.Show();
        }
Example #2
0
 private void bUpdate_Click(object sender, EventArgs e)
 {
     if (dgTransactions.Rows?.Count > 0 && dgTransactions.SelectedRows?.Count > 0)
     {
         DataModel.Transaction oTransaction = new DataModel.Transaction(dgTransactions.SelectedRows[0]);
         this.Hide();
         AddUpdateForm oAddUpdate = new AddUpdateForm();
         oAddUpdate.oTransaction = oTransaction;
         oAddUpdate.oMainForm    = this;
         oAddUpdate.Show();
     }
     else
     {
         MessageBox.Show("Please select a transaction. ");
     }
 }
Example #3
0
 internal void HideEdit(AddUpdateForm addUpdateForm)
 {
     addUpdateForm.Hide();
     addUpdateForm.Dispose();
     this.Show();
 }