Ejemplo n.º 1
0
        private void btnFilterMovie_Click(object sender, EventArgs e)
        {
            logging.Debug("btnFilterMovie wurde gedrückt");
            changeHighlighting((Control)sender, true);
            changeHighlighting(btnShowAll, false);
            livMedia.Visible = true;
            currentType      = "movie";
            if (!performaceBoost)
            {
                movies.Clear();
                List <Media> loopList = new List <Media>();
                string[]     types    = new string[3] {
                    "Film", "", ""
                };
                mt.filterList(types, true);
                movies.AddRange(mt.getFilteredList());
                mt.filterList(types, false);
                movies.AddRange(mt.getFilteredList());
                loopList.AddRange(movies);
                foreach (Media m in loopList)
                {
                    if (m.type != types[0])
                    {
                        movies.Remove(m);
                    }
                }
            }

            fillGui(movies);
        }
Ejemplo n.º 2
0
 private void cbxClicked(object sender, EventArgs e)
 {
     if (cbxWischlist.Checked)
     {
         wischListState = true;
     }
     else
     {
         wischListState = false;
     }
     string[] selectedTypes = new string[3];
     if (cbxAnime.Checked)
     {
         selectedTypes[0] = "Anime";
     }
     if (cbxMovie.Checked)
     {
         selectedTypes[1] = "Film";
     }
     if (cbxSeries.Checked)
     {
         selectedTypes[2] = "Serie";
     }
     mt.filterList(selectedTypes, wischListState);
 }
Ejemplo n.º 3
0
        private void BtnFilter_Click(object sender, EventArgs e)
        {
            isSuggest = false;
            string[] selectedTypes = new string[3];
            selectedTypes = selectedTypesList.ToArray();
            List <string> selectedGenres = null;

            /* if (cbcGenre.Text.Length>0)
             * {
             *  selectedGenres = cbcGenre.Text.Split(',').ToList();
             * }*/
            mt.filterList(selectedTypes, wischListState, selectedGenres);
            fillGui(mt.getFilteredList());
        }
Ejemplo n.º 4
0
        private void BtnFilter_Click(object sender, EventArgs e)
        {
            isSuggest = false;
            string[]      selectedTypes  = new string[3];
            List <string> selectedItems  = new List <string>();
            List <string> selectedGenres = cbcGenre.Text.Split(',').ToList();

            //List<string> selectedGenres = cbcGenre.Text.Split(',').ToList();

            //{
            //  selectedGenres += item.Name + "|";
            //}
            selectedTypes = selectedItems.ToArray();
            mt.filterList(selectedTypes, wischListState, selectedGenres);
            fillGui(mt.getFilteredList());
        }