using System.Collections.Generic; public class ImageDataModel { readonly ExcelData excelData; public ImageDataModel(ExcelData e) { excelData = e; } public List GetImageDataList() { return excelData.allImageData; } public string GetImagePath(int value) { return excelData.GetImageData(value).ImagePath; } public string GetImageSoundText(int value) { return excelData.GetImageData(value).SoundText; } public string GetImageSoundPath(int value) { return excelData.GetImageData(value).SoundPath; } public string GetImageName(int value) { return excelData.GetImageData(value).ImageName; } public int GetGroup(int value) { return excelData.GetImageData(value).Group; } }