public SchemaAttributeUsageViewModel(SchemaAttributeUsage model, AcmaSchemaMappingViewModel parentVM)
     : base(model)
 {
     this.Commands.AddItem("Goto", t => this.Goto());
     this.parentVM = parentVM;
     this.IgnorePropertyHasChanged.Add("ObjectID");
     this.IgnorePropertyHasChanged.Add("Path");
     this.IgnorePropertyHasChanged.Add("ObjectType");
     this.IgnorePropertyHasChanged.Add("Context");
 }
Beispiel #2
0
 private BitmapSource GetIcon(AcmaSchemaMappingViewModel item)
 {
     if (item.IsInherited)
     {
         return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/MappingInherited.png", UriKind.Absolute)));
     }
     else
     {
         return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Mapping.png", UriKind.Absolute)));
     }
 }