Example #1
0
 /// <summary>
 ///   Detach objewcts that observer this IOu
 /// </summary>
 /// <param name = "obj">IOuObserver</param>
 public void Detach(IOuObserver obj)
 {
     try
     {
         this._observers.Remove(obj);
     }
     catch (Exception error)
     {
         Framework.EventBus.Publish(error);
     }
 }
Example #2
0
 /// <summary>
 ///   Dispose this object and all the observers
 /// </summary>
 /// <param name = "obj">IOuObserver</param>
 public void Dispose(IOuObserver obj)
 {
     try
     {
         for (var h = 0; h < this._observers.Count; h++)
         {
             this._observers[h].Dispose(this);
         }
     }
     catch (Exception error)
     {
         Framework.EventBus.Publish(error);
     }
 }
Example #3
0
 /// <summary>
 ///   Attach objewcts that observer this IOu
 /// </summary>
 /// <param name = "obj">IOuObserver</param>
 public void Attach(IOuObserver obj)
 {
     try
     {
         if (!this._observers.Contains(obj))
         {
             this._observers.Add(obj);
         }
     }
     catch (Exception error)
     {
         Framework.EventBus.Publish(error);
     }
 }
Example #4
0
 /// <summary>
 ///   Update this observer with a refernece to the ou
 /// </summary>
 /// <param name = "ou">Iou</param>
 /// <param name = "source">source observer</param>
 public void Update(IOu ou, IOuObserver source)
 {
     throw new NotImplementedException();
 }