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