C# Class FilesBrowser.FilesListBox

Inheritance: System.Windows.Forms.ListBox
Exibir arquivo Open project: zyonee/opencbm

Private Properties

Property Type Description
AddDirectory void
AddFile void
GetFullName string
PopulatingItems void

Public Methods

Method Description
FilesListBox ( ) : System

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.

FilesListBox ( string directoryName ) : System

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.

Refresh ( ) : void

Protected Methods

Method Description
OnDrawItem ( DrawItemEventArgs e ) : void

Paints each file with its icon.

OnFileSelected ( FileSelectEventArgs fse ) : void

Fires the FileSelected event.

OnMouseDoubleClick ( System e ) : void

Overrides, when double click on the list - fires the FileSelected event, or, for directory, move into it.

Private Methods

Method Description
AddDirectory ( string directoryName ) : void

Adds the specified directory to the list.

AddFile ( string fileName ) : void

Adds the specified file to the list.

GetFullName ( string fileNameOnly ) : string

Gets the full file name, by adding the directory name to the file specified.

PopulatingItems ( ) : void

Populate the list box with files and directories according to the directoryName property

Method Details

FilesListBox() public method

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.
public FilesListBox ( ) : System
return System

FilesListBox() public method

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.
public FilesListBox ( string directoryName ) : System
directoryName string The directory to start from
return System

OnDrawItem() protected method

Paints each file with its icon.
protected OnDrawItem ( DrawItemEventArgs e ) : void
e System.Windows.Forms.DrawItemEventArgs
return void

OnFileSelected() protected method

Fires the FileSelected event.
protected OnFileSelected ( FileSelectEventArgs fse ) : void
fse FileSelectEventArgs
return void

OnMouseDoubleClick() protected method

Overrides, when double click on the list - fires the FileSelected event, or, for directory, move into it.
protected OnMouseDoubleClick ( System e ) : void
e System
return void

Refresh() public method

public Refresh ( ) : void
return void