public FormMain() { InitializeComponent(); frmMovie = new FormMovie(); frmTV = new FormTV(); PB.frmProgress = new FormProgress(); PB.quality = "20"; }
private void buttonTV_Click(object sender, EventArgs e) { if ((listBoxMovies.SelectedIndex >= 0) && (!frmMovie.Visible) && (!frmTV.Visible)) { PB.currentMovie = movieList[listBoxMovies.SelectedIndex]; PB.SetDefault(); //Load TV dialog frmTV = new FormTV(); frmTV.Show(); } }