CSharpUtilities::ExtendedResourceManager Class Reference


Detailed Description

This class extends standard ComponentResourceManager and adds the support to MultiIcon, Icon and Image resources.

C++/CLI projects can manage a single instance of this class and use it to implement resource management for the assembly. By providing static methods accessing a single instance of this class, the resources management class may more closely resemble the designer-generated resource management classes in C# projects.

List of all members.

Public Member Functions

  ExtendedResourceManager ()
  Constructor.
  ExtendedResourceManager (Type type)
  Construct a resource manager that looks up resources in statellite assemblies based on information from the specified type.
MultiIcon  GetMultiIcon (string key)
  Get a MultiIcon resource from the assembly's set of resources.
Icon  GetIcon (string key)
  Get an Icon resource from the assembly's set of resources.
Image  GetImage (string key)
  Get an Image resource from the assembly's set of resources.

Constructor & Destructor Documentation

CSharpUtilities::ExtendedResourceManager::ExtendedResourceManager ( ) [inline]

Constructor.

CSharpUtilities::ExtendedResourceManager::ExtendedResourceManager ( Type  type ) [inline]

Construct a resource manager that looks up resources in statellite assemblies based on information from the specified type.

Parameters:
type A Type from which the resource manager derives all information for finding resource files.

Member Function Documentation

MultiIcon CSharpUtilities::ExtendedResourceManager::GetMultiIcon ( string  key ) [inline]

Get a MultiIcon resource from the assembly's set of resources.

Parameters:
key Key string used to identify the desired resource.
Returns:
The resource specified by the given key, or null if the resource is not found.
Icon CSharpUtilities::ExtendedResourceManager::GetIcon ( string  key ) [inline]

Get an Icon resource from the assembly's set of resources.

Parameters:
key Key string used to identify the desired resource.
Returns:
The resource specified by the given key, or null if the resource is not found.
Image CSharpUtilities::ExtendedResourceManager::GetImage ( string  key ) [inline]

Get an Image resource from the assembly's set of resources.

Parameters:
key Key string used to identify the desired resource.
Returns:
The resource specified by the given key, or null if the resource is not found.

CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager
CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager CSharpUtilities::ExtendedResourceManager