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; }
private BitmapSource GetIcon(AcmaSequencesViewModel item) { return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Sequence.png", UriKind.Absolute))); }