public void Dispose() { if (_config == null || !_config.Global.NoClear) { _graphs?.ClearDisplay(); } _graphs?.Dispose(); }
/// <summary> /// Tuät aui Renderer ahautä unds virtueua DMD vrschteckä. /// </summary> public void Close() { Logger.Info("Closing up."); _graphs.ClearDisplay(); _graphs.Dispose(); try { _dmd?.Dispatcher.Invoke(() => { _dmd.Hide(); }); } catch (TaskCanceledException e) { Logger.Warn(e, "Could not hide DMD because task was already canceled."); } _color = RenderGraph.DefaultColor; _palette = null; _gray2Colorizer = null; _gray4Colorizer = null; }
/// <summary> /// Tuät aui Renderer ahautä unds virtueua DMD vrschteckä. /// </summary> public void Close() { Logger.Info("Closing up."); _graphs.ClearDisplay(); _graphs.Dispose(); try { _virtualDmd?.Dispatcher?.Invoke(() => _virtualDmd?.Close()); _virtualDmd = null; } catch (TaskCanceledException e) { Logger.Warn(e, "Could not hide DMD because task was already canceled."); } _alphaNumericDest = null; _color = RenderGraph.DefaultColor; _palette = null; _gray2Colorizer = null; _gray4Colorizer = null; _coloring = null; _isOpen = false; }