コード例 #1
0
ファイル: Constants.cs プロジェクト: anhvaut/phone-directory
        public static string GetConfigFilePath()
        {
            string appPath = ApplicationStartUp.GetAppPath();

            appPath = appPath.Equals("") ? "PhoneDirectory.exe.config" : appPath + ".config";

            return(appPath);
        }
コード例 #2
0
ファイル: Constants.cs プロジェクト: anhvaut/phone-directory
        public static string GetApplicationPath()
        {
            string appPath = ApplicationStartUp.GetAppPath();

            if (!appPath.Equals(""))
            {
                int i = appPath.IndexOf("PhoneDirectory.exe");
                appPath = appPath.Substring(0, i);
            }

            return(appPath);
        }