Exemple #1
0
 public Bank(string name, IObservableSE observable)
 {
     Name   = name;
     _stock = observable;
     _stock.RegisterObserver(this);
 }
Exemple #2
0
 public void StopTrade()
 {
     _stock.RemoveObserver(this);
     _stock = null;
 }