-
Notifications
You must be signed in to change notification settings - Fork 1
/
CreditsForm.cs
38 lines (33 loc) · 1.06 KB
/
CreditsForm.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
using System;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
namespace VolnovNotificator
{
public partial class CreditsForm : Form
{
public CreditsForm()
{
InitializeComponent();
}
private void volnovMailLb_Click(object sender, EventArgs e)
{
Process.Start("mailto:volnov@prankota.com");
}
private void CreditsForm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Hide();
}
private void CreditsForm_VisibleChanged(object sender, EventArgs e)
{
if(this.Visible == true)
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2);
}
private void CreditsForm_Load(object sender, EventArgs e)
{
appVersionLaber.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
}