void PhieuNhapKhoXacNhan_Closed(object sender, EventArgs e) { frmPhieuNhapKho_XacNhanXoa PhieuNhapKhoXacNhan = new frmPhieuNhapKho_XacNhanXoa(); if (PhieuNhapKhoXacNhan.DialogResult == true) { PhieuNhapKhoClient.PhieuNhapKho_GetItemsAsync(); } }
private void cmdXoaPhieuNhap_Click(object sender, RoutedEventArgs e) { HyperlinkButton cmdXoaPhieuNhap = sender as HyperlinkButton; int PhieuNhapID = int.Parse(cmdXoaPhieuNhap.CommandParameter.ToString()); frmPhieuNhapKho_XacNhanXoa PhieuNhapKhoXacNhan = new frmPhieuNhapKho_XacNhanXoa(); PhieuNhapKhoXacNhan.Closed += new EventHandler(PhieuNhapKhoXacNhan_Closed); PhieuNhapKhoXacNhan.PhieuNhapID = PhieuNhapID; PhieuNhapKhoXacNhan.Show(); }