Ejemplo n.º 1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            string     them    = "insert into DMDiem values ('" + comboBoxMaSV.Text + "','" + comboBoxMaMH.Text + "','" + txtLanThi.Text + "','" + txtDiemSo.Text + "','" + txtDiemChu.Text + "') ";
            SqlCommand comThem = new SqlCommand(them, con);

            comThem.ExecuteNonQuery();
            getdata();
            MessageBox.Show("Thêm mới thành công ");
            this.Close();
            frmDMDiem tg = new frmDMDiem();

            tg.ShowDialog();
        }
Ejemplo n.º 2
0
        private void điểmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDMDiem diem = new frmDMDiem();

            diem.Show();
        }