Esempio n. 1
0
        public static string FillPlaceholders(string strText, SprContentFlags cf)
        {
            string str = strText;

            str = AppLocator.ReplacePath(str, @"{INTERNETEXPLORER}", AppLocator.InternetExplorerPath, cf);
            str = AppLocator.ReplacePath(str, @"{FIREFOX}", AppLocator.FirefoxPath, cf);
            str = AppLocator.ReplacePath(str, @"{OPERA}", AppLocator.OperaPath, cf);

            return(str);
        }
Esempio n. 2
0
        public static string FillPlaceholders(string strText, SprContext ctx)
        {
            string str = strText;

            str = AppLocator.ReplacePath(str, @"{INTERNETEXPLORER}",
                                         AppLocator.InternetExplorerPath, ctx);
            str = AppLocator.ReplacePath(str, @"{FIREFOX}",
                                         AppLocator.FirefoxPath, ctx);
            str = AppLocator.ReplacePath(str, @"{OPERA}",
                                         AppLocator.OperaPath, ctx);
            str = AppLocator.ReplacePath(str, @"{GOOGLECHROME}",
                                         AppLocator.ChromePath, ctx);
            str = AppLocator.ReplacePath(str, @"{SAFARI}",
                                         AppLocator.SafariPath, ctx);

            return(str);
        }