/// <summary> /// 删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Click_3(object sender, RoutedEventArgs e) { dynamic d = this.BrandAuthorizedResult.ItemsSource as dynamic; List <int> list = new List <int>(); foreach (var item in d) { if (item.IsChecked == true) { list.Add(item.SysNo); } } if (list.Count > 0) { facade.DeleteBrandAuthorized(list, (obj, arg) => { if (arg.FaultsHandle()) { return; } CPApplication.Current.CurrentPage.Context.Window.Alert("提交成功"); this.BrandAuthorizedResult.Bind(); }); } else { CPApplication.Current.CurrentPage.Context.Window.Alert("没有选择记录", Newegg.Oversea.Silverlight.Controls.Components.MessageType.Error); } }