private void backToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ManagerHomepage mh = new ManagerHomepage();

            mh.Show();
            this.Hide();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            ManagerHomepage mh = new ManagerHomepage();

            mh.Show();
            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            info.username = UsernameTextBox.Text;
            info.password = PasswordTextBox.Text;


            // string result = UsernameTextBox.Text.Substring(0, 2);


            // dt = opr.Login(info);
            string result;

            o = opr.Login(info);
            if (o == null)
            {
                MetroFramework.MetroMessageBox.Show(this, "Username Or Password is wrong. Please try again.", "Username Or Password is wrong. Please try again", MessageBoxButtons.OK, MessageBoxIcon.Error, 15);
            }
            else
            {
                result = o.ToString();

                if (result == "Supervisor")
                {
                    SupervisorHomepage sh = new SupervisorHomepage();
                    sh.Show();
                    this.Hide();
                }
                else if (result == "Manager")
                {
                    ManagerHomepage sh = new ManagerHomepage();
                    sh.Show();
                    this.Hide();
                }
                else if (result == "Owner")
                {
                    OwnerHomepage sh = new OwnerHomepage();
                    sh.Show();
                    this.Hide();
                }
            }
        }