public ucMovieSeriesInfo() { InitializeComponent(); SummaryFormHandle = MovieSeriesSummaryFormView.GetSummaryFormView; databaseConnection = SQL_Interaction.GetSQL_Connection; HTMLAgilityWrap = new HtmlAgilityWrapper(); }
public void DisplayInformation(string MovieSeriesURL, bool ReadOnlyView) { URL = MovieSeriesURL; SummaryFormHandle = MovieSeriesSummaryFormView.GetSummaryFormView; ucMovieSeriesInfoHandle = ucMovieSeriesInfo.GetUC; CreateUCMovieSeriesInfo(); UpdateUCMovieSeriesInfo(); ucMovieSeriesInfoHandle.MakeReadyOnly(ReadOnlyView); }
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); } } }