private void textDevNote_Leave(object sender, EventArgs e) { if (_subCur.DevNote == textDevNote.Text) { return; } BugSubmission subOld = _subCur.Copy(); _subCur.DevNote = textDevNote.Text; BugSubmissions.Update(_subCur, subOld); TextDevNoteLeave?.Invoke(sender, e); }
///<summary>Adds a deep copy of the first bug submission from listGroupedSubmissions to listGridSubmissions. ///Preserves the group of bug submissions by setting the TagCustom to a shallow copy of listGroupedSubmissions.</summary> private void AddGroupedSubsToGridSubs(List <BugSubmission> listGridSubmissions, List <BugSubmission> listGroupedSubmissions) { if (listGridSubmissions == null || listGroupedSubmissions == null || listGroupedSubmissions.Count < 1) { return; } BugSubmission bugSubmissionFirst = listGroupedSubmissions.First(); bugSubmissionFirst.TagCustom = listGroupedSubmissions; listGridSubmissions.Add(bugSubmissionFirst.Copy()); }