Loading hw option
This commit is contained in:
@@ -164,6 +164,7 @@ namespace WebWindowComplex
|
||||
get => m_SashList;
|
||||
}
|
||||
|
||||
protected List<string> currLoading = new List<string>();
|
||||
protected string SelColorMaterial { get; set; } = "";
|
||||
protected string SelFamilyHardware { get; set; } = "";
|
||||
protected string SelGlass { get; set; } = "";
|
||||
@@ -502,7 +503,7 @@ namespace WebWindowComplex
|
||||
{
|
||||
if (m_CurrWindow != null)
|
||||
{
|
||||
isLoadingHwOpt = true;
|
||||
currLoading.Add("LoadHwOpt");
|
||||
#if DEBUG
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize(), Formatting.Indented);
|
||||
#else
|
||||
@@ -717,7 +718,6 @@ namespace WebWindowComplex
|
||||
}
|
||||
if (SashList.Count > 0)
|
||||
currAnta = 0;
|
||||
isLoadingHwOpt = false;
|
||||
#if false
|
||||
_ = InvokeAsync(StateHasChanged);
|
||||
#endif
|
||||
@@ -744,6 +744,7 @@ namespace WebWindowComplex
|
||||
// se ho le opzioni hw le aggiungo
|
||||
if (LiveData.DictOptionsXml.Count > 0)
|
||||
{
|
||||
currLoading.Remove("LoadHwOpt");
|
||||
foreach (var item in SashList)
|
||||
{
|
||||
if (LiveData.DictOptionsXml.ContainsKey(item.GroupId))
|
||||
@@ -806,8 +807,6 @@ namespace WebWindowComplex
|
||||
|
||||
private bool isRendered = false;
|
||||
|
||||
private bool isLoadingHwOpt = false;
|
||||
|
||||
/// <summary>
|
||||
/// ELenco errori di coerenza/link dati (vanno risolti per disegnare/procedere)
|
||||
/// </summary>
|
||||
@@ -1088,7 +1087,8 @@ namespace WebWindowComplex
|
||||
|
||||
private void M_CurrWindow_OnHwOption(object? sender, OnReqHwOptEventArgs e)
|
||||
{
|
||||
isLoadingHwOpt = true;
|
||||
currLoading.Add("LoadHwOpt");
|
||||
_ = InvokeAsync(StateHasChanged);
|
||||
Dictionary<string, string> Args = new Dictionary<string, string>();
|
||||
Args.Add("Mode", $"{(int)Enums.QuestionModes.HARDWARE}");
|
||||
Args.Add("SubMode", $"{(int)Enums.QuestionHwSubModes.HARDWAREOPTIONS}");
|
||||
|
||||
Reference in New Issue
Block a user