[Quantproject-developers] QuantProject/b2_DataAccess DataBaseLocator.cs,1.3,1.4
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-08-10 16:47:08
|
Update of /cvsroot/quantproject/QuantProject/b2_DataAccess In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26935/b2_DataAccess Modified Files: DataBaseLocator.cs Log Message: We are a bit lazy... but finally, the bug has been fixed :-) Now the database location is not asked if it is not needed !!! Index: DataBaseLocator.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b2_DataAccess/DataBaseLocator.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DataBaseLocator.cs 24 Jun 2005 22:35:56 -0000 1.3 --- DataBaseLocator.cs 10 Aug 2005 16:46:59 -0000 1.4 *************** *** 45,49 **** this.dataBaseType = fileExtension; //it looks for the file in the application directory ! if (!File.Exists("DataBase.xml")) createXmlFile(); --- 45,53 ---- this.dataBaseType = fileExtension; //it looks for the file in the application directory ! // if (!File.Exists("DataBase.xml")) ! string xmlPath = Application.ExecutablePath.Substring(0, ! Application.ExecutablePath.LastIndexOf('\\') ) ! + @"\DataBase.xml"; ! if (!File.Exists( xmlPath )) createXmlFile(); |