-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAboutForm.cs
More file actions
43 lines (40 loc) · 1.21 KB
/
AboutForm.cs
File metadata and controls
43 lines (40 loc) · 1.21 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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Backsolate
{
public partial class AboutForm : Form
{
public AboutForm()
{
InitializeComponent();
}
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
private void TryOpenLink(string link)
{
try
{
// Open the URL in the default web browser
Process.Start(new ProcessStartInfo(link) { UseShellExecute = true });
}
catch (Exception ex)
{
MessageBox.Show($"An error occurred while trying to open the link '{link}': {ex.Message}", "Unable to open link", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void lblGitHubLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
TryOpenLink("https://github.com/theonlyasdk/backsolate-win");
}
}
}