private void FetchPageCompleted(object sender, BaseEventArgs e) { IsLoading = false; if (e.Error != null) { LilyToast toast = new LilyToast(); toast.ShowNetworkError(); return; } LilyBBS.API.Page page = e.Result as LilyBBS.API.Page; prevStart = page.PrevStart; foreach (var i in page.HeaderList) itemsSource.Add(i); }
private void FetchTopicCompleted(object sender, BaseEventArgs e) { IsLoading = false; if (e.Error != null) { LilyToast toast = new LilyToast(); toast.ShowNetworkError(); return; } /* * HTMLAgilityPack fails often! */ try { Topic t = e.Result as Topic; NextStart = t.nextStart; foreach (var i in t.PostList) items.Add(i); } catch (Exception exc) { } }
private void ShowError() { LilyToast toast = new LilyToast(); toast.ShowNetworkError(); }