Example #1
0
 private void RandomNext()
 {
     while (Part < Count)
     {
         CalculateReservationTask();
         if (Seats.Count < Ticket.NumberOfSeats)
         {
             IsOK = false;
             return;
         }
         List <int> seats = Seats.GetRange(0, Ticket.NumberOfSeats);
         for (int i = Part; i <= to; i++)
         {
             ticket.AddSeat(seats.ToArray());
         }
         Part          = to + 1;
         SelectedValue = "";
     }
     NotifyOfPropertyChange("Ticket");
     CurrentReservation = "";
     Seats         = null;
     SourcePicture = null;
 }