private void RefreshNames() { List <string> currentNames = loadMenuController.GetContainedButtonNames(); foreach (string saveName in ObjectManager.CurrentGEM.savedGameNames) { if (!currentNames.Contains(saveName)) { loadMenuController.AddButton(saveName, delegate { LoadSavedGame(saveName); }); } } }
private void RefreshNames() { List <string> currentNames = menuController.GetContainedButtonNames(); foreach (string saveName in elementManager.savedGameNames) { if (!currentNames.Contains(saveName)) { menuController.AddButton(saveName, delegate { SetSaveName(saveName); }); } } }