public void Delete() { ConfirmDeleteDialog dialog = new ConfirmDeleteDialog(DialogOwner, string.Format("Scene: {0}", Model.Name)); bool?result = dialog.ShowDialog(); if (result.HasValue && result.Value) { Model.Delete(); ChapterVm.DeleteScene(this); } }
public async void ReadLinkInfo(LinkInfo info) { Images = new ObservableCollection <BitmapImage>(await ChapterVm.GetBitmapImages(info)); View = ViewManager.GetView(ViewType.ReadingView, this); CurrentChapterName = Info.Name + string.Format(" ({0})", Images.Count); }