protected override bool ApplyPropertyValues(ChoPlugInBuilderProperty plugInBuilderProperty, string propertyName) { if (plugInBuilderProperty == null) { return(false); } base.ApplyPropertyValues(plugInBuilderProperty, propertyName); ChoJavaScriptFilePlugInBuilderProperty o = plugInBuilderProperty as ChoJavaScriptFilePlugInBuilderProperty; if (o == null) { return(false); } if (propertyName == "ScriptFilePath") { ScriptFilePath = o.ScriptFilePath; } else if (propertyName == "Arguments") { Arguments = new ChoCDATA(o.Arguments); } else if (propertyName == "WorkingDirectory") { WorkingDirectory = o.WorkingDirectory; } else { return(false); } return(true); }
protected override void InitPlugInBuilderProperty(ChoPlugInBuilderProperty plugInBuilderProperty) { if (plugInBuilderProperty == null) { return; } base.InitPlugInBuilderProperty(plugInBuilderProperty); ChoJavaScriptFilePlugInBuilderProperty o = plugInBuilderProperty as ChoJavaScriptFilePlugInBuilderProperty; if (o == null) { return; } o.ScriptFilePath = ScriptFilePath; o.Arguments = Arguments.GetValue(); o.WorkingDirectory = WorkingDirectory; }