3 using System.Collections;
4 using System.ComponentModel;
5 using System.Windows.Forms;
10 /// Summary description for AboutDialog.
12 public class AboutDialog : System.Windows.Forms.Form
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;
21 /// Required designer variable.
23 private System.ComponentModel.Container components = null;
28 // Required for Windows Form Designer support
30 InitializeComponent();
32 // TODO: Add any constructor code after InitializeComponent call
34 shell t = new shell();
36 float version = t.GetOCCVersion();
37 this.myVersion.Text=this.myVersion.Text+version;
41 /// Clean up any resources being used.
43 protected override void Dispose( bool disposing )
47 if(components != null)
52 base.Dispose( disposing );
55 #region Windows Form Designer generated code
57 /// Required method for Designer support - do not modify
58 /// the contents of this method with the code editor.
60 private void InitializeComponent()
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();
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;
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);
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;
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;
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;
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;
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);
149 private void button1_Click(object sender, System.EventArgs e)