Skip to content

Commit

Permalink
Added translaters to About dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPro committed Jun 22, 2022
1 parent 1029c67 commit ae9d909
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 11 deletions.
92 changes: 84 additions & 8 deletions SmartSystemMenu/Forms/AboutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions SmartSystemMenu/Forms/AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ partial class AboutForm : Form
private const string URL_LIGHT_APIS = "https://github.com/LightAPIs";
private const string URL_WENGH = "https://github.com/wengh";
private const string URL_JAEHYUNG_LEE = "http://www.kolanp.com";
private const string URL_MAROCCO2 = "https://github.com/Marocco2";
private const string URL_SAIYAJINK = "https://github.com/SaiyajinK";

public AboutForm(LanguageSettings settings)
{
Expand All @@ -31,11 +33,13 @@ private void LinkClick(object sender, EventArgs e)
try
{
var controlName = ((LinkLabel)sender).Name;
SystemUtils.RunAs(SystemUtils.GetDefaultBrowserModuleName(),
controlName == "linkLightAPIs" ? URL_LIGHT_APIS :
var url = controlName == "linkLightAPIs" ? URL_LIGHT_APIS :
controlName == "linkWengh" ? URL_WENGH :
controlName == "linkJaehyungLee" ? URL_JAEHYUNG_LEE :
URL_SMART_SYSTEM_MENU, true, UserType.Normal);
controlName == "linkMarocco2" ? URL_MAROCCO2 :
controlName == "linkSaiyajinK" ? URL_SAIYAJINK :
URL_SMART_SYSTEM_MENU;
SystemUtils.RunAs(SystemUtils.GetDefaultBrowserModuleName(), url, true, UserType.Normal);
}
catch
{
Expand Down

0 comments on commit ae9d909

Please sign in to comment.