Exemplo n.º 1
0
        private void bAñadir_Click(object sender, EventArgs e)
        {
            CrearTest ventana = new CrearTest(curso, null);

            this.Visible = false;
            ventana.ShowDialog();
            this.Visible = true;

            cargarTests();
        }
Exemplo n.º 2
0
        private void bModificarTest_Click(object sender, EventArgs e)
        {
            var test_seleccionado = (TestBD)lTest.SelectedItem;

            if (test_seleccionado == null)
            {
                return;
            }

            CrearTest ventana = new CrearTest(curso, test_seleccionado);

            this.Visible = false;
            ventana.ShowDialog();
            if (!Usuario.hasInstance())
            {
                this.Close();
            }
            else
            {
                this.Visible = true;
            }
        }