Exemplo n.º 1
0
 private void GVNKH_Click(object sender, EventArgs e)
 {
     if (GVNKH.GetSelectedRows().Count() > 0)
     {
         _NhomDaiLyO = GVNKH.GetRow(GVNKH.GetSelectedRows()[0]) as O_NHOMDAILY;
         if (_NhomDaiLyO != null)
         {
             iTen.Text  = _NhomDaiLyO.Ten;
             iTu.Value  = _NhomDaiLyO.Tu;
             iDen.Value = _NhomDaiLyO.Den;
         }
     }
 }
Exemplo n.º 2
0
 private void btnXoa_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (GVNKH.GetSelectedRows().Count() > 0)
     {
         _NhomDaiLyO = GVNKH.GetRow(GVNKH.GetSelectedRows()[0]) as O_NHOMDAILY;
         if (_NhomDaiLyO != null)
         {
             XuLyGiaoDien.ThongBao(Text, _NhomDaiLyD.Xoa(_NhomDaiLyO.ID) > 0, true);
             _ListNhomDaiLyO = _NhomDaiLyD.DuLieu(_LoaiKhachHang);
             nhomKhachHangOBindingSource.DataSource = _ListNhomDaiLyO;
         }
     }
 }