Ejemplo n.º 1
0
        private void dgv_Clase_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 2)
            {
                Asiento obj = new Asiento();
                obj.Id_Asiento = Convert.ToInt32(dgv_Asiento.Rows[e.RowIndex].Cells[0].Value.ToString());
                obj.posicion   = dgv_Asiento.Rows[e.RowIndex].Cells[1].Value.ToString();

                frm_AsientoEdit ofrm = new frm_AsientoEdit(obj, this);
                ofrm.Show();
            }
        }
Ejemplo n.º 2
0
        private void btnNuevaClase_Click(object sender, EventArgs e)
        {
            frm_AsientoEdit ofrm = new frm_AsientoEdit(this);

            ofrm.Show();
        }