2007-06-15 22:38:42 +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;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Drawing;
|
|
|
|
using System.Text;
|
|
|
|
using System.Windows.Forms;
|
2007-07-07 09:40:34 +00:00
|
|
|
using Microsoft.Win32;
|
|
|
|
using System.Diagnostics;
|
2008-05-19 21:33:07 +00:00
|
|
|
using System.Reflection;
|
2008-05-29 11:54:45 +00:00
|
|
|
using CodeImp.DoomBuilder.Controls;
|
2007-06-15 22:38:42 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
2008-05-29 11:54:45 +00:00
|
|
|
namespace CodeImp.DoomBuilder.Windows
|
2007-06-15 22:38:42 +00:00
|
|
|
{
|
2008-01-02 21:49:43 +00:00
|
|
|
internal partial class AboutForm : DelayedForm
|
2007-06-15 22:38:42 +00:00
|
|
|
{
|
|
|
|
// Constructor
|
|
|
|
public AboutForm()
|
|
|
|
{
|
|
|
|
// Initialize
|
|
|
|
InitializeComponent();
|
2008-05-19 21:33:07 +00:00
|
|
|
|
|
|
|
// Show version
|
|
|
|
string postfix = "";
|
|
|
|
if(General.DebugBuild) postfix = "(debug)";
|
|
|
|
version.Text = Application.ProductName + " version " + Application.ProductVersion + " " + postfix;
|
2007-06-15 22:38:42 +00:00
|
|
|
}
|
2007-07-07 09:40:34 +00:00
|
|
|
|
|
|
|
// Launch Doom Builder website
|
|
|
|
private void builderlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
2009-01-30 22:19:10 +00:00
|
|
|
General.OpenWebsite("http://" + builderlink.Text);
|
2007-07-07 09:40:34 +00:00
|
|
|
}
|
2009-01-04 21:29:08 +00:00
|
|
|
|
|
|
|
// This copies the version number to clipboard
|
|
|
|
private void copyversion_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
Clipboard.Clear();
|
|
|
|
Clipboard.SetText(Application.ProductVersion);
|
|
|
|
}
|
2007-06-15 22:38:42 +00:00
|
|
|
}
|
|
|
|
}
|