update x forzare refresh

This commit is contained in:
Samuele Locatelli
2025-10-30 15:19:39 +01:00
parent 2e4bc8b4d3
commit 16cf5eda54
3 changed files with 21 additions and 3 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
using Egw.Window.Data;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
@@ -116,7 +117,7 @@ namespace WebWindowComplex.Models
}
set
{
if (value >= 0 && value <= 4)
if (value >= 0 && value <= 3)
{
if (value > m_SashList.Count)
{
@@ -228,9 +229,16 @@ namespace WebWindowComplex.Models
}
}
}
// arriva come terzo evento refresh!!!
#if false
// calcolo senza hw
m_ParentWindow.OnUpdatePreview(JsonConvert.SerializeObject(m_ParentWindow.Serialize(true)));
#endif
// continuo refresh
ReqRefreshShape();
RefreshHardwareOptionList();
SetFirstHardware();
// da vedere: dovrebbe esserci un unico oggetto tra JsonConvert.SerializeObject(m_ParentWindow.Serialize(true) e m_ParentWindow.sSerialized()
m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized());
}
}