Пример #1
0
        //boton cajera
        private void button4_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            LoginAdmin L = new LoginAdmin(3); //3 = cajera

            L.Closed += (s, args) => this.Close();
            L.Show();
        }
Пример #2
0
        //boton bartender
        private void bartenderButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            LoginAdmin L = new LoginAdmin(2); // 2 = bartender

            L.Closed += (s, args) => this.Close();
            L.Show();
        }
Пример #3
0
        //boton garzon
        private void garzonButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            LoginAdmin L = new LoginAdmin(1); // 1 = garzon

            L.Closed += (s, args) => this.Close();
            L.Show();
        }
Пример #4
0
        //boton administrador
        private void AdminButton_Click(object sender, EventArgs e)
        {
            //cierra la ventana actual y muestra la siguiente
            this.Hide();
            LoginAdmin L = new LoginAdmin(0); // 0 = administrador

            L.Closed += (s, args) => this.Close();
            L.Show();
        }
Пример #5
0
 private void button17_Click(object sender, EventArgs e)
 {
     LoginAdmin l = new LoginAdmin(4);
     l.Show();
 }
Пример #6
0
        private void button17_Click(object sender, EventArgs e)
        {
            LoginAdmin l = new LoginAdmin(4);

            l.Show();
        }