public bool GetElementByCliloc(int cliloc, out GumpElement gumpElement) { gumpElement = null; if (GumpElements == null) { return(false); } GumpElement element = GumpElements.FirstOrDefault(m => m.Cliloc == cliloc); if (element != null) { gumpElement = element; } return(gumpElement != null); }
public bool GetElementByXY(int x, int y, out GumpElement gumpElement) { gumpElement = null; if (GumpElements == null) { return(false); } GumpElement element = GumpElements.FirstOrDefault(m => m.X == x && m.Y == y); if (element != null) { gumpElement = element; } return(gumpElement != null); }