C# Class Common.Controls.ControllerTree

Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: sall/vixen

Public Methods

Method Description
AddNewControllerOfTypeWithPrompts ( System.Guid controllerTypeId ) : bool
ClearSelectedNodes ( ) : void
ConfigureController ( IControllerDevice controller ) : bool
ControllerTree ( ) : System
DeleteControllersWithPrompt ( IEnumerable controllers ) : bool
OnControllerSelectionChanged ( EventArgs e = null ) : void
OnControllersChanged ( EventArgs e = null ) : void
PopulateControllerTree ( Dictionary controllersAndOutputs ) : void
PopulateControllerTree ( IControllerDevice controllerToSelect = null ) : void
RenameControllerWithPrompt ( IControllerDevice outputController ) : bool
SetControllerOutputCount ( IControllerDevice controller ) : bool
UpdateScrollPosition ( ) : void

Private Methods

Method Description
AddControllerToTree ( TreeNodeCollection collection, IControllerDevice controller ) : void
ControllerTree_Load ( object sender, EventArgs e ) : void
FindNodeInTreeAtPath ( TreeView tree, string path ) : TreeNode
FindTopParentInTreeAtPath ( TreeView tree, string path ) : TreeNode
GenerateEquivalentTreeNodeFullPathFromController ( IControllerDevice controller ) : string
GenerateEquivalentTreeNodeFullPathFromControllerAndOutput ( IControllerDevice controller, int output ) : string
GenerateTreeNodeFullPath ( TreeNode node, string separator ) : string
SaveTreeNodeState ( TreeNodeCollection collection ) : void
SaveTreeNodeTopVisible ( ) : void
_PopulateControllerTree ( IEnumerable treeNodesToSelect = null ) : void
channelCountToolStripMenuItem_Click ( object sender, EventArgs e ) : void
configureToolStripMenuItem_Click ( object sender, EventArgs e ) : void
contextMenuStripTreeView_Opening ( object sender, CancelEventArgs e ) : void
deleteToolStripMenuItem_Click ( object sender, EventArgs e ) : void
renameToolStripMenuItem_Click ( object sender, EventArgs e ) : void
treeview_AfterSelect ( object sender, TreeViewEventArgs e ) : void
treeview_Deselected ( object sender, EventArgs e ) : void
treeview_KeyDown ( object sender, KeyEventArgs e ) : void

Method Details

AddNewControllerOfTypeWithPrompts() public method

public AddNewControllerOfTypeWithPrompts ( System.Guid controllerTypeId ) : bool
controllerTypeId System.Guid
return bool

ClearSelectedNodes() public method

public ClearSelectedNodes ( ) : void
return void

ConfigureController() public method

public ConfigureController ( IControllerDevice controller ) : bool
controller IControllerDevice
return bool

ControllerTree() public method

public ControllerTree ( ) : System
return System

DeleteControllersWithPrompt() public method

public DeleteControllersWithPrompt ( IEnumerable controllers ) : bool
controllers IEnumerable
return bool

OnControllerSelectionChanged() public method

public OnControllerSelectionChanged ( EventArgs e = null ) : void
e System.EventArgs
return void

OnControllersChanged() public method

public OnControllersChanged ( EventArgs e = null ) : void
e System.EventArgs
return void

PopulateControllerTree() public method

public PopulateControllerTree ( Dictionary controllersAndOutputs ) : void
controllersAndOutputs Dictionary
return void

PopulateControllerTree() public method

public PopulateControllerTree ( IControllerDevice controllerToSelect = null ) : void
controllerToSelect IControllerDevice
return void

RenameControllerWithPrompt() public method

public RenameControllerWithPrompt ( IControllerDevice outputController ) : bool
outputController IControllerDevice
return bool

SetControllerOutputCount() public method

public SetControllerOutputCount ( IControllerDevice controller ) : bool
controller IControllerDevice
return bool

UpdateScrollPosition() public method

public UpdateScrollPosition ( ) : void
return void