예제 #1
0
 public static void AddOtherwiseScript(IScript firstTimeScript, string script, IScriptFactory scriptFactory)
 {
     // Get script after "otherwise" keyword
     script = script.Substring(9).Trim();
     string otherwise = Utility.GetScript(script);
     IScript otherwiseScript = scriptFactory.CreateScript(otherwise);
     ((FirstTimeScript)firstTimeScript).SetOtherwiseScript(otherwiseScript);
 }
        public static void AddOtherwiseScript(IScript firstTimeScript, string script, IScriptFactory scriptFactory)
        {
            // Get script after "otherwise" keyword
            script = script.Substring(9).Trim();
            string  otherwise       = Utility.GetScript(script);
            IScript otherwiseScript = scriptFactory.CreateScript(otherwise);

            ((FirstTimeScript)firstTimeScript).SetOtherwiseScript(otherwiseScript);
        }
예제 #3
0
 protected override void SetValue(string newValue)
 {
     m_script = m_scriptFactory.CreateScript(newValue);
 }