Пример #1
0
        private string ReplaceActionOption(string Text, ToolAction A, Options.OptionListItem Ops)
        {
            if (Ops == null) return Text;

            var Temp = Text;

            foreach(var P in A.Defaults.Params)
            {
                var N = P.Name;
                var V = Ops.getString(N);
                if (V == null) V = P.ToString();

                string Mask = "{" + N + "}";
                Temp = Temp.Replace(Mask, V);
            }

            return Temp;
        }