/// <Summary> /// Load controls with any data we may have for them. /// </Summary> public void initializeControls() { this.Messages.Year = clientState.EmpireState.TurnYear; this.Messages.MessageList = clientState.Messages; this.CurrentTurn = clientState.EmpireState.TurnYear; this.CurrentRace = clientState.EmpireState.Race.Name; this.MapControl.initialize(clientState); // Select a Star owned by the player (if any) as the default display. foreach (StarIntel report in clientState.EmpireState.StarReports.Values) { if (report.Owner == clientState.EmpireState.Id) { MapControl.SetCursor(report.Position); MapControl.CenterMapOnPoint(report.Position); SelectionDetail.Value = report; SelectionSummary.Value = report; break; } } }