private void SelectAllImagesOfRank() { int selectedRank; try { selectedRank = int.Parse(Interaction.InputBox("Enter a rank to select: ", "Select Images of Rank")); } catch // no response { return; } if (WallpaperData.ContainsRank(selectedRank)) { string[] imagesToSelect = WallpaperData.GetImagesOfRank(selectedRank); RebuildImageSelector_CheckRandomizer(imagesToSelect); } else { MessageBox.Show("Invalid Rank"); SelectAllImagesOfRank(); return; //? keep this here for just in case code is added below this segment in the future } }