public static void TimerQueue() { _CountTimeQueue--; if (Queue.ReturnCount() < 5) { if (_CountTimeQueue == 0) { //Когда каунтер подходит к 0 - добавляем нового человека... Queue.AddToQueue(); ResetQueueTimer(); //...и восстанавливаем счетчик } } }
//////////////////////////////////////////// public static void StartQueueing() { Queue = new Collections.CustomerQueue(); Queue.AddToQueue(); }