コード例 #1
0
        public void GetHomeScreenInput()
        {
            var input = CommonMethods.ReadLine();

            if (!testForValidInput(input))
            {
                Console.Clear();
                HomeMenuScreen();
            }

            var userChoice = getInt(input);

            switch (userChoice)
            {
            case 1:
            {
                System.Console.WriteLine("Find Available products");
                break;
            }

            case 2:
            {
                _musicContractPage.DisplayMusicContractWelcome();
                break;
            }

            case 3:
            {
                _partnerContractPage.DisplayDistroPartnerContractsWelcome();
                break;
            }

            case 4:
            {
                Console.Clear();
                _aboutPage.DisplayAbout();
                HomeMenuScreen();
                break;
            }

            case 5:
            {
                Environment.Exit(1);
                break;
            }

            default:
            {
                HomeMenuScreen();
                break;
            }
            }
        }
コード例 #2
0
 public void GoToAbout()
 {
     _aboutPage.DisplayAbout();
 }