public void AddServicePoint() { ServicePoint s = new ServicePoint(); _spList.Add(s); s.RegisterObserver(this); s.Start(); NotifyObservers(); }
public ServicePointSystem() { _observers = new List<iSPSObserver>(); _spList = new List<ServicePoint>(); for (int i = 0; i < Store.Get().StoreParams.MaximumServicePoints; i++) //#ANDRE { ServicePoint s = new ServicePoint(); _spList.Add(s); s.RegisterObserver(this); if (i < Store.Get().StoreParams.InitialServicePoints) s.Start(); } NotifyObservers(); }