コード例 #1
0
 public AcmaSequenceViewModel(AcmaSequence model, AcmaSequencesViewModel parentVM)
     : base(model)
 {
     this.Commands.AddItem("DeleteSequence", t => this.Delete());
     this.Commands.AddItem("Edit", t => this.Edit(), t => this.CanEdit());
     this.Commands.AddItem("Cancel", t => this.Cancel());
     this.model    = model;
     this.parentVM = parentVM;
 }
コード例 #2
0
ファイル: IconProvider.cs プロジェクト: ryannewington/acma
 private BitmapSource GetIcon(AcmaSequencesViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Sequence.png", UriKind.Absolute)));
 }