UltimateZoneBuilder/Source/Core/Windows/AboutForm.cs

98 lines
2.7 KiB
C#
Raw Normal View History

#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.Runtime.InteropServices;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Config;
#endregion
namespace CodeImp.DoomBuilder.Windows
{
internal partial class AboutForm : DelayedForm
{
// Constructor
public AboutForm()
{
// Initialize
InitializeComponent();
// Show version
#if DEBUG
version.Text = Application.ProductName + " [DEVBUILD]";
#else
2023-05-26 14:55:19 +00:00
version.Text = Application.ProductName + " v" + Application.ProductVersion;
#endif
}
// Launch Doom Builder website
private void builderlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
General.OpenWebsite("http://" + builderlink.Text);
}
// Launch CodeImp website
private void codeimplink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
General.OpenWebsite("http://" + codeimplink.Text);
}
2019-12-24 09:59:58 +00:00
// UDB thread
private void zdoomorglink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
2019-12-24 17:47:07 +00:00
General.OpenWebsite("https://forum.zdoom.org/viewtopic.php?f=232&t=66745");
}
2019-12-24 09:59:58 +00:00
// UDB repo
private void gitlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
2019-12-24 17:47:07 +00:00
General.OpenWebsite("https://github.com/jewalky/UltimateDoomBuilder");
}
// This copies the version number to clipboard
private void copyversion_Click(object sender, EventArgs e)
{
try //mxd
{
Clipboard.SetDataObject(Application.ProductVersion + " (" + General.CommitHash + ")", true, 5, 200);
}
catch(ExternalException)
{
General.Interface.DisplayStatus(StatusType.Warning, "Failed to perform a Clipboard operation...");
}
}
2019-12-24 09:59:58 +00:00
// mxd's GZDB thread
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
General.OpenWebsite("https://forum.zdoom.org/viewtopic.php?f=44&t=32392");
}
// mxd's GZDB repo
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
General.OpenWebsite("https://github.com/m-x-d/GZDoom-Builder");
}
2023-05-26 14:55:19 +00:00
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
General.OpenWebsite("https://srb2.org");
}
}
}