private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            CourseAdd ca = new CourseAdd();

            ca.cid = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            ca.courseBtnAdd.Enabled = false;
            ca.Edit = true;
            this.Close();
            ca.Show();
            ca.TopMost = true; // optional, to make sure the courseAdd form is the top most
        }
Beispiel #2
0
        private void courseAdd_Click(object sender, EventArgs e)
        {
            CourseAdd course = new CourseAdd();

            course.Show();
        }