/// <summary> /// 作废 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnVoid_Click(object sender, RoutedEventArgs e) { facade.DeleteGiftCardFabrication(VM.SysNo.Value, (obj, args) => { if (args.FaultsHandle()) { return; } CPApplication.Current.CurrentPage.Context.Window.Alert(ResGiftCardInfo.Information_OperateSuccessful, MessageType.Information); if (Dialog != null) { Dialog.ResultArgs.Data = null; Dialog.ResultArgs.DialogResult = DialogResultType.OK; Dialog.Close(); } }); }