public TableTreeViewItemViewModel(Authentication authentication, TableDescriptor descriptor) { this.authentication = authentication; this.descriptor = descriptor; foreach (var item in descriptor.Childs) { var viewModel = new TableTreeViewItemViewModel(authentication, item) { parent = descriptor, Parent = this }; } }
public TableCategoryTreeViewItemViewModel(Authentication authentication, TableCategoryDescriptor descriptor) { this.authentication = authentication; this.descriptor = descriptor; foreach (var item in descriptor.Categories) { var viewModel = new TableCategoryTreeViewItemViewModel(authentication, item) { Parent = this }; } foreach (var item in descriptor.Tables) { var viewModel = new TableTreeViewItemViewModel(authentication, item) { Parent = this }; } }