Browse Source

2002-11-04 Tim Coleman <[email protected]>
* System.ComponentModel/RefreshProperties.cs:
* System.ComponentModel/RefreshPropertiesAttribute.cs:
Add new classes

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

Tim Coleman 23 years ago
parent
commit
b95ab5e7c0

+ 5 - 0
mcs/class/System/ChangeLog

@@ -1,3 +1,8 @@
+2002-11-04  Tim Coleman <[email protected]>
+	* System.ComponentModel/RefreshProperties.cs:
+	* System.ComponentModel/RefreshPropertiesAttribute.cs:
+		Add new classes
+
 2002-11-02  Duncan Mak  <[email protected]>
 
 	* list.unix: Added InvalidEnumArgumentException.

+ 18 - 0
mcs/class/System/System.ComponentModel/RefreshProperties.cs

@@ -0,0 +1,18 @@
+//
+// System.ComponentModel.RefreshProperties.cs
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+namespace System.ComponentModel
+{
+	[Serializable]
+	public enum RefreshProperties {
+		All,
+		None,
+		Repaint
+	}
+}

+ 63 - 0
mcs/class/System/System.ComponentModel/RefreshPropertiesAttribute.cs

@@ -0,0 +1,63 @@
+//
+// System.ComponentModel.RefreshPropertiesAttribute.cs
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// 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
+	}
+}