private void Search_Filter_Button_Click(object sender, EventArgs e) { HideWelcomeMessage(); Reset_Thumbails(); GuiCursor.WaitCursor(() => { AllMoviesOrSeriesList = MainFormViewModel.SearchClicked(SearchTextBox.Text); }); UpdateThumbnails(); }
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(); }
private void PicBox1_Click(object sender, EventArgs e) { //Get an instance of the singleton form which will contain all of the movie / series information and hide the main form from the user. SummaryHandle = MovieSeriesSummaryFormView.GetSummaryFormView; SummaryHandle.SetMainHandle = MainFormHandle; if (UseWatchedOnly == false) { //Enable a wait cursor on the main form to show the user that an action is happening in the background. GuiCursor.ToggleWaitCursor(MainFormHandle, true); //Call to enable the new information form. if (SummaryHandle.Enable(IMDB_Link, true, false) == true) { //Once completed the main form will hide and we will disable the wait cursor as the action has been carried out. MainFormHandle.Hide(); GuiCursor.ToggleWaitCursor(MainFormHandle, false); } } else { //Change functionality of back button to take user back to profile view instead of the main view. SummaryHandle.setProfileHandle = Profilehandle; //Enable a wait cursor on the main form to show the user that an action is happening in the background. GuiCursor.ToggleWaitCursor(Profilehandle, true); //Call to enable the new information form. if (SummaryHandle.Enable(IMDB_Link, true, true) == true) { //Once completed the main form will hide and we will disable the wait cursor as the action has been carried out. Profilehandle.Hide(); GuiCursor.ToggleWaitCursor(Profilehandle, false); } } }