Example #1
0
        private static void determineForm(LoginInformation loginInformation)
        {
            bool isAdmin = loginInformation.getIsAdmin();

            if (isAdmin)
            {
                Application.Run(new AdminForm(loginInformation));
            }
            else
            {
                Application.Run(new EmployeeForm(loginInformation));
            }
        }