public static bool ChangeCurrentMap(int index) { if (index < Maps.Count) { string fileName = Maps.Cast <DictionaryEntry>().ElementAt(index).Key.ToString(); return(ChangeCurrentMap(fileName)); } return(false); }