Esempio n. 1
0
        private void dgv_Ubicacion_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.ColumnIndex == 3)
                {
                    Vista_Ubicaciones obj = new Vista_Ubicaciones();
                    obj.Id_Ubicacion     = Convert.ToInt32(dgv_Ubicacion.Rows[e.RowIndex].Cells[0].Value.ToString());
                    obj.nombre_ubicacion = dgv_Ubicacion.Rows[e.RowIndex].Cells[1].Value.ToString();
                    obj.NombreModelo     = dgv_Ubicacion.Rows[e.RowIndex].Cells[2].Value.ToString();

                    frm_UbicacionEdit ofrm = new frm_UbicacionEdit(obj, this);
                    ofrm.Show();
                }
            }
            catch (Exception)
            {
            }
        }
Esempio n. 2
0
        private void btnNuevaUbicacion_Click(object sender, EventArgs e)
        {
            frm_UbicacionEdit ofrm = new frm_UbicacionEdit(this);

            ofrm.ShowDialog();
        }