Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / CSharp / IE / AboutDialog.cs
CommitLineData
7fd59977 1using System;
2using System.Drawing;
3using System.Collections;
4using System.ComponentModel;
5using System.Windows.Forms;
6
7namespace IE
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 // TODO: Add any constructor code after InitializeComponent call
33 //
34 shell t = new shell();
35 t.InitOCCViewer();
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.Resources.ResourceManager resources = new System.Resources.ResourceManager(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 this.SuspendLayout();
70 //
71 // pictureBox1
72 //
73 this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
74 this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
75 this.pictureBox1.Location = new System.Drawing.Point(59, 64);
76 this.pictureBox1.Name = "pictureBox1";
77 this.pictureBox1.Size = new System.Drawing.Size(194, 100);
78 this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
79 this.pictureBox1.TabIndex = 0;
80 this.pictureBox1.TabStop = false;
81 //
82 // button1
83 //
84 this.button1.Location = new System.Drawing.Point(96, 248);
85 this.button1.Name = "button1";
86 this.button1.Size = new System.Drawing.Size(128, 24);
87 this.button1.TabIndex = 1;
88 this.button1.Text = "OK";
89 this.button1.Click += new System.EventHandler(this.button1_Click);
90 //
91 // label1
92 //
93 this.label1.Location = new System.Drawing.Point(16, 16);
94 this.label1.Name = "label1";
95 this.label1.Size = new System.Drawing.Size(288, 24);
96 this.label1.TabIndex = 2;
97 this.label1.Text = "Import/Export Sample,";
98 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
99 //
100 // myVersion
101 //
102 this.myVersion.Location = new System.Drawing.Point(16, 32);
103 this.myVersion.Name = "myVersion";
104 this.myVersion.Size = new System.Drawing.Size(288, 16);
105 this.myVersion.TabIndex = 3;
106 this.myVersion.Text = "Open CASCADE Technology ";
107 this.myVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
108 //
109 // label3
110 //
111 this.label3.Location = new System.Drawing.Point(24, 168);
112 this.label3.Name = "label3";
113 this.label3.Size = new System.Drawing.Size(280, 23);
114 this.label3.TabIndex = 4;
115 this.label3.Text = "Copyright (C) 2004, Open CASCADE SA";
116 this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
117 //
118 // label4
119 //
120 this.label4.Location = new System.Drawing.Point(8, 200);
121 this.label4.Name = "label4";
122 this.label4.Size = new System.Drawing.Size(296, 24);
123 this.label4.TabIndex = 5;
124 this.label4.Text = "http://opencascade.com marketing.contact@opencascade.com";
125 this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
126 //
127 // AboutDialog
128 //
129 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
130 this.ClientSize = new System.Drawing.Size(312, 285);
131 this.ControlBox = false;
132 this.Controls.Add(this.label4);
133 this.Controls.Add(this.label3);
134 this.Controls.Add(this.myVersion);
135 this.Controls.Add(this.label1);
136 this.Controls.Add(this.button1);
137 this.Controls.Add(this.pictureBox1);
138 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
139 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
140 this.MaximizeBox = false;
141 this.MinimizeBox = false;
142 this.Name = "AboutDialog";
143 this.Text = "About Import/Export Sample";
144 this.ResumeLayout(false);
145
146 }
147 #endregion
148
149 private void button1_Click(object sender, System.EventArgs e)
150 {
151 this.Close();
152 }
153 }
154}