Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Gerente gr = new Gerente();

            gr.Show();
            Hide();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                switch (comboBox1.SelectedIndex)
                {
                case 0:
                    Gerente ger = new Gerente();
                    ger.Show();
                    Hide();
                    break;

                case 1:

                    Ventas ven = new Ventas();
                    ven.Show();
                    Hide();
                    break;

                case 2:
                    Produccion pro = new Produccion();
                    pro.Show();
                    Hide();
                    break;
                }
            }
            catch (Exception E)
            {
                lblmensaje.Visible = true;
            }
        }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Esta Seguro de que desea Salir?");
            Gerente gr = new Gerente();

            gr.Show();
            Hide();
        }