Mesen-X/GUI.NET/Forms/frmAbout.cs

44 lines
1.1 KiB
C#
Raw Normal View History

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();
lblMesenVersion.Text = InteropEmu.GetMesenVersion();
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();
#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
}
}
}