Esempio n. 1
0
        private void consultasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(14);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 2
0
        private void modificacionBajaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearFormModificacion(14);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 3
0
        private void listadoEstadisticoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(7);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 4
0
        private void calificarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(13, miUsuario);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 5
0
        private void altaPublicacionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(10, miUsuario, 1);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 6
0
        private void historialClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(18, miUsuario);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 7
0
        private void cambiarContraseñaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form unForm = FactoryFormularios.crearForm(19, miUsuario);

            unForm.MdiParent = this;
            unForm.Show();
        }
Esempio n. 8
0
 private void cerrarSesiónToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (cerrarSesiónToolStripMenuItem.Text == "iniciar sesión")
     {
         Form unForm = FactoryFormularios.crearForm(16, this);
         unForm.MdiParent = this;
         unForm.Show();
     }
     else
     {
         this.toolStripStatusLblRol.Text     = "Rol: ";
         this.toolStripStatusLblUsuario.Text = "Usuario: ";
         miUsuario = null;
         cerrarSesiónToolStripMenuItem.Text = "iniciar sesión";
         miMenu.desHabilitarMenu();
         loguinToolStripMenuItem.Visible       = true;
         cerrarSesiónToolStripMenuItem.Visible = true;
     }
 }
Esempio n. 9
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(FactoryFormularios.crearForm(17));
 }