示例#1
0
 private void lsbLeft_MouseDown(object sender, MouseEventArgs e)
 {
     source = clickSource.left;
     if (lsbLeft.SelectedItems != null)
     {
         lsbLeft.DoDragDrop(lsbLeft.SelectedItems, DragDropEffects.All);
     }
 }
示例#2
0
        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();
        }
示例#3
0
 private void Start()
 {
     click = this;
 }