2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
using System;
|
2016-05-06 08:47:30 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2009-04-19 18:07:22 +00:00
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Windows
|
|
|
|
{
|
|
|
|
internal partial class AboutForm : DelayedForm
|
|
|
|
{
|
|
|
|
// Constructor
|
|
|
|
public AboutForm()
|
|
|
|
{
|
|
|
|
// Initialize
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
// Show version
|
2015-01-06 11:49:06 +00:00
|
|
|
#if DEBUG
|
|
|
|
version.Text = Application.ProductName + " [DEVBUILD]";
|
|
|
|
#else
|
|
|
|
version.Text = Application.ProductName + " v" + Application.ProductVersion;
|
|
|
|
#endif
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Launch Doom Builder website
|
|
|
|
private void builderlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
|
|
|
General.OpenWebsite("http://" + builderlink.Text);
|
|
|
|
}
|
|
|
|
|
2009-04-25 06:55:17 +00:00
|
|
|
// Launch CodeImp website
|
|
|
|
private void codeimplink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
|
|
|
General.OpenWebsite("http://" + codeimplink.Text);
|
|
|
|
}
|
|
|
|
|
2013-09-11 09:47:53 +00:00
|
|
|
//mxd
|
2014-12-03 23:15:26 +00:00
|
|
|
private void gzdbLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
2013-09-11 09:47:53 +00:00
|
|
|
General.OpenWebsite("http://forum.zdoom.org/viewtopic.php?f=3&t=32392");
|
|
|
|
}
|
2012-07-17 22:51:55 +00:00
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
// This copies the version number to clipboard
|
|
|
|
private void copyversion_Click(object sender, EventArgs e)
|
|
|
|
{
|
2016-05-06 08:47:30 +00:00
|
|
|
try //mxd
|
|
|
|
{
|
|
|
|
Clipboard.SetDataObject(Application.ProductVersion, true, 5, 200);
|
|
|
|
}
|
|
|
|
catch(ExternalException)
|
|
|
|
{
|
|
|
|
General.Interface.DisplayStatus(StatusType.Warning, "Failed to perform a Clipboard operation...");
|
|
|
|
}
|
2012-11-11 21:52:08 +00:00
|
|
|
}
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
}
|