private void CheckIfVerboseLoggingIsTurnedOn() { if (!EliteDangerous.CheckStationLogging()) { TravelHistoryControl.LogTextHighlight("Elite Dangerous is not logging system names!!! "); TravelHistoryControl.LogText("Add "); TravelHistoryControl.LogText("VerboseLogging=\"1\" "); TravelHistoryControl.LogText("to <Network section in File: " + Path.Combine(EliteDangerous.EDDirectory, "AppConfig.xml") + " or AppConfigLocal.xml Remember to restart Elite!" + Environment.NewLine); labelPanelText.Text = "Elite Dangerous is not logging system names!"; panelInfo.BackColor = Color.Salmon; } }
public void LogLineHighlight(string text) { try { Invoke((MethodInvoker) delegate { TravelHistoryControl.LogTextHighlight(text + Environment.NewLine); }); } catch { } }