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); }
protected override void SetValue(string newValue) { m_script = m_scriptFactory.CreateScript(newValue); }