Windows Form File /AgentMovieEditor/Modals/AboutForm.cs (C#)
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
namespace YariSoft.AgentMovieEditor.Modals
{
public class AboutForm : YariSoft.Utils.ModalBaseForm
{
private System.Windows.Forms.Label versionLabel;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.LinkLabel linkLabel3;
private System.Windows.Forms.Label authorLabel;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label labelToAuthor;
private System.ComponentModel.IContainer components = null;
public AboutForm()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
// TODO: Add any initialization after the InitializeComponent call
}
/// <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 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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutForm));
this.versionLabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.label2 = new System.Windows.Forms.Label();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.linkLabel3 = new System.Windows.Forms.LinkLabel();
this.authorLabel = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.labelToAuthor = new System.Windows.Forms.Label();
this.bottomPanel.SuspendLayout();
this.SuspendLayout();
//
// bottomPanel
//
this.bottomPanel.Controls.AddRange(new System.Windows.Forms.Control[] {
this.versionLabel});
this.bottomPanel.Location = new System.Drawing.Point(0, 204);
this.bottomPanel.Size = new System.Drawing.Size(282, 35);
this.bottomPanel.Visible = true;
//
// cancelButton
//
this.cancelButton.Location = new System.Drawing.Point(600, 8);
this.cancelButton.Visible = true;
//
// okButton
//
this.okButton.Location = new System.Drawing.Point(192, 8);
this.okButton.Visible = true;
//
// versionLabel
//
this.versionLabel.AutoSize = true;
this.versionLabel.Location = new System.Drawing.Point(8, 11);
this.versionLabel.Name = "versionLabel";
this.versionLabel.Size = new System.Drawing.Size(49, 13);
this.versionLabel.TabIndex = 4;
this.versionLabel.Text = "Version: ";
//
// label1
//
this.label1.Location = new System.Drawing.Point(104, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(184, 104);
this.label1.TabIndex = 5;
this.label1.Text = "This program configures Microsoft® Agent scenarios, which may be used in Database" +
" Commander. Your may specify your own scenarios or disable this feature. All i" +
"nformation about installation and licensing of Microsoft® Agent you may get from" +
"";
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(103, 109);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(149, 13);
this.linkLabel1.TabIndex = 6;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "www.microsoft.com/msagent";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(8, 162);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(74, 13);
this.label2.TabIndex = 7;
this.label2.Text = "Designed for: ";
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Location = new System.Drawing.Point(104, 162);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(118, 13);
this.linkLabel2.TabIndex = 8;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "Database Commander";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// linkLabel3
//
this.linkLabel3.AutoSize = true;
this.linkLabel3.Location = new System.Drawing.Point(104, 180);
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size(63, 13);
this.linkLabel3.TabIndex = 10;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "Igor Malkov";
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
//
// authorLabel
//
this.authorLabel.AutoSize = true;
this.authorLabel.Location = new System.Drawing.Point(8, 180);
this.authorLabel.Name = "authorLabel";
this.authorLabel.Size = new System.Drawing.Size(44, 13);
this.authorLabel.TabIndex = 11;
this.authorLabel.Text = "Author: ";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(8, 8);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(88, 112);
this.pictureBox1.TabIndex = 12;
this.pictureBox1.TabStop = false;
//
// labelToAuthor
//
this.labelToAuthor.Location = new System.Drawing.Point(8, 128);
this.labelToAuthor.Name = "labelToAuthor";
this.labelToAuthor.Size = new System.Drawing.Size(264, 32);
this.labelToAuthor.TabIndex = 13;
this.labelToAuthor.Text = "You may send to authors your configuration files. Your configuration may be inclu" +
"ded to distribution.";
//
// AboutForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(282, 239);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.labelToAuthor,
this.linkLabel1,
this.label1,
this.linkLabel3,
this.authorLabel,
this.linkLabel2,
this.label2,
this.bottomPanel,
this.pictureBox1});
this.Name = "AboutForm";
this.Text = "About";
this.Load += new System.EventHandler(this.AboutForm_Load);
this.bottomPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void AboutForm_Load(object sender, System.EventArgs e)
{
this.versionLabel.Text +=
Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("www.microsoft.com/msagent");
}
private void linkLabel2_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("http://dbcommander.sourceforge.net");
}
private void linkLabel3_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:emalkov@zahav.net.il");
}
}
}