C# Class CairoDesktop.SystemFile

Inheritance: INotifyPropertyChanged
Mostra file Open project: RevolutionSmythe/cairoshell Class Usage Examples

Public Methods

Method Description
GetFileIsImage ( string path ) : bool

Checks the path's file extension against the list of known types to determine if the file is an image.

SystemFile ( string filePath ) : System

Initializes a new instance of the SystemFile class using the CurrentDispatcher.

SystemFile ( string filePath, Dispatcher dispatcher ) : System

Initializes a new instance of the SystemFile class.

Private Methods

Method Description
GetDisplayIcon ( ) : void

Retrieves the display icon of the file. If the file is an image then it will return the image its self (e.g. preview).

Initialize ( ) : void

Initializes the details of the file.

OnPropertyChanged ( string propName ) : void

Method Details

GetFileIsImage() public static method

Checks the path's file extension against the list of known types to determine if the file is an image.
public static GetFileIsImage ( string path ) : bool
path string The file path.
return bool

SystemFile() public method

Initializes a new instance of the SystemFile class using the CurrentDispatcher.
public SystemFile ( string filePath ) : System
filePath string The file path of the file in question.
return System

SystemFile() public method

Initializes a new instance of the SystemFile class.
public SystemFile ( string filePath, Dispatcher dispatcher ) : System
filePath string The file path of the file in question.
dispatcher System.Windows.Threading.Dispatcher The current UI dispatcher.
return System