private void lsbLeft_MouseDown(object sender, MouseEventArgs e) { source = clickSource.left; if (lsbLeft.SelectedItems != null) { lsbLeft.DoDragDrop(lsbLeft.SelectedItems, DragDropEffects.All); } }
private void lsbLeft_DragDrop(object sender, DragEventArgs e) { if (source == clickSource.left) { return; } source = clickSource.left; ListBox.SelectedObjectCollection coll = (ListBox.SelectedObjectCollection)e.Data.GetData(typeof(ListBox.SelectedObjectCollection)); foreach (GenericList <string> el in coll) { AddLeftValue(el.Archive, el.Display); rightManager.Remove(el); } rightManager.Refresh(); leftManager.Refresh(); }
private void Start() { click = this; }