Example #1
0
        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();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            form_Lesson fm = new form_Lesson(this.isEnglish, false, 0);

            fm.ShowDialog();
        }