예제 #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));
        }