Files
gpw_testci/GPW/infoPage.aspx.cs
2021-03-26 17:17:28 +01: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
{
public partial class infoPage : System.Web.UI.Page
{
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;
}
}
}
}