/*
         * Checks if the username and password are correct.
         */
        private void login()
        {
            if (string.IsNullOrEmpty(txtbx_password.Text))
            {
                pwLabel.ForeColor = Color.Red;
            }
            if (string.IsNullOrEmpty(txtbx_userName.Text))
            {
                unLabel.ForeColor = Color.Red;
            }

            if (txtbx_userName.Text.Equals(ADMINUSER, StringComparison.InvariantCultureIgnoreCase))
            {
                unLabel.ForeColor = Color.Black;
                if (txtbx_password.Text.Equals(ADMINPASS))
                {
                    formController.showAdminForm();
                    pwLabel.ForeColor = Color.Black;
                }
                else
                {
                    pwLabel.ForeColor = Color.Red;
                }
            }
            else if (txtbx_userName.Text.Equals(GUESTUSER, StringComparison.InvariantCultureIgnoreCase))
            {
                unLabel.ForeColor = Color.Black;
                if (txtbx_password.Text.Equals(GUESTPASS))
                {
                    formController.showOrderForm();
                    pwLabel.ForeColor = Color.Black;
                }
                else
                {
                    pwLabel.ForeColor = Color.Red;
                }
            }
            else if (txtbx_userName.Text.Equals(KITCHENUSER, StringComparison.InvariantCultureIgnoreCase))
            {
                unLabel.ForeColor = Color.Black;
                if (txtbx_password.Text.Equals(KITCHENPASS))
                {
                    formController.showKitchenForm();
                    pwLabel.ForeColor = Color.Black;
                }
                else
                {
                    pwLabel.ForeColor = Color.Red;
                }
            }
            else
            {
                unLabel.ForeColor = Color.Red;
            }
        }
 private void btn_login_Click(object sender, EventArgs e)
 {
     if (txtbx_userName.Text.Equals("Admin", StringComparison.InvariantCultureIgnoreCase))
     {
         formController.showAdminForm();
     }
     else
     {
         formController.showOrderForm();
     }
 }