private void Btn_Click(object sender, EventArgs e) { frm_ChiTietHang form_ChiTietHang = new frm_ChiTietHang(); form_ChiTietHang.maHang = Convert.ToInt32((sender as Button).Tag); form_ChiTietHang.ShowDialog(); }
private void BtnXemChiTiet_Click(object sender, EventArgs e) { Button btnXem = sender as Button; Hang hang=(Hang)listhang[btnXem.Tag]; frm_ChiTietHang formChiTietHang = new frm_ChiTietHang(); formChiTietHang.hang = hang; formChiTietHang.ShowDialog(); }