-
Notifications
You must be signed in to change notification settings - Fork 2
/
frmAboutBox.cs
250 lines (232 loc) · 11.1 KB
/
frmAboutBox.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
internal class frmAboutBox : Form
{
private FrmMain frmMain_0;
private IContainer icontainer_0;
private Label labelProductName;
private LinkLabel linkBMTune;
private LinkLabel linkForum;
private Button okButton;
private PictureBox pictureBox1;
private LinkLabel linkLabel1;
private LinkLabel linkLabel2;
private TextBox textBoxDescription;
public frmAboutBox(ref FrmMain frm)
{
this.InitializeComponent();
this.frmMain_0 = frm;
this.Text = string.Format("About {0}", this.method_0());
this.labelProductName.Text = this.method_3() + " - " + this.frmMain_0.class15_0.CurrentBMTuneVersion;
/*foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}*/
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAboutBox));
this.labelProductName = new System.Windows.Forms.Label();
this.linkBMTune = new System.Windows.Forms.LinkLabel();
this.okButton = new System.Windows.Forms.Button();
this.textBoxDescription = new System.Windows.Forms.TextBox();
this.linkForum = new System.Windows.Forms.LinkLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// labelProductName
//
this.labelProductName.AutoSize = true;
this.labelProductName.Location = new System.Drawing.Point(13, 196);
this.labelProductName.Margin = new System.Windows.Forms.Padding(7, 0, 3, 0);
this.labelProductName.MaximumSize = new System.Drawing.Size(0, 18);
this.labelProductName.Name = "labelProductName";
this.labelProductName.Size = new System.Drawing.Size(82, 14);
this.labelProductName.TabIndex = 19;
this.labelProductName.Text = "Product Name";
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// linkBMTune
//
this.linkBMTune.AutoSize = true;
this.linkBMTune.Location = new System.Drawing.Point(11, 422);
this.linkBMTune.Name = "linkBMTune";
this.linkBMTune.Size = new System.Drawing.Size(50, 14);
this.linkBMTune.TabIndex = 29;
this.linkBMTune.TabStop = true;
this.linkBMTune.Text = "Website";
this.linkBMTune.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkBMTune_LinkClicked);
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.AutoSize = true;
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(269, 417);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(62, 25);
this.okButton.TabIndex = 24;
this.okButton.Text = "&OK";
//
// textBoxDescription
//
this.textBoxDescription.Location = new System.Drawing.Point(9, 217);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(7, 3, 3, 3);
this.textBoxDescription.Multiline = true;
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.Size = new System.Drawing.Size(322, 194);
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = resources.GetString("textBoxDescription.Text");
this.textBoxDescription.TextChanged += new System.EventHandler(this.textBoxDescription_TextChanged);
//
// linkForum
//
this.linkForum.AutoSize = true;
this.linkForum.Location = new System.Drawing.Point(67, 422);
this.linkForum.Name = "linkForum";
this.linkForum.Size = new System.Drawing.Size(89, 14);
this.linkForum.TabIndex = 30;
this.linkForum.TabStop = true;
this.linkForum.Text = "Facebook Page";
this.linkForum.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkForum_LinkClicked);
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = global::Properties.Resources.BMTune_Logo_150x901;
this.pictureBox1.Location = new System.Drawing.Point(10, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(321, 154);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Font = new System.Drawing.Font("Lucida Sans", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.linkLabel1.Location = new System.Drawing.Point(62, 172);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(217, 15);
this.linkLabel1.TabIndex = 31;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "END-USER LICENSE AGREEMENT";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Location = new System.Drawing.Point(162, 422);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(96, 14);
this.linkLabel2.TabIndex = 32;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "Facebook Group";
this.linkLabel2.Visible = false;
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// frmAboutBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(341, 448);
this.Controls.Add(this.linkLabel2);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.textBoxDescription);
this.Controls.Add(this.labelProductName);
this.Controls.Add(this.linkBMTune);
this.Controls.Add(this.okButton);
this.Controls.Add(this.linkForum);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmAboutBox";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About BMTune";
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void linkBMTune_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("http://www.bmtune.com/");
}
private void linkForum_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://www.facebook.com/BMTuneSoftware/");
}
public string method_0()
{
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (customAttributes.Length > 0)
{
AssemblyTitleAttribute attribute = (AssemblyTitleAttribute) customAttributes[0];
if (attribute.Title != "")
{
return attribute.Title;
}
}
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
public string method_3()
{
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (customAttributes.Length == 0)
{
return "";
}
return ((AssemblyProductAttribute) customAttributes[0]).Product;
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
private void textBoxDescription_TextChanged(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
frmCopyright frmCopyright_0 = new frmCopyright(ref frmMain_0);
frmCopyright_0.ShowDialog();
frmCopyright_0.Dispose();
frmCopyright_0 = null;
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://www.facebook.com/groups/BMTune/");
}
/*public string method_5()
{
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (customAttributes.Length == 0)
{
return "";
}
return ((AssemblyCompanyAttribute) customAttributes[0]).Company;
}*/
}