C# Класс CairoDesktop.SystemFile

Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetFileIsImage() публичный статический Метод

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.
Результат bool

SystemFile() публичный Метод

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.
Результат System

SystemFile() публичный Метод

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.
Результат System