123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- #endregion
- using System;
- namespace Wayne.Lib.StateEngine
- {
-
-
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
- public sealed class ImageDescriptionAttribute : Attribute
- {
- #region Fields
- private string imageFileName;
- private string description;
- #endregion
- #region Construction
-
-
-
- public ImageDescriptionAttribute()
- {
- this.description = "";
- this.imageFileName = "";
- }
-
-
-
-
-
- public ImageDescriptionAttribute(string imageFileName)
- {
- this.imageFileName = imageFileName;
- this.description = "";
- }
-
-
-
-
-
-
- public ImageDescriptionAttribute(string imageFileName, string description)
- {
- this.imageFileName = imageFileName;
- this.description = description;
- }
- #endregion
- #region Properties
-
-
-
- public string ImageFileName
- {
- get { return imageFileName; }
- }
-
-
-
- public string Description
- {
- get { return description; }
- }
-
-
-
-
-
- public static string GetDefaultImageFileName(string factoryName)
- {
- return string.Concat(factoryName, DefaultImageFileExtension);
- }
-
-
-
-
- public static string DefaultImageFileExtension
- {
- get { return ".png"; }
- }
-
-
-
-
- public static string StateMachineDefaultMainImage
- {
- get { return string.Concat("MainStates", DefaultImageFileExtension); }
- }
- #endregion
- }
- }
|