[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-libs-commits] CVS: xsharp/Xsharp/XWindows Application.cs,1.1,1.2
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-libs-commits] CVS: xsharp/Xsharp/XWindows Application.cs,1.1,1.2 |
Date: |
Sat, 28 Sep 2002 00:56:19 -0400 |
Update of /cvsroot/dotgnu-libs/xsharp/Xsharp/XWindows
In directory subversions:/tmp/cvs-serv22836/Xsharp/XWindows
Modified Files:
Application.cs
Log Message:
Strip the pathname from the program name to get the default
application resource name.
Index: Application.cs
===================================================================
RCS file: /cvsroot/dotgnu-libs/xsharp/Xsharp/XWindows/Application.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Application.cs 28 Sep 2002 04:47:49 -0000 1.1
--- Application.cs 28 Sep 2002 04:56:17 -0000 1.2
***************
*** 95,99 ****
if(name == null)
{
! name = programName;
}
if(args == null)
--- 95,113 ----
if(name == null)
{
! // Strip the path from the program name
to
! // get the default resource name to use.
! int index =
programName.LastIndexOf(programName, '/');
! if(index == -1)
! {
! index =
programName.LastIndexOf(programName, '\\');
! }
! if(index != -1)
! {
! name =
programName.Substring(index);
! }
! else
! {
! name = programName;
! }
}
if(args == null)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-libs-commits] CVS: xsharp/Xsharp/XWindows Application.cs,1.1,1.2,
Rhys Weatherley <address@hidden> <=