Mercurial > repos > RelicTools > TextureTool
comparison AboutTextureTool.cs @ 0:a54c09901f4e default tip
Initial commit to Mercurial at v1.9.3 - now GPLed!
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 06 Oct 2018 19:19:03 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a54c09901f4e |
---|---|
1 // This file is a part of the Texture Tool program and is copyright 2006-2018 IBBoard. | |
2 // | |
3 // The file and the library/program it is in are licensed under the GNU GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. | |
4 | |
5 using System; | |
6 using System.Drawing; | |
7 using System.Collections; | |
8 using System.ComponentModel; | |
9 using System.Windows.Forms; | |
10 | |
11 namespace IBBoard.Relic.TextureTool | |
12 { | |
13 /// <summary> | |
14 /// Summary description for AboutTextureTool. | |
15 /// </summary> | |
16 public class AboutTextureTool : System.Windows.Forms.Form | |
17 { | |
18 private System.Windows.Forms.Button bttnClose; | |
19 private System.Windows.Forms.Label label1; | |
20 private System.Windows.Forms.Label label2; | |
21 private System.Windows.Forms.Label label3; | |
22 /// <summary> | |
23 /// Required designer variable. | |
24 /// </summary> | |
25 private System.ComponentModel.Container components = null; | |
26 | |
27 public AboutTextureTool() | |
28 { | |
29 // | |
30 // Required for Windows Form Designer support | |
31 // | |
32 InitializeComponent(); | |
33 | |
34 string version = Application.ProductVersion.Substring(0, Application.ProductVersion.LastIndexOf('.')); | |
35 | |
36 if (version.EndsWith(".0")) | |
37 { | |
38 version = version.Substring(0, version.Length-2); | |
39 } | |
40 | |
41 label2.Text = "Dawn of War Texture Tool v"+version; | |
42 } | |
43 | |
44 /// <summary> | |
45 /// Clean up any resources being used. | |
46 /// </summary> | |
47 protected override void Dispose( bool disposing ) | |
48 { | |
49 if( disposing ) | |
50 { | |
51 if(components != null) | |
52 { | |
53 components.Dispose(); | |
54 } | |
55 } | |
56 base.Dispose( disposing ); | |
57 } | |
58 | |
59 #region Windows Form Designer generated code | |
60 /// <summary> | |
61 /// Required method for Designer support - do not modify | |
62 /// the contents of this method with the code editor. | |
63 /// </summary> | |
64 private void InitializeComponent() | |
65 { | |
66 this.bttnClose = new System.Windows.Forms.Button(); | |
67 this.label1 = new System.Windows.Forms.Label(); | |
68 this.label2 = new System.Windows.Forms.Label(); | |
69 this.label3 = new System.Windows.Forms.Label(); | |
70 this.SuspendLayout(); | |
71 // | |
72 // bttnClose | |
73 // | |
74 this.bttnClose.Location = new System.Drawing.Point(200, 120); | |
75 this.bttnClose.Name = "bttnClose"; | |
76 this.bttnClose.TabIndex = 0; | |
77 this.bttnClose.Text = "Close"; | |
78 this.bttnClose.Click += new System.EventHandler(this.bttnClose_Click); | |
79 // | |
80 // label1 | |
81 // | |
82 this.label1.Location = new System.Drawing.Point(8, 40); | |
83 this.label1.Name = "label1"; | |
84 this.label1.Size = new System.Drawing.Size(272, 32); | |
85 this.label1.TabIndex = 1; | |
86 this.label1.Text = "Created by IBBoard for Skins @ Hive World Terra (http://skins.hiveworldterra.co." + | |
87 "uk)"; | |
88 // | |
89 // label2 | |
90 // | |
91 this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); | |
92 this.label2.Location = new System.Drawing.Point(8, 8); | |
93 this.label2.Name = "label2"; | |
94 this.label2.Size = new System.Drawing.Size(264, 23); | |
95 this.label2.TabIndex = 2; | |
96 this.label2.Text = "Dawn of War Texture Tool v1.6"; | |
97 // | |
98 // label3 | |
99 // | |
100 this.label3.Location = new System.Drawing.Point(8, 80); | |
101 this.label3.Name = "label3"; | |
102 this.label3.Size = new System.Drawing.Size(272, 32); | |
103 this.label3.TabIndex = 3; | |
104 this.label3.Text = "WTP, RSH and RTX Compiler and Extractor, and DDS to TGA and TGA to DDS converter"; | |
105 // | |
106 // AboutTextureTool | |
107 // | |
108 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | |
109 this.ClientSize = new System.Drawing.Size(282, 145); | |
110 this.Controls.Add(this.label3); | |
111 this.Controls.Add(this.label2); | |
112 this.Controls.Add(this.label1); | |
113 this.Controls.Add(this.bttnClose); | |
114 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; | |
115 this.Name = "AboutTextureTool"; | |
116 this.ShowInTaskbar = false; | |
117 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | |
118 this.Text = "About"; | |
119 this.ResumeLayout(false); | |
120 | |
121 } | |
122 #endregion | |
123 | |
124 private void bttnClose_Click(object sender, System.EventArgs e) | |
125 { | |
126 this.Close(); | |
127 } | |
128 } | |
129 } |