diff --git a/MP-Tablet/About.aspx b/MP-Tablet/About.aspx new file mode 100644 index 00000000..27ca00bf --- /dev/null +++ b/MP-Tablet/About.aspx @@ -0,0 +1,20 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/jQueryMobile.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="MoonProTablet.About" %> + + + + +
+
+ Module Name
+ Main Assembly
+ .net framework
+ Libraries
+
+
+ <%: SteamWare.memLayer.ML.confReadString("CodModulo") %>
+ <%: mainAssembly %>
+ <%: runtimeImg %>
+
+
+
+
diff --git a/MP-Tablet/About.aspx.cs b/MP-Tablet/About.aspx.cs new file mode 100644 index 00000000..ab9d23a3 --- /dev/null +++ b/MP-Tablet/About.aspx.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Reflection; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MoonProTablet +{ + public partial class About : System.Web.UI.Page + { + protected Assembly assembly = Assembly.GetExecutingAssembly(); + protected void Page_Load(object sender, EventArgs e) + { + lblDllVersion.Text = librariesVers; + } + + public string mainAssembly + { + get + { + string answ = ""; + try + { + answ = assembly.FullName; + } + catch + { } + return answ; + } + } + public string runtimeImg + { + get + { + string answ = ""; + try + { + answ = assembly.ImageRuntimeVersion; + } + catch + { } + return answ; + } + } + public string librariesVers + { + get + { + string answ = ""; + try + { + AssemblyName[] referencedAssemblyNames = assembly.GetReferencedAssemblies(); + foreach (AssemblyName referencedAssemblyName in referencedAssemblyNames) + { + answ += referencedAssemblyName.FullName + "
"; + } + } + catch + { } + return answ; + } + } + } +} \ No newline at end of file diff --git a/MP-Tablet/About.aspx.designer.cs b/MP-Tablet/About.aspx.designer.cs new file mode 100644 index 00000000..744244a7 --- /dev/null +++ b/MP-Tablet/About.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MoonProTablet { + + + public partial class About { + + /// + /// Controllo lblDllVersion. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblDllVersion; + } +} diff --git a/MP-Tablet/MP-Tablet.csproj b/MP-Tablet/MP-Tablet.csproj index 615bf52c..8549ace4 100644 --- a/MP-Tablet/MP-Tablet.csproj +++ b/MP-Tablet/MP-Tablet.csproj @@ -148,6 +148,7 @@ + @@ -476,6 +477,13 @@ MoonPro.cs + + About.aspx + ASPXCodeBehind + + + About.aspx + diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs index 989717cb..6b098ed3 100644 --- a/MapoDb/MapoDb.cs +++ b/MapoDb/MapoDb.cs @@ -112,7 +112,6 @@ namespace MapoDb taAnOpr.Connection.ConnectionString = _connectionString; taDatiMacch.Connection.ConnectionString = _connectionString; taMSM.Connection.ConnectionString = _connectionString; - taDatiMacchine.Connection.ConnectionString = _connectionString; taTCRilevati.Connection.ConnectionString = _connectionString; }