Пример #1
0
        static void Main(string[] args)
        {
            bool        exit        = false;
            Userbase    Users       = new Userbase();
            LoginScreen LoginScreen = new LoginScreen(Users);
            UserMenu    UserMenu;

            while (!exit)
            {
                User user = LoginScreen.RequestLogin();
                if (user != null)
                {
                    UserMenu = new UserMenu(user);
                    user     = UserMenu.Navigate();
                }
            }
        }
Пример #2
0
 /*
  * LoginScreen Constructor:
  * Input: A Userbase of users to which the user can login or in which the user can
  *  create an account.
  */
 public LoginScreen(Userbase users)
 {
     this.Users = users;
 }