forked from naudio/NAudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutForm.cs
71 lines (64 loc) · 2.03 KB
/
AboutForm.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace NAudio.Utils
{
/// <summary>
/// A standard about form
/// </summary>
public partial class AboutForm : Form
{
/// <summary>
/// Creates a new about form
/// </summary>
public AboutForm()
{
InitializeComponent();
labelProductName.Text = Application.ProductName;
labelVersion.Text = String.Format("Version: {0}", Application.ProductVersion);
this.Text = String.Format("About {0}", Application.ProductName);
}
private void linkLabelWebsite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(linkLabelWebsite.Text);
}
private void linkLabelFeedback_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:" + linkLabelFeedback.Text);
}
private void buttonOK_Click(object sender, EventArgs e)
{
this.Close();
}
/// <summary>
/// The URL of the website to use for help
/// e.g. http://www.codeplex.com/naudio
/// </summary>
public string Url
{
get { return linkLabelWebsite.Text; }
set { linkLabelWebsite.Text = value; }
}
/// <summary>
/// The email address for feedback
/// </summary>
public string Email
{
get { return linkLabelFeedback.Text; }
set { linkLabelFeedback.Text = value; }
}
/// <summary>
/// The copyright info
/// e.g. Copyright © 2007 Mark Heath
/// </summary>
public string Copyright
{
get { return labelCopyright.Text; }
set { labelCopyright.Text = value; }
}
}
}