Beispiel #1
0
        private void BtnAgregarCampus_Click(object sender, EventArgs e)
        {
            FrmAgregarCampus frmcmp = new FrmAgregarCampus();

            frmcmp.con  = con;
            frmcmp.modo = "C";
            frmcmp.ShowDialog();
        }
Beispiel #2
0
 private void dvgCampusDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataGridViewRow  row = this.dgvCampus.SelectedRows[0];
         FrmAgregarCampus frm = new FrmAgregarCampus();
         frm.IdCampus = row.Cells[0].Value.ToString();
         frm.Nombre   = row.Cells[1].Value.ToString();
         frm.Estado   = row.Cells[2].Value.ToString();
         frm.modo     = "U";
         frm.con      = con;
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error al ejecutar consulta: " + ex.Message);
     }
 }