Exemple #1
0
 public TableCategoryTreeViewItemViewModel(Authentication authentication, TableCategoryDescriptor descriptor, object owner)
     : base(authentication, descriptor, owner)
 {
     this.RenameCommand = new DelegateCommand(async item => await this.RenameAsync(), item => this.CanRename);
     this.DeleteCommand = new DelegateCommand(async item => await this.DeleteAsync(), item => this.CanDelete);
     this.Owner         = owner;
 }
        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
                };
            }
        }
Exemple #3
0
 public TableCategoryTreeViewItemViewModel(Authentication authentication, TableCategoryDescriptor descriptor)
     : this(authentication, descriptor, null)
 {
 }
Exemple #4
0
 protected override TableCategoryTreeItemBase CreateInstance(Authentication authentication, TableCategoryDescriptor descriptor, object owner)
 {
     return(new TableCategoryTreeViewItemViewModel(authentication, descriptor, owner));
 }