/
About.cs
97 lines (83 loc) · 3.53 KB
/
About.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/********************************************************************
* Copyright (C) 2015 Jeroen Pelgrims
* Copyright (C) 2015-2017 Antoine Aflalo
*
* 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 the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* 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.
********************************************************************/
using System.Windows.Forms;
using SoundSwitch.Localization;
using SoundSwitch.Localization.Factory;
using SoundSwitch.Model;
using SoundSwitch.Properties;
using SoundSwitch.Util.Url;
namespace SoundSwitch.UI.Forms
{
public partial class About : Form
{
private static readonly System.Drawing.Icon helpIcon = Resources.HelpIcon;
public About()
{
RightToLeft = new LanguageFactory().Get(AppModel.Instance.Language).IsRightToLeft ? RightToLeft.Yes : RightToLeft.No;
InitializeComponent();
Icon = helpIcon;
}
private void About_Load(object sender, System.EventArgs e)
{
LocalizeForm();
versionLinkLabel.Text = Application.ProductVersion;
appNameLabel.Text = Application.ProductName;
}
private void LocalizeForm()
{
// Form itself
Text = TrayIconStrings.about;
// Author and Program Info
authorAndProgramInfoGroupBox.Text = AboutStrings.author;
maintainedByLabel.Text = AboutStrings.maintained;
createdByLabel.Text = AboutStrings.created;
versionLabel.Text = AboutStrings.version;
logoMadeLabel.Text = AboutStrings.logo;
// Credits and Attribution
creditsAndAttributionGroupBox.Text = AboutStrings.credits;
iconsLabel.Text = AboutStrings.icons;
keyboardHotKeySystemLabel.Text = AboutStrings.keyboardHotkeys;
defaultPlaybackDeviceChangeLabel.Text = AboutStrings.defaultPlaybackDeviceChange;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("http://jeroenpelgrims.be");
}
private void Version_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("https://github.com/Belphemur/SoundSwitch/releases");
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("https://codefisher.org/pastel-svg/");
}
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("http://www.liensberger.it/web/blog/?p=207");
}
private void maintainerLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("https://www.aaflalo.me");
}
private void eretikLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("http://eretik.omegahg.com");
}
private void logoCreatorLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
BrowserUtil.OpenUrl("https://github.com/linadesteem");
}
}
}