コード例 #1
0
        public void LoadData(Department root)
        {
            //TreeView1.ItemsSource = root.Children;
            if (root == null)
            {
                return;
            }
            ShowTree(TreeView1, root.Children);

            dragdrop = new TreeViewDragDropManager(TreeView1);
        }
コード例 #2
0
 public void LoadData(TreeNodeEntity root)
 {
     if (root == null)
     {
         ShowTree(TreeView1, null);
     }
     else
     {
         ShowTree(TreeView1, root.Children);
     }
     TreeViewDragDropManager dragDropManager = new TreeViewDragDropManager(TreeView1);
 }
コード例 #3
0
 public void LoadDataEx <TD, TF>(TD root, bool onlyBuilding = false) where TD : ITreeNodeEx <TD, TF> where TF : IId
 {
     AreaNodeDict.Clear();
     DevNodeDict.Clear();
     if (root == null)
     {
         ShowTreeEx <TD, TF>(TreeView1, null);
     }
     else
     {
         if (onlyBuilding)
         {
             ShowTreeEx <TD, TF>(TreeView1, root.GetAllChildren((int)AreaTypes.大楼));
         }
         else
         {
             ShowTreeEx <TD, TF>(TreeView1, root.Children);
         }
     }
     TreeViewDragDropManager dragdrop = new TreeViewDragDropManager(TreeView1);
 }