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); } } /// /// mostr ai pannelli setup/dati install /// /// 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; } } } }