Bozza metodi x nuove richieste x engine
This commit is contained in:
@@ -429,7 +429,7 @@ namespace WebWindowComplex
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Anteprima SVG
|
||||
/// Richiesta update anteprima SVG
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoPreviewSvg()
|
||||
@@ -443,7 +443,6 @@ namespace WebWindowComplex
|
||||
#endif
|
||||
// verifico variazione JWD
|
||||
if (!prevJwd.Equals(CurrJwd))
|
||||
//if (!prevJwd.Equals(LiveData.CurrJwd) || !prevJwd.Equals(CurrJwd))
|
||||
{
|
||||
prevJwd = CurrJwd;
|
||||
Dictionary<string, string> Args = new Dictionary<string, string>();
|
||||
@@ -454,6 +453,58 @@ namespace WebWindowComplex
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta calcolo Options HW da JWD
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoReqOptHardware()
|
||||
{
|
||||
if (m_CurrWindow != null)
|
||||
{
|
||||
#if DEBUG
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize(), Formatting.Indented);
|
||||
#else
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize());
|
||||
#endif
|
||||
// verifico variazione JWD
|
||||
if (!prevJwd.Equals(CurrJwd))
|
||||
{
|
||||
prevJwd = CurrJwd;
|
||||
Dictionary<string, string> Args = new Dictionary<string, string>();
|
||||
Args.Add("Mode", $"{(int)Enums.QuestionModes.HARDWAREMODELLIST}");
|
||||
Args.Add("SubMode", $"{(int)Enums.QuestionSubModes.HARDWAREOPTIONS}");
|
||||
Args.Add("Jwd", CurrJwd);
|
||||
await EC_OnUpdate.InvokeAsync(Args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta Shape compatibile da JWD
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoReqShape()
|
||||
{
|
||||
if (m_CurrWindow != null)
|
||||
{
|
||||
#if DEBUG
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize(), Formatting.Indented);
|
||||
#else
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize());
|
||||
#endif
|
||||
// verifico variazione JWD
|
||||
if (!prevJwd.Equals(CurrJwd))
|
||||
{
|
||||
prevJwd = CurrJwd;
|
||||
Dictionary<string, string> Args = new Dictionary<string, string>();
|
||||
Args.Add("Mode", $"{(int)Enums.QuestionModes.HARDWAREMODELLIST}");
|
||||
Args.Add("SubMode", $"{(int)Enums.QuestionSubModes.LIST}");
|
||||
Args.Add("Jwd", CurrJwd);
|
||||
await EC_OnUpdate.InvokeAsync(Args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Metodo di reset dei dati a quelli del template
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user