예제 #1
0
        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();
        }
예제 #2
0
        private void BtnThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            fThemTyGia themKhuVuc = new fThemTyGia(true, null, LoadData);

            themKhuVuc.ShowDialog();
        }