private void MapPreviewBox_LocalStartingLocationSelected(object sender, LocalStartingLocationEventArgs e) { int myIndex = Players.FindIndex(p => p.Name == ProgramConstants.PLAYERNAME); if (myIndex == -1 || Players[myIndex].SideId == ddPlayerSides[0].Items.Count - 1) { return; } ddPlayerStarts[myIndex].SelectedIndex = e.StartingLocationIndex; }
private void MapPreviewBox_LocalStartingLocationSelected(object sender, LocalStartingLocationEventArgs e) { Players[0].StartingLocation = e.StartingLocationIndex + 1; CopyPlayerDataToUI(); }