C# Class MetroIde.Helpers.VariousFunctions

Mostrar archivo Open project: ChadSki/Quickbeam Class Usage Examples

Public Properties

Property Type Description
DisallowedPluginChars char[]

Public Methods

Method Description
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[]

Method Details

BitmapImageToBitmap() public static method

Convert a BitmapImage to a Bitmap
public static BitmapImageToBitmap ( BitmapImage bitmapImage ) : Bitmap
bitmapImage System.Windows.Media.Imaging.BitmapImage
return System.Drawing.Bitmap

BitmapToBitmapImage() public static method

Convert a Bitmap to a BitmapImage
public static BitmapToBitmapImage ( Bitmap bitmap ) : BitmapImage
bitmap System.Drawing.Bitmap
return System.Windows.Media.Imaging.BitmapImage

CheckIfFileLocked() public static method

public static CheckIfFileLocked ( FileInfo file ) : bool
file System.IO.FileInfo
return bool

GetApplicationAssemblyLocation() public static method

Gets the location of the applications assembly (lulz, assembly.exe)
public static GetApplicationAssemblyLocation ( ) : string
return string

GetApplicationLocation() public static method

Gets the parent directory of the application's exe
public static GetApplicationLocation ( ) : string
return string

GetApplicationVersion() public static method

Gets the application's version number.
public static GetApplicationVersion ( ) : string
return string

SterilizeGamePluginFolder() public static method

Remove disallowed chars from the game name
public static SterilizeGamePluginFolder ( string gameName ) : string
gameName string Game Name from the XML file
return string

SterilizeTagClassName() public static method

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.
return string

StreamToByteArray() public static method

public static StreamToByteArray ( Stream input ) : byte[]
input System.IO.Stream
return byte[]

Property Details

DisallowedPluginChars public_oe static_oe property

public static char[] DisallowedPluginChars
return char[]