/// <summary> /// 删除记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void BtnDelClickAsync(object sender, RoutedEventArgs e) { if (RecordListBox.SelectedItem is Lib.MemberAppraise SelectedRec) { if (AppFuns.ShowMessage($"确认要删除该条考核信息吗?", Caption: "确认", showYesNo: true)) { ExcuteResult excuteResult = await DataMemberAppraiseRepository.DeleteRecord(SelectedRec); if (excuteResult.State == 0) { _CurUcViewModel.CurRecords.Remove(SelectedRec); } else { AppFuns.ShowMessage(excuteResult.Msg, Caption: "失败", isErr: true); } } } }