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