C# Class FilesBrowser.FilesListBox

Inheritance: System.Windows.Forms.ListBox
Afficher le fichier Open project: zyonee/opencbm

Private Properties

Свойство Type Description
AddDirectory void
AddFile void
GetFullName string
PopulatingItems void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

FilesListBox() public méthode

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
Résultat System

OnDrawItem() protected méthode

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

OnFileSelected() protected méthode

Fires the FileSelected event.
protected OnFileSelected ( FileSelectEventArgs fse ) : void
fse FileSelectEventArgs
Résultat void

OnMouseDoubleClick() protected méthode

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

Refresh() public méthode

public Refresh ( ) : void
Résultat void