public Object Clone() { BankerCollect newBC = new BankerCollect(); for (int i = 0; i < this.Count; i++) { newBC.Add(this[i].Clone()); } return newBC; }
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(); }