Example #1
0
 public void Dispose()
 {
     if (_function != null)
     {
         _function.ChangedEvent -= FunctionChangedHandler;
     }
     if (_defaultFunc != null)
     {
         _defaultFunc.ChangedEvent -= DefaultFunctionChangedHandler;
     }
     Utilities.DisposeObj(ref _function);
     Utilities.RemoveAllEventHandlerFrom(this);
 }
Example #2
0
 public virtual void Dispose()
 {
     Utilities.RemoveAllEventHandlerFrom(this);
 }