using System.Drawing; using System.Collections.Generic; using System.Linq; namespace AGVMapControl.Models { public class ToolBarItem { private bool _ishovering = false; public int Idx { get; set; } public Rectangle Bounds { get; set; } public bool isHovering { get { return _ishovering; } set { Dirty = _ishovering != value; _ishovering = value; } } public string Title { get; set; } public bool Dirty { get; private set; } public ToolBarItem() { Bounds = Rectangle.Empty; } } }