Example #1
0
 /// <summary>
 /// Method used to update queue status and getting current queue and filling local list with ID's.
 /// It's get called from another thread to avoid hanging of application
 /// </summary>
 private void UpdateThread()
 {
     while (true)
     {
         CheckQueueStatus();
         ServiceCommands.GetQueue("1");
         IDs = ServiceCommands.IDs;
         if (IDs.Any())
         {
             currentID = IDs.ElementAt(0);
         }
         currentStudent = ServiceCommands.GetStudentDetails <Student>(currentID);
     }
 }