// opens load level form and returns level public static Level loadLevel() { // using the load level form using (var levelLoad = new LevelDesign.LevelSelect(StorageManagement.StorageManagement.getLevelList())) { // show the form levelLoad.ShowDialog(); // return the selected level return StorageManagement.StorageManagement.loadLevel(levelLoad.selectedLevelName); } }