Author: schaveyt
Date: 2007-03-11 21:34:56 -0500 (Sun, 11 Mar 2007)
New Revision: 74084
Modified:
trunk/cocoa-sharp/samples/ViewSample.cs
Log:
Because the Cocoa namespace now has a Font class, we must fully qualifiy the
use of System.Drawing.Font.
Modified: trunk/cocoa-sharp/samples/ViewSample.cs
===================================================================
--- trunk/cocoa-sharp/samples/ViewSample.cs 2007-03-12 02:17:51 UTC (rev
74083)
+++ trunk/cocoa-sharp/samples/ViewSample.cs 2007-03-12 02:34:56 UTC (rev
74084)
@@ -45,13 +45,13 @@
Rectangle r = new Rectangle ((int)this.Bounds.Origin.X,
(int)this.Bounds.Origin.Y, (int)this.Bounds.Size.Width,
(int)this.Bounds.Size.Height);
Brush b = new SolidBrush (System.Drawing.Color.Red);
g.FillRectangle (b, r);
- Font f = new Font ("Times New Roman",
(int)(this.Bounds.Size.Height/15));
+ System.Drawing.Font f = new System.Drawing.Font ("Times
New Roman", (int)(this.Bounds.Size.Height/15));
b = new SolidBrush (System.Drawing.Color.White);
g.DrawString ("This is System.Drawing Text\non a
g.FillRectangle background!\nTry Resizing the Window!", f, b, 10, 10);
#else
BezierPath.FillRect (this.Bounds);
Graphics g = Graphics.FromHwnd (this.NativeObject);
- Font f = new Font ("Times New Roman",
(int)(this.Bounds.Size.Height/15));
+ System.Drawing.Font f = new System.Drawing.Font ("Times
New Roman", (int)(this.Bounds.Size.Height/15));
Brush b = new SolidBrush (System.Drawing.Color.White);
g.DrawString ("This is System.Drawing Text\non a
NSBezierPath background!\nTry Resizing the Window!", f, b, 10, 10);
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches