Prechádzať zdrojové kódy

* Control.cs: corecompare work here too.

svn path=/trunk/mcs/; revision=70019
Chris Toshok 19 rokov pred
rodič
commit
1a0defbbe1

+ 2 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,5 +1,7 @@
 2006-12-24  Chris Toshok  <[email protected]>
 
+	* Control.cs: corecompare work here too.
+
 	* DataGridViewElement.cs, DataGridView.cs,
 	DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
 	DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,

+ 35 - 4
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

@@ -2835,11 +2835,9 @@ namespace System.Windows.Forms
 		[Browsable(false)]
 		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 #if NET_2_0
-		protected internal virtual bool ShowKeyboardCues {
-#else
-		protected bool ShowKeyboardCues {
+		internal virtual
 #endif
-
+		protected bool ShowKeyboardCues {
 			get {
 				return true;
 			}
@@ -3488,6 +3486,13 @@ namespace System.Windows.Forms
 			}
 		}
 
+#if NET_2_0
+		protected virtual AccessibleObject GetAccessibilityObjectById (int objectId)
+		{
+			throw new NotImplementedException ();
+		}
+#endif
+
 		protected internal bool GetStyle(ControlStyles flag) {
 			return (control_style & flag) != 0;
 		}
@@ -4731,6 +4736,32 @@ namespace System.Windows.Forms
 				eh (this, e);
 		}
 
+#if NET_2_0
+		[EditorBrowsable (EditorBrowsableState.Advanced)]
+		protected virtual void OnMouseCaptureChanged (EventArgs e)
+		{
+			EventHandler eh = (EventHandler)(Events [MouseCaptureChangedEvent]);
+			if (eh != null)
+				eh (this, e);
+		}
+
+		[EditorBrowsable (EditorBrowsableState.Advanced)]
+		protected virtual void OnMouseClick (MouseEventArgs e)
+		{
+			MouseEventHandler eh = (MouseEventHandler)(Events [MouseClickEvent]);
+			if (eh != null)
+				eh (this, e);
+		}
+
+		[EditorBrowsable (EditorBrowsableState.Advanced)]
+		protected virtual void OnMouseDoubleClick (MouseEventArgs e)
+		{
+			MouseEventHandler eh = (MouseEventHandler)(Events [MouseDoubleClickEvent]);
+			if (eh != null)
+				eh (this, e);
+		}
+#endif
+
 		[EditorBrowsable(EditorBrowsableState.Advanced)]
 		protected virtual void OnMouseDown(MouseEventArgs e) {
 			MouseEventHandler eh = (MouseEventHandler)(Events [MouseDownEvent]);