예제 #1
0
파일: Main.cs 프로젝트: Krzywyyy/Ticketer
 public void StartReservation()
 {
     try
     {
         window.ShowStopButton();
         string welcomeMessage = "Dzień dobry, czy chcesz złożyć zamówienie?";
         string options        = "[TAK/NIE]";
         window.AddTextToConversation(speaker.EmployeeSpeak(welcomeMessage, options));
         YesNoQuestion yesNoQuestion = new YesNoQuestion();
         string        result        = yesNoQuestion.GetAnswer();
         window.AddTextToConversation(speaker.CustomerSpeak(result));
         if (result.Equals("Tak"))
         {
             AskForSpectacleName();
         }
         else
         {
             speaker.SayGoodbye();
             window.ClearConversation();
             AskForStart();
         }
     } catch (ThreadInterruptedException thr) { }
 }