public WordbookPage(WordbookImpressViewModel model) : this() { this.BindingContext = model; WordbooksImpressStorage.Updated += WordbooksImpressStorage_Updated; if (model.HasMultipleWordbook) { this.ToolbarItems.Remove(ToolbarItemRename); } }
public WordsPage(WordbookImpressViewModel model) : this() { this.BindingContext = model.Words; model.PropertyChanged += async(s, e) => { if (e.PropertyName == nameof(model.Words)) { await Task.Run(async() => { await CanPushSemaphore.WaitAsync(); this.BindingContext = model.Words; CanPushSemaphore.Release(); }); } }; }
public ReloadCommandClass(WordbookImpressViewModel model) { this.Model = model; model.PropertyChanged += (s, e) => CanExecuteChanged(s, new EventArgs()); }