Example #1
0
        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);
        }
Example #2
0
 public static SortedDictionary <int, MdxScriptCommand> GetCommandsFromText(string sMDX)
 {
     return(MdxScriptHelper.GetCommandsFromText(sMDX, 0));
 }
Example #3
0
 public void LoadCustomMdxScript(string customScript)
 {
     _commands.Clear();
     _commands = MdxScriptHelper.GetCommandsFromText(customScript);
 }