private void bActividades_Click(object sender, EventArgs e) { Actividades ventana = new Actividades(); this.Visible = false; ventana.ShowDialog(); this.Close(); }
private void bAbandonar_Click(object sender, EventArgs e) { BD.Delete("delete from Inscripcion i where i.nombreUsuario = '" + Usuario.getInstance().usuario + "' and i.idActividad = " + actividad.id); Actividades ventana = new Actividades(); this.Visible = false; ventana.ShowDialog(); this.Close(); }
private void bActividades_Click(object sender, EventArgs e) { Actividades ventana = new Actividades(); this.Visible = false; ventana.ShowDialog(); this.Visible = true; cargarForos(); cargarNoticias(); }
private void bActividades_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("¿Seguro que quiere abandonar el cuestionario?", "Confirmación", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { Actividades ventana = new Actividades(); this.Visible = false; ventana.ShowDialog(); this.Close(); } }