Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AddUpdateSubjectType frm = new AddUpdateSubjectType();

            frm.ShowDialog();
            fillGrid();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count > 0)
            {
                AddUpdateSubjectType frm = new AddUpdateSubjectType(int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()),
                                                                    dataGridView1.SelectedRows[0].Cells[1].Value.ToString());

                frm.ShowDialog();
                fillGrid();
            }
        }