private void btnAudit_Click(object sender, RoutedEventArgs e) { selectedSysNo.Clear(); dynamic source = this.giftVoucherProductdg.ItemsSource as dynamic; foreach (var item in source) { if (item.IsChecked) { selectedSysNo.Add(item.SysNo); } } if (selectedSysNo.Count > 0) { _facade.BatchAuditGiftCardProduct(selectedSysNo, (msg) => { Window.Alert("提示信息", msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) => { this.giftVoucherProductdg.Bind(); }); }); } else { Window.Alert("请选择礼品卡商品!"); return; } }