0
|
1 // This file is a part of the SGA Explorer app 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 using System;
|
|
5 using System.Drawing;
|
|
6 using System.Collections;
|
|
7 using System.ComponentModel;
|
|
8 using System.Windows.Forms;
|
|
9
|
|
10 namespace IBBoard.Relic.SGAExplorer
|
|
11 {
|
|
12 /// <summary>
|
|
13 /// Summary description for AboutTextureTool.
|
|
14 /// </summary>
|
|
15 public class AboutSGAExplorer : System.Windows.Forms.Form
|
|
16 {
|
|
17 private System.Windows.Forms.Button bttnClose;
|
|
18 private System.Windows.Forms.Label label1;
|
|
19 private System.Windows.Forms.Label label2;
|
|
20 /// <summary>
|
|
21 /// Required designer variable.
|
|
22 /// </summary>
|
|
23 private System.ComponentModel.Container components = null;
|
|
24
|
|
25 public AboutSGAExplorer()
|
|
26 {
|
|
27 //
|
|
28 // Required for Windows Form Designer support
|
|
29 //
|
|
30 InitializeComponent();
|
|
31
|
|
32 string version = Application.ProductVersion.Substring(0, Application.ProductVersion.LastIndexOf('.'));
|
|
33
|
|
34 if (version.EndsWith(".0"))
|
|
35 {
|
|
36 version = version.Substring(0, version.Length-2);
|
|
37 }
|
|
38
|
|
39 label2.Text = "SGA Explorer v"+version;
|
|
40 }
|
|
41
|
|
42 /// <summary>
|
|
43 /// Clean up any resources being used.
|
|
44 /// </summary>
|
|
45 protected override void Dispose( bool disposing )
|
|
46 {
|
|
47 if( disposing )
|
|
48 {
|
|
49 if(components != null)
|
|
50 {
|
|
51 components.Dispose();
|
|
52 }
|
|
53 }
|
|
54 base.Dispose( disposing );
|
|
55 }
|
|
56
|
|
57 #region Windows Form Designer generated code
|
|
58 /// <summary>
|
|
59 /// Required method for Designer support - do not modify
|
|
60 /// the contents of this method with the code editor.
|
|
61 /// </summary>
|
|
62 private void InitializeComponent()
|
|
63 {
|
|
64 this.bttnClose = new System.Windows.Forms.Button();
|
|
65 this.label1 = new System.Windows.Forms.Label();
|
|
66 this.label2 = new System.Windows.Forms.Label();
|
|
67 this.SuspendLayout();
|
|
68 //
|
|
69 // bttnClose
|
|
70 //
|
|
71 this.bttnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
72 this.bttnClose.Location = new System.Drawing.Point(200, 88);
|
|
73 this.bttnClose.Name = "bttnClose";
|
|
74 this.bttnClose.TabIndex = 0;
|
|
75 this.bttnClose.Text = "Close";
|
|
76 this.bttnClose.Click += new System.EventHandler(this.bttnClose_Click);
|
|
77 //
|
|
78 // label1
|
|
79 //
|
|
80 this.label1.Location = new System.Drawing.Point(8, 32);
|
|
81 this.label1.Name = "label1";
|
|
82 this.label1.Size = new System.Drawing.Size(272, 56);
|
|
83 this.label1.TabIndex = 1;
|
|
84 this.label1.Text = "Created by IBBoard for Skins @ Hive World Terra (http://skins.hiveworldterra.co." +
|
|
85 "uk)\r\n\r\nRelic SGA file format (archive) reader and extractor.";
|
|
86 //
|
|
87 // label2
|
|
88 //
|
|
89 this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
|
90 this.label2.Location = new System.Drawing.Point(8, 8);
|
|
91 this.label2.Name = "label2";
|
|
92 this.label2.Size = new System.Drawing.Size(264, 23);
|
|
93 this.label2.TabIndex = 2;
|
|
94 this.label2.Text = "Dawn of War SGA Explorer v1.0";
|
|
95 //
|
|
96 // AboutSGAExplorer
|
|
97 //
|
|
98 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
|
99 this.ClientSize = new System.Drawing.Size(282, 113);
|
|
100 this.Controls.Add(this.label2);
|
|
101 this.Controls.Add(this.label1);
|
|
102 this.Controls.Add(this.bttnClose);
|
|
103 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
|
104 this.Name = "AboutSGAExplorer";
|
|
105 this.ShowInTaskbar = false;
|
|
106 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
107 this.Text = "About";
|
|
108 this.ResumeLayout(false);
|
|
109
|
|
110 }
|
|
111 #endregion
|
|
112
|
|
113 private void bttnClose_Click(object sender, System.EventArgs e)
|
|
114 {
|
|
115 this.Close();
|
|
116 }
|
|
117 }
|
|
118 }
|