コード例 #1
0
        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
                };
            }
        }
コード例 #2
0
        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
                };
            }
        }