Exemplo n.º 1
0
 private void btSua_Click(object sender, EventArgs e)
 {
     if (dtgvDSSanPham.SelectedRows.Count == 0) return;
     SanPham sp = (SanPham)dtgvDSSanPham.SelectedRows[0].DataBoundItem;
     FmThongTinSanPham fm = new FmThongTinSanPham(sp,SPCtr);
     fm.DTGV_DSSanPham = new FmThongTinSanPham.callback(this.RefreshDTGV_DSSanPham);
     fm.ShowDialog();
 }
Exemplo n.º 2
0
 private void btThem_Click(object sender, EventArgs e)
 {
     FmThongTinSanPham fm = new FmThongTinSanPham(null,SPCtr);
     fm.DTGV_DSSanPham = new FmThongTinSanPham.callback(this.LoadDTGV_DSSanPham);
     fm.ShowDialog();
 }