public void Attach(IInvestor investor) { this.investors.Add(investor); }
public void Attach(IInvestor investor) { _investors.Add(investor); }
// Remove observer public void Remove(IInvestor investor) { _investors.Remove(investor); }
public void Attach(IInvestor investor) { // Lägg till investorn i vår lista _investors.Add(investor); }
//Deregister public void Deregister(IInvestor investor) { _investors.Remove(investor); }
public void Attach(IInvestor investor) { if (!Investors.Contains(investor)) Investors.Add(investor); }
public void Detach(IInvestor investor) { Change -= investor.Update; }
public bool Register(IInvestor investor) { _investors.Add(investor); return true; }
public bool UnRegister(IInvestor investor) { return _investors.Remove(investor); }
public IInvestor Attach(IInvestor investor) { this._investors.Add(investor); Console.WriteLine("Investor {0} subscribed to stock {1}.", (investor as Investor).Name, this.Name); return(investor); }
public void UnSubscribe(IInvestor investor) { _investors.Remove(investor); }
public void Subscribe(IInvestor investor) { _investors.Add(investor); }
public void Detach(IInvestor investor) { _investors.Remove(investor); }
public void Detach(IInvestor investor) { if (Investors.Contains(investor)) Investors.Remove(investor); }
public void Attach(IInvestor investor) { Change += investor.Update; }
//Register public void Register(IInvestor investor) { _investors.Add(investor); }