public virtual void Draw(DrawResults DrawList, int x, int y) { if (!string.IsNullOrEmpty(Location)) { DrawList.Locations.Add(new Location(Location, x, y)); } if (Visual != null) { Visual.Arrange(new Rect(x, y, Width, Height)); DrawList.Visual.Children.Add(Visual); } }
public override void Draw(DrawResults DrawList, int x, int y) { if (!string.IsNullOrEmpty(HotSpot)) { DrawList.HotSpots.Add(new HotSpot(HotSpot, Group, x, y, Width, Height)); } if (!string.IsNullOrEmpty(Area)) { DrawList.Areas.Add(new Area(Area, x, y, Height, Width)); } base.Draw(DrawList, x, y); }
// Method adding numbers in DrawResults public void AddDrawNumber(int number) { DrawResults.Add(number); }