Pagina about x controllo librerie...
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/jQueryMobile.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="MoonProTablet.About" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="ui-grid-a" style="color: white;">
|
||||
<div class="ui-block-a" style="font-weight: bold;">
|
||||
Module Name<br />
|
||||
Main Assembly<br />
|
||||
.net framework<br />
|
||||
Libraries<br />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<%: SteamWare.memLayer.ML.confReadString("CodModulo") %><br />
|
||||
<%: mainAssembly %><br />
|
||||
<%: runtimeImg %><br />
|
||||
<asp:Label runat="server" ID="lblDllVersion" /><br />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -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 + "<br/>";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet {
|
||||
|
||||
|
||||
public partial class About {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDllVersion.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDllVersion;
|
||||
}
|
||||
}
|
||||
@@ -148,6 +148,7 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="About.aspx" />
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="Commenti.aspx" />
|
||||
<Content Include="Content\bootstrap-theme.css" />
|
||||
@@ -476,6 +477,13 @@
|
||||
<Compile Include="..\VersGen\MoonPro.cs">
|
||||
<Link>MoonPro.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="About.aspx.cs">
|
||||
<DependentUpon>About.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="About.aspx.designer.cs">
|
||||
<DependentUpon>About.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\BundleConfig.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Commenti.aspx.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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user