Modifiche utente base (solo in view)

This commit is contained in:
Annamaria Sassi
2026-08-13 11:10:50 +02:00
parent 9e8e02d75b
commit c0b8bc752c
22 changed files with 478 additions and 327 deletions
+21 -6
View File
@@ -56,7 +56,7 @@ namespace WebWindowComplex
/// Livello di accesso (utente base)
/// </summary>
[Parameter]
public bool baseUser { get; set; } = false!;
public bool BaseUser { get; set; } = false!;
/// <summary>
/// Classe override css x SVG (x rescale)
@@ -241,8 +241,8 @@ namespace WebWindowComplex
if (m_CurrWindow != null && m_CurrWindow.AreaList != null && m_CurrWindow.AreaList.Count > 0)
{
checkWarnings();
if (SashGroupList.Count > 0)
currAntaIndex = 0;
//if (SashGroupList.Count > 0)
// currAntaIndex = 0;
if (updRequested)
{
// se mancasse dizionario forme chiamo quello
@@ -314,7 +314,7 @@ namespace WebWindowComplex
private static Logger Log = LogManager.GetCurrentClassLogger();
private int currAntaIndex = 0;
//private int currAntaIndex = 0;
private int currFillIndex = -1;
@@ -1404,8 +1404,8 @@ namespace WebWindowComplex
prevHardware[i] = SashGroupList.ElementAt(i).SelHardware;
}
}
if (SashGroupList.Count > 0)
currAntaIndex = 0;
//if (SashGroupList.Count > 0)
// currAntaIndex = 0;
// Aggiorno window con dati shape e hw option
UpdateDict();
}
@@ -2290,6 +2290,21 @@ namespace WebWindowComplex
}
}
/// <summary>
/// Metodo per traduzione in lingua corrente
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
private string Traduci(string lemma)
{
string ans = lemma;
if (Vocabulary != null && Vocabulary.ContainsKey(lemma))
{
ans = Vocabulary.GetValueOrDefault(lemma) ?? "";
}
return ans;
}
#endregion Private Methods
}
}