private void BtnSua_ItemClick(object sender, ItemClickEventArgs e) { int rowIndex = gvMain.FocusedRowHandle; CKho kho = new CKho { MaKho = gvMain.GetRowCellValue(rowIndex, "Stock_ID").ToString(), TenKho = gvMain.GetRowCellValue(rowIndex, "Stock_Name").ToString(), LienHe = gvMain.GetRowCellValue(rowIndex, "Contact").ToString(), DiaChi = gvMain.GetRowCellValue(rowIndex, "Address").ToString(), Email = "", DienThoai = gvMain.GetRowCellValue(rowIndex, "Telephone").ToString(), Fax = "", DiDong = "", NguoiQuanLy = gvMain.GetRowCellValue(rowIndex, "Manager").ToString(), DienGiai = gvMain.GetRowCellValue(rowIndex, "Description").ToString(), ConQL = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString()) }; fThemKho sua = new fThemKho(false, kho, LoadData); sua.ShowDialog(); }
private void BtnThem_ItemClick(object sender, ItemClickEventArgs e) { fThemKho kho = new fThemKho(true, null, LoadData); kho.ShowDialog(); }
private void btnKhoHang_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { fThemKho kho = new fThemKho(); kho.ShowDialog(); }