Exemplo n.º 1
0
            public void UpdateSeries()
            {
                SerieListItem[] ar = new SerieListItem[0];

                if (SelectedServer != null)
                {
                    string filter = Form.seriesSearchTextBox.Text.ToLower();
                    ar = (from serie in SelectedServer.Series
                          where serie.Title.ToLower().IndexOf(filter) != -1
                          select new SerieListItem(serie)).ToArray();
                }

                ListBoxVisualState vs = new ListBoxVisualState(Form.seriesListBox);

                vs.Clear();
                if (SelectedServer != null)
                {
                    if (Form.m_series_visual_states.ContainsKey(SelectedServer))
                    {
                        vs = Form.m_series_visual_states[SelectedServer];
                    }
                }
                vs.ReloadItems(ar);
            }
            public void UpdateSeries()
            {
                SerieListItem[] ar = new SerieListItem[0];

                if (SelectedServer != null)
                {
                    string filter = Form.seriesSearchTextBox.Text.ToLower();
                    ar = (from serie in SelectedServer.Series
                          where serie.Title.ToLower().IndexOf(filter) != -1
                          select new SerieListItem(serie)).ToArray();
                }

                ListBoxVisualState vs = new ListBoxVisualState(Form.seriesListBox);
                vs.Clear();
                if (SelectedServer != null)
                {
                    if (Form.m_series_visual_states.ContainsKey(SelectedServer))
                        vs = Form.m_series_visual_states[SelectedServer];
                }
                vs.ReloadItems(ar);
            }