Example #1
0
        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;
        }
Example #2
0
        public void RemoveUserEntry(UserEntry entry)
        {
            UserEntries.Remove(entry);

            EnsureCorrectIndices();
        }