ReplacePath() private static method

private static ReplacePath ( string str, string strPlaceholder, string strFill, SprContext ctx ) : string
str string
strPlaceholder string
strFill string
ctx KeePass.Util.Spr.SprContext
return string
Beispiel #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);
        }
Beispiel #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);
        }