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.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();
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;
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);
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;
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;
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-2012, Open CASCADE S.A.S";
117 this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
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;
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();
152 private void button1_Click(object sender, System.EventArgs e)