public object FindElementByUid(int uid, UnitsTypes type) { object res = null; switch (type) { case UnitsTypes.Thread: ThreadUnit t = FindThreadUnitByUid(uid); res = t; break; case UnitsTypes.DataBlock: DataBlockUnit d = FindDataBlock(uid); res = d; break; } return(res); }
public bool DoesOverlap(UnitsTypes type) { return(DoesOverlap((int)type)); }