Quellcode durchsuchen

- Fix from John BouAntoun: Raise ForeColorChanged event when text color is
changed

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

Peter Dennis Bartok vor 21 Jahren
Ursprung
Commit
f88179bfad
1 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
  1. 10 3
      mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

+ 10 - 3
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

@@ -29,9 +29,13 @@
 //	Jaak Simm		[email protected]
 //	John Sohn		[email protected]
 //
-// $Revision: 1.68 $
+// $Revision: 1.69 $
 // $Modtime: $
 // $Log: Control.cs,v $
+// Revision 1.69  2004/10/13 02:57:36  pbartok
+// - Fix from John BouAntoun: Raise ForeColorChanged event when text color is
+//   changed
+//
 // Revision 1.68  2004/10/06 09:59:05  jordi
 // removes warnings from compilation
 //
@@ -1354,8 +1358,11 @@ namespace System.Windows.Forms
 			}
 
 			set {
-				foreground_color=value;
-				Refresh();
+				if (foreground_color != value) {
+					foreground_color=value;
+					Refresh();
+					OnForeColorChanged(EventArgs.Empty);
+				}
 			}
 		}