C# Класс MetroIde.Helpers.VariousFunctions

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

Открытые свойства

Свойство Тип Описание
DisallowedPluginChars char[]

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

Метод Описание
BitmapImageToBitmap ( BitmapImage bitmapImage ) : Bitmap

Convert a BitmapImage to a Bitmap

BitmapToBitmapImage ( Bitmap bitmap ) : BitmapImage

Convert a Bitmap to a BitmapImage

CheckIfFileLocked ( FileInfo file ) : bool
GetApplicationAssemblyLocation ( ) : string

Gets the location of the applications assembly (lulz, assembly.exe)

GetApplicationLocation ( ) : string

Gets the parent directory of the application's exe

GetApplicationVersion ( ) : string

Gets the application's version number.

SterilizeGamePluginFolder ( string gameName ) : string

Remove disallowed chars from the game name

SterilizeTagClassName ( string name ) : string

Replaces invalid filename characters in a tag class with an underscore (_) so that it can be used as part of a path.

StreamToByteArray ( Stream input ) : byte[]

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

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

Convert a BitmapImage to a Bitmap
public static BitmapImageToBitmap ( BitmapImage bitmapImage ) : Bitmap
bitmapImage System.Windows.Media.Imaging.BitmapImage
Результат System.Drawing.Bitmap

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

Convert a Bitmap to a BitmapImage
public static BitmapToBitmapImage ( Bitmap bitmap ) : BitmapImage
bitmap System.Drawing.Bitmap
Результат System.Windows.Media.Imaging.BitmapImage

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

public static CheckIfFileLocked ( FileInfo file ) : bool
file System.IO.FileInfo
Результат bool

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

Gets the location of the applications assembly (lulz, assembly.exe)
public static GetApplicationAssemblyLocation ( ) : string
Результат string

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

Gets the parent directory of the application's exe
public static GetApplicationLocation ( ) : string
Результат string

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

Gets the application's version number.
public static GetApplicationVersion ( ) : string
Результат string

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

Remove disallowed chars from the game name
public static SterilizeGamePluginFolder ( string gameName ) : string
gameName string Game Name from the XML file
Результат string

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

Replaces invalid filename characters in a tag class with an underscore (_) so that it can be used as part of a path.
public static SterilizeTagClassName ( string name ) : string
name string The tag class string to replace invalid characters in.
Результат string

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

public static StreamToByteArray ( Stream input ) : byte[]
input System.IO.Stream
Результат byte[]

Описание свойств

DisallowedPluginChars публичное статическое свойство

public static char[] DisallowedPluginChars
Результат char[]