public override void Dispose()
 {
     UIThreadHelper.Instance.Invoke(() => {
         _window?.TextView?.Close();
         _window?.Dispose();
     });
     base.Dispose();
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_window != null)
         {
             _window.Dispose();
         }
     }
 }
        public void Dispose()
        {
            if (Window != null)
            {
                // close interactive host process:
                Window.Evaluator?.Dispose();

                // dispose buffer:
                Window.Dispose();
            }
        }
        public void Dispose()
        {
            if (_window != null)
            {
                // close interactive host process:
                var engine = _window.Evaluator;
                if (engine != null)
                {
                    engine.Dispose();
                }

                // dispose buffer:
                _window.Dispose();
            }
        }