private void FillView() { this.treeInitializers.Nodes.Clear(); if (this.SystemImplementation == null) { return; } this.treeInitializers.BeginUpdate(); var items = InitializerInfoBase.GetItems(this.SystemImplementation); foreach (var item in items) { item.CreateTreeNode(this.treeInitializers.Nodes); } this.treeInitializers.EndUpdate(); }
private void treeInitializers_ItemDrag(object sender, ItemDragEventArgs e) { TreeNode node = e.Item as TreeNode; if (node == null) { return; } InitializerInfoBase info = node.Tag as InitializerInfoBase; if (info == null) { return; } this.DragHelper.DoDragDrop(this, node, DragDropEffects.Move); }