protected void OnGraphEventBoxExposeEvent(object o, ExposeEventArgs args) { if (((DrawingArea)o).GdkWindow != null) { using(ImageSurface tmpSurface = new ImageSurface(Format.Rgb24, ((DrawingArea)o).Allocation.Width, ((DrawingArea)o).Allocation.Height)) using(GtkGraphDrawer drawer = new GtkGraphDrawer(Gdk.CairoHelper.Create(((DrawingArea)o).GdkWindow), new Context(tmpSurface), tmpSurface)) { BaseGraph.DrawFullGraph (drawer); } } }
protected void OnGraphEventBoxExposeEvent(object o, ExposeEventArgs args) { if (((DrawingArea)o).GdkWindow != null) { using (ImageSurface tmpSurface = new ImageSurface(Format.Rgb24, ((DrawingArea)o).Allocation.Width, ((DrawingArea)o).Allocation.Height)) using (GtkGraphDrawer drawer = new GtkGraphDrawer(Gdk.CairoHelper.Create(((DrawingArea)o).GdkWindow), new Context(tmpSurface), tmpSurface)) { BaseGraph.DrawFullGraph(drawer); } } }