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
+6 -1
View File
@@ -419,7 +419,12 @@
<Content Include="images\LogoMapoFull.png" />
<Content Include="images\logoTextSteamware.png" />
<Content Include="images\logoSteamware.png" />
<Content Include="images\macchine\Steamware.png" />
<Content Include="images\macchine\small\Steamware.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="images\macchine\Steamware.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="images\ST_img\Steamware.png" />
<Content Include="IOB-info.aspx" />
<Content Include="jumper.aspx" />
+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;
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB