예제 #1
0
 public void Set(TaxonDto taxon)
 {
     Id      = taxon.Id;
     Name    = taxon.Name;
     Genus   = taxon.Genus;
     Species = taxon.Species;
     OnPropertyChanged(nameof(Name));
 }
 private void RenewTaxa(TaxonDto taxon)
 {
     foreach (var item in CollectionItems)
     {
         if (item.TaxonId == taxon.Id)
         {
             item.Name = _viewProvider.GenerateName(item.InnerObject.Id);
         }
     }
 }
예제 #3
0
 public TaxonViewModel(TaxonDto innerObject)
 {
     _innerObject = innerObject;
 }