251 lines
11 KiB
C#
251 lines
11 KiB
C#
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;
|
|
}*/
|
|
}
|
|
|