예제 #1
0
 public FlowCell(AltCode item, Rectangle bounds, int id)
 {
     Item = item;
     //X = x;
     //Width = width;
     Bounds = bounds;
     ID     = id;
 }
예제 #2
0
        public bool Hover(Point p, out AltCode hovered)
        {
            var cell = FindCellAtPoint(p);

            hovered = cell?.Item;
            var cellId = cell?.ID ?? -1;

            if (_HoveredCell != cellId)
            {
                _HoveredCell = cellId;
                return(true);
            }
            return(false);
        }