2002-11-04 Tim Coleman <tim@timcoleman.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Mon, 4 Nov 2002 20:05:50 +0000 (20:05 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Mon, 4 Nov 2002 20:05:50 +0000 (20:05 -0000)
        * System.ComponentModel/RefreshProperties.cs:
        * System.ComponentModel/RefreshPropertiesAttribute.cs:
                Add new classes

svn path=/trunk/mcs/; revision=8820

mcs/class/System/ChangeLog
mcs/class/System/System.ComponentModel/RefreshProperties.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/RefreshPropertiesAttribute.cs [new file with mode: 0644]

index 9b9d8dcf4c177c7d5dbb229b1408d0b7a88b7696..4abc52b90156f1dd47310ec476ed89ec05404697 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-04  Tim Coleman <tim@timcoleman.com>
+       * System.ComponentModel/RefreshProperties.cs:
+       * System.ComponentModel/RefreshPropertiesAttribute.cs:
+               Add new classes
+
 2002-11-02  Duncan Mak  <duncan@ximian.com>
 
        * list.unix: Added InvalidEnumArgumentException.
diff --git a/mcs/class/System/System.ComponentModel/RefreshProperties.cs b/mcs/class/System/System.ComponentModel/RefreshProperties.cs
new file mode 100644 (file)
index 0000000..4a7d7db
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.ComponentModel.RefreshProperties.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+namespace System.ComponentModel
+{
+       [Serializable]
+       public enum RefreshProperties {
+               All,
+               None,
+               Repaint
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/RefreshPropertiesAttribute.cs b/mcs/class/System/System.ComponentModel/RefreshPropertiesAttribute.cs
new file mode 100644 (file)
index 0000000..cadbf29
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// System.ComponentModel.RefreshPropertiesAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+//
+
+namespace System.ComponentModel {
+       [AttributeUsage (AttributeTargets.All)]
+       public sealed class RefreshPropertiesAttribute : Attribute {
+
+               #region Fields
+
+               RefreshProperties refresh;
+
+               #endregion // Fields
+               
+               public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute (RefreshProperties.All);
+               public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute (RefreshProperties.None);
+               public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute (RefreshProperties.Repaint);
+
+               #region Constructors
+
+               public RefreshPropertiesAttribute (RefreshProperties refresh)
+               {
+                       this.refresh = refresh;
+               }
+
+               #endregion // Constructors
+
+               #region Properties
+
+               public RefreshProperties RefreshProperties {
+                       get { return refresh; }
+               }
+
+               #endregion // Properties
+
+               #region Methods
+
+               [MonoTODO]
+               public override bool Equals (object obj)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override int GetHashCode ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public override bool IsDefaultAttribute ()
+               {
+                       return (this == RefreshPropertiesAttribute.Default);
+               }
+
+               #endregion // Methods
+       }
+}