public void Clear() { _isLoaded = false; ClearCurrent(); _size = Size.Empty; _background = null; _shapes = null; }
public void Load(Picture background, Size size, NamedHatchStyles namedHatchStyle, NamedTextureStyles namedTextureStyle, IEnumerable <IShape> shapes) { Clear(); OnLoading(EventArgs.Empty); _size = size; CheckSize(true); _background = background; if (shapes == null) { ShapesPrivate = new ShapeList(); } else { ShapesPrivate = new ShapeList(shapes); } _namedHatchStyle = namedHatchStyle; _namedTextureStyle = namedTextureStyle; RedrawCore(); _isLoaded = true; OnLoaded(EventArgs.Empty); }