private void BtnSua_ItemClick(object sender, ItemClickEventArgs e) { int rowIndex = gvMain.FocusedRowHandle; CTyGia tg = new CTyGia { MaTienTe = gvMain.GetRowCellValue(rowIndex, "Currency_ID").ToString(), TenTienTe = gvMain.GetRowCellValue(rowIndex, "CurrencyName").ToString(), TyGia = float.Parse(gvMain.GetRowCellValue(rowIndex, "Exchange").ToString()), ConQL = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString()) }; fThemTyGia sua = new fThemTyGia(false, tg, LoadData); sua.ShowDialog(); }
private void BtnThem_ItemClick(object sender, ItemClickEventArgs e) { fThemTyGia themKhuVuc = new fThemTyGia(true, null, LoadData); themKhuVuc.ShowDialog(); }