From 40ee554e9551e8e6752a10dac3ca69efa1e4f930 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 16 Mar 2018 14:01:44 -0500 Subject: [PATCH] Equals func for NetShape --- EduNetworkBuilder/NetShape.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ///