protected override void OnItemDrag(ListBoxItemEventArgs e)
        {
            var field = (ReportField)Items[e.Index];

            Items.RemoveAt(e.Index);

            if (DoDragDrop(field, DragDropEffects.Move) == DragDropEffects.None)
            {
                Items.Insert(e.Index, field);
            }
        }
 protected virtual void OnItemClick(ListBoxItemEventArgs e)
 {
     ItemClick?.Invoke(this, e);
 }
Beispiel #3
0
 private void _fieldsList_ItemClick(object sender, ListBoxItemEventArgs e)
 {
     ShowFieldMenu((ReportFieldListBox)sender, (ReportField)((ReportFieldListBox)sender).Items[e.Index]);
 }
 protected virtual void OnItemDrag(ListBoxItemEventArgs e)
 {
     ItemDrag?.Invoke(this, e);
 }