| 1234567891011121314151617181920212223242526272829303132333435 |
- //
- // System.Drawing.SRDescriptionAttribute.cs
- //
- // Authors:
- // Andreas Nahr ([email protected])
- //
- // (C) 2004 Andreas Nahr
- //
- using System;
- using System.ComponentModel;
- namespace System.Drawing
- {
- [AttributeUsage(AttributeTargets.All)]
- internal class SRDescriptionAttribute : DescriptionAttribute
- {
- private bool isReplaced = false;
- public SRDescriptionAttribute (string description)
- : base (description)
- {
- }
- public override string Description {
- get {
- if (!isReplaced) {
- isReplaced = true;
- DescriptionValue = Locale.GetText (DescriptionValue);
- }
- return DescriptionValue;
- }
- }
- }
- }
|