Update x img piccole

This commit is contained in:
Samuele Locatelli
2023-09-21 19:27:16 +02:00
parent e88639e08e
commit 1e7d9dcc35
3 changed files with 15 additions and 4 deletions
+9 -3
View File
@@ -315,12 +315,18 @@ namespace MoonProTablet.WebUserControls
{
url = "Steamware.png";
}
// verifico esistenza macchina...
answ = $"./images/macchine/{url}";
// verifico esistenza macchina SMALL...
answ = $"./images/macchine/small/{url}";
string fullPath = Server.MapPath(answ);
if (!File.Exists(fullPath))
{
// metto default Steamware
// se non ci fosse cerco immagine fullsize
answ = $"./images/macchine/{url}";
fullPath = Server.MapPath(answ);
}
// altrimenti metto default Steamware
if (!File.Exists(fullPath))
{
answ = "./images/macchine/Steamware.png";
}
return answ;