Exemple #1
0
 private void WaitForEmptyChair()
 {
     LogHandler.UpdateLog($" {Name} is looking for a chair", LogHandler.MainWindow.GuestAndBouncerLog);
     while (IsLookingForChair())
     {
         Chair chair;
         if (Pub.TryGetChair(out chair))
         {
             chair.Occupant = this;
             IsSittingDown  = true;
             break;
         }
         Thread.Sleep(10);
     }
 }