Files
GPW/GPW_Admin/infoPage.aspx.cs
T
Samuele E. Locatelli e4973c2d39 Fix warnings progetto ADM
2020-09-07 10:30:02 +02:00

49 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GPW_data;
namespace GPW_Admin
{
public partial class infoPage : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (licenzeGPW.modApp == "runtime")
{
setupPanels(true);
}
else
{
setupPanels(false);
}
}
/// <summary>
/// mostr ai pannelli setup/dati install
/// </summary>
/// <param name="showInstall"></param>
private void setupPanels(bool showInstall)
{
if (showInstall)
{
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
{
pnlCheck.CssClass = "btnVerdeGrad ui-corner-all shadowBox";
}
else
{
pnlCheck.CssClass = "btnRossoGrad ui-corner-all shadowBox";
}
lblInstallation.Text = licenzeGPW.installazione;
lblApplication.Text = licenzeGPW.applicazione;
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
lblNumLic.ToolTip = "licenze valide (licenze su db)";
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
lblAuthKey.Text = licenzeGPW.authKey;
}
}
}
}