Пример #1
0
        private void dgvUbicacion_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
        {
            frmUbicacionForm frm = new frmUbicacionForm();
            var row = dgvUbicacion.CurrentRow;

            frm.isEditing   = true;
            frm.Id          = (int)row.Cells["Id"].Value;
            frm.Descripcion = row.Cells["Descripcion"].Value.ToString();
            frm.Direccion   = row.Cells["Direccion"].Value.ToString();
            frm.Edificio    = row.Cells["Edificio"].Value.ToString();
            frm.Estado      = row.Cells["Estado"].Value.ToString();

            frm.ShowDialog();
        }
Пример #2
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmUbicacionForm frm = new frmUbicacionForm();

            frm.ShowDialog();
        }