Ejemplo n.º 1
0
 private void mct_ItemDragStart(object sender, Ai.Control.ItemDragDropEventArgs e)
 {
     if (e.ItemsSource is Ai.Control.MultiColumnTree.SelectedTreeNodeCollection)
     {
         e.Effects = DragDropEffects.Move;
     }
     else
     {
     }
 }
Ejemplo n.º 2
0
        private void mct_ItemDragDrop(object sender, Ai.Control.ItemDragDropEventArgs e)
        {
            if (e.ItemTarget != null && e.ItemsSource is Ai.Control.MultiColumnTree.SelectedTreeNodeCollection)
            {
                Ai.Control.TreeNode tn = (Ai.Control.TreeNode)e.ItemTarget;
                Ai.Control.MultiColumnTree.SelectedTreeNodeCollection src = (Ai.Control.MultiColumnTree.SelectedTreeNodeCollection)e.ItemsSource;
                foreach (Ai.Control.TreeNode srcTn in src)
                {
                    tn.Nodes.Add(srcTn);
                }

                /*string strMsg = tn.Text;
                *  foreach (Ai.Control.TreeNode trgTn in tn.Nodes) {
                *   if (strMsg != "") strMsg = strMsg + "\n";
                *   strMsg = strMsg + trgTn.Text;
                *  }
                *  MessageBox.Show(strMsg);*/
            }
        }