fixes & version bump

This commit is contained in:
2024-06-10 13:15:24 +02:00
parent df8266fc40
commit e212f4021a
11 changed files with 29 additions and 16 deletions

View File

@@ -64,8 +64,8 @@ public class PaintingObject : ICloneable, IPaintingObjectContainer
[JsonProperty]
private bool _AutoAlignToGrid = false;
public bool MouseTransparency { get; set; } = false;
public PaintingObjectLayering Layering { get; private set; } = new PaintingObjectLayering(this);
public PaintingObjectList PaintingObjects { get; private set; } = new PaintingObjectList(_Parent) { EnableRaisingEvents = false };
public PaintingObjectLayering Layering { get; private set; }
public PaintingObjectList PaintingObjects { get; private set; }
[JsonIgnore]
public ulong ErrorsAtDrawing { get; private set; } = 0UL;
@@ -105,9 +105,11 @@ public class PaintingObject : ICloneable, IPaintingObjectContainer
public PaintingObject()
{
Layering = new(this);
PaintingObjects = new PaintingObjectList(_Parent) { EnableRaisingEvents = false };
}
public PaintingObject(PaintingObjectType @type)
public PaintingObject(PaintingObjectType @type) : this()
{
Type = type;
}
@@ -737,7 +739,7 @@ public class PaintingObjectList : List<PaintingObject>
internal PaintingControl MyParent { get; private set; }
internal bool EnableRaisingEvents { get; set; } = true;
[JsonIgnore]
public PaintingObjectListLayering Layering { get; private set; } = new PaintingObjectListLayering(this);
public PaintingObjectListLayering Layering { get; private set; }
public PaintingObjectList() : this(null)
{
@@ -745,6 +747,7 @@ public class PaintingObjectList : List<PaintingObject>
public PaintingObjectList(PaintingControl parent)
{
Layering = new(this);
MyParent = parent;
}