public static SortedDictionary <int, MdxScriptCommand> GetCommandsFromScript(MdxScript script) { SortedDictionary <int, MdxScriptCommand> ret = new SortedDictionary <int, MdxScriptCommand>(); SortedDictionary <int, MdxScriptCommand> temp = new SortedDictionary <int, MdxScriptCommand>(); foreach (Command cmd in script.Commands) { temp = MdxScriptHelper.GetCommandsFromText(cmd.Text.Replace("\n", Environment.NewLine), ret.Count); foreach (MdxScriptCommand cmd1 in temp.Values) { ret.Add(cmd1.CommandNumber, cmd1); } } return(ret); }
public static SortedDictionary <int, MdxScriptCommand> GetCommandsFromText(string sMDX) { return(MdxScriptHelper.GetCommandsFromText(sMDX, 0)); }
public void LoadCustomMdxScript(string customScript) { _commands.Clear(); _commands = MdxScriptHelper.GetCommandsFromText(customScript); }