private static string FindImagePathname(string folder, string filename) {
ClientBrand brand = new ClientBrand();
foreach (string path in brand.PathList) {
if (Path.GetFileName(path) == filename) {
string pathname = Path.Combine(folder, path.Substring(1));
if (File.Exists(pathname)) {
return pathname;
} else {
return null;
}
}
}
return null;
}