コード例 #1
0
ファイル: Main.cs プロジェクト: Krzywyyy/Ticketer
        private void AskForTicketType()
        {
            string ticketTypeMessage = "Jaki typ biletów chcesz zamówić?";
            string options           = "[DZIECIĘCY/ULGOWY/NORMALNY]";

            window.AddTextToConversation(speaker.EmployeeSpeak(ticketTypeMessage, options));
            TicketTypeQuestion ticketTypeQuestion = new TicketTypeQuestion();
            string             ticketType         = ticketTypeQuestion.GetAnswer();

            window.AddTextToConversation(speaker.CustomerSpeak(ticketType));
            string numberOfTickets = AskForNumberOfTickets();

            window.AddTextToConversation(speaker.CustomerSpeak(numberOfTickets));
            ticketCounter.AddTickets(ticketType, int.Parse(numberOfTickets));
        }