public void InsertUserEntry(UserEntry entry) { EnsureCorrectIndices(); for (int i = entry.Index; i < UserEntries.Count; i++) { UserEntries[i].Index++; } var indexOrLast = UserEntries.InsertAtOrLast(entry.Index, entry); entry.Index = indexOrLast; }
public void RemoveUserEntry(UserEntry entry) { UserEntries.Remove(entry); EnsureCorrectIndices(); }