public fThemSimple(bool isAdd = true, CBoPhan bp = null, fBoPhan.sendMessage send = null, double action = 1) { InitializeComponent(); if (isAdd == false && bp == null) { XtraMessageBox.Show("ERROR : Dữ liệu không được cung cấp để thực hiện hành động !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); Close(); } if (isAdd == true) { table = BUS_NhanVien.LayBoPhan(); Text = "Thêm bộ phận"; } else { editBP = bp; Text = "Sửa thông tin bộ phận"; } add = isAdd; sendBP = send; flag = 3; InitBP(); }
private void LoadDataBP() { gleBoPhan.Properties.DataSource = BUS_NhanVien.LayBoPhan(); }
private void LoadData() { gcMain.DataSource = BUS_NhanVien.LayBoPhan(); }