public void Restore([NotNull] GDIGraphics graphics) { Debug.Assert(graphics != null, "graphics != null"); graphics._resourceManager = ResourceManager; graphics.FillStyle = FillStyle; graphics.SetLineStyle(LineStyle); graphics.Transform = Transform; }