public void RemoveFiles() { foreach (var s in SelectedSubmissions.ToList()) { Submissions.Remove(s); } }
/// <summary> /// 删除给定的用户提交记录实体数据。 /// </summary> /// <param name="entity">要删除的用户提交记录实体数据。</param> /// <exception cref="ArgumentNullException"/> public void RemoveSubmissionEntity(SubmissionEntity entity) { if (entity == null) { throw new ArgumentNullException(nameof(entity)); } Submissions.Remove(entity); SaveChanges(); }