public AcmaSchemaReferenceLinkViewModel(AcmaSchemaReferenceLink model, AcmaSchemaReferenceLinksViewModel parentVM) : base(model) { this.parentVM = parentVM; this.Commands.AddItem("DeleteLink", t => this.DeleteLink(), t => this.CanDeleteLink()); this.Commands.AddItem("AddLink", t => this.parentVM.CreateLink()); this.IgnorePropertyHasChanged.Add("DisplayName"); }
public NewAcmaSchemaReferenceLinkViewModel(Window window, AcmaSchemaReferenceLinksViewModel referenceLinksViewModel) : base() { this.referenceLinksViewModel = referenceLinksViewModel; this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate()); }
private BitmapSource GetIcon(AcmaSchemaReferenceLinksViewModel item) { return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/BackLink.png", UriKind.Absolute))); }