Beispiel #1
0
 public void GetMenu(Account account)
 {
     if (account == null)
     {
         GuessView.GenerateGuessMenu();
     }
     else
     {
         if (account.Role == AccountRole.User)
         {
             UserView.GenerateUserMenu();
         }
         else if (account.Role == AccountRole.Admin)
         {
             AdminView.GenerateAdminMenu();
         }
     }
 }
Beispiel #2
0
 public void GetMenu()
 {
     if (AccountController.CurrentAccount == null)
     {
         GuessView.GenerateGuessMenu();
     }
     else
     {
         if (AccountController.CurrentAccount.Role == AccountRole.User)
         {
             UserView.GenerateUserMenu();
         }
         else if (AccountController.CurrentAccount.Role == AccountRole.Admin)
         {
             AdminView.GenerateAdminMenu();
         }
     }
 }