override protected void DrawLayer(Rectangle clipRectangle) { try { SwapDrawBuffer(); //!!!Draw all objects after FillTransparent (*ClipRectangle) FillTransparent(); var localScreenView = (ScreenRectangle)ScreenView.Clone(); RedrawCables(localScreenView); RedrawVertexes(localScreenView); } finally { SwapDrawBuffer(); } FireInvalidateLayer(clipRectangle); }
override protected void DrawLayer(Rectangle clipRectangle) { try { SwapDrawBuffer(); Rectangle localBlockView; ScreenRectangle localScreenView; do { DropWorkerThreadEvents(WorkerEventType.RedrawLayer); localBlockView = (Rectangle)_blockView.Clone(); localScreenView = (ScreenRectangle)ScreenView.Clone(); }while (DrawImages(localBlockView, localScreenView) == false); } finally { SwapDrawBuffer(); } FireInvalidateLayer(clipRectangle); }