예제 #1
0
        private void cerrarSesiónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InicioSesion inicio = new InicioSesion();

            this.Close();
            inicio.Show();
        }
예제 #2
0
        private void Menu_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.N)
            {
                speech.SpeakAsyncCancelAll();
                Venta venta = new Venta(nombreToolStripMenuItem.Text);
                this.Hide();
                venta.Show();
            }
            if (e.KeyCode == Keys.S)
            {
                speech.SpeakAsyncCancelAll();
                Servicios servicios = new Servicios(nombreToolStripMenuItem.Text);
                this.Hide();
                servicios.Show();
            }
            if (e.KeyCode == Keys.C)
            {
                speech.SpeakAsyncCancelAll();
                Clientes clientes = new Clientes(nombreToolStripMenuItem.Text);
                this.Hide();
                clientes.Show();
            }
            if (e.KeyCode == Keys.R)
            {
                speech.SpeakAsyncCancelAll();
                Reportes reportes = new Reportes(nombreToolStripMenuItem.Text);
                this.Hide();
                reportes.Show();
            }
            if (e.KeyCode == Keys.V)
            {
                speech.SpeakAsyncCancelAll();
                Vehiculos vehiculos = new Vehiculos(nombreToolStripMenuItem.Text);
                this.Hide();
                vehiculos.Show();
            }
            if (e.KeyCode == Keys.Escape)
            {
                speech.SpeakAsyncCancelAll();
                InicioSesion inicio = new InicioSesion();
                this.Close();
                inicio.Show();
            }
            if (e.KeyCode == Keys.L)
            {
                Lupa2 lupa = new Lupa2();
                // this.Hide();
                lupa.Show();
                speech.SpeakAsyncCancelAll();
                speech.SpeakAsync("Ingresó a la lupa");
            }


            if (e.Shift && e.KeyCode == Keys.A)
            {
                //getayuda();
                speech.SpeakAsyncCancelAll();
                speech.SpeakAsync("En esta página se encuentran los componentes del sistema.\n" +
                                  "- Tecla 'N' para hacer una nueva venta.\n" +
                                  "- Tecla 'V' para acceder a vehículos.\n" +
                                  "- Tecla 'C' para acceder a clientes.\n" +
                                  "- Tecla 'S' para acceder a servicios.\n" +
                                  "- Tecla 'R' para acceder a reportes.\n" +
                                  "- Tecla 'ESC' para cerrar sesión.");
                MessageBox.Show("En esta página se encuentran los componentes del sistema.\n" +
                                "- Tecla 'N' para hacer una nueva venta.\n" +
                                "- Tecla 'V' para acceder a vehículos.\n" +
                                "- Tecla 'C' para acceder a clientes.\n" +
                                "- Tecla 'S' para acceder a servicios.\n" +
                                "- Tecla 'R' para acceder a reportes.\n" +
                                "- Tecla 'ESC' para cerrar sesión.", "Ayuda.", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }