Author: atsushi
Date: 2007-01-05 03:22:27 -0500 (Fri, 05 Jan 2007)
New Revision: 70526

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs
Log:
2006-01-05  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
          determine whether to use yard-pound or not (bug #78399).



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-05 07:14:41 UTC (rev 70525)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-05 08:22:27 UTC (rev 70526)
@@ -1,3 +1,8 @@
+2006-01-05  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
+         determine whether to use yard-pound or not (bug #78399).
+
 2006-01-04  Alexander Olk  <[EMAIL PROTECTED]>
 
        * FileDialog.cs: Sebastien fixed the libgdiplus png alpha

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs   
    2007-01-05 07:14:41 UTC (rev 70525)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs   
    2007-01-05 08:22:27 UTC (rev 70526)
@@ -429,16 +429,7 @@
                }
 
                static bool UseYardPound {
-                       get {
-                               switch (CultureInfo.CurrentUICulture.Name) {
-                               case "en-US":
-                               case "en-GB":
-                                       return true;
-                               default:
-                                       return false;
-                               }
-                       }
-               }
+                       get { return !RegionInfo.CurrentRegion.IsMetric; }      
                }
 
                // .Net uses PrinterSettings property if it is not null.
                // Otherwise, it uses PageSettings.PrinterSettings to set 
values.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to