示例#1
0
 public TViewFeatureViewModel(Feature feature, ElementViewModel parent)
 {
     this.feature = feature;
     this.Parent = parent;
     this.Name = feature.ToString();
     this.Children = null;
 }
示例#2
0
 //---------------------------------------------------------------------
 public TViewVersionViewModel(Version version, ElementViewModel parent)
 {
     this.version = version;
     this.Parent = parent;
     this.Name = version.ToString();
     this.Children = new ReadOnlyCollection<ElementViewModel>((from feature in this.version.Features
                                                                select new TViewFeatureViewModel(feature, this)).ToList<ElementViewModel>()).ToList();
 }
示例#3
0
 //---------------------------------------------------------------------
 public TViewProductViewModel(Product product, ElementViewModel parent = null)
 {
     this.Parent = parent;
     this.Product = product;
     this.Name = product.ToString();
     this.Children = new ReadOnlyCollection<ElementViewModel>((from version in this.Product.Versions
                                                                select new TViewVersionViewModel(version, this)).ToList<ElementViewModel>()).ToList();
 }
示例#4
0
 //---------------------------------------------------------------------
 public TViewProductGroupViewModel(ProductGroup productGroup, ElementViewModel parent = null)
 {
     this.Group = productGroup;
     this.Parent = parent;
     this.Name = this.Group.ToString();
     this.Children = new ReadOnlyCollection<ElementViewModel>((from  product in this.Group.Products
                                                                    select new TViewProductViewModel(product,this)).ToList<ElementViewModel>()).ToList();
 }