using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

namespace QDART_MFG_CfgEditor;

public class AboutForm : Form
{
	private IContainer components;

	private PictureBox pictureBox1;

	private Label labelAboutName;

	private Button btnOK;

	private Label labelAboutContent;

	private Label label1;

	private Label lbCopyright;

	public AboutForm()
	{
		InitializeComponent();
	}

	private void btnOK_Click(object sender, EventArgs e)
	{
		Close();
	}

	private void AboutForm_Load(object sender, EventArgs e)
	{
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("Version " + Application.ProductVersion);
		FileInfo fileInfo = new FileInfo(Assembly.GetExecutingAssembly().Location);
		stringBuilder.AppendLine("Last Modified " + fileInfo.LastWriteTime.ToString());
		labelAboutContent.Text = stringBuilder.ToString();
	}

	private void AboutForm_MouseClick(object sender, MouseEventArgs e)
	{
		Close();
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QDART_MFG_CfgEditor.AboutForm));
		this.labelAboutName = new System.Windows.Forms.Label();
		this.btnOK = new System.Windows.Forms.Button();
		this.labelAboutContent = new System.Windows.Forms.Label();
		this.pictureBox1 = new System.Windows.Forms.PictureBox();
		this.label1 = new System.Windows.Forms.Label();
		this.lbCopyright = new System.Windows.Forms.Label();
		((System.ComponentModel.ISupportInitialize)this.pictureBox1).BeginInit();
		base.SuspendLayout();
		this.labelAboutName.AutoSize = true;
		this.labelAboutName.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.labelAboutName.ForeColor = System.Drawing.SystemColors.HotTrack;
		this.labelAboutName.Location = new System.Drawing.Point(82, 18);
		this.labelAboutName.Name = "labelAboutName";
		this.labelAboutName.Size = new System.Drawing.Size(246, 24);
		this.labelAboutName.TabIndex = 1;
		this.labelAboutName.Text = "QDART Configuration Editor";
		this.labelAboutName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
		this.btnOK.Location = new System.Drawing.Point(185, 172);
		this.btnOK.Name = "btnOK";
		this.btnOK.Size = new System.Drawing.Size(94, 23);
		this.btnOK.TabIndex = 2;
		this.btnOK.Text = "Ok";
		this.btnOK.UseVisualStyleBackColor = true;
		this.btnOK.Click += new System.EventHandler(btnOK_Click);
		this.labelAboutContent.AutoSize = true;
		this.labelAboutContent.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.labelAboutContent.Location = new System.Drawing.Point(84, 117);
		this.labelAboutContent.Name = "labelAboutContent";
		this.labelAboutContent.Size = new System.Drawing.Size(92, 32);
		this.labelAboutContent.TabIndex = 3;
		this.labelAboutContent.Text = "\r\nAssembly info";
		this.pictureBox1.Image = (System.Drawing.Image)resources.GetObject("pictureBox1.Image");
		this.pictureBox1.Location = new System.Drawing.Point(12, 18);
		this.pictureBox1.Name = "pictureBox1";
		this.pictureBox1.Size = new System.Drawing.Size(64, 64);
		this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
		this.pictureBox1.TabIndex = 0;
		this.pictureBox1.TabStop = false;
		this.label1.AutoSize = true;
		this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.label1.Location = new System.Drawing.Point(84, 87);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(393, 16);
		this.label1.TabIndex = 4;
		this.label1.Text = "This tool is for editing different types of QDART configuration files.";
		this.lbCopyright.AutoSize = true;
		this.lbCopyright.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.lbCopyright.Location = new System.Drawing.Point(84, 56);
		this.lbCopyright.Name = "lbCopyright";
		this.lbCopyright.Size = new System.Drawing.Size(338, 16);
		this.lbCopyright.TabIndex = 5;
		this.lbCopyright.Text = "Copyright 2015 - 2016 Qualcomm Inc. All rights reserved.";
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(499, 219);
		base.Controls.Add(this.lbCopyright);
		base.Controls.Add(this.label1);
		base.Controls.Add(this.labelAboutContent);
		base.Controls.Add(this.btnOK);
		base.Controls.Add(this.labelAboutName);
		base.Controls.Add(this.pictureBox1);
		base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
		base.Name = "AboutForm";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "About QDART Configuration Editor";
		base.Load += new System.EventHandler(AboutForm_Load);
		base.MouseClick += new System.Windows.Forms.MouseEventHandler(AboutForm_MouseClick);
		((System.ComponentModel.ISupportInitialize)this.pictureBox1).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
