You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
4.0 KiB
157 lines
4.0 KiB
2 weeks ago
|
using System;
|
||
|
using System.ComponentModel;
|
||
|
using System.Deployment.Application;
|
||
|
using System.Drawing;
|
||
|
using System.IO;
|
||
|
using System.Reflection;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace iMonitorApp
|
||
|
{
|
||
|
// Token: 0x02000002 RID: 2
|
||
|
internal partial class AboutBox1 : Form
|
||
|
{
|
||
|
// Token: 0x06000001 RID: 1 RVA: 0x00002048 File Offset: 0x00000248
|
||
|
public AboutBox1()
|
||
|
{
|
||
|
this.InitializeComponent();
|
||
|
this.Text = string.Format("About {0}", this.AssemblyTitle);
|
||
|
this.labelProductName.Text = this.AssemblyProduct;
|
||
|
this.labelVersion.Text = string.Format("Version {0}", this.getVersion());
|
||
|
this.labelCopyright.Text = this.AssemblyCopyright;
|
||
|
this.linkLabel1.Text = "http://wiki.4ecap.com/4ECwiki/Alarm_Concept";
|
||
|
this.labelCompanyName.Text = this.AssemblyCompany;
|
||
|
}
|
||
|
|
||
|
// Token: 0x06000002 RID: 2 RVA: 0x000020E8 File Offset: 0x000002E8
|
||
|
private Version getVersion()
|
||
|
{
|
||
|
Version result;
|
||
|
try
|
||
|
{
|
||
|
result = ApplicationDeployment.CurrentDeployment.CurrentVersion;
|
||
|
}
|
||
|
catch
|
||
|
{
|
||
|
result = Assembly.GetExecutingAssembly().GetName().Version;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000001 RID: 1
|
||
|
// (get) Token: 0x06000003 RID: 3 RVA: 0x0000212C File Offset: 0x0000032C
|
||
|
public string AssemblyTitle
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
|
||
|
bool flag = customAttributes.Length != 0;
|
||
|
if (flag)
|
||
|
{
|
||
|
AssemblyTitleAttribute assemblyTitleAttribute = (AssemblyTitleAttribute)customAttributes[0];
|
||
|
bool flag2 = assemblyTitleAttribute.Title != "";
|
||
|
if (flag2)
|
||
|
{
|
||
|
return assemblyTitleAttribute.Title;
|
||
|
}
|
||
|
}
|
||
|
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000002 RID: 2
|
||
|
// (get) Token: 0x06000004 RID: 4 RVA: 0x00002198 File Offset: 0x00000398
|
||
|
public string AssemblyVersion
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000003 RID: 3
|
||
|
// (get) Token: 0x06000005 RID: 5 RVA: 0x000021C0 File Offset: 0x000003C0
|
||
|
public string AssemblyDescription
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
|
||
|
bool flag = customAttributes.Length == 0;
|
||
|
string result;
|
||
|
if (flag)
|
||
|
{
|
||
|
result = "";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
result = ((AssemblyDescriptionAttribute)customAttributes[0]).Description;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000004 RID: 4
|
||
|
// (get) Token: 0x06000006 RID: 6 RVA: 0x00002208 File Offset: 0x00000408
|
||
|
public string AssemblyProduct
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
|
||
|
bool flag = customAttributes.Length == 0;
|
||
|
string result;
|
||
|
if (flag)
|
||
|
{
|
||
|
result = "";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
result = ((AssemblyProductAttribute)customAttributes[0]).Product;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000005 RID: 5
|
||
|
// (get) Token: 0x06000007 RID: 7 RVA: 0x00002250 File Offset: 0x00000450
|
||
|
public string AssemblyCopyright
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||
|
bool flag = customAttributes.Length == 0;
|
||
|
string result;
|
||
|
if (flag)
|
||
|
{
|
||
|
result = "";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
result = ((AssemblyCopyrightAttribute)customAttributes[0]).Copyright;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x17000006 RID: 6
|
||
|
// (get) Token: 0x06000008 RID: 8 RVA: 0x00002298 File Offset: 0x00000498
|
||
|
public string AssemblyCompany
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
|
||
|
bool flag = customAttributes.Length == 0;
|
||
|
string result;
|
||
|
if (flag)
|
||
|
{
|
||
|
result = "";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
result = ((AssemblyCompanyAttribute)customAttributes[0]).Company;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|