summaryrefslogtreecommitdiff
path: root/About.cs
diff options
context:
space:
mode:
Diffstat (limited to 'About.cs')
-rwxr-xr-xAbout.cs137
1 files changed, 137 insertions, 0 deletions
diff --git a/About.cs b/About.cs
new file mode 100755
index 0000000..252ee68
--- /dev/null
+++ b/About.cs
@@ -0,0 +1,137 @@
+// TLReader - reads access database containing tug info
+// Copyright (C) 2004 Ian Cowburn
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+using System;
+using System.Windows.Forms;
+using System.Reflection;
+
+namespace TLReader
+{
+ /// <summary>
+ /// Description of About.
+ /// </summary>
+ public class About : System.Windows.Forms.Form
+ {
+ private System.Windows.Forms.Label label;
+ private System.Windows.Forms.RichTextBox m_text;
+ private System.Windows.Forms.Label m_version;
+ private System.Windows.Forms.Button m_ok;
+ public About()
+ {
+ //
+ // The InitializeComponent() call is required for Windows Forms designer support.
+ //
+ InitializeComponent();
+
+ m_text.Text+="This program is free software; you can redistribute it and/or ";
+ m_text.Text+="modify it under the terms of the GNU General Public License ";
+ m_text.Text+="as published by the Free Software Foundation; either version 2 ";
+ m_text.Text+="of the License, or (at your option) any later version.\n";
+ m_text.Text+="\n";
+ m_text.Text+="This program is distributed in the hope that it will be useful, ";
+ m_text.Text+="but WITHOUT ANY WARRANTY; without even the implied warranty of ";
+ m_text.Text+="MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ";
+ m_text.Text+="GNU General Public License for more details.\n";
+ m_text.Text+="\n";
+ m_text.Text+="You should have received a copy of the GNU General Public License ";
+ m_text.Text+="along with this program; if not, write to the Free Software ";
+ m_text.Text+="Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n";
+
+ m_version.Text="Version " +
+ Assembly.GetExecutingAssembly().GetName().Version.Major + "."+
+ Assembly.GetExecutingAssembly().GetName().Version.Minor;
+ }
+
+ #region Windows Forms Designer generated code
+ /// <summary>
+ /// This method is required for Windows Forms designer support.
+ /// Do not change the method contents inside the source code editor. The Forms designer might
+ /// not be able to load this method if it was changed manually.
+ /// </summary>
+ private void InitializeComponent() {
+ this.m_ok = new System.Windows.Forms.Button();
+ this.m_version = new System.Windows.Forms.Label();
+ this.m_text = new System.Windows.Forms.RichTextBox();
+ this.label = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // m_ok
+ //
+ this.m_ok.Location = new System.Drawing.Point(416, 312);
+ this.m_ok.Name = "m_ok";
+ this.m_ok.Size = new System.Drawing.Size(96, 24);
+ this.m_ok.TabIndex = 1;
+ this.m_ok.Text = "OK";
+ this.m_ok.Click += new System.EventHandler(this.OnOK);
+ //
+ // m_version
+ //
+ this.m_version.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.m_version.Location = new System.Drawing.Point(416, 8);
+ this.m_version.Name = "m_version";
+ this.m_version.Size = new System.Drawing.Size(96, 32);
+ this.m_version.TabIndex = 3;
+ this.m_version.Text = "Version 1.0";
+ this.m_version.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // m_text
+ //
+ this.m_text.BackColor = System.Drawing.SystemColors.Info;
+ this.m_text.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.m_text.Location = new System.Drawing.Point(8, 48);
+ this.m_text.Name = "m_text";
+ this.m_text.ReadOnly = true;
+ this.m_text.Size = new System.Drawing.Size(504, 256);
+ this.m_text.TabIndex = 0;
+ this.m_text.TabStop = false;
+ this.m_text.Text = "";
+ //
+ // label
+ //
+ this.label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label.Location = new System.Drawing.Point(8, 8);
+ this.label.Name = "label";
+ this.label.Size = new System.Drawing.Size(400, 32);
+ this.label.TabIndex = 2;
+ this.label.Text = "TLReader (c) Copyright 2004 Ian Cowburn";
+ this.label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // About
+ //
+ this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
+ this.ClientSize = new System.Drawing.Size(522, 343);
+ this.Controls.Add(this.m_version);
+ this.Controls.Add(this.label);
+ this.Controls.Add(this.m_ok);
+ this.Controls.Add(this.m_text);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "About";
+ this.ShowInTaskbar = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "About";
+ this.ResumeLayout(false);
+ }
+ #endregion
+ void OnOK(object sender, System.EventArgs e)
+ {
+ Close();
+ }
+
+ }
+}