public void Dispose()
 {
     if (_textViewHost != null)
     {
         _textViewHost.Close();
         _textViewHost = null;
     }
 }
 protected override void OnDispose()
 {
     base.OnDispose();
     if (wpfTextViewHost != null)
     {
         wpfTextViewHost.Close();
         wpfTextViewHost = null;
     }
 }
Beispiel #3
0
        public void Close()
        {
            if (_wpftextViewHost != null)
            {
                _wpftextViewHost.Close();
                _wpftextViewHost = null;
            }

            if (_editorViewModel != null)
            {
                _editorViewModel.Dispose();
                _editorViewModel = null;
            }
        }
Beispiel #4
0
        public void Close()
        {
            if (_wpftextViewHost != null)
            {
                _wpftextViewHost.Close();
                _wpftextViewHost = null;
            }

            if (_editorIntance != null)
            {
                _editorIntance.Dispose();
                _editorIntance = null;
            }
        }
        protected virtual void Dispose(bool isDisposed)
        {
            if (!_isDisposed)
            {
                _isDisposed = true;

                if (_viewHost != null)
                {
                    _viewHost.Close();
                }

                Document.FileActionOccurred -= Document_FileActionOccurred;
                _provider.Tasks.Clear();
                _provider.Dispose();
            }
        }