RefreshPropertiesAttribute.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // System.ComponentModel.RefreshPropertiesAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. //
  10. namespace System.ComponentModel {
  11. [AttributeUsage (AttributeTargets.All)]
  12. public sealed class RefreshPropertiesAttribute : Attribute {
  13. #region Fields
  14. RefreshProperties refresh;
  15. #endregion // Fields
  16. public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute (RefreshProperties.All);
  17. public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute (RefreshProperties.None);
  18. public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute (RefreshProperties.Repaint);
  19. #region Constructors
  20. public RefreshPropertiesAttribute (RefreshProperties refresh)
  21. {
  22. this.refresh = refresh;
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. public RefreshProperties RefreshProperties {
  27. get { return refresh; }
  28. }
  29. #endregion // Properties
  30. #region Methods
  31. [MonoTODO]
  32. public override bool Equals (object obj)
  33. {
  34. throw new NotImplementedException ();
  35. }
  36. [MonoTODO]
  37. public override int GetHashCode ()
  38. {
  39. throw new NotImplementedException ();
  40. }
  41. public override bool IsDefaultAttribute ()
  42. {
  43. return (this == RefreshPropertiesAttribute.Default);
  44. }
  45. #endregion // Methods
  46. }
  47. }