private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgReprt.CurrentRow != null)
     {
         int id = int.Parse(dgReprt.CurrentRow.Cells[0].Value.ToString());
         frmNewTransaction frmNew = new frmNewTransaction();
         frmNew.AccountID = id;
         if (frmNew.ShowDialog() == DialogResult.OK)
         {
             filter();
         }
     }
 }
Esempio n. 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmNewTransaction frmNewTransaction = new frmNewTransaction();

            frmNewTransaction.ShowDialog();
        }