public ItemPaintEventArgs(Graphics graphics, Rectangle rectangle, Rectangle fillRectangle, DynamicList list, DynamicListColumn column, DynamicListItem item, bool isMouseEntered) : base(graphics, rectangle) { this.fillRectangle = fillRectangle; this.list = list; this.column = column; this.item = item; this.isMouseEntered = isMouseEntered; }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); DynamicListRow rowFromPoint = this.GetRowFromPoint(e.Y); if (this.rowAtMousePosition != rowFromPoint) { this.rowAtMousePosition = rowFromPoint; base.Invalidate(); } if (rowFromPoint != null) { int columnIndexFromPoint = this.GetColumnIndexFromPoint(e.X); if (columnIndexFromPoint >= 0) { DynamicListItem item = rowFromPoint[columnIndexFromPoint]; if (this.itemAtMousePosition != item) { if (this.itemAtMousePosition != null) { this.OnLeaveItem(this.itemAtMousePosition); } base.ResetMouseEventArgs(); this.itemAtMousePosition = item; if (item != null) { if (item.Cursor != null) { this.Cursor = item.Cursor; } item.OnMouseEnter(this); } } if (item != null) { item.OnMouseMove(new DynamicListMouseEventArgs(this, e)); } } } }
protected override void OnMouseLeave(EventArgs e) { this.rowAtMousePosition = null; if (this.itemAtMousePosition != null) { this.OnLeaveItem(this.itemAtMousePosition); this.itemAtMousePosition = null; } base.OnMouseLeave(e); }
protected virtual void OnLeaveItem(DynamicListItem item) { this.itemAtMousePosition.OnMouseLeave(this); this.Cursor = Cursors.Default; }
internal void RaiseItemChanged(DynamicListItem item) { this.OnItemChanged(EventArgs.Empty); }
public DynamicTreeRow() { this.plus = base[0]; this.ShowPlus = true; }