Skip to content

Commit

Permalink
显示Core版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Jul 12, 2019
1 parent d7f3972 commit f5905fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EplOnCppGUI/MainForm.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using QIQI.EplOnCpp.Core;
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;

namespace QIQI.EplOnCpp.GUI
Expand Down Expand Up @@ -53,6 +54,9 @@ private void ConvertButton_Click(object sender, EventArgs e)
private void MainForm_Load(object sender, EventArgs e)
{
comboBox1.SelectedIndex = 0;
var coreVersionInfo = Attribute.GetCustomAttribute(typeof(ProjectConverter).Assembly, typeof(AssemblyInformationalVersionAttribute))
as AssemblyInformationalVersionAttribute;
this.Text = string.Format("EplOnCpp.GUI (Core: v{0})", coreVersionInfo?.InformationalVersion ?? "Unknown");
}

private void Button1_Click(object sender, EventArgs e)
Expand Down

0 comments on commit f5905fa

Please sign in to comment.