예제 #1
0
 public Object Clone()
 {
     BankerCollect newBC = new BankerCollect();
     for (int i = 0; i < this.Count; i++)
     {
         newBC.Add(this[i].Clone());
     }
     return newBC;
 }
예제 #2
0
 public BankerControl(int amount)
 {
     _bankerCollect = new BankerCollect();
     for (int i = 0; i < amount; i++)
     {
         Banker banker = new Banker();
         _bankerCollect.Add(banker);
     }
     _unDoneCount = _bankerCollect.Count;
     _waitQueue = new List<Process>();
     init();
 }