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

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertName_Of_Genre();
            }
            button12_Click(sender, e);
        }
Example #2
0
        private void button15_Click(object sender, EventArgs e)
        {
            int       ID   = (int)dataGridView4.SelectedRows[0].Cells[0].Value;
            Add_Genre tost = new Add_Genre();

            foreach (Genre two in My_Genre)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateName_Of_Genre();
                    }
                }
            }
            button12_Click(sender, e);
        }