Esempio n. 1
0
 public NewAcmaSchemaMappingViewModel(Window window, AcmaSchemaMappingsViewModel mappingsViewModel)
     : base()
 {
     this.mappingsViewModel = mappingsViewModel;
     this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate());
     this.Commands.AddItem("CreateAndAddNew", t => this.CreateAndAddNew(window), t => this.CanCreate());
 }
 public AcmaSchemaMappingViewModel(AcmaSchemaMapping model, AcmaSchemaMappingsViewModel parentVM)
     : base(model)
 {
     this.Commands.AddItem("DeleteMapping", t => this.DeleteMapping(), t => this.CanDeleteMapping());
     this.Commands.AddItem("AddMapping", t => this.parentVM.CreateMapping());
     //this.Commands.AddItem("ShowUsage", t => this.ShowUsage());
     this.parentVM = parentVM;
     this.IgnorePropertyHasChanged.Add("DisplayName");
 }
Esempio n. 3
0
 private BitmapSource GetIcon(AcmaSchemaMappingsViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Mapping.png", UriKind.Absolute)));
 }