Пример #1
0
        private void button21_Click(object sender, EventArgs e)
        {
            Add_Rating_Film tost = new Add_Rating_Film();

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertRating_FK();
            }
            button20_Click(sender, e);
        }
Пример #2
0
        private void button23_Click(object sender, EventArgs e)
        {
            int             ID   = (int)dataGridView6.SelectedRows[0].Cells[0].Value;
            Add_Rating_Film tost = new Add_Rating_Film();

            foreach (Rating_FK two in MY_Rating_FKList)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateRating_FK();
                    }
                }
            }
            button20_Click(sender, e);
        }