2016-02-07 16:13:48 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
2016-12-24 21:27:28 -05:00
|
|
|
|
using System.Diagnostics;
|
2016-02-07 16:13:48 -05:00
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Forms
|
|
|
|
|
{
|
2016-02-08 23:23:31 -05:00
|
|
|
|
partial class frmAbout : BaseForm
|
2016-02-07 16:13:48 -05:00
|
|
|
|
{
|
|
|
|
|
public frmAbout()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2018-06-14 01:05:49 -04:00
|
|
|
|
|
|
|
|
|
lblMesenVersion.Text = InteropEmu.GetMesenVersion();
|
|
|
|
|
|
2018-07-28 22:00:12 -04:00
|
|
|
|
Version ver = System.Reflection.Assembly.GetEntryAssembly().GetName().Version;
|
|
|
|
|
DateTime buildTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddDays(ver.Build).AddSeconds(ver.Revision * 2);
|
|
|
|
|
lblBuildDate.Text = buildTime.ToShortDateString() + " " + buildTime.ToShortTimeString();
|
|
|
|
|
|
2018-06-14 01:05:49 -04:00
|
|
|
|
#if AUTOBUILD
|
|
|
|
|
string devVersion = ResourceManager.ReadZippedResource("DevBuild.txt");
|
|
|
|
|
if(devVersion != null) {
|
|
|
|
|
lblMesenVersion.Text = devVersion;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2016-02-07 16:13:48 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void lblLink_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2016-12-24 21:27:28 -05:00
|
|
|
|
Process.Start("http://www.mesen.ca");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void picDonate_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Process.Start("http://www.mesen.ca/Donate.php?l=" + ResourceHelper.GetLanguageCode());
|
2016-02-07 16:13:48 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|