Equals func for NetShape

This commit is contained in:
Tim Young 2018-03-16 14:01:44 -05:00
parent ee75c73e29
commit 40ee554e95

View File

@ -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;
}
/// <summary>
/// Draw the specified shape on the image
/// </summary>