private void mapList_SelectedIndexChanged(object sender, EventArgs e)
{
if (mapList.SelectedIndex < 0 || mapList.SelectedIndex >= mapList.Items.Count)
return;
this.mapEditorProperties.CurrentMap = this.maps[mapList.SelectedIndex];
this.mapPropertyGrid.Refresh();
this.Text = this.mapEditorProperties.CurrentMap.Name + " Version: " + this.mapEditorProperties.CurrentMap.Version;
}