コード例 #1
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            string    malop  = txtMaLop.Text;
            string    tenlop = txtTenLop.Text;
            UtilityDB data   = new UtilityDB();
            bool      kq     = data.updateLop(malop, tenlop, serverName, database, user, password);

            if (kq == true)
            {
                MessageBox.Show("Sửa khoa có mã khoa " + malop + " thành công", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Sửa khoa có mã khoa " + malop + " thất bại", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }