-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmAbout.cs
executable file
·55 lines (48 loc) · 1.6 KB
/
frmAbout.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
// Copyright © 2010 Xamasoft
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Xamasoft.JsonClassGenerator.UI
{
public partial class frmAbout : Form
{
public frmAbout()
{
InitializeComponent();
#if !APPSERVICES
btnSendFeedback.Visible = false;
btnCheckUpdates.Visible = false;
#endif
this.Font = SystemFonts.MessageBoxFont;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("http://www.xamasoft.com/json-class-generator");
}
private void frmAbout_Load(object sender, EventArgs e)
{
lblVersion.Text=string.Format(lblVersion.Text, System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() );
}
private void btnSendFeedback_Click(object sender, EventArgs e)
{
#if APPSERVICES
Program.appServices.ShowFeedbackForm(this);
#endif
}
private void btnCheckUpdates_Click(object sender, EventArgs e)
{
#if APPSERVICES
Program.appServices.UpdateChecker.ManualUpdatesCheck(this);
#endif
}
private void githubLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/JsonCSharpClassGenerator/JsonCSharpClassGenerator");
}
}
}