2003-04-11 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System / System.ComponentModel / RefreshPropertiesAttribute.cs
1 //
2 // System.ComponentModel.RefreshPropertiesAttribute.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
9 //
10
11 namespace System.ComponentModel {
12         [AttributeUsage (AttributeTargets.All)]
13         public sealed class RefreshPropertiesAttribute : Attribute {
14
15                 #region Fields
16
17                 RefreshProperties refresh;
18
19                 #endregion // Fields
20                 
21                 public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute (RefreshProperties.All);
22                 public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute (RefreshProperties.None);
23                 public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute (RefreshProperties.Repaint);
24
25                 #region Constructors
26
27                 public RefreshPropertiesAttribute (RefreshProperties refresh)
28                 {
29                         this.refresh = refresh;
30                 }
31
32                 #endregion // Constructors
33
34                 #region Properties
35
36                 public RefreshProperties RefreshProperties {
37                         get { return refresh; }
38                 }
39
40                 #endregion // Properties
41
42                 #region Methods
43
44                 [MonoTODO]
45                 public override bool Equals (object obj)
46                 {
47                         throw new NotImplementedException ();
48                 }
49
50                 [MonoTODO]
51                 public override int GetHashCode ()
52                 {
53                         throw new NotImplementedException ();
54                 }
55
56                 public override bool IsDefaultAttribute ()
57                 {
58                         return (this == RefreshPropertiesAttribute.Default);
59                 }
60
61                 #endregion // Methods
62         }
63 }