Esempio n. 1
0
        public static void Run(Profile currentProfile, User currentUser)
        {
            while (true)
            {
                GUI.DisplayUserMenu();
                string menuChoice = Console.ReadLine().ToLower();

                if (menuChoice == "1")
                {
                    DatingPage.Run(currentProfile, currentUser);
                }
                if (menuChoice == "2")
                {
                    EditProfilePage.Run(currentProfile, currentUser);
                }
                if (menuChoice == "3")
                {
                    MessageInboxPage.Run(currentProfile);
                }
                //if (menuChoice == "4") Matches.Run(currentProfile, currentUser, potentialMatch);
                if (menuChoice == "5")
                {
                    break;
                }
            }
        }
Esempio n. 2
0
        public static void Run(Profile currentProfile, User currentUser, Profile potentialMatch)
        {
            while (true)
            {
                GUI.DisplayMatchMenu();
                string menuChoice = Console.ReadLine().ToLower();

                if (menuChoice == "1")
                {
                    MessageInboxPage.Run(currentProfile, potentialMatch);
                }
                if (menuChoice == "2")
                {
                    DatingPage.Run(currentProfile, currentUser);
                }
            }
        }