예제 #1
0
        private void bAñadir_Click(object sender, EventArgs e)
        {
            CrearNoticia ventana = new CrearNoticia(null);

            this.Visible = false;
            ventana.ShowDialog();
            cargarNoticias();
            this.Visible = true;
        }
예제 #2
0
        private void bEditar_Click(object sender, EventArgs e)
        {
            if (seleccionada != null)
            {
                CrearNoticia ventana = new CrearNoticia(seleccionada);
                this.Visible = false;
                ventana.ShowDialog();
                this.Visible = true;


                cargarNoticias();
            }

            seleccionada = null;
            selected     = null;
        }