private void OnHoverInfoChanged(ColorLabelHitInfo prevInfo, ColorLabelHitInfo hoverInfo) { if (OwnerControl != null) { OwnerControl.Invalidate(); OwnerControl.Update(); } }
protected internal virtual void MarkItem(int targetIndex, int sourceIndex) { DropLine(); dragDropLineColor = Color.Red; if ((targetIndex == sourceIndex) || (targetIndex == sourceIndex + 1) || (sourceIndex == ItemCount - 1 && targetIndex == -1)) { dragDropLineColor = Color.LightGray; } if (targetIndex == -1) { UnderlineItem(ItemCount - 1); } else { OverlineItem(targetIndex); } if (targetIndex > 0) { UnderlineItem(targetIndex - 1); } OwnerControl.Invalidate(); }
internal void MarkItem(int targetIndex, int sourceIndex) { DropLine(); DragDropLineColor = Color.Red; if (targetIndex == sourceIndex || targetIndex == sourceIndex + 1 || sourceIndex == ItemCount - 1 && targetIndex == -1 || targetIndex == 0) { DragDropLineColor = Color.LightGray; } if (targetIndex == -1) { UnderlineItem(ItemCount - 1); } else { OverlineItem(targetIndex); } if (targetIndex > 0) { UnderlineItem(targetIndex - 1); } OwnerControl.Invalidate(); }