コード例 #1
0
 private void newToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     Movies.Add obj = new Movies.Add()
     {
         StartPosition = FormStartPosition.CenterScreen
     };
     obj.ShowDialog();
 }
コード例 #2
0
        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();
        }