コード例 #1
0
 private void AddMetadata(IContainsMetadata item)
 {
     this.MetadataList.AddRange(MetadataPropertyUtils.GetPropertyList(item));
     foreach (MetadataProperty property in item.CustomProperties)
     {
         this.MetadataList.Add(property);
     }
 }
コード例 #2
0
 private void UpdateMetadata()
 {
     this.MetadataList          = MetadataPropertyUtils.GetPropertyList(this.TilesetModel.Value);
     this.TilesetMetadata.Value = new ListCollectionView(this.MetadataList);
     this.TilesetMetadata.Value.GroupDescriptions.Add(new PropertyGroupDescription("Type"));
     foreach (MetadataProperty property in this.TilesetModel.Value.CustomProperties)
     {
         this.MetadataList.Add(property);
     }
 }