private void LoadPage(SpellBookPageDTO page) { this.page = page; unedited = new List<SlotEntry>(page.SlotEntries); Changed.Text = ""; unsaved = false; PageNameBox.Text = page.Name; UpdateRunes(); Session.Current.Account.SelectRunePage(page); }
/// <summary> /// Selects a rune page as the default selected page for your account and /// updates the contents of the local and server-side spell books /// </summary> /// <param name="page">The page to select</param> public async void SelectRunePage(SpellBookPageDTO page) { if (page == SelectedRunePage) return; foreach (var item in Runes.BookPages) item.Current = false; page.Current = true; SelectedRunePage = page; await RiotServices.SpellBookService.SelectDefaultSpellBookPage(page); await RiotServices.SpellBookService.SaveSpellBook(Runes); }