Example #1
0
        ///-----------------------------------------------------------------
        public ScriptContent NewData(ScriptAction codeSettings)
        {
            if (scriptContent != null)
            {
                return(null);
            }

            scriptContent = new ScriptContent {
                scriptAction = codeSettings
            };
            return(scriptContent);
        }
Example #2
0
        ///-----------------------------------------------------------------
        public bool Commit()
        {
            var hasSubmitted = scriptContent != null;

            if (scriptContent != null)
            {
                scriptContents.Add(scriptContent);
            }

            scriptContent = null;

            return(hasSubmitted);
        }