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