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