C# Class Common.Controls.ElementTree

Exibir arquivo Open project: sall/vixen

Public Methods

Method Description
AddMultipleNodesWithPrompt ( ElementNode parent = null ) : IEnumerable
AddNewNode ( string nodeName, bool repopulateNodeTree = true, ElementNode parent = null, bool skipPatchCheck = false ) : ElementNode
AddSingleNodeWithPrompt ( ElementNode parent = null ) : ElementNode
CheckAndPromptIfNodeWillLosePatches ( ElementNode node ) : bool
ClearSelectedNodes ( ) : void
CreateGroupFromSelectedNodes ( ) : bool
DeleteNode ( TreeNode tn ) : void
DuplicateNodes ( ElementNode node, ElementNode parent = null ) : void
ElementTree ( ) : System
OnDragFinished ( EventArgs e = null ) : void
OnElementsChanged ( EventArgs e = null ) : void
PopulateNodeTree ( ) : void
PopulateNodeTree ( ElementNode elementToSelect ) : void
PopulateNodeTree ( IEnumerable elementsToSelect ) : void
RenameSelectedElements ( ) : bool
UpdateScrollPosition ( ) : void

Private Methods

Method Description
AddNodeToTree ( TreeNodeCollection collection, ElementNode elementNode ) : void
CopyNodesToClipboard ( ) : void
CutNodesToClipboard ( ) : void
DuplicateChildNodes ( ElementNode node, ElementNode newNode, ElementNode>.Dictionary leafNodeMap ) : void
ElementTree_Load ( object sender, EventArgs e ) : void
FindNodeInTreeAtPath ( TreeView tree, string path ) : TreeNode
GenerateEquivalentTreeNodeFullPathFromElement ( ElementNode element, string separator ) : string
GenerateTreeNodeFullPath ( TreeNode node, string separator ) : string
PasteNodes ( bool pasteAsNew = false ) : void
SaveTreeNodeState ( TreeNodeCollection collection ) : void
SaveTreeNodeTopVisible ( ) : void
_PopulateNodeTree ( IEnumerable elementTreeNodesToSelect = null ) : void
addMultipleNewNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
addNewNodeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
collapseAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void
contextMenuStripTreeView_Opening ( object sender, CancelEventArgs e ) : void
copyNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
copyPropertiesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
createGroupWithNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
cutNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
deleteNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pasteNodesAsNewToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pasteNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pastePropertiesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
renameNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
reverseElementsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
treeviewDragFinishingHandler ( object sender, DragFinishingEventArgs e ) : void
treeviewDragVerifyHandler ( object sender, DragVerifyEventArgs e ) : void
treeview_DragStart ( object sender, DragStartEventArgs e ) : void
treeview_KeyDown ( object sender, KeyEventArgs e ) : void

Method Details

AddMultipleNodesWithPrompt() public method

public AddMultipleNodesWithPrompt ( ElementNode parent = null ) : IEnumerable
parent ElementNode
return IEnumerable

AddNewNode() public method

public AddNewNode ( string nodeName, bool repopulateNodeTree = true, ElementNode parent = null, bool skipPatchCheck = false ) : ElementNode
nodeName string
repopulateNodeTree bool
parent ElementNode
skipPatchCheck bool
return ElementNode

AddSingleNodeWithPrompt() public method

public AddSingleNodeWithPrompt ( ElementNode parent = null ) : ElementNode
parent ElementNode
return ElementNode

CheckAndPromptIfNodeWillLosePatches() public method

public CheckAndPromptIfNodeWillLosePatches ( ElementNode node ) : bool
node ElementNode
return bool

ClearSelectedNodes() public method

public ClearSelectedNodes ( ) : void
return void

CreateGroupFromSelectedNodes() public method

public CreateGroupFromSelectedNodes ( ) : bool
return bool

DeleteNode() public method

public DeleteNode ( TreeNode tn ) : void
tn System.Windows.Forms.TreeNode
return void

DuplicateNodes() public method

public DuplicateNodes ( ElementNode node, ElementNode parent = null ) : void
node ElementNode
parent ElementNode
return void

ElementTree() public method

public ElementTree ( ) : System
return System

OnDragFinished() public method

public OnDragFinished ( EventArgs e = null ) : void
e EventArgs
return void

OnElementsChanged() public method

public OnElementsChanged ( EventArgs e = null ) : void
e EventArgs
return void

PopulateNodeTree() public method

public PopulateNodeTree ( ) : void
return void

PopulateNodeTree() public method

public PopulateNodeTree ( ElementNode elementToSelect ) : void
elementToSelect ElementNode
return void

PopulateNodeTree() public method

public PopulateNodeTree ( IEnumerable elementsToSelect ) : void
elementsToSelect IEnumerable
return void

RenameSelectedElements() public method

public RenameSelectedElements ( ) : bool
return bool

UpdateScrollPosition() public method

public UpdateScrollPosition ( ) : void
return void