dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Toolkit ToolkitManage


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Toolkit ToolkitManager.cs,1.2,1.3
Date: Thu, 19 Jun 2003 04:02:20 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit
In directory subversions:/tmp/cvs-serv6093/System.Drawing/Toolkit

Modified Files:
        ToolkitManager.cs 
Log Message:


Detect Win32 systems and load "System.Drawing.Win32"
instead of "System.Drawing.Xsharp".


Index: ToolkitManager.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/ToolkitManager.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ToolkitManager.cs   9 Jun 2003 22:15:09 -0000       1.2
--- ToolkitManager.cs   19 Jun 2003 08:02:18 -0000      1.3
***************
*** 25,28 ****
--- 25,29 ----
  using System.Drawing.Printing;
  using System.Reflection;
+ using System.IO;
  
  public sealed class ToolkitManager
***************
*** 125,132 ****
                        {
                        #if CONFIG_REFLECTION
-                               // TODO: handle other graphical toolkits.
- 
                                // Determine the name of the toolkit we wish to 
use.
!                               String name = "System.Drawing.Xsharp";
  
                                // Load the toolkit's assembly.
--- 126,140 ----
                        {
                        #if CONFIG_REFLECTION
                                // Determine the name of the toolkit we wish to 
use.
!                               String name;
!                               if(Path.DirectorySeparatorChar == '\\' ||
!                                  Path.AltDirectorySeparatorChar == '\\')
!                               {
!                                       name = "System.Drawing.Win32";
!                               }
!                               else
!                               {
!                                       name = "System.Drawing.Xsharp";
!                               }
  
                                // Load the toolkit's assembly.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]