34 lines
853 B
C#
Raw Normal View History

2025-03-11 16:24:25 +08:00
using System.Collections.Generic;
public class ImageDataModel
{
readonly ExcelData excelData;
public ImageDataModel(ExcelData e)
{
excelData = e;
}
public List<ImageData> 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;
}
}