示例#1
0
 protected virtual void DisposeManagedResources()
 {
     if (_model != null)
     {
         _model.Dispose();
         _model.Cleanup();
         _model = null;
     }
 }
示例#2
0
        protected virtual void DisposeManagedResources()
        {
            if (_model != null)
            {
                _model.Dispose();
                _model.Cleanup();
                _model = null;
            }

            Dispatcher.ShutdownStarted -= Dispatcher_ShutdownStarted;
        }