private void btnLuu_Click(object sender, EventArgs e) { string malop = txtMaLop.Text; string tenlop = txtTenLop.Text; string makhoa = cbKhoa.SelectedValue.ToString(); UtilityDB data = new UtilityDB(); bool kq = data.createLop(malop, tenlop, makhoa, serverName, database, user, password); if (kq == true) { MessageBox.Show("Thêm khoa có mã khoa " + tenlop + " thành công", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Thêm khoa có mã khoa " + tenlop + " thất bại", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }