private void viewToolStripMenuItem_Click(object sender, EventArgs e) { try { MovieForm form = new MovieForm(Movie); form.Text = Movie.Movie_Name; form.ShowDialog(); } catch { return; } }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { try { MovieClass Movie = new MovieClass(); Movie = Movies[ListOfMovies.SelectedIndices[0]]; Movie.Update_Movie(); Movie.Movie_Name = Movies[ListOfMovies.SelectedIndices[0]].MovieName; Thread.Sleep(1000); MovieForm form = new MovieForm(Movie); form.ShowDialog(); form.Dispose(); WorkerClass.DeleteFolder(Movie.Movie_Name); } catch { } }