public void Load(long initalOwner) { PlayerList.Clear(); PlayerList.Add(new OwnerModel() { Name = "{None}", PlayerId = 0 }); foreach (var identity in SpaceEngineersCore.WorldResource.Checkpoint.Identities.OrderBy(p => p.DisplayName)) { if (SpaceEngineersCore.WorldResource.Checkpoint.AllPlayersData != null) { var player = SpaceEngineersCore.WorldResource.Checkpoint.AllPlayersData.Dictionary.FirstOrDefault(kvp => kvp.Value.IdentityId == identity.PlayerId); PlayerList.Add(new OwnerModel() { Name = identity.DisplayName, PlayerId = identity.PlayerId, Model = identity.Model, IsPlayer = player.Value != null }); } } SelectedPlayer = PlayerList.FirstOrDefault(p => p.PlayerId == initalOwner); }