C# 클래스 GUI.Controls.TreeViewWithSearchResults

파일 보기 프로젝트 열기: SteamDatabase/ValveResourceFormat 1 사용 예제들

공개 메소드들

메소드 설명
TreeViewWithSearchResults ( ) : System

Initializes a new instance of the TreeViewWithSearchResults class. Require a default constructor for the designer.

TreeViewWithSearchResults ( ImageList imageList ) : System

Initializes a new instance of the TreeViewWithSearchResults class. Constructor to require an image list for display on listed TreeView nodes and ListView items.

비공개 메소드들

메소드 설명
AddNodeToListView ( TreeNode node ) : void
InitializeTreeViewFromPackage ( string name, Package package ) : void

Initializes the TreeView in the control with the contents of the passed Package. Contents are sorted and expanded by default.

MainListView_MouseDoubleClick ( object sender, MouseEventArgs e ) : void

If the user double clicks (with left mouse button) on a ListViewItem, send up an event to subscribers that such an action has occurred. Also send up whatever object is represented by the ListViewItem.

MainListView_MouseDown ( object sender, MouseEventArgs e ) : void

When the user clicks in the ListView, check if the user clicks outside of a ListViewItem. If so, de-select any previously selected ListViewItems. In addition, if the user right clicked an item in the ListView, let our subscribers know what was clicked and where in case a context menu is needed to be shown.

MainListView_Resize ( object sender, EventArgs e ) : void
ResizeListViewColumns ( ) : void
SearchAndFillResults ( string searchText, SearchType selectedSearchType ) : void

Performs a search for the entered text and search types. Before a search is performed, the contents of the ListView (previous search results) are cleared. Results of whatever search function is used are displayed in the ListView with name, file size, and file type.

TreeViewWithSearchResults_Load ( object sender, EventArgs e ) : void

When the form loads, create the columns that we want to see such as name, file size, and file type.

메소드 상세

TreeViewWithSearchResults() 공개 메소드

Initializes a new instance of the TreeViewWithSearchResults class. Require a default constructor for the designer.
public TreeViewWithSearchResults ( ) : System
리턴 System

TreeViewWithSearchResults() 공개 메소드

Initializes a new instance of the TreeViewWithSearchResults class. Constructor to require an image list for display on listed TreeView nodes and ListView items.
public TreeViewWithSearchResults ( ImageList imageList ) : System
imageList ImageList
리턴 System