62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace WebMasterPages
|
|
{
|
|
public partial class BootstrapNoUpdPnl : System.Web.UI.MasterPage
|
|
{
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
setTimer();
|
|
updateLabels();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Versione corrente sw
|
|
/// </summary>
|
|
public Version currVersion
|
|
{
|
|
get
|
|
{
|
|
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
|
/// </summary>
|
|
private void setTimer()
|
|
{
|
|
Timer1.Interval = SteamWare.memLayer.ML.CRI("intUpdatePagina_ms");
|
|
}
|
|
protected void Timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
updateLabels();
|
|
}
|
|
private void updateLabels()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Dimensione schermata video attuale
|
|
/// </summary>
|
|
public string videoSize
|
|
{
|
|
get
|
|
{
|
|
string answ = "?x?";
|
|
if (Session["BrowserWidth"] != null)
|
|
{
|
|
answ = string.Format("{0} x {1}", Session["BrowserWidth"], Session["BrowserHeight"]);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |