-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAboutDialog.cs
56 lines (52 loc) · 1.4 KB
/
AboutDialog.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
/*
* Сделано в SharpDevelop.
* Пользователь: user
* Дата: 08.11.2013
* Время: 18:18
*
* Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Tetris
{
/// <summary>
/// Диалог "О программе"
/// </summary>
public partial class AboutDialog : Form
{
public AboutDialog()
{
InitializeComponent();
}
void Button1Click(object sender, EventArgs e)
{
DialogResult=DialogResult.OK;
}
void LinkLabel1LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start("http://vk.com/imaginarius");
}
catch
{
MessageBox.Show("Ваша упоротая ОС не смогла открыть ссылку -_-",
"Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
void LinkLabel2LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start("http://www.everaldo.com/");
}
catch
{
MessageBox.Show("Ваша упоротая ОС не смогла открыть ссылку -_-",
"Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}