private void BtnEdit_Click(object sender, EventArgs e)
 {
     if (MYdataGridView.CurrentRow != null)
     {
         int            id    = int.Parse(MYdataGridView.CurrentRow.Cells[0].Value.ToString());
         frmTransaction myfrm = new frmTransaction();
         myfrm.AccountId = id;
         if (myfrm.ShowDialog() == DialogResult.OK)
         {
             Filter();
         }
     }
 }
Esempio n. 2
0
        private void BtnNewTransaction_Click(object sender, EventArgs e)
        {
            frmTransaction Myfrm = new frmTransaction();

            Myfrm.ShowDialog();
        }