Esempio n. 1
0
        public static bool LikeListMenu()
        {
            string userInput = "";

            while (userInput != "@exit")
            {
                Console.Clear();
                Console.WriteLine("LikeList");
                Console.WriteLine("Type @exit to exit");
                Console.WriteLine("Choose who you like:");

                // skaber liste
                MenuHelpers.RefreshLikeList(userInput);
                // lytter til input
                userInput = Console.ReadLine();
            }
            return(true);
        }
Esempio n. 2
0
        public static bool MatchMenu()
        {
            string userInput = "";

            while (userInput != "@exit")
            {
                Console.Clear();
                Console.WriteLine("MatchMenu");
                Console.WriteLine("Type @exit to exit");
                Console.WriteLine("Choose who your message partner:");

                // skaber liste
                MenuHelpers.RefreshMatchList(userInput);
                // lytter til input
                userInput = Console.ReadLine();
            }
            return(true);
        }
Esempio n. 3
0
        public static bool StartMenu()
        {
            // Console.Clear();
            Console.WriteLine("StartMenu");
            Console.WriteLine("Choose an option:");
            Console.WriteLine("1) Login");
            Console.WriteLine("2) Create Account");
            Console.WriteLine("3) Exit");
            Console.Write("\r\nSelect an option: ");

            switch (Console.ReadLine())
            {
            case "1":
                while (MenuHelpers.CurrentUser == null)
                {
                    MenuHelpers.Login();
                    if (MenuHelpers.CurrentUser == null)
                    {
                        Console.WriteLine("Tast '@exit' for at afbryde login eller tryk enter for at prøve igen.");
                        if (Console.ReadLine() == "@exit")
                        {
                            break;
                        }
                    }
                }
                while (MenuHelpers.CurrentUser != null)
                {
                    MainMenu();
                }
                return(true);

            case "2":
                MenuHelpers.CreateAccount();
                return(true);

            case "3":
                return(false);

            default:
                return(true);
            }
        }