예제 #1
0
 private void FinishLogin()
 {
     //TODO: Successful Log in with this user.
     User.LoggedInAccount = foundAccount;
     NextPrompt           = new LoggedInMenu(this);
     Reset();
 }
예제 #2
0
        /// <summary>
        /// Reset a user to logged in to just their account.
        /// </summary>
        /// <param name="forClient">Client connection that is logging in.</param>
        public static StandardHeldPrompt GetLoggedInPrompt(Client forClient)
        {
            if (forClient.LoggedInAccount == null)
            {
                throw new Exception("Error: User not logged into account to return to logged-in state.");
            }
            LoginPrompt  parent = new LoginPrompt(forClient);
            LoggedInMenu child  = new LoggedInMenu(parent);

            parent.NextPrompt = child;
            parent.Reset();
            return(child);
        }