Exemple #1
0
 internal CollectionConfig(string alias, string?icon, string name, Type repositoryType, EntityVariantConfig entityVariant)
 {
     Alias          = alias ?? throw new ArgumentNullException(nameof(alias));
     Icon           = icon;
     Name           = name ?? throw new ArgumentNullException(nameof(name));
     RepositoryType = repositoryType ?? throw new ArgumentNullException(nameof(repositoryType));
     EntityVariant  = entityVariant ?? throw new ArgumentNullException(nameof(entityVariant));
 }
        internal DetailPageConfig(string alias, string?parentAlias, string?icon, string?color, string name, Type repositoryType, EntityVariantConfig entityVariant)
            : base(alias, parentAlias, icon, color, name, repositoryType, entityVariant)
        {
            _detailNodeEditor = new NodeEditorConfig <TDetailEntity>();

            TreeView = new TreeViewConfig
            {
                EntityVisibilty = EntityVisibilty.Hidden,
                RootVisibility  = CollectionRootVisibility.Visible,
            };

            NodeEditor = _detailNodeEditor;
        }