예제 #1
0
        private void ucActions1_OnDelete(object obj)
        {
            //DeleteItem();
            DMNhomNguoiDungInfor khaibao = new DMNhomNguoiDungInfor();

            khaibao.MaNhom = Convert.ToString(getValue("clMa"));
            DMNhomNguoiDungDataProvider.Delete(khaibao);
            MessageBox.Show("Xóa Thành Công", "Thông Báo");
            dgvList.DataSource = DMNhomNguoiDungDataProvider.GetListNhomInfo();
        }
예제 #2
0
        private void frmDM_NhomNguoiDung_Load(object sender, EventArgs e)
        {
            try
            {
                dgvList.DataSource = DMNhomNguoiDungDataProvider.GetListNhomInfo();
            }
            catch (Exception ex)
            {
#if DEBUG
                MessageBox.Show("Lỗi ngoại lệ: " + ex.ToString(), Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error);
#else
                MessageBox.Show("Lỗi ngoại lệ: " + ex.Message, Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error);
#endif
                this.Dispose();
            }
        }
예제 #3
0
 private void ucActions1_OnAdd(object obj)
 {
     DMNhomNguoiDungDataProvider.Insert(getinfor());
     MessageBox.Show("Thêm bảng thành công!");
     dgvList.DataSource = DMNhomNguoiDungDataProvider.GetListNhomInfo();
 }
예제 #4
0
 private void ucActions1_OnUpdate(object obj)
 {
     DMNhomNguoiDungDataProvider.Update(getinfor());
     MessageBox.Show("Sửa bảng thành công!");
     dgvList.DataSource = DMNhomNguoiDungDataProvider.GetListNhomInfo();
 }
 protected override void OnLoad()
 {
     ListInitInfo =
         DMNhomNguoiDungDataProvider.GetListNhomInfo();
 }