private void btnStop_Click(object sender, RoutedEventArgs e) { List <int> sysNos = GetCheckedNo(); if (sysNos.Count > 0) { _Facade.Stop(sysNos, (result) => { if (result) { //Window.Alert("中止处理成功!"); Window.Alert(ResGroupBuyingQuery.Msg_StopSuccess); DataGrid.Bind(); } else { //Window.Alert("中止处理失败!"); Window.Alert(ResGroupBuyingQuery.Msg_StopFailed); } }); } }
private void ButtonStop_Click(object sender, RoutedEventArgs e) { Window.Confirm(ResGroupBuyingMaintain.Info_ConfirmStop, (s, a) => { if (a.DialogResult == DialogResultType.OK) { _Facade.Stop(new List <int>() { Convert.ToInt32(sysNo) }, (result) => { if (result) { //Window.Alert("中止处理成功,该团购将在1分钟内中止!"); Window.Alert(ResGroupBuyingMaintain.Msg_StopSuccess); ButtonStop.IsEnabled = false; InitPage(sysNo); this.Window.Refresh(); } }); } }); }