Update config x segnalazione errori/violazioni

This commit is contained in:
Samuele E. Locatelli
2020-07-15 18:37:02 +02:00
parent b1d97e3545
commit bbda7ab6cf
3 changed files with 27 additions and 18 deletions
+9
View File
@@ -2,3 +2,12 @@
# IDE0058: Il valore dell'espressione non viene mai usato
csharp_style_unused_value_expression_statement_preference = discard_variable:none
# IDE1006: Stili di denominazione
dotnet_diagnostic.IDE1006.severity = none
# CA5368: Impostare ViewStateUserKey per classi derivate da Page
dotnet_diagnostic.CA5368.severity = none
# CA1707: Gli identificatori non devono contenere caratteri di sottolineatura
dotnet_diagnostic.CA1707.severity = none
+8 -8
View File
@@ -7,14 +7,14 @@ using System.Web.UI.WebControls;
namespace NKC_WF
{
public partial class DevUtils : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class DevUtils : System.Web.UI.Page
{
if (!Page.IsPostBack)
{
((SiteMaster)this.Master).showSearch = false;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((SiteContent)this.Master).showSearch = false;
}
}
}
}
}
+10 -10
View File
@@ -4,18 +4,18 @@ using System.Web.UI;
namespace NKC_WF
{
public partial class ErrorsLog : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class ErrorsLog : System.Web.UI.Page
{
if (!Page.IsPostBack)
{
string PUID = memLayer.ML.QSS("PUID");
if (PUID != "")
protected void Page_Load(object sender, EventArgs e)
{
cmp_ErrorsLog.Puid = PUID;
if (!Page.IsPostBack)
{
string PUID = memLayer.ML.QSS("PUID");
if (!string.IsNullOrEmpty(PUID))
{
cmp_ErrorsLog.Puid = PUID;
}
}
}
}
}
}
}