private void updateLesson_Click(object sender, EventArgs e) { int selectedrowindex = dataGridView1.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = dataGridView1.Rows[selectedrowindex]; form_Lesson fm = new form_Lesson(this.isEnglish, true, Convert.ToInt32(selectedRow.Cells["iID"].Value)); fm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { form_Lesson fm = new form_Lesson(this.isEnglish, false, 0); fm.ShowDialog(); }