private void AddParameters(ref string orignal, ITreeNode treeNode) { string[] parts = orignal.Split('+'); orignal = ""; foreach (string part in parts) { Regex scheamRegex = new Regex(@"{(.*)}", RegexOptions.IgnoreCase); Match match = scheamRegex.Match(part.Trim()); if (match.Success) { string parameter = treeNode.GetParameter(match.Groups[1].ToString()); if (parameter != null) { orignal += parameter; } else { orignal += part; } } else orignal += part; } }