예제 #1
0
        private void Add_Films_Click(object sender, EventArgs e)
        {
            Add_Films tost = new Add_Films();

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertFilms();
            }
            Update_Flims_Click(sender, e);
        }
예제 #2
0
        private void Edit_Films_Click(object sender, EventArgs e)
        {
            int       ID   = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
            Add_Films tost = new Add_Films();

            foreach (Films two in Filmes)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateFilms();
                    }
                }
            }
            Update_Flims_Click(sender, e);
        }