Esempio n. 1
0
        private void AskIfMoreTickets()
        {
            string moreTicketsMessage = "Czy życzysz sobie jeszcze jakieś bilety?";
            string options            = "[TAK/NIE]";

            window.AddTextToConversation(speaker.EmployeeSpeak(moreTicketsMessage, options));
            YesNoQuestion yesNoQuestion = new YesNoQuestion();
            string        result        = yesNoQuestion.GetAnswer();

            window.AddTextToConversation(speaker.CustomerSpeak(result));
            if (result.Equals("Tak"))
            {
                AskForTickets();
            }
            else
            {
                reservation.Order = ticketCounter.GetOrderedTickets();
                reservation.Price = ticketCounter.GetTotalCost();
                AskForReservationCorrectness();
            }
        }