Ejemplo n.º 1
0
 private void _bindableInstance_OnBindingUpdate(ObservableMessage obj)
 {
     if (this.OnBindingUpdate != null)
     {
         this.OnBindingUpdate.Invoke(obj);
     }
 }
Ejemplo n.º 2
0
 protected ObservableObject()
 {
     this._bindingMessage = new ObservableMessage
     {
         Sender = this
     };
     this._binder = new ModelBinder(this);
 }
Ejemplo n.º 3
0
 protected virtual void Awake()
 {
     this._bindingMessage = new ObservableMessage
     {
         Sender = this
     };
     if (this._binder == null)
     {
         this._binder = new ModelBinder(this);
     }
     base.AddListenersWhenAwake();
 }
Ejemplo n.º 4
0
 public virtual void Dispose()
 {
     if (this._binder != null)
     {
         this._binder.Dispose();
     }
     if (this._bindingMessage != null)
     {
         this._bindingMessage.Dispose();
     }
     this._bindingMessage = null;
     this._binder         = null;
 }
Ejemplo n.º 5
0
 public void Dispose()
 {
     this._bindingMessage.Dispose();
     if (this._bindableInstance != null)
     {
         this._bindableInstance.OnBindingUpdate -= new Action <ObservableMessage>(this._bindableInstance_OnBindingUpdate);
     }
     this._myType           = null;
     this._instance         = null;
     this._insanceBehaviour = null;
     this._bindableInstance = null;
     this._bindingMessage   = null;
 }