private void newToolStripMenuItem1_Click(object sender, EventArgs e) { Movies.Add obj = new Movies.Add() { StartPosition = FormStartPosition.CenterScreen }; obj.ShowDialog(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { Add edit = new Add(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()) { StartPosition = FormStartPosition.CenterScreen }; edit.ShowDialog(); dataGridView1.DataSource = new Database().GetMovies(); }