forked from ispysoftware/iSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutForm.cs
202 lines (184 loc) · 8.24 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
using System;
using System.ComponentModel;
using System.Windows.Forms;
namespace iSpyApplication
{
/// <summary>
/// Summary description for AboutForm.
/// </summary>
public class AboutForm : Form
{
private Label _lblCopyright;
private PictureBox _pictureBox1;
private Label _lblVersion;
private Button _btnOk;
private LinkLabel linkLabel1;
private TableLayoutPanel tableLayoutPanel1;
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public AboutForm( )
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
RenderResources();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
private void RenderResources()
{
_lblVersion.Text = string.Format("{0}{1} v{2}",
Application.ProductName, Program.Platform != "x86" ? " 64" : "",
Application.ProductVersion);
Helper.SetTitle(this);
_lblCopyright.Text = "Copyright \u00a9 2007-" + Helper.Now.Year+" DeveloperInABox";
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this._lblCopyright = new System.Windows.Forms.Label();
this._pictureBox1 = new System.Windows.Forms.PictureBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this._btnOk = new System.Windows.Forms.Button();
this._lblVersion = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
((System.ComponentModel.ISupportInitialize)(this._pictureBox1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// _lblCopyright
//
this._lblCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
this._lblCopyright.Location = new System.Drawing.Point(174, 25);
this._lblCopyright.Name = "_lblCopyright";
this._lblCopyright.Size = new System.Drawing.Size(249, 25);
this._lblCopyright.TabIndex = 13;
this._lblCopyright.Text = "Copyright © 2016 DeveloperInABox";
this._lblCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// _pictureBox1
//
this._pictureBox1.Image = global::iSpyApplication.Properties.Resources.ispy;
this._pictureBox1.Location = new System.Drawing.Point(3, 3);
this._pictureBox1.Name = "_pictureBox1";
this.tableLayoutPanel1.SetRowSpan(this._pictureBox1, 5);
this._pictureBox1.Size = new System.Drawing.Size(152, 142);
this._pictureBox1.TabIndex = 17;
this._pictureBox1.TabStop = false;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(174, 50);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Padding = new System.Windows.Forms.Padding(3);
this.linkLabel1.Size = new System.Drawing.Size(154, 23);
this.linkLabel1.TabIndex = 21;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "www.iSpyConnect.com";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// _btnOk
//
this._btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this._btnOk.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this._btnOk.Location = new System.Drawing.Point(333, 78);
this._btnOk.Name = "_btnOk";
this._btnOk.Size = new System.Drawing.Size(90, 26);
this._btnOk.TabIndex = 19;
this._btnOk.Text = "OK";
this._btnOk.UseVisualStyleBackColor = true;
this._btnOk.Click += new System.EventHandler(this.BtnOkClick);
//
// _lblVersion
//
this._lblVersion.AutoSize = true;
this._lblVersion.Location = new System.Drawing.Point(174, 0);
this._lblVersion.Name = "_lblVersion";
this._lblVersion.Size = new System.Drawing.Size(56, 17);
this._lblVersion.TabIndex = 18;
this._lblVersion.Text = "Version";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40.17595F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 59.82405F));
this.tableLayoutPanel1.Controls.Add(this._pictureBox1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this._lblVersion, 1, 0);
this.tableLayoutPanel1.Controls.Add(this._lblCopyright, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.linkLabel1, 1, 2);
this.tableLayoutPanel1.Controls.Add(this._btnOk, 1, 3);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(8, 8);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 5;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.Size = new System.Drawing.Size(426, 129);
this.tableLayoutPanel1.TabIndex = 22;
//
// AboutForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(442, 145);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutForm";
this.Padding = new System.Windows.Forms.Padding(8);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About";
this.Load += new System.EventHandler(this.AboutFormLoad);
((System.ComponentModel.ISupportInitialize)(this._pictureBox1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private void AboutFormLoad(object sender, EventArgs e)
{
}
private void LinkLabel2LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
MainForm.StartBrowser(MainForm.Website+"/");
}
private void BtnOkClick(object sender, EventArgs e)
{
Close();
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
MainForm.StartBrowser("http://www.ispyconnect.com");
}
}
}