Ejemplo n.º 1
0
        private void Refresh(bool drawTriangle)
        {
#if NETFRAMEWORK
            bool isPaintable = chart.IsAppPaintable;
#else
            bool isPaintable = chart.AppPaintable;
#endif
            if (isPaintable && chart.Visible)
            {
#if NETFRAMEWORK
                Context context = Gdk.CairoHelper.Create(chart.GdkWindow);
#else
                Gdk.DrawingContext drawingContext = chart.GetGdkWindow().BeginDrawFrame(chart.GetGdkWindow().VisibleRegion);
                Context            context        = drawingContext.CairoContext;
#endif

                if (drawTriangle)
                {
                    DrawTriangle(context);
                }
                DrawMarker(context);
            }
        }