using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace TeamXBMC.Translator { /// /// Shows info about the application. /// public sealed class AboutForm : System.Windows.Forms.Form { private System.Windows.Forms.Button buttonOk; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.GroupBox groupBox1; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public AboutForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.buttonOk = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // buttonOk // this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonOk.Location = new System.Drawing.Point(109, 112); this.buttonOk.Name = "buttonOk"; this.buttonOk.TabIndex = 0; this.buttonOk.Text = "OK"; // // label1 // this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label1.Location = new System.Drawing.Point(28, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(208, 23); this.label1.TabIndex = 1; this.label1.Text = "Team XBMC Translator 0.21"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label1.UseMnemonic = false; // // label2 // this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label2.Location = new System.Drawing.Point(28, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(208, 23); this.label2.TabIndex = 2; this.label2.Text = "Copyright © 2006 Team XBMC"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label2.UseMnemonic = false; // // linkLabel1 // this.linkLabel1.Cursor = System.Windows.Forms.Cursors.Hand; this.linkLabel1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.linkLabel1.Location = new System.Drawing.Point(28, 64); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(208, 23); this.linkLabel1.TabIndex = 3; this.linkLabel1.TabStop = true; this.linkLabel1.Tag = ""; this.linkLabel1.Text = "http://xbmc.org"; this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.linkLabel1.UseMnemonic = false; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // groupBox1 // this.groupBox1.Controls.Add(this.linkLabel1); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label1); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox1.Location = new System.Drawing.Point(14, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(264, 96); this.groupBox1.TabIndex = 4; this.groupBox1.TabStop = false; // // AboutForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.buttonOk; this.ClientSize = new System.Drawing.Size(292, 142); this.Controls.Add(this.groupBox1); this.Controls.Add(this.buttonOk); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "AboutForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "About"; this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); } #endregion #region Control Events /// /// Reacts on a click of the linklable and opens the url (label of the control) /// in the standard browser. /// private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start(linkLabel1.Text); } #endregion } }