private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            menustaff menustff = new menustaff();

            menustff.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            menustaff ss = new menustaff();

            ss.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string staffID = (txtstaffID.Text);

            if (staffID == "ADMIN" || staffID == "admin")
            {
                this.Hide();
                menustaff menustff = new menustaff();
                menustff.Show();
            }
            else
            {
                MessageBox.Show("OOPS WRONG ID");
                txtstaffID.Text = string.Empty;
            }
        }