Exemplo n.º 1
0
        public void  crearPublicacion(object sender, EventArgs e)
        {
            if (txtTitulo.Text == "" ||
                txtTitulo.Text == null ||
                txtContenido.Text == "" ||
                txtContenido.Text == null)
            {
                MessageBox.Show("Hay campos vacios");
            }
            else
            {
                usuarioNL us = new usuarioNL();
                us.guardarPublicacion(txtTitulo.Text, txtContenido.Text, lbFecha.Text.ToString(), Form1.paseNombre);

                MessageBox.Show("Creado!!!");

                form.Close();
                PantallaPublicaciones pu = new PantallaPublicaciones();
                pu.crearPantalla();
            }
        }