示例#1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var adst = new AddStudent();

            adst.ShowDialog();
            Students();
            studentsDBDataSet.AcceptChanges();
        }
示例#2
0
        private void editingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataGridViewRow temp = dataGridView1.SelectedRows[0];
            var             ep   = new AddStudent(Convert.ToInt32(temp.Cells[0].Value), Convert.ToString(temp.Cells[1].Value), Convert.ToString(temp.Cells[2].Value), Convert.ToString(temp.Cells[3].Value), Convert.ToString(temp.Cells[4].Value), Convert.ToString(temp.Cells[5].Value), Convert.ToString(temp.Cells[6].Value), Convert.ToString(temp.Cells[7].Value), Convert.ToString(temp.Cells[8].Value), Convert.ToString(temp.Cells[9].Value), Convert.ToString(temp.Cells[10].Value));

            ep.ShowDialog();
            Students();
            studentsDBDataSet.AcceptChanges();
        }
示例#3
0
        private void button4_Click(object sender, EventArgs e)
        {
            DataGridViewRow temp = mainf.dataGridView1.SelectedRows[0];
            var             ep   = new AddStudent(Convert.ToInt32(temp.Cells[0].Value), Convert.ToString(temp.Cells[1].Value), Convert.ToString(temp.Cells[2].Value), Convert.ToString(temp.Cells[3].Value), Convert.ToString(temp.Cells[4].Value), Convert.ToString(temp.Cells[5].Value), Convert.ToString(temp.Cells[6].Value), Convert.ToString(temp.Cells[7].Value), Convert.ToString(temp.Cells[8].Value), Convert.ToString(temp.Cells[9].Value), Convert.ToString(temp.Cells[10].Value));

            ep.ShowDialog();
            mainf.Students();
            Transactions();
            studentsDBDataSet.AcceptChanges();
        }