C# Class MPTagThat.TreeViewControl

Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: MediaPortal/MPTagThat Class Usage Examples

Public Methods

Method Description
DeleteFolder ( ) : void
Init ( ) : void
RefreshFolders ( ) : void

Refreshes the Foldrs

TreeViewControl ( Main main ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Capture Key presses in the Filter GridView

Private Methods

Method Description
GetNode ( Point point ) : TreeNode

Gets the treenode, where the cursor currently points to

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsSpecialFilterColumn ( string filterField ) : bool
LoadSettings ( ) : void
LocaliseScreen ( ) : void

Localise the Screen

OnMessageReceive ( MPTagThat.Core.QueueMessage message ) : void

Handle Messages

RefreshFilter ( ) : void

Called when Rows are Deleted / Changed Fileter Values need to be updated

SetNodeHoverColor ( TreeNode node ) : void
SwitchMode ( ) : void
btJumpToFolder_Click ( object sender, EventArgs e ) : void

Jump to the selected Folder

btnRefreshFolder_Click ( object sender, EventArgs e ) : void

Refresh the Folder List

cbDataProvider_SelectedIndexChanged ( object sender, EventArgs e ) : void
cbListFormats_SelectedIndexChanged ( object sender, EventArgs e ) : void

A New Filter Format has been selected Update the filter

cbSelectedFolder_KeyDown ( object sender, KeyEventArgs e ) : void

The user pressed Enter in the combo box

ckUseTagFilter_CheckedChanged ( object sender, EventArgs e ) : void

The stats of the Use Tag Fileter Check box has changed Set the filter Value

contextMenuTreeViewCopy_Click ( object sender, EventArgs e ) : void

Copy Button has been selected in Context Menu

contextMenuTreeViewCut_Click ( object sender, EventArgs e ) : void

Cut Button has been selected in Context Menu

contextMenuTreeViewDelete_Click ( object sender, EventArgs e ) : void

Delete Button on Treeview Context Menu has been clicked

contextMenuTreeViewPaste_Click ( object sender, EventArgs e ) : void

Paste Button has been selected in Context Menu

contextMenuTreeViewRefresh_Click ( object sender, EventArgs e ) : void

Refresh Button on Treeview Context Menu has been clicked

dataGridViewTagFilter_CellEndEdit ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void

A Row has been changed. Refreah Filter

dataGridViewTagFilter_CurrentCellDirtyStateChanged ( object sender, EventArgs e ) : void

Handles editing of data columns

dataGridViewTagFilter_DataError ( object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e ) : void

Handle Data Error

dataGridViewTagFilter_MouseUp ( object sender, MouseEventArgs e ) : void
dataGridViewTagFilter_RowsRemoved ( object sender, System.Windows.Forms.DataGridViewRowsRemovedEventArgs e ) : void

A Row has been deleted. Refreah Filter

menuDeleteFilter_Click ( object sender, EventArgs e ) : void
menuInsertFilter_Click ( object sender, EventArgs e ) : void
tbFileMask_TextChanged ( object sender, EventArgs e ) : void

The File Mask is changed. Update the filter

treeViewFolderBrowser_AfterLabelEdit ( object sender, System.Windows.Forms.NodeLabelEditEventArgs e ) : void

THe user edited (renamed) a folder

treeViewFolderBrowser_AfterSelect ( object sender, TreeViewEventArgs e ) : void

A Folder has been selected in the TreeView. Read the content

treeViewFolderBrowser_BeforeSelect ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void

A new Folder has been selected Only allow navigation, if no folder scanning is active

treeViewFolderBrowser_Click ( object sender, EventArgs e ) : void

The User selected the Treeview

treeViewFolderBrowser_DragDrop ( object sender, DragEventArgs e ) : void

The drag and drop is completed. do the actual move / copy

treeViewFolderBrowser_DragOver ( object sender, DragEventArgs e ) : void

Some files are dragged over the Treeview

treeViewFolderBrowser_Enter ( object sender, EventArgs e ) : void

The Treeview Control is the active control

treeViewFolderBrowser_Leave ( object sender, EventArgs e ) : void

The Treeview Control is no longer the active Control

treeViewFolderBrowser_MouseUp ( object sender, MouseEventArgs e ) : void

Show the Treview Context Menu on Right Mouse Click

treeViewFolderBrowser_NodeMouseHover ( object sender, System.Windows.Forms.TreeNodeMouseHoverEventArgs e ) : void

The user hoevrs with the mouse over a node.

Method Details

DeleteFolder() public method

public DeleteFolder ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Init() public method

public Init ( ) : void
return void

ProcessCmdKey() protected method

Capture Key presses in the Filter GridView
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

RefreshFolders() public method

Refreshes the Foldrs
public RefreshFolders ( ) : void
return void

TreeViewControl() public method

public TreeViewControl ( Main main ) : System
main Main
return System