public void AddToWsUserLog(SeNetworkService.SeUser user, int pos, string action, bool updateUi) { for (int i = 0; i < UpdateLog.Count; i++) { if (UpdateLog[i].Index == pos) { UpdateLog.RemoveAt(i); break; } } UpdateLog.Add(new UpdateLogEntry(0, user.UserName, pos, action)); if (updateUi) { OnUpdateUserLogEntries?.Invoke(null, null); } }