Example #1
0
        private void btnThemKhoa_Click(object sender, EventArgs e)
        {
            BUS_Info_ bus = new BUS_Info_();

            Lop lop = new Lop();

            lop.TenLop = txtLop.Text;
            lop.Khoa   = txtKhoa.Text;
            lop.MaKhoa = txtMaKhoa.Text;

            if (bus.addClass(lop))
            {
                MessageBox.Show("Thêm khoa thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Khoa đã tồn tại hoặc bạn điền sai thông tin", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }