C# Class Longkong.Utility.Resources

Mostra file Open project: Longkong/Pojjaman

Public Methods

Method Description
GetBitmapResource ( string resourceFile ) : Bitmap

Retrieves bitmap resource from assembly.

GetFileResource ( string resourceFile ) : Stream

Retrieves a file resource stream from assembly.

GetIconResource ( string resourceFile ) : Icon

Retrieves icon resource from assembly.

Private Methods

Method Description
CreateFullResourcePath ( string resourceNamespace, string resourceFile ) : string

Concatenates resource namespace and file name. Checks to make sure that the namespace is not empty before appending the resource file name.

GetResourceStream ( string resourceFile ) : Stream

Returns resource stream.

Resources ( ) : System

Private constructor to prevent the compiler from automatically creating a default public constructor.

Method Details

GetBitmapResource() public static method

Retrieves bitmap resource from assembly.
public static GetBitmapResource ( string resourceFile ) : Bitmap
resourceFile string The name of the resource file that is /// to be retrieved.
return System.Drawing.Bitmap

GetFileResource() public static method

Retrieves a file resource stream from assembly.
public static GetFileResource ( string resourceFile ) : Stream
resourceFile string The name of the resource file that is /// to be retrieved.
return Stream

GetIconResource() public static method

Retrieves icon resource from assembly.
public static GetIconResource ( string resourceFile ) : Icon
resourceFile string The name of the icon file.
return System.Drawing.Icon