public AssignTravelLogSystemForm(TravelHistoryControl travelHistory, VisitedSystemsClass vsc) { InitializeComponent(); this._travelHistory = travelHistory; this._travelLogEntry = vsc; this._linkSystem = vsc.curSystem; this.tbLogSystemName.Text = vsc.Name; this.tbDateVisited.Text = vsc.Time.ToString(); this.tbLogCoordX.Text = vsc.HasTravelCoordinates ? vsc.X.ToString("0.000") : "?"; this.tbLogCoordY.Text = vsc.HasTravelCoordinates ? vsc.Y.ToString("0.000") : "?"; this.tbLogCoordZ.Text = vsc.HasTravelCoordinates ? vsc.Z.ToString("0.000") : "?"; this.tbLogCoordX.TextAlign = vsc.HasTravelCoordinates ? HorizontalAlignment.Right : HorizontalAlignment.Center; this.tbLogCoordY.TextAlign = vsc.HasTravelCoordinates ? HorizontalAlignment.Right : HorizontalAlignment.Center; this.tbLogCoordZ.TextAlign = vsc.HasTravelCoordinates ? HorizontalAlignment.Right : HorizontalAlignment.Center; UpdateLinkedSystemList(vsc.curSystem); tbManualSystemName.AutoCompleteMode = AutoCompleteMode.SuggestAppend; tbManualSystemName.AutoCompleteSource = AutoCompleteSource.CustomSource; AutoCompleteStringCollection autocomplete = new AutoCompleteStringCollection(); SystemClass.GetSystemNames(ref autocomplete); tbManualSystemName.AutoCompleteCustomSource = autocomplete; }