예제 #1
0
        private void btnAgregarEdificoClick(object sender, EventArgs e)
        {
            FrmAgregarEdificio frmed = new FrmAgregarEdificio();

            frmed.con  = con;
            frmed.modo = "C";
            frmed.ShowDialog();
        }
예제 #2
0
 private void EdEdificio(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataGridViewRow    row = this.dgvEdificios.SelectedRows[0];
         FrmAgregarEdificio frm = new FrmAgregarEdificio();
         frm.IdEdificio = row.Cells[0].Value.ToString();
         frm.Nombre     = row.Cells[1].Value.ToString();
         frm.Campus     = row.Cells[2].Value.ToString();
         frm.Estado     = row.Cells[3].Value.ToString();
         frm.modo       = "U";
         frm.con        = con;
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error al ejecutar consulta: " + ex.Message);
     }
 }