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.
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. |
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.
type | A Type from which the resource manager derives all information for finding resource files. |
MultiIcon CSharpUtilities::ExtendedResourceManager::GetMultiIcon | ( | string | key | ) | [inline] |
Get a MultiIcon resource from the assembly's set of resources.
key | Key string used to identify the desired resource. |
Icon CSharpUtilities::ExtendedResourceManager::GetIcon | ( | string | key | ) | [inline] |
Get an Icon resource from the assembly's set of resources.
key | Key string used to identify the desired resource. |
Image CSharpUtilities::ExtendedResourceManager::GetImage | ( | string | key | ) | [inline] |
Get an Image resource from the assembly's set of resources.
key | Key string used to identify the desired resource. |