示例#1
0
        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);
            }
        }
示例#2
0
        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);
                }
        }