Menu

[38707f]: / FormAbout.cs  Maximize  Restore  History

Download this file

69 lines (59 with data), 2.4 kB

 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
using System;
using System.Windows.Forms;
namespace GitForce
{
public partial class FormAbout : Form
{
public FormAbout()
{
InitializeComponent();
ClassWinGeometry.Restore(this);
// Add the version number and the build date from the assembly info file
labelVersion.Text = "Version " + ClassVersion.GetVersion();
labelBuild.Text = ClassVersion.GetBuild();
// If there is a new version available, show the label and a button
labelNewVersionAvailable.Visible = btDownload.Visible = App.Version.NewVersionAvailable;
textLic.Text =
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR " +
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," +
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE " +
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER " +
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, " +
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN " +
"THE SOFTWARE.";
}
/// <summary>
/// Form is closing.
/// </summary>
private void FormAboutFormClosing(object sender, FormClosingEventArgs e)
{
ClassWinGeometry.Save(this);
}
/// <summary>
/// User clicked on a link to the GPL license
/// </summary>
private void LinkGplClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
ClassHelp.Handler("GPL");
}
private void LinkBaltazarStudiosLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
ClassHelp.Handler("BaltazarStudios");
}
/// <summary>
/// User clicked on the "Copy Email" button
/// Copy the email address to clipboard.
/// </summary>
private void BtCopyEmailClick(object sender, EventArgs e)
{
Clipboard.SetText("BaltazarStudios@gmail.com");
}
/// <summary>
/// User clicked a button to download a new version
/// </summary>
private void DownloadClick(object sender, EventArgs e)
{
ClassHelp.Handler("Download");
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.