Beispiel #1
0
            private void UpdateChapters()
            {
                ChapterListItem[] ar = new ChapterListItem[0];

                if (SelectedSerie != null)
                {
                    ar = (from chapter in SelectedSerie.Chapters
                          select new ChapterListItem(chapter)).ToArray();
                }

                ListBoxVisualState vs = new ListBoxVisualState(Form.chaptersListBox);

                vs.Clear();
                if (SelectedSerie != null)
                {
                    if (Form.m_chapters_visual_states.ContainsKey(SelectedSerie))
                    {
                        vs = Form.m_chapters_visual_states[SelectedSerie];
                    }
                }
                vs.ReloadItems(ar);
            }
            private void UpdateChapters()
            {
                ChapterListItem[] ar = new ChapterListItem[0];

                if (SelectedSerie != null)
                {
                    ar = (from chapter in SelectedSerie.Chapters
                          select new ChapterListItem(chapter)).ToArray();
                }

                ListBoxVisualState vs = new ListBoxVisualState(Form.chaptersListBox);
                vs.Clear();
                if (SelectedSerie != null)
                {
                    if (Form.m_chapters_visual_states.ContainsKey(SelectedSerie))
                        vs = Form.m_chapters_visual_states[SelectedSerie];
                }
                vs.ReloadItems(ar);
            }