internal PaneSetup(PaneConfig pane) { CustomType = pane.CustomType; IsVisible = pane.IsVisible; Label = pane.Label; VariantType = pane.VariantType; Buttons = pane.Buttons.ToList(button => new ButtonSetup(button)); Fields = pane.Fields.ToList(x => ConfigProcessingHelper.ProcessField(x)); SubCollectionLists = pane.SubCollectionLists.ToList(x => new SubCollectionListSetup(x)); RelatedCollectionLists = pane.RelatedCollectionLists.ToList(x => new RelatedCollectionListSetup(x)); }
public static Pane ToPane(this PaneConfig pane) { return(new Pane { CustomType = pane.CustomType, IsVisible = pane.IsVisible, Label = pane.Label, VariantType = pane.VariantType, Buttons = pane.Buttons.ToList(button => button.ToButton()), Fields = pane.Fields.ToList(x => x.ToField()), SubCollectionLists = pane.SubCollectionLists.ToList(x => x.ToSubCollectionList()), RelatedCollectionLists = pane.RelatedCollectionLists.ToList(x => x.ToRelatedCollectionList()) }); }