/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (disposing && (LineGraph != null)) { LineGraph.Dispose(); LineGraph = null; } if (disposing && (BarGraph != null)) { BarGraph.Dispose(); BarGraph = null; } base.Dispose(disposing); }
protected override void DestroyWindowCore(HandleRef hwnd) { currentGraph.Dispose(); DestroyWindow(hwnd.Handle); }
public void Dispose() { _windowRenderTarget.Dispose(); _currentGraph.Dispose(); }