public static string GetImagePathname(string name, string type = "png") {
string filename = name + "." + type;
string brandFolder = Path.Combine(ConfigManager.CurrentConfig.GetConfigPath(), Program.Controller.BrandConfigFolder);
string pathname = FindImagePathname(brandFolder, filename);
if (!string.IsNullOrEmpty(pathname)) {
return pathname;
}
pathname = Path.Combine(NSBundle.MainBundle.ResourcePath, "Pixmaps", filename);
if (File.Exists(pathname)) {
return pathname;
}
return Path.Combine(NSBundle.MainBundle.ResourcePath, filename);
}