public Image GetImage(string p_strPath)
{
if (String.IsNullOrEmpty(p_strPath))
return null;
if (!m_dicImageCache.ContainsKey(p_strPath))
{
try
{
m_dicImageCache[p_strPath] = new ExtendedImage(Mod.GetFile(p_strPath));
}
catch (FileNotFoundException)
{
return Properties.Resources.notFoundJPG;
}
}
return m_dicImageCache[p_strPath];
}
}