Equals func for NetShape
This commit is contained in:
parent
ee75c73e29
commit
40ee554e95
@ -33,6 +33,16 @@ namespace EduNetworkBuilder
|
|||||||
Load(what);
|
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>
|
/// <summary>
|
||||||
/// Draw the specified shape on the image
|
/// Draw the specified shape on the image
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user