private void OnMovieAdd(object sender, EventArgs e) { var form = new MovieForm(); if (form.ShowDialog(this) == DialogResult.Cancel) { return; } //Add to database and refresh try { _database.Add(form.Movie); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }; //MessageBox.Show("Adding movie"); // _database.Add(form.Movie); // this is how to get data from different member //Movie.Name = " "; RefreshMovies(); }