From: <nor...@us...> - 2007-06-13 21:01:11
|
Revision: 534 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=534&view=rev Author: northern_sky Date: 2007-06-13 14:01:09 -0700 (Wed, 13 Jun 2007) Log Message: ----------- removed old method Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-06-13 20:59:32 UTC (rev 533) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-06-13 21:01:09 UTC (rev 534) @@ -942,54 +942,6 @@ } } - /* public string GetNewImageFile(ApplicationItem curApp, string strExtension) - { - if (curApp == null) - return ""; - if (curApp.imageDirs == null) - return ""; - if (curApp.imageDirs.Length == 0) - return ""; - if ((this.Imagefile == "") && (this.Filename == "")) - return ""; - - string strFolder = ""; - string strFileName = ""; - string strCand = ""; - int iImgIndex = -1; - bool bFound = false; - - strFolder = curApp.imageDirs[0]; - - if (Imagefile != "") - { - strFileName = Imagefile.TrimEnd('\"'); - strFileName = strFileName.TrimStart('\"'); - strFileName = Path.GetFileName(strFileName); - } - else - { - strFileName = Filename.TrimEnd('\"'); - strFileName = strFileName.TrimStart('\"'); - strFileName = Path.GetFileName(strFileName); - } - strFileName = Path.ChangeExtension(strFileName, null); - - while (!bFound) - { - iImgIndex++; - if (iImgIndex == 0) - { - strCand = String.Format("{0}\\{1}{2}", strFolder, strFileName, strExtension); - } - else - { - strCand = String.Format("{0}\\{1}_{2}{3}", strFolder, strFileName, iImgIndex, strExtension); - } - bFound = !File.Exists(strCand); - } - return strCand; - }*/ public string GetNewValidImageFile(ApplicationItem curApp, string strExtension) { if (curApp == null) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |