54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using GPW_data;
|
|
using System;
|
|
|
|
namespace GPW_Admin
|
|
{
|
|
public partial class About : BasePage
|
|
{
|
|
#region Private Methods
|
|
|
|
/// <summary>
|
|
/// mostr ai pannelli setup/dati install
|
|
/// </summary>
|
|
/// <param name="showInstall"></param>
|
|
private void setupPanels(bool showInstall)
|
|
{
|
|
if (showInstall)
|
|
{
|
|
divCheck.Attributes.Remove("class");
|
|
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
|
|
{
|
|
divCheck.Attributes.Add("class", "alert alert-success shadowBox");
|
|
}
|
|
else
|
|
{
|
|
divCheck.Attributes.Add("class", "alert alert-danger 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;
|
|
}
|
|
}
|
|
|
|
#endregion Private Methods
|
|
|
|
#region Protected Methods
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (licenzeGPW.modApp == "runtime")
|
|
{
|
|
setupPanels(true);
|
|
}
|
|
else
|
|
{
|
|
setupPanels(false);
|
|
}
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |