private void btnRun_Click(object sender, RoutedEventArgs e) { facade.BatchRunPriceChange(new List <int> { this.vm.SysNo.Value }, (msg) => { Window.Alert(ResPriceChangeMaintain.Msg_Tips, msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) => { Window.Refresh(); }); }); }
private void btnRun_Click(object sender, RoutedEventArgs e) { var SysList = from item in this.resultCollection where item.IsChecked == true select item.SysNo.Value; if (SysList.Count() > 0) { facade.BatchRunPriceChange(SysList.ToList(), (msg) => { Window.Alert(ResPriceChangeQuery.Msg_Tips, msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) => { this.resultgd.Bind(); }); }); } else { //Window.Alert("请至少选择一条记录!"); Window.Alert(ResPriceChangeQuery.Msg_SelectRecord); } }