示例#1
0
        static void Main(string[] args)
        {
            bool loginState = false;           //Welcomes the user to the system

            Console.WriteLine(Environment.NewLine + "Welcome to the Library Internal System  |  Please Log in" + Environment.NewLine);
            do
            {
                loginInput.Clear();
                Console.Write("Username: "******"Password: "******"");
                loginInput.Add(usernameInput, passwordInput);         //passes inputs to method to check them against those stored in the system
                loginState = LoginDetails.loginCheck(loginInput);     //passes inputs to method to check them against those stored in the system
            } while (loginState == false);                            //Loops until recognised Login is entered
            Console.WriteLine("Welcome Admin" + Environment.NewLine); //Personalised Welcome Message
            AdminControl.adminMenu();                                 //Loads user into Admin Menu
            Console.ReadLine();
        }