Example #1
0
        private void btnCancelar_Click(object sender, EventArgs e)
        {
            Panel parent = this.Parent as Panel;

            parent.Controls.Clear();
            VisualizarPizarron nuevoMenuPizarron = new VisualizarPizarron(usuarioLogueado);

            parent.Controls.Add(nuevoMenuPizarron);
        }
 private void btnVerPizarrón_Click(object sender, EventArgs e)
 {
     try
     {
         controlador3.NoHayPizarrones();
         Panel parent = this.Parent as Panel;
         VisualizarPizarron verPizarron = new VisualizarPizarron(usuarioLogueado);
         parent.Controls.Clear();
         parent.Controls.Add(verPizarron);
     }
     catch (ExcepcionNoHayPizarrones ex)
     {
         MessageBox.Show(ex.Message);
     }
 }