Пример #1
0
 public static TModelNode AddSimpleFormWebPart <TModelNode>(this TModelNode model, SimpleFormWebPartDefinition definition,
                                                            Action <SimpleFormWebPartModelNode> action)
     where TModelNode : ModelNode, IWebpartHostModelNode, new()
 {
     return(model.AddTypedDefinitionNode(definition, action));
 }
Пример #2
0
 public static TModelNode AddSimpleFormWebPart <TModelNode>(this TModelNode model, SimpleFormWebPartDefinition definition)
     where TModelNode : ModelNode, IWebpartHostModelNode, new()
 {
     return(AddSimpleFormWebPart(model, definition, null));
 }