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