C# 클래스 FilesBrowser.FilesListBox

상속: System.Windows.Forms.ListBox
파일 보기 프로젝트 열기: zyonee/opencbm

Private Properties

프로퍼티 타입 설명
AddDirectory void
AddFile void
GetFullName string
PopulatingItems void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

FilesListBox() 공개 메소드

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

FilesListBox() 공개 메소드

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
리턴 System

OnDrawItem() 보호된 메소드

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

OnFileSelected() 보호된 메소드

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

OnMouseDoubleClick() 보호된 메소드

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

Refresh() 공개 메소드

public Refresh ( ) : void
리턴 void