public BookmarksViewModel() { this.document = ImportExportDocument.ImportDocument(); this.Bookmarks = new ObservableItemCollection <BookmarkViewModel>(); this.ExportCommand = new DelegateCommand(OnExportCommandExecuted); this.RowEditEndedCommand = new DelegateCommand(OnRowEditEndedExecuted); this.DeleteComamnd = new DelegateCommand(OnDeleteExecuted); this.LoadBookmarksFromPdfDocument(); this.Bookmarks.ItemChanged += Bookmarks_ItemChanged; }
private void OnExportCommandExecuted(object obj) { ImportExportDocument.ExportDocument(document); }