public static string GetConfigFilePath() { string appPath = ApplicationStartUp.GetAppPath(); appPath = appPath.Equals("") ? "PhoneDirectory.exe.config" : appPath + ".config"; return(appPath); }
public static string GetApplicationPath() { string appPath = ApplicationStartUp.GetAppPath(); if (!appPath.Equals("")) { int i = appPath.IndexOf("PhoneDirectory.exe"); appPath = appPath.Substring(0, i); } return(appPath); }