private void simpleButton1_Click(object sender, EventArgs e) { bool ConQuanLy; if (checkBox1.Checked == true) { ConQuanLy = true; } else { ConQuanLy = false; } KhuVucBUS.Them(txtMaKhuVuc.Text, txtTen.Text, txtGhiChu.Text, ConQuanLy); txtMaKhuVuc.Text = KhuVucBUS.MaKhuVuc(); txtTen.Text = null; txtGhiChu.Text = null; checkBox1.Checked = true; }
private void frmThemKhuVuccs_Load(object sender, EventArgs e) { txtMaKhuVuc.Text = KhuVucBUS.MaKhuVuc(); }