2007-01-03 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ControlPaint.cs
index 488512f45540514793cfee3449049431d731c996..d633c8721db64938fc7edf7a54353bf3712c644e 100644 (file)
@@ -401,37 +401,18 @@ namespace System.Windows.Forms {
                        ThemeEngine.Current.CPDrawRadioButton (graphics, rectangle, state);
                }
 
-               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
-               private static bool DRFNotImpl = false;
                public static void DrawReversibleFrame(Rectangle rectangle, Color backColor, FrameStyle style) {
-                       if (!DRFNotImpl) {
-                               DRFNotImpl = true;
-                               Console.WriteLine("NOT IMPLEMENTED: FillReversibleRectangle(Rectangle rectangle, Color backColor)");
-                       }
-                       //throw new NotImplementedException();
+                       XplatUI.DrawReversibleFrame (rectangle, backColor, style);
                }
 
-               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
-               private static bool DRLNotImpl = false;
                public static void DrawReversibleLine(Point start, Point end, Color backColor) {
-                       if (!DRLNotImpl) {
-                               DRLNotImpl = true;
-                               Console.WriteLine("NOT IMPLEMENTED: FillReversibleRectangle(Rectangle rectangle, Color backColor)");
-                       }
-                       //throw new NotImplementedException();
+                       XplatUI.DrawReversibleLine (start, end, backColor);
                }
 
-               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
-               private static bool FRRNotImpl = false;
                public static void FillReversibleRectangle(Rectangle rectangle, Color backColor) {
-                       if (!FRRNotImpl) {
-                               FRRNotImpl = true;
-                               Console.WriteLine("NOT IMPLEMENTED: FillReversibleRectangle(Rectangle rectangle, Color backColor)");
-                       }
-                       //throw new NotImplementedException();
+                       XplatUI.FillReversibleRectangle (rectangle, backColor);
                }
 
-
                public static void DrawScrollButton (Graphics graphics, int x, int y, int width, int height, ScrollButton button, ButtonState state) {
                        ThemeEngine.Current.CPDrawScrollButton (graphics, new Rectangle(x, y, width, height), button, state);
                }