/// <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);
 }
Exemple #2
0
 protected override void DestroyWindowCore(HandleRef hwnd)
 {
     currentGraph.Dispose();
     DestroyWindow(hwnd.Handle);
 }
Exemple #3
0
 public void Dispose()
 {
     _windowRenderTarget.Dispose();
     _currentGraph.Dispose();
 }