private void UpdateChapterBookmarks() { ChapterBookmarkListItem[] ar = new ChapterBookmarkListItem[0]; if (SelectedBookmarkedSerie != null) { ar = (from chapter in SelectedBookmarkedSerie.Chapters select new ChapterBookmarkListItem(chapter)).ToArray(); } ListBoxVisualState vs = new ListBoxVisualState(Form.bookmarkedchaptersListBox); vs.Clear(); if (SelectedBookmarkedSerie != null) { if (Form.m_chapter_bookmarks_visual_states.ContainsKey(SelectedBookmarkedSerie)) { vs = Form.m_chapter_bookmarks_visual_states[SelectedBookmarkedSerie]; } } vs.ReloadItems(ar); }
private void UpdateChapterBookmarks() { ChapterBookmarkListItem[] ar = new ChapterBookmarkListItem[0]; if (SelectedBookmarkedSerie != null) { ar = (from chapter in SelectedBookmarkedSerie.Chapters select new ChapterBookmarkListItem(chapter)).ToArray(); } ListBoxVisualState vs = new ListBoxVisualState(Form.bookmarkedchaptersListBox); vs.Clear(); if (SelectedBookmarkedSerie != null) { if (Form.m_chapter_bookmarks_visual_states.ContainsKey(SelectedBookmarkedSerie)) vs = Form.m_chapter_bookmarks_visual_states[SelectedBookmarkedSerie]; } vs.ReloadItems(ar); }