49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
using System;
|
|
using System.Windows.Media.Imaging;
|
|
|
|
namespace DTS.Common.Interface
|
|
{
|
|
#region ImageAttribute
|
|
public interface IAssemblyImageAttribute
|
|
{
|
|
string AssemblyName { get; }
|
|
BitmapImage AssemblyImage { get; }
|
|
eAssemblyRegion AssemblyRegion { get; }
|
|
Type GetType();
|
|
BitmapImage GetAssemblyImage();
|
|
string GetAssemblyName();
|
|
eAssemblyRegion GetAssemblyRegion();
|
|
}
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
|
|
public abstract class ImageAttribute : Attribute, IAssemblyImageAttribute
|
|
{
|
|
public abstract string AssemblyName { get; }
|
|
public abstract string AssemblyGroup { get; }
|
|
public abstract eAssemblyRegion AssemblyRegion { get; }
|
|
public abstract BitmapImage AssemblyImage { get; }
|
|
public abstract Type GetAttributeType();
|
|
public abstract BitmapImage GetAssemblyImage();
|
|
public abstract string GetAssemblyName();
|
|
public abstract string GetAssemblyGroup();
|
|
|
|
public abstract eAssemblyRegion GetAssemblyRegion();
|
|
}
|
|
#endregion ImageAttribute
|
|
|
|
#region NameAttribute
|
|
public interface IAssemblyNameAttribute
|
|
{
|
|
String AssemblyName { get; }
|
|
Type GetType();
|
|
string GetAssemblyName();
|
|
}
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
|
|
public abstract class TextAttribute : Attribute, IAssemblyNameAttribute
|
|
{
|
|
public abstract string AssemblyName { get; }
|
|
public abstract Type GetAttributeType();
|
|
public abstract string GetAssemblyName();
|
|
}
|
|
#endregion NameAttribute
|
|
}
|