private void btncrear_Click(object sender, EventArgs e) { forms.Modulo_3.GestionEscenario tema = new forms.Modulo_3.GestionEscenario(); tema.opcion = 0; tema.ShowDialog(); CargaInicial(); }
private void btnmodificar_Click(object sender, EventArgs e) { forms.Modulo_3.GestionEscenario tema = new forms.Modulo_3.GestionEscenario(); tema.opcion = 1; tema.id = Int32.Parse(dgapp.Rows[dgapp.CurrentRow.Index].Cells[0].Value.ToString()); tema.nombre = dgapp.Rows[dgapp.CurrentRow.Index].Cells[1].Value.ToString(); tema.ShowDialog(); CargaInicial(); }