Skip to content

Commit 35a1ea1

Browse files
committed
Add the section "Special thanks to" to the About dialog.
1 parent 2135e99 commit 35a1ea1

File tree

3 files changed

+51
-8
lines changed

3 files changed

+51
-8
lines changed

SmartSystemMenu/Forms/AboutForm.Designer.cs

Lines changed: 45 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SmartSystemMenu/Forms/AboutForm.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ namespace SmartSystemMenu.Forms
66
{
77
partial class AboutForm : Form
88
{
9-
private const string URL = "https://github.com/AlexanderPro/SmartSystemMenu";
9+
private const string URL_SMART_SYSTEM_MENU = "https://github.com/AlexanderPro/SmartSystemMenu";
10+
private const string URL_LIGHT_APIS = "https://github.com/LightAPIs";
11+
private const string URL_JAEHYUNG_LEE = "http://www.kolanp.com";
1012

1113
public AboutForm(SmartSystemMenuSettings settings)
1214
{
@@ -15,7 +17,7 @@ public AboutForm(SmartSystemMenuSettings settings)
1517
Text = settings.LanguageSettings.GetValue("about_form") + AssemblyUtils.AssemblyProductName;
1618
lblProductName.Text = string.Format("{0} v{1}", AssemblyUtils.AssemblyProductName, AssemblyUtils.AssemblyProductVersion);
1719
lblCopyright.Text = string.Format("{0}-{1} {2}", AssemblyUtils.AssemblyCopyright, DateTime.Now.Year, AssemblyUtils.AssemblyCompany);
18-
linkUrl.Text = URL;
20+
linkUrl.Text = URL_SMART_SYSTEM_MENU;
1921
}
2022

2123
private void CloseClick(object sender, EventArgs e)
@@ -27,7 +29,8 @@ private void LinkClick(object sender, EventArgs e)
2729
{
2830
try
2931
{
30-
SystemUtils.RunAsDesktopUser(SystemUtils.GetDefaultBrowserModuleName(), URL);
32+
var controlName = ((LinkLabel)sender).Name;
33+
SystemUtils.RunAsDesktopUser(SystemUtils.GetDefaultBrowserModuleName(), controlName == "linkLightAPIs" ? URL_LIGHT_APIS : controlName == "linkJaehyungLee" ? URL_JAEHYUNG_LEE : URL_SMART_SYSTEM_MENU);
3134
}
3235
catch
3336
{
1 KB
Binary file not shown.

0 commit comments

Comments
 (0)