public AddNumberToSelectedBook(BookViewModel vm, int i) { vm.PropertyChanged += (s, e) => { OnCanExecuteChanged(); }; ViewModel = vm; NumberToAdd = i; }
public AddCurrentPageToBookmark(BookViewModel model) { this.model = model; model.PropertyChanged += (s, e) => { if (e.PropertyName == nameof(model.PageSelected)) { OnCanExecuteChanged(); } }; }
public PageVisualMaxCommand(BookViewModel model) { this.model = model; }