Exemplo n.º 1
0
 public void Attach(IInvestor investor)
 {
     this.investors.Add(investor);
 }
Exemplo n.º 2
0
 public void Attach(IInvestor investor)
 {
     _investors.Add(investor);
 }
Exemplo n.º 3
0
 // 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);
 }
Exemplo n.º 5
0
 public void Attach(IInvestor investor)
 {
     _investors.Add(investor);
 }
Exemplo n.º 6
0
 //Deregister
 public void Deregister(IInvestor investor)
 {
     _investors.Remove(investor);
 }
Exemplo n.º 7
0
 public void Attach(IInvestor investor)
 {
     if (!Investors.Contains(investor))
         Investors.Add(investor);
 }
Exemplo n.º 8
0
 public void Detach(IInvestor investor)
 {
     Change -= investor.Update;
 }
Exemplo n.º 9
0
 public bool Register(IInvestor investor)
 {
   _investors.Add(investor);
   return true;
 }
Exemplo n.º 10
0
 public bool UnRegister(IInvestor investor)
 {
   return _investors.Remove(investor);
 }
Exemplo n.º 11
0
 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);
 }
Exemplo n.º 12
0
 public void UnSubscribe(IInvestor investor)
 {
     _investors.Remove(investor);
 }
Exemplo n.º 13
0
 public void Subscribe(IInvestor investor)
 {
     _investors.Add(investor);
 }
Exemplo n.º 14
0
 public void Detach(IInvestor investor)
 {
     _investors.Remove(investor);
 }
Exemplo n.º 15
0
 public void Detach(IInvestor investor)
 {
     if (Investors.Contains(investor))
         Investors.Remove(investor);
 }
Exemplo n.º 16
0
 public void Attach(IInvestor investor)
 {
     Change += investor.Update;
 }
Exemplo n.º 17
0
 public void Attach(IInvestor investor)
 {
     Change += investor.Update;
 }
Exemplo n.º 18
0
 public void Attach(IInvestor investor)
 {
     this.investors.Add(investor);
 }
Exemplo n.º 19
0
 public void Detach(IInvestor investor)
 {
     Change -= investor.Update;
 }
Exemplo n.º 20
0
 public void Detach(IInvestor investor)
 {
     _investors.Remove(investor);
 }
Exemplo n.º 21
0
 //Register
 public void Register(IInvestor investor)
 {
     _investors.Add(investor);
 }