Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmNewTransaction frmNewTransaction = new frmNewTransaction();

            frmNewTransaction.ShowDialog();
        }