예제 #1
0
 public void Attach(IInvestor investor)
 {
     this.investors.Add(investor);
 }
예제 #2
0
 public void Attach(IInvestor investor)
 {
     _investors.Add(investor);
 }
예제 #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);
 }
예제 #5
0
파일: Stock.cs 프로젝트: atree1987/MyWorks
 public void Attach(IInvestor investor)
 {
     _investors.Add(investor);
 }
예제 #6
0
 //Deregister
 public void Deregister(IInvestor investor)
 {
     _investors.Remove(investor);
 }
예제 #7
0
 public void Attach(IInvestor investor)
 {
     if (!Investors.Contains(investor))
         Investors.Add(investor);
 }
예제 #8
0
 public void Detach(IInvestor investor)
 {
     Change -= investor.Update;
 }
예제 #9
0
 public bool Register(IInvestor investor)
 {
   _investors.Add(investor);
   return true;
 }
예제 #10
0
 public bool UnRegister(IInvestor investor)
 {
   return _investors.Remove(investor);
 }
예제 #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);
 }
예제 #12
0
 public void UnSubscribe(IInvestor investor)
 {
     _investors.Remove(investor);
 }
예제 #13
0
 public void Subscribe(IInvestor investor)
 {
     _investors.Add(investor);
 }
예제 #14
0
 public void Detach(IInvestor investor)
 {
     _investors.Remove(investor);
 }
예제 #15
0
 public void Detach(IInvestor investor)
 {
     if (Investors.Contains(investor))
         Investors.Remove(investor);
 }
예제 #16
0
 public void Attach(IInvestor investor)
 {
     Change += investor.Update;
 }
예제 #17
0
 public void Attach(IInvestor investor)
 {
     Change += investor.Update;
 }
예제 #18
0
 public void Attach(IInvestor investor)
 {
     this.investors.Add(investor);
 }
예제 #19
0
 public void Detach(IInvestor investor)
 {
     Change -= investor.Update;
 }
예제 #20
0
파일: Stock.cs 프로젝트: atree1987/MyWorks
 public void Detach(IInvestor investor)
 {
     _investors.Remove(investor);
 }
예제 #21
0
 //Register
 public void Register(IInvestor investor)
 {
     _investors.Add(investor);
 }