34 lines
713 B
C#
34 lines
713 B
C#
using System.Drawing;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace AGVControl.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;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
} |