Beispiel #1
0
        private void MovieTV_Toggle_Button_Click(object sender, EventArgs e)
        {
            HideWelcomeMessage();

            //Reset all visuals ready for next use.
            Reset_Thumbails();

            if (loadMovies == true)
            {
                Movie_Toggle_Button.Text = "View Top Series";

                //Return a list of all movies found (watched and unwatched, not yet filtered).
                GuiCursor.WaitCursor(() => { AllMoviesOrSeriesList = MainFormViewModel.View(true); });

                loadMovies = false;
            }
            else
            {
                Movie_Toggle_Button.Text = "View Top Movies";

                //Return a list of all series found (watched and unwatched, not yet filtered).
                GuiCursor.WaitCursor(() => { AllMoviesOrSeriesList = MainFormViewModel.View(false); });

                loadMovies = true;
            }

            UpdateThumbnails();
        }
Beispiel #2
0
 private void Search_Filter_Button_Click(object sender, EventArgs e)
 {
     HideWelcomeMessage();
     Reset_Thumbails();
     GuiCursor.WaitCursor(() => { AllMoviesOrSeriesList = MainFormViewModel.SearchClicked(SearchTextBox.Text); });
     UpdateThumbnails();
 }