C# Class Longkong.Utility.Resources

Afficher le fichier Open project: Longkong/Pojjaman

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetFileResource() public static méthode

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.
Résultat Stream

GetIconResource() public static méthode

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