public override void DrawRect(RectangleF dirtyRect) { base.DrawRect(dirtyRect); using (CGContext graph = NSGraphicsContext.CurrentContext.GraphicsPort) using (CocoaGraphDrawer drawer = new CocoaGraphDrawer(graph, BaseGraph.Width, BaseGraph.Height)) { BaseGraph.DrawFullGraph(drawer); } }