コード例 #1
0
        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");
        }
コード例 #2
0
 public NewAcmaSchemaReferenceLinkViewModel(Window window, AcmaSchemaReferenceLinksViewModel referenceLinksViewModel)
     : base()
 {
     this.referenceLinksViewModel = referenceLinksViewModel;
     this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate());
 }
コード例 #3
0
ファイル: IconProvider.cs プロジェクト: ryannewington/acma
 private BitmapSource GetIcon(AcmaSchemaReferenceLinksViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/BackLink.png", UriKind.Absolute)));
 }