frmAbout: fixed links in form for .net5.

This commit is contained in:
Shreyas Zare
2021-03-13 19:40:33 +05:30
parent 2df3c43e00
commit 5657d4a1d1

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System.Diagnostics;
using System.Windows.Forms;
namespace DnsServerSystemTrayApp
@@ -32,17 +33,32 @@ namespace DnsServerSystemTrayApp
private void lnkContactEmail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:" + lnkContactEmail.Text);
ProcessStartInfo processInfo = new ProcessStartInfo("mailto:" + lnkContactEmail.Text);
processInfo.UseShellExecute = true;
processInfo.Verb = "open";
Process.Start(processInfo);
}
private void lnkWebsite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(@"https://" + lnkWebsite.Text);
ProcessStartInfo processInfo = new ProcessStartInfo(@"https://" + lnkWebsite.Text);
processInfo.UseShellExecute = true;
processInfo.Verb = "open";
Process.Start(processInfo);
}
private void lnkTerms_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(@"https://go.technitium.com/?id=24");
ProcessStartInfo processInfo = new ProcessStartInfo(@"https://go.technitium.com/?id=24");
processInfo.UseShellExecute = true;
processInfo.Verb = "open";
Process.Start(processInfo);
}
}
}