Subversion Repositories general

Rev

Rev 1196 | Rev 1200 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1194 dev 1
using System;
2
using System.ComponentModel;
3
using System.Data;
4
using System.Drawing;
5
using System.Text;
6
using System.Windows.Forms;
7
 
8
namespace TCPproxy
9
{
1196 dev 10
	public class AboutForm : Form
1194 dev 11
	{
1196 dev 12
		private System.ComponentModel.IContainer components = null;
13
		private System.Windows.Forms.Label appLabel;
14
		private System.Windows.Forms.Label copyrightLabel;
15
		private System.Windows.Forms.Label license1Label;
16
		private System.Windows.Forms.Button okButton;
17
		private System.Windows.Forms.LinkLabel homePageLabel;
18
		private System.Windows.Forms.Label versionLabel;
19
		private System.Windows.Forms.Label license2Label;
20
		private System.Windows.Forms.Label warrantyLabel;
21
 
22
		#region Windows Form Designer generated code
23
 
24
		/// <summary>
25
		/// Required method for Designer support - do not modify
26
		/// the contents of this method with the code editor.
27
		/// </summary>
28
		private void InitializeComponent()
29
		{
30
			this.appLabel = new System.Windows.Forms.Label();
31
			this.copyrightLabel = new System.Windows.Forms.Label();
32
			this.license1Label = new System.Windows.Forms.Label();
33
			this.okButton = new System.Windows.Forms.Button();
34
			this.homePageLabel = new System.Windows.Forms.LinkLabel();
35
			this.versionLabel = new System.Windows.Forms.Label();
36
			this.license2Label = new System.Windows.Forms.Label();
37
			this.warrantyLabel = new System.Windows.Forms.Label();
38
			this.SuspendLayout();
39
			//
40
			// appLabel
41
			//
42
			this.appLabel.AutoSize = true;
43
			this.appLabel.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
44
			this.appLabel.Location = new System.Drawing.Point(12, 16);
45
			this.appLabel.Name = "appLabel";
46
			this.appLabel.Size = new System.Drawing.Size(146, 32);
47
			this.appLabel.TabIndex = 0;
48
			this.appLabel.Text = "TCPproxy";
49
			//
50
			// copyrightLabel
51
			//
52
			this.copyrightLabel.AutoSize = true;
53
			this.copyrightLabel.Location = new System.Drawing.Point(32, 60);
54
			this.copyrightLabel.Name = "copyrightLabel";
55
			this.copyrightLabel.Size = new System.Drawing.Size(195, 13);
56
			this.copyrightLabel.TabIndex = 1;
57
			this.copyrightLabel.Text = "Copyright (c) 2005-2006 Anatoli Klassen";
58
			//
59
			// license1Label
60
			//
61
			this.license1Label.AutoSize = true;
62
			this.license1Label.Location = new System.Drawing.Point(32, 108);
63
			this.license1Label.Name = "license1Label";
64
			this.license1Label.Size = new System.Drawing.Size(126, 13);
65
			this.license1Label.TabIndex = 2;
66
			this.license1Label.Text = "\"Public domain\" software";
67
			//
68
			// okButton
69
			//
70
			this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
71
			this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
72
			this.okButton.Location = new System.Drawing.Point(205, 217);
73
			this.okButton.Name = "okButton";
74
			this.okButton.Size = new System.Drawing.Size(75, 23);
75
			this.okButton.TabIndex = 3;
76
			this.okButton.Text = "OK";
77
			//
78
			// homePageLabel
79
			//
80
			this.homePageLabel.AutoSize = true;
81
			this.homePageLabel.Location = new System.Drawing.Point(32, 188);
82
			this.homePageLabel.Name = "homePageLabel";
83
			this.homePageLabel.Size = new System.Drawing.Size(229, 13);
84
			this.homePageLabel.TabIndex = 4;
85
			this.homePageLabel.TabStop = true;
86
			this.homePageLabel.Text = "http://www.26th.net/public/projects/tcpproxy/";
87
			this.homePageLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.homePageLabel_LinkClicked);
88
			//
89
			// versionLabel
90
			//
91
			this.versionLabel.AutoSize = true;
92
			this.versionLabel.Location = new System.Drawing.Point(32, 76);
93
			this.versionLabel.Name = "versionLabel";
94
			this.versionLabel.Size = new System.Drawing.Size(60, 13);
95
			this.versionLabel.TabIndex = 5;
96
			this.versionLabel.Text = "Version 1.0";
97
			//
98
			// license2Label
99
			//
100
			this.license2Label.AutoSize = true;
101
			this.license2Label.Location = new System.Drawing.Point(32, 124);
102
			this.license2Label.Name = "license2Label";
103
			this.license2Label.Size = new System.Drawing.Size(180, 13);
104
			this.license2Label.TabIndex = 6;
105
			this.license2Label.Text = "- you are allowed to use it in any way";
106
			//
107
			// warrantyLabel
108
			//
109
			this.warrantyLabel.AutoSize = true;
110
			this.warrantyLabel.Location = new System.Drawing.Point(32, 156);
111
			this.warrantyLabel.Name = "warrantyLabel";
112
			this.warrantyLabel.Size = new System.Drawing.Size(64, 13);
113
			this.warrantyLabel.TabIndex = 7;
114
			this.warrantyLabel.Text = "No warranty";
115
			//
116
			// AboutForm
117
			//
118
			this.AcceptButton = this.okButton;
119
			this.CancelButton = this.okButton;
120
			this.ClientSize = new System.Drawing.Size(292, 252);
121
			this.Controls.Add(this.warrantyLabel);
122
			this.Controls.Add(this.license2Label);
123
			this.Controls.Add(this.versionLabel);
124
			this.Controls.Add(this.homePageLabel);
125
			this.Controls.Add(this.okButton);
126
			this.Controls.Add(this.license1Label);
127
			this.Controls.Add(this.copyrightLabel);
128
			this.Controls.Add(this.appLabel);
129
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
130
			this.MaximizeBox = false;
131
			this.MinimizeBox = false;
132
			this.Name = "AboutForm";
133
			this.ShowInTaskbar = false;
134
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
135
			this.Text = "About TCPproxy";
136
			this.ResumeLayout(false);
137
			this.PerformLayout();
138
		}
139
 
140
		#endregion
141
 
1194 dev 142
		public AboutForm()
143
		{
144
			InitializeComponent();
145
		}
146
 
1196 dev 147
		protected override void Dispose(bool disposing)
148
		{
149
			if(disposing && (components != null)) {
150
				components.Dispose();
151
			}
152
			base.Dispose(disposing);
153
		}
154
 
1194 dev 155
		private void homePageLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
156
		{
157
			homePageLabel.LinkVisited = true;
158
			System.Diagnostics.Process.Start(homePageLabel.Text);
159
		}
160
	}
161
}