示例#1
0
        private void ShowForm()
        {
            Form f = null;

            if (IsStaff)
            {
                f = new frmStaffHome(ManagerName);
            }
            else
            {
                f = new frmReceptionistHome(ManagerName);
            }
            Application.Run(f);
            this.Close();
        }
        public void ShowForm()
        {
            Form f = null;

            if (IsStaff)
            {
                f = new frmStaffHome(StaffID);
            }
            else
            {
                f = new frmReceptionistHome(StaffID);
            }
            Application.Run(f);
            this.Close();
        }
示例#3
0
        private void ShowForm()
        {
            // MessageBox.Show(StaffID);
            Form f = null;

            if (IsStaff)
            {
                f = new frmStaffHome(StaffID);
            }
            else
            {
                f = new frmReceptionistHome(StaffID);
            }
            Application.Run(f);
            this.Close();
        }