private void OnHoverInfoChanged(ColorLabelHitInfo prevInfo, ColorLabelHitInfo hoverInfo)
 {
     if (OwnerControl != null)
     {
         OwnerControl.Invalidate();
         OwnerControl.Update();
     }
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }