private void MapListSelectionChanged(object Sender, GUI.SelectionChangedEventArgs eventArgs) { if (ignoreNextSelectionChangedEvent) { ignoreNextSelectionChangedEvent = false; } else { if (eventArgs.SelectedItemIndex <= 2) { DetailsTextBox.ClearContent(); } else { Map map = ((GUI.SelectableMap)eventArgs.SelectedItem).Map; DetailsTextBox.WriteAllMapInfo(map); LogTextBox.WriteMapIssues(map); } } }