private void DestoryGraphics(object sender, DestroyGraphicsEventArgs e) { foreach (var o in Overlays) { o.DestroyGraphics(sender, e); } }
private void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { // you may want to dispose any brushes, fonts or images _black.Dispose(); _red.Dispose(); _green.Dispose(); }
private void Window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { foreach (var Brush in Brushes) { Brush.Value.Dispose(); } }
private static void Overlay_OnGraphicsDestroy(object sender, DestroyGraphicsEventArgs e) { if (!Loaded) { return; } }
private void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { foreach (var pair in _brushes) { pair.Value.Dispose(); } }
private void Window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { _font.Dispose(); _white.Dispose(); _backGray.Dispose(); }
internal override void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { if (!Loaded) { return; } OnGraphicsDestroy?.Invoke(sender, e); }
private void DestroyWindowGraphics(object sender, DestroyGraphicsEventArgs e) { foreach (var pair in this.brushes) { pair.Value.Dispose(); } foreach (var pair in this.fonts) { pair.Value.Dispose(); } }
private void Window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { // you may want to dispose any brushes, fonts or images e.Graphics.BeginScene(); e.Graphics.ClearScene(); e.Graphics.EndScene(); _font.Dispose(); _redBrush.Dispose(); _grayBrush.Dispose(); _yellowBrush.Dispose(); _whiteBrush.Dispose(); }
private void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { foreach (var pair in Brushes) { pair.Value.Dispose(); } foreach (var pair in Fonts) { pair.Value.Dispose(); } foreach (var pair in Images) { pair.Value.Dispose(); } DestoryGraphics(sender, e); }
private void OnDestroyGraphics(object sender, DestroyGraphicsEventArgs e) { defaultFont?.Dispose(); defaultFont = null; foreach (var kv in brushes) { kv.Value.Dispose(); } brushes.Clear(); lock (bufferLock) { read.Clear(); write.Clear(); } }
public void DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { DisposeResources(); }
private void Window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { // dispose of any brushes, fonts, or images here red.Dispose(); }
private static void window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { redBrush.Dispose(); consolasFont.Dispose(); }
private static void Overlay_OnGraphicsDestroy(object sender, DestroyGraphicsEventArgs e) { }
internal abstract void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e);
private void _window_DestroyGraphics(object sender, DestroyGraphicsEventArgs e) { // you may want to dispose any brushes, fonts or images }