protected override bool ApplyPropertyValues(ChoPlugInBuilderProperty plugInBuilderProperty, string propertyName) { if (plugInBuilderProperty == null) { return(false); } base.ApplyPropertyValues(plugInBuilderProperty, propertyName); ChoShellScriptPlugInBuilderProperty o = plugInBuilderProperty as ChoShellScriptPlugInBuilderProperty; if (o == null) { return(false); } if (propertyName == "Script") { Script = new ChoCDATA(o.Script); } 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); ChoShellScriptPlugInBuilderProperty o = plugInBuilderProperty as ChoShellScriptPlugInBuilderProperty; if (o == null) { return; } o.Script = Script.GetValue(); o.Arguments = Arguments.GetValue(); o.WorkingDirectory = WorkingDirectory; }