2 * Copyright (C) 2006-2013 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
24 using System.Collections;
25 using System.ComponentModel;
26 using System.Windows.Forms;
28 namespace TeamXBMC.Translator
31 /// Shows info about the application.
33 public sealed class AboutForm : System.Windows.Forms.Form
35 private System.Windows.Forms.Button buttonOk;
36 private System.Windows.Forms.Label label1;
37 private System.Windows.Forms.Label label2;
38 private System.Windows.Forms.LinkLabel linkLabel1;
39 private System.Windows.Forms.GroupBox groupBox1;
41 /// Required designer variable.
43 private System.ComponentModel.Container components = null;
48 // Required for Windows Form Designer support
50 InitializeComponent();
53 // TODO: Add any constructor code after InitializeComponent call
58 /// Clean up any resources being used.
60 protected override void Dispose( bool disposing )
64 if(components != null)
69 base.Dispose( disposing );
72 #region Windows Form Designer generated code
74 /// Required method for Designer support - do not modify
75 /// the contents of this method with the code editor.
77 private void InitializeComponent()
79 this.buttonOk = new System.Windows.Forms.Button();
80 this.label1 = new System.Windows.Forms.Label();
81 this.label2 = new System.Windows.Forms.Label();
82 this.linkLabel1 = new System.Windows.Forms.LinkLabel();
83 this.groupBox1 = new System.Windows.Forms.GroupBox();
84 this.groupBox1.SuspendLayout();
89 this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.Cancel;
90 this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.System;
91 this.buttonOk.Location = new System.Drawing.Point(109, 112);
92 this.buttonOk.Name = "buttonOk";
93 this.buttonOk.TabIndex = 0;
94 this.buttonOk.Text = "OK";
98 this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
99 this.label1.Location = new System.Drawing.Point(28, 16);
100 this.label1.Name = "label1";
101 this.label1.Size = new System.Drawing.Size(208, 23);
102 this.label1.TabIndex = 1;
103 this.label1.Text = "Team XBMC Translator 0.21";
104 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
105 this.label1.UseMnemonic = false;
109 this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
110 this.label2.Location = new System.Drawing.Point(28, 40);
111 this.label2.Name = "label2";
112 this.label2.Size = new System.Drawing.Size(208, 23);
113 this.label2.TabIndex = 2;
114 this.label2.Text = "Copyright (C) 2006-2013 Team XBMC";
115 this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
116 this.label2.UseMnemonic = false;
120 this.linkLabel1.Cursor = System.Windows.Forms.Cursors.Hand;
121 this.linkLabel1.FlatStyle = System.Windows.Forms.FlatStyle.System;
122 this.linkLabel1.Location = new System.Drawing.Point(28, 64);
123 this.linkLabel1.Name = "linkLabel1";
124 this.linkLabel1.Size = new System.Drawing.Size(208, 23);
125 this.linkLabel1.TabIndex = 3;
126 this.linkLabel1.TabStop = true;
127 this.linkLabel1.Tag = "";
128 this.linkLabel1.Text = "http://xbmc.org";
129 this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
130 this.linkLabel1.UseMnemonic = false;
131 this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
135 this.groupBox1.Controls.Add(this.linkLabel1);
136 this.groupBox1.Controls.Add(this.label2);
137 this.groupBox1.Controls.Add(this.label1);
138 this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
139 this.groupBox1.Location = new System.Drawing.Point(14, 8);
140 this.groupBox1.Name = "groupBox1";
141 this.groupBox1.Size = new System.Drawing.Size(264, 96);
142 this.groupBox1.TabIndex = 4;
143 this.groupBox1.TabStop = false;
147 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
148 this.CancelButton = this.buttonOk;
149 this.ClientSize = new System.Drawing.Size(292, 142);
150 this.Controls.Add(this.groupBox1);
151 this.Controls.Add(this.buttonOk);
152 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
153 this.MaximizeBox = false;
154 this.MinimizeBox = false;
155 this.Name = "AboutForm";
156 this.ShowInTaskbar = false;
157 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
159 this.groupBox1.ResumeLayout(false);
160 this.ResumeLayout(false);
165 #region Control Events
168 /// Reacts on a click of the linklable and opens the url (label of the control)
169 /// in the standard browser.
171 private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
173 System.Diagnostics.Process.Start(linkLabel1.Text);