Ejemplo n.º 1
0
 public SuperMarket(int numOfCashiers)
 {
     blockingCollection = new BlockingCollectionQueue(numOfCashiers);
     cashiers           = new Cashier[numOfCashiers];
     for (int i = 0; i < cashiers.Length; i++)
     {
         cashiers[i] = new Cashier();
         cashiers[i].NumOfCashier = i;
     }
 }
Ejemplo n.º 2
0
 public void Subscribe(BlockingCollectionQueue collectionQueue)
 {
     collectionQueue.ev_AddPerson += new BlockingCollectionQueue.dg_AddPerson(CollectionQueue_ev_AddPerson);
 }