diff --git a/EduNetworkBuilder/NetShape.cs b/EduNetworkBuilder/NetShape.cs index 526e571..3830d15 100644 --- a/EduNetworkBuilder/NetShape.cs +++ b/EduNetworkBuilder/NetShape.cs @@ -33,6 +33,16 @@ namespace EduNetworkBuilder Load(what); } + + public bool Equals(NetShape CompareWith) + { + if (MyShape != CompareWith.MyShape) return false; + if (InArea != CompareWith.InArea) return false; + if (LineColor != CompareWith.LineColor) return false; + if (FillColor != CompareWith.FillColor) return false; + if (Name != CompareWith.Name) return false; + return true; + } /// /// Draw the specified shape on the image ///