63 lines
1.2 KiB
C#
63 lines
1.2 KiB
C#
using AppData;
|
|
using SteamWare;
|
|
using System;
|
|
using System.Configuration;
|
|
|
|
namespace C_TRACK.WebUserControls
|
|
{
|
|
public partial class cmp_about : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
public string IP
|
|
{
|
|
get
|
|
{
|
|
return Request.UserHostName;
|
|
}
|
|
}
|
|
|
|
public string versione
|
|
{
|
|
get
|
|
{
|
|
return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
|
}
|
|
}
|
|
public string copyRight
|
|
{
|
|
get
|
|
{
|
|
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
|
|
}
|
|
}
|
|
|
|
public string cssCheckClass
|
|
{
|
|
get
|
|
{
|
|
string answ = "border-warning";
|
|
try
|
|
{
|
|
if (licenzeApp.scadenzaLicenza >= DateTime.Now)
|
|
{
|
|
answ = "border-success";
|
|
}
|
|
else
|
|
{
|
|
answ = "border-warning bg-danger text-warning";
|
|
}
|
|
}
|
|
catch (Exception exc)
|
|
{
|
|
logger.lg.scriviLog($"Eccezione in cssCheckClass:{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |