Example #1
0
        private void button8_Click(object sender, EventArgs e)
        {
            Add_Age_Rating tost = new Add_Age_Rating();

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertName_Of_Rating();
            }
            button7_Click(sender, e);
        }
Example #2
0
        private void button10_Click(object sender, EventArgs e)
        {
            int            ID   = (int)dataGridView3.SelectedRows[0].Cells[0].Value;
            Add_Age_Rating tost = new Add_Age_Rating();

            foreach (Age_Rating two in Age_Ratings)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateName_Of_Rating();
                    }
                }
            }
            button7_Click(sender, e);
        }