Esempio n. 1
0
        public int Prev(int counterNo, int clientNo)
        {
            switch (counterNo)
            {
            case 1:
                return(QueuePool1.PrevClient(clientNo));

            case 2:
                return(QueuePool2.PrevClient(clientNo));

            case 3:
                return(QueuePool3.PrevClient(clientNo));

            case 4:
                return(QueuePool4.PrevClient(clientNo));
            }

            return(clientNo);
        }
Esempio n. 2
0
        public int Next(int counterNo, int clientNo)
        {
            switch (counterNo)
            {
            case 1:
                return(QueuePool1.NextClient(clientNo));

            case 2:
                return(QueuePool2.NextClient(clientNo));

            case 3:
                return(QueuePool3.NextClient(clientNo));

            case 4:
                return(QueuePool4.NextClient(clientNo));
            }

            return(clientNo);
        }