/// <summary> /// 保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSave_Click(object sender, RoutedEventArgs e) { if (!ValidationManager.Validate(this)) { return; } CategoryRequestApprovalVM info = GetVM(); facade.UpdateCategory(info, (obj, arg) => { if (arg.FaultsHandle()) { return; } CPApplication.Current.CurrentPage.Context.Window.Alert("保存成功"); CloseDialog(DialogResultType.OK); }); }