update rimozione warnings vari

This commit is contained in:
Samuele E. Locatelli
2020-09-07 11:03:21 +02:00
parent c16e66fe01
commit 485cd8cd6f
19 changed files with 834 additions and 773 deletions
+16 -4
View File
@@ -24,6 +24,18 @@ namespace GPW_Admin
return user_std.UtSn.Traduci(lemma);
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
string answ = "";
if (lemma != null)
answ = traduci(lemma.ToString());
return answ;
}
/// <summary>
/// Verifica se il valore sia > 0
/// </summary>
/// <param name="_valore"></param>
@@ -31,11 +43,11 @@ namespace GPW_Admin
public bool gtZero(object _valore)
{
bool answ = false;
if(_valore!=null)
if (_valore != null)
{
decimal valore = 0;
_ = decimal.TryParse(_valore.ToString(), out valore);
answ = valore > 0;
decimal valore = 0;
_ = decimal.TryParse(_valore.ToString(), out valore);
answ = valore > 0;
}
return answ;
}