|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.Reflection;
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
namespace MOKA_Factory_Tools
|
|
@@ -11,6 +12,17 @@ namespace MOKA_Factory_Tools
|
|
|
[STAThread]
|
|
|
static void Main()
|
|
|
{
|
|
|
+ // 程序集信息;
|
|
|
+ Assembly asm = Assembly.GetExecutingAssembly();
|
|
|
+ // 获取公司名称;
|
|
|
+ AssemblyCompanyAttribute asmcpn = (AssemblyCompanyAttribute)Attribute.GetCustomAttribute(asm, typeof(AssemblyCompanyAttribute));
|
|
|
+ // 获取版本信息;
|
|
|
+ AssemblyCopyrightAttribute asmCP = (AssemblyCopyrightAttribute)Attribute.GetCustomAttribute(asm, typeof(AssemblyCopyrightAttribute));
|
|
|
+ // 获取描述;
|
|
|
+ AssemblyDescriptionAttribute asmdis = (AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(asm, typeof(AssemblyDescriptionAttribute));
|
|
|
+
|
|
|
+ SXLibrary.Log.WriteInfoLog(string.Format("Program hash value = {0}", asmCP.Copyright));
|
|
|
+
|
|
|
Application.EnableVisualStyles();
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
Application.Run(new login());
|