-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmAbout.cs
75 lines (66 loc) · 2.08 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using System.Windows.Forms;
using UpgradeHelpers.Helpers;
namespace SKS
{
internal partial class frmAbout
: System.Windows.Forms.Form
{
// Reg Key Security Options...
const int READ_CONTROL = 0x20000;
const int KEY_QUERY_VALUE = 0x1;
const int KEY_SET_VALUE = 0x2;
const int KEY_CREATE_SUB_KEY = 0x4;
const int KEY_ENUMERATE_SUB_KEYS = 0x8;
const int KEY_NOTIFY = 0x10;
const int KEY_CREATE_LINK = 0x20;
const int KEY_ALL_ACCESS = KEY_QUERY_VALUE + KEY_SET_VALUE + KEY_CREATE_SUB_KEY + KEY_ENUMERATE_SUB_KEYS + KEY_NOTIFY + KEY_CREATE_LINK + READ_CONTROL;
// Reg Key ROOT Types...
const int HKEY_LOCAL_MACHINE = unchecked((int) 0x80000002);
const int ERROR_SUCCESS = 0;
const int REG_SZ = 1; // Unicode nul terminated string
const int REG_DWORD = 4; // 32-bit number
public frmAbout()
: base()
{
if (m_vb6FormDefInstance == null)
{
if (m_InitializingDefInstance)
{
m_vb6FormDefInstance = this;
}
else
{
try
{
//For the start-up form, the first instance created is the default instance.
if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint != null && System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
{
m_vb6FormDefInstance = this;
}
}
catch
{
}
}
}
//This call is required by the Windows Form Designer.
InitializeComponent();
ReLoadForm(false);
}
private void cmdOk_Click(Object eventSender, EventArgs eventArgs)
{
this.Close();
}
//UPGRADE_WARNING: (2080) Form_Load event was upgraded to Form_Load method and has a new behavior. More Information: https://www.mobilize.net/vbtonet/ewis/ewi2080
private void Form_Load()
{
this.Text = "About " + AssemblyHelper.GetTitle(System.Reflection.Assembly.GetExecutingAssembly());
//lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
lblTitle.Text = AssemblyHelper.GetTitle(System.Reflection.Assembly.GetExecutingAssembly());
}
private void Form_Closed(Object eventSender, EventArgs eventArgs)
{
}
}
}