void ChiTietClient_ChiTietPhieuNhapKho_GetItemsCompleted(object sender, ChiTietPhieuNhapKho_GetItemsCompletedEventArgs e) { List<ChiTietPhieuNhapKhoInfo> ChiTiet = e.Result; foreach (ChiTietPhieuNhapKhoInfo Item in ChiTiet) { ChiTietClient = new ChiTietPhieuNhapKhoSVCClient(); ChiTietClient.ChiTietPhieuNhapKho_GetItemCompleted += new EventHandler<ChiTietPhieuNhapKho_GetItemCompletedEventArgs>(ChiTietClient_ChiTietPhieuNhapKho_GetItemCompleted); ChiTietClient.ChiTietPhieuNhapKho_GetItemAsync(Item.ChiTietPhieuNhapID); //ChiTietClient.ChiTietPhieuNhapKho_DeleteAsync(Item.ChiTietPhieuNhapID); } }
void ChiTietClient_ChiTietPhieuNhapKho_GetItemsCompleted(object sender, ChiTietPhieuNhapKho_GetItemsCompletedEventArgs e) { grvChiTietPhieuNhap.ItemsSource = e.Result; LoadingPanel.IsBusy = false; }