Ejemplo n.º 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgViewReport.CurrentRow != null)
     {
         int id = int.Parse(dgViewReport.CurrentRow.Cells[0].Value.ToString());
         frmNewAccounting frmNewAccounting = new frmNewAccounting();
         frmNewAccounting.AccountID = id;
         if (frmNewAccounting.ShowDialog() == DialogResult.OK)
         {
             Filter();
         }
     }
 }
Ejemplo n.º 2
0
        private void btnNewAccounting_Click(object sender, EventArgs e)
        {
            frmNewAccounting frmNewAccounting = new frmNewAccounting();

            frmNewAccounting.ShowDialog();
        }