d1a2fee8 |
1 | using System; |
2 | using System.Drawing; |
3 | using System.Collections; |
4 | using System.ComponentModel; |
5 | using System.Windows.Forms; |
6 | |
7 | namespace IE_WinForms |
8 | { |
9 | /// <summary> |
10 | /// Summary description for AboutDialog. |
11 | /// </summary> |
12 | public class AboutDialog : System.Windows.Forms.Form |
13 | { |
14 | private System.Windows.Forms.PictureBox pictureBox1; |
15 | private System.Windows.Forms.Button button1; |
16 | private System.Windows.Forms.Label label1; |
17 | private System.Windows.Forms.Label label3; |
18 | private System.Windows.Forms.Label label4; |
19 | private System.Windows.Forms.Label myVersion; |
20 | /// <summary> |
21 | /// Required designer variable. |
22 | /// </summary> |
23 | private System.ComponentModel.Container components = null; |
24 | |
25 | public AboutDialog() |
26 | { |
27 | // |
28 | // Required for Windows Form Designer support |
29 | // |
30 | InitializeComponent(); |
31 | // |
32 | // Create OCCT proxy object and get OCCT version |
33 | // |
34 | OCCTProxy t = new OCCTProxy(); |
35 | t.InitOCCTProxy(); |
36 | float version = t.GetOCCVersion(); |
37 | this.myVersion.Text = this.myVersion.Text + version; |
38 | } |
39 | |
40 | /// <summary> |
41 | /// Clean up any resources being used. |
42 | /// </summary> |
43 | protected override void Dispose(bool disposing) |
44 | { |
45 | if (disposing) |
46 | { |
47 | if (components != null) |
48 | { |
49 | components.Dispose(); |
50 | } |
51 | } |
52 | base.Dispose(disposing); |
53 | } |
54 | |
55 | #region Windows Form Designer generated code |
56 | /// <summary> |
57 | /// Required method for Designer support - do not modify |
58 | /// the contents of this method with the code editor. |
59 | /// </summary> |
60 | private void InitializeComponent() |
61 | { |
62 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutDialog)); |
63 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); |
64 | this.button1 = new System.Windows.Forms.Button(); |
65 | this.label1 = new System.Windows.Forms.Label(); |
66 | this.myVersion = new System.Windows.Forms.Label(); |
67 | this.label3 = new System.Windows.Forms.Label(); |
68 | this.label4 = new System.Windows.Forms.Label(); |
69 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); |
70 | this.SuspendLayout(); |
71 | // |
72 | // pictureBox1 |
73 | // |
74 | this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
75 | this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); |
76 | this.pictureBox1.Location = new System.Drawing.Point(59, 64); |
77 | this.pictureBox1.Name = "pictureBox1"; |
78 | this.pictureBox1.Size = new System.Drawing.Size(196, 102); |
79 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; |
80 | this.pictureBox1.TabIndex = 0; |
81 | this.pictureBox1.TabStop = false; |
82 | // |
83 | // button1 |
84 | // |
85 | this.button1.Location = new System.Drawing.Point(96, 248); |
86 | this.button1.Name = "button1"; |
87 | this.button1.Size = new System.Drawing.Size(128, 24); |
88 | this.button1.TabIndex = 1; |
89 | this.button1.Text = "OK"; |
90 | this.button1.Click += new System.EventHandler(this.button1_Click); |
91 | // |
92 | // label1 |
93 | // |
94 | this.label1.Location = new System.Drawing.Point(16, 9); |
95 | this.label1.Name = "label1"; |
96 | this.label1.Size = new System.Drawing.Size(288, 24); |
97 | this.label1.TabIndex = 2; |
98 | this.label1.Text = "Import/Export Sample,"; |
99 | this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
100 | // |
101 | // myVersion |
102 | // |
103 | this.myVersion.Location = new System.Drawing.Point(16, 32); |
104 | this.myVersion.Name = "myVersion"; |
105 | this.myVersion.Size = new System.Drawing.Size(288, 16); |
106 | this.myVersion.TabIndex = 3; |
107 | this.myVersion.Text = "Open CASCADE Technology "; |
108 | this.myVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
109 | // |
110 | // label3 |
111 | // |
112 | this.label3.Location = new System.Drawing.Point(24, 168); |
113 | this.label3.Name = "label3"; |
114 | this.label3.Size = new System.Drawing.Size(280, 23); |
115 | this.label3.TabIndex = 4; |
116 | this.label3.Text = "Copyright (C) 2004-2013, Open CASCADE S.A.S"; |
117 | this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
118 | // |
119 | // label4 |
120 | // |
121 | this.label4.Location = new System.Drawing.Point(8, 200); |
122 | this.label4.Name = "label4"; |
123 | this.label4.Size = new System.Drawing.Size(296, 24); |
124 | this.label4.TabIndex = 5; |
125 | this.label4.Text = "http://www.opencascade.com"; |
126 | this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
127 | // |
128 | // AboutDialog |
129 | // |
130 | this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); |
131 | this.ClientSize = new System.Drawing.Size(312, 285); |
132 | this.ControlBox = false; |
133 | this.Controls.Add(this.label4); |
134 | this.Controls.Add(this.label3); |
135 | this.Controls.Add(this.myVersion); |
136 | this.Controls.Add(this.label1); |
137 | this.Controls.Add(this.button1); |
138 | this.Controls.Add(this.pictureBox1); |
139 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; |
140 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
141 | this.MaximizeBox = false; |
142 | this.MinimizeBox = false; |
143 | this.Name = "AboutDialog"; |
144 | this.Text = "About Import/Export Sample"; |
145 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); |
146 | this.ResumeLayout(false); |
147 | this.PerformLayout(); |
148 | |
149 | } |
150 | #endregion |
151 | |
152 | private void button1_Click(object sender, System.EventArgs e) |
153 | { |
154 | this.Close(); |
155 | } |
156 | } |
157 | } |