Example #1
0
        public static string GetFullPath(HKEY hk, string sPath)
        {
            string strFullPath;

            strFullPath  = RscKnownFolders.GetSystemPath("Registry");
            strFullPath += "\\" + HKEY2String(hk);

            sPath = RscUtils.RemoveStarting(sPath, "\\");
            sPath = RscUtils.RemoveEnding(sPath, "\\");
            if (sPath.Length > 0)
            {
                strFullPath += "\\" + sPath;
            }

            return(strFullPath);
        }
Example #2
0
        public static void OnNavigatedTo_ExitOnBack(IDictionary <string, string> QueryString)
        {
            IDictionary <string, string> pars = QueryString;

            if (!pars.ContainsKey("ExitOnBack"))
            {
                return;
            }

            if (pars["ExitOnBack"] != "True")
            {
                return;
            }

            string sPathNotExitOnBack = RscKnownFolders.GetTempPath("Launcher") + "\\" + "NotExitOnBack.txt";

            RscStore store = new RscStore();

            store.DeleteFile(sPathNotExitOnBack);
        }