1 |
cycrow |
1 |
#pragma once
|
|
|
2 |
|
|
|
3 |
using namespace System;
|
|
|
4 |
using namespace System::ComponentModel;
|
|
|
5 |
using namespace System::Collections;
|
|
|
6 |
using namespace System::Windows::Forms;
|
|
|
7 |
using namespace System::Data;
|
|
|
8 |
using namespace System::Drawing;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
namespace Creator {
|
|
|
12 |
|
|
|
13 |
/// <summary>
|
|
|
14 |
/// Summary for ImportShip
|
|
|
15 |
///
|
|
|
16 |
/// WARNING: If you change the name of this class, you will need to change the
|
|
|
17 |
/// 'Resource File Name' property for the managed resource compiler tool
|
|
|
18 |
/// associated with all .resx files this class depends on. Otherwise,
|
|
|
19 |
/// the designers will not be able to interact properly with localized
|
|
|
20 |
/// resources associated with this form.
|
|
|
21 |
/// </summary>
|
|
|
22 |
public ref class ImportShip : public System::Windows::Forms::Form
|
|
|
23 |
{
|
|
|
24 |
public:
|
|
|
25 |
ImportShip(CPackages *p, String ^cat, String ^id)
|
|
|
26 |
{
|
|
|
27 |
InitializeComponent();
|
|
|
28 |
|
|
|
29 |
this->Text = this->Text + " (" + id + ")";
|
|
|
30 |
|
|
|
31 |
this->button1->Visible = false;
|
|
|
32 |
this->pictureBox1->Visible = false;
|
|
|
33 |
this->pictureBox2->Visible = false;
|
|
|
34 |
this->pictureBox3->Visible = false;
|
|
|
35 |
this->pictureBox4->Visible = false;
|
|
|
36 |
this->pictureBox5->Visible = false;
|
|
|
37 |
this->pictureBox6->Visible = false;
|
|
|
38 |
this->pictureBox7->Visible = false;
|
|
|
39 |
this->pictureBox8->Visible = false;
|
|
|
40 |
this->pictureBox9->Visible = false;
|
|
|
41 |
this->pictureBox10->Visible = false;
|
|
|
42 |
|
|
|
43 |
m_bError = false;
|
|
|
44 |
m_pPackages = p;
|
|
|
45 |
m_sCatFile = cat;
|
|
|
46 |
m_sID = id;
|
|
|
47 |
m_pShip = NULL;
|
|
|
48 |
|
|
|
49 |
m_pInfo = new CProgressInfoDone;
|
|
|
50 |
m_pInfo->UpdateStatus(IMPORTSHIP_NONE);
|
|
|
51 |
m_lModels = NULL;
|
|
|
52 |
m_iStatus = IMPORTSHIP_SCENE;
|
|
|
53 |
}
|
|
|
54 |
|
19 |
cycrow |
55 |
String ^getErrorString() { return m_sError; }
|
1 |
cycrow |
56 |
CXspFile *GetShip() { return m_pShip; }
|
|
|
57 |
|
|
|
58 |
void StartImport()
|
|
|
59 |
{
|
|
|
60 |
m_pShip = new CXspFile;
|
|
|
61 |
m_pCatFile = new CCatFile;
|
|
|
62 |
if ( m_pCatFile->Open(CyStringFromSystemString(m_sCatFile), "", CATREAD_CATDECRYPT, false) == CATERR_NONE )
|
|
|
63 |
m_bError = false;
|
|
|
64 |
else
|
|
|
65 |
{
|
|
|
66 |
delete m_pShip;
|
|
|
67 |
m_bError = true;
|
19 |
cycrow |
68 |
m_sError = "Unable to open the cat file: " + m_sCatFile;
|
1 |
cycrow |
69 |
this->Close();
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
m_iStatus = IMPORTSHIP_SCENE;
|
|
|
73 |
this->backgroundWorker1->RunWorkerAsync();
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
bool Error() { return m_bError; }
|
|
|
77 |
//CyString ErrorString() { return m_sError; }
|
|
|
78 |
|
|
|
79 |
void Import()
|
|
|
80 |
{
|
|
|
81 |
m_bError = false;
|
|
|
82 |
if ( m_iStatus <= IMPORTSHIP_SCENE )
|
|
|
83 |
{
|
|
|
84 |
// make sure the id is correct
|
|
|
85 |
CyString data = CyStringFromSystemString(m_sID);
|
|
|
86 |
data.RemoveChar('\r');
|
|
|
87 |
while(data.Right(1) == ";")
|
|
|
88 |
data.Truncate((int)data.Length() - 1);
|
|
|
89 |
|
|
|
90 |
m_bError = !m_pShip->StartExtractShip(m_pCatFile, data, m_pInfo);
|
19 |
cycrow |
91 |
if ( m_bError ) {
|
|
|
92 |
m_sError = "Unable to extract scene file";
|
|
|
93 |
}
|
1 |
cycrow |
94 |
|
|
|
95 |
m_iStatus = IMPORTSHIP_EXTRACTSCENE;
|
|
|
96 |
}
|
|
|
97 |
else if ( m_iStatus == IMPORTSHIP_EXTRACTSCENE )
|
|
|
98 |
{
|
|
|
99 |
m_lModels = m_pShip->ReadSceneModels();
|
19 |
cycrow |
100 |
if ( !m_lModels ) {
|
1 |
cycrow |
101 |
m_bError = true;
|
19 |
cycrow |
102 |
m_sError = "Unable to read the scene file to extract model data";
|
|
|
103 |
}
|
1 |
cycrow |
104 |
++m_iStatus;
|
|
|
105 |
}
|
|
|
106 |
else if ( m_iStatus == IMPORTSHIP_PACK )
|
|
|
107 |
{
|
|
|
108 |
m_pShip->PackAllFiles();
|
|
|
109 |
m_iStatus = IMPORTSHIP_DONE;
|
|
|
110 |
}
|
|
|
111 |
else if ( m_iStatus > IMPORTSHIP_EXTRACTSCENE )
|
|
|
112 |
{
|
|
|
113 |
m_bError = !m_pShip->ProcessSceneFileSection(m_iStatus, m_pCatFile, m_lModels, m_pInfo);
|
19 |
cycrow |
114 |
if ( m_bError ) {
|
|
|
115 |
m_sError = "Unable to process scene file (Status=" + (long)m_iStatus;
|
|
|
116 |
}
|
1 |
cycrow |
117 |
++m_iStatus;
|
|
|
118 |
}
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
protected:
|
|
|
122 |
/// <summary>
|
|
|
123 |
/// Clean up any resources being used.
|
|
|
124 |
/// </summary>
|
|
|
125 |
~ImportShip()
|
|
|
126 |
{
|
|
|
127 |
if (components)
|
|
|
128 |
{
|
|
|
129 |
delete components;
|
|
|
130 |
}
|
|
|
131 |
delete m_pInfo;
|
|
|
132 |
if ( m_lModels )
|
|
|
133 |
delete m_lModels;
|
|
|
134 |
delete m_pCatFile;
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
private:
|
|
|
138 |
private: System::ComponentModel::BackgroundWorker^ backgroundWorker1;
|
|
|
139 |
private: System::Windows::Forms::Label^ label1;
|
|
|
140 |
private: System::Windows::Forms::Panel^ panel1;
|
|
|
141 |
private: System::Windows::Forms::PictureBox^ pictureBox1;
|
|
|
142 |
private: System::Windows::Forms::Panel^ panel2;
|
|
|
143 |
private: System::Windows::Forms::PictureBox^ pictureBox2;
|
|
|
144 |
private: System::Windows::Forms::Panel^ panel3;
|
|
|
145 |
private: System::Windows::Forms::Label^ label11;
|
|
|
146 |
private: System::Windows::Forms::PictureBox^ pictureBox4;
|
|
|
147 |
|
|
|
148 |
private: System::Windows::Forms::Panel^ panel4;
|
|
|
149 |
private: System::Windows::Forms::Label^ label2;
|
|
|
150 |
private: System::Windows::Forms::PictureBox^ pictureBox5;
|
|
|
151 |
|
|
|
152 |
private: System::Windows::Forms::Panel^ panel5;
|
|
|
153 |
private: System::Windows::Forms::Label^ label3;
|
|
|
154 |
private: System::Windows::Forms::PictureBox^ pictureBox3;
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
private: System::Windows::Forms::Panel^ panel6;
|
|
|
158 |
private: System::Windows::Forms::Label^ label12;
|
|
|
159 |
private: System::Windows::Forms::PictureBox^ pictureBox6;
|
|
|
160 |
private: System::Windows::Forms::Panel^ panel7;
|
|
|
161 |
private: System::Windows::Forms::Label^ label13;
|
|
|
162 |
private: System::Windows::Forms::PictureBox^ pictureBox7;
|
|
|
163 |
private: System::Windows::Forms::Panel^ panel8;
|
|
|
164 |
private: System::Windows::Forms::Label^ label14;
|
|
|
165 |
private: System::Windows::Forms::PictureBox^ pictureBox8;
|
|
|
166 |
private: System::Windows::Forms::Label^ label10;
|
|
|
167 |
private: System::Windows::Forms::Panel^ panel9;
|
|
|
168 |
private: System::Windows::Forms::Label^ label15;
|
|
|
169 |
private: System::Windows::Forms::PictureBox^ pictureBox9;
|
|
|
170 |
private: System::Windows::Forms::Panel^ panel10;
|
|
|
171 |
private: System::Windows::Forms::Label^ label4;
|
|
|
172 |
private: System::Windows::Forms::PictureBox^ pictureBox10;
|
|
|
173 |
private: System::Windows::Forms::Button^ button1;
|
|
|
174 |
private: System::Windows::Forms::Panel^ panel11;
|
|
|
175 |
private: System::ComponentModel::IContainer^ components;
|
|
|
176 |
/// <summary>
|
|
|
177 |
/// Required designer variable.
|
|
|
178 |
/// </summary>
|
|
|
179 |
int m_iStatus;
|
|
|
180 |
bool m_bError;
|
|
|
181 |
CyStringList *m_lModels;
|
|
|
182 |
CProgressInfo *m_pInfo;
|
|
|
183 |
CPackages *m_pPackages;
|
|
|
184 |
String ^m_sCatFile;
|
|
|
185 |
String ^m_sID;
|
|
|
186 |
CXspFile *m_pShip;
|
|
|
187 |
CCatFile *m_pCatFile;
|
19 |
cycrow |
188 |
String ^m_sError;
|
1 |
cycrow |
189 |
|
|
|
190 |
#pragma region Windows Form Designer generated code
|
|
|
191 |
/// <summary>
|
|
|
192 |
/// Required method for Designer support - do not modify
|
|
|
193 |
/// the contents of this method with the code editor.
|
|
|
194 |
/// </summary>
|
|
|
195 |
void InitializeComponent(void)
|
|
|
196 |
{
|
|
|
197 |
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ImportShip::typeid));
|
|
|
198 |
this->backgroundWorker1 = (gcnew System::ComponentModel::BackgroundWorker());
|
|
|
199 |
this->label1 = (gcnew System::Windows::Forms::Label());
|
|
|
200 |
this->panel1 = (gcnew System::Windows::Forms::Panel());
|
|
|
201 |
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
202 |
this->panel2 = (gcnew System::Windows::Forms::Panel());
|
|
|
203 |
this->label10 = (gcnew System::Windows::Forms::Label());
|
|
|
204 |
this->pictureBox2 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
205 |
this->panel3 = (gcnew System::Windows::Forms::Panel());
|
|
|
206 |
this->label11 = (gcnew System::Windows::Forms::Label());
|
|
|
207 |
this->pictureBox4 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
208 |
this->panel4 = (gcnew System::Windows::Forms::Panel());
|
|
|
209 |
this->label2 = (gcnew System::Windows::Forms::Label());
|
|
|
210 |
this->pictureBox5 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
211 |
this->panel5 = (gcnew System::Windows::Forms::Panel());
|
|
|
212 |
this->label3 = (gcnew System::Windows::Forms::Label());
|
|
|
213 |
this->pictureBox3 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
214 |
this->panel6 = (gcnew System::Windows::Forms::Panel());
|
|
|
215 |
this->label12 = (gcnew System::Windows::Forms::Label());
|
|
|
216 |
this->pictureBox6 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
217 |
this->panel7 = (gcnew System::Windows::Forms::Panel());
|
|
|
218 |
this->label13 = (gcnew System::Windows::Forms::Label());
|
|
|
219 |
this->pictureBox7 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
220 |
this->panel8 = (gcnew System::Windows::Forms::Panel());
|
|
|
221 |
this->label14 = (gcnew System::Windows::Forms::Label());
|
|
|
222 |
this->pictureBox8 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
223 |
this->panel9 = (gcnew System::Windows::Forms::Panel());
|
|
|
224 |
this->label15 = (gcnew System::Windows::Forms::Label());
|
|
|
225 |
this->pictureBox9 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
226 |
this->panel10 = (gcnew System::Windows::Forms::Panel());
|
|
|
227 |
this->label4 = (gcnew System::Windows::Forms::Label());
|
|
|
228 |
this->pictureBox10 = (gcnew System::Windows::Forms::PictureBox());
|
|
|
229 |
this->button1 = (gcnew System::Windows::Forms::Button());
|
|
|
230 |
this->panel11 = (gcnew System::Windows::Forms::Panel());
|
|
|
231 |
this->panel1->SuspendLayout();
|
|
|
232 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->BeginInit();
|
|
|
233 |
this->panel2->SuspendLayout();
|
|
|
234 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox2))->BeginInit();
|
|
|
235 |
this->panel3->SuspendLayout();
|
|
|
236 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox4))->BeginInit();
|
|
|
237 |
this->panel4->SuspendLayout();
|
|
|
238 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox5))->BeginInit();
|
|
|
239 |
this->panel5->SuspendLayout();
|
|
|
240 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox3))->BeginInit();
|
|
|
241 |
this->panel6->SuspendLayout();
|
|
|
242 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox6))->BeginInit();
|
|
|
243 |
this->panel7->SuspendLayout();
|
|
|
244 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox7))->BeginInit();
|
|
|
245 |
this->panel8->SuspendLayout();
|
|
|
246 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox8))->BeginInit();
|
|
|
247 |
this->panel9->SuspendLayout();
|
|
|
248 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox9))->BeginInit();
|
|
|
249 |
this->panel10->SuspendLayout();
|
|
|
250 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox10))->BeginInit();
|
|
|
251 |
this->panel11->SuspendLayout();
|
|
|
252 |
this->SuspendLayout();
|
|
|
253 |
//
|
|
|
254 |
// backgroundWorker1
|
|
|
255 |
//
|
|
|
256 |
this->backgroundWorker1->DoWork += gcnew System::ComponentModel::DoWorkEventHandler(this, &ImportShip::backgroundWorker1_DoWork);
|
|
|
257 |
this->backgroundWorker1->RunWorkerCompleted += gcnew System::ComponentModel::RunWorkerCompletedEventHandler(this, &ImportShip::backgroundWorker1_RunWorkerCompleted);
|
|
|
258 |
//
|
|
|
259 |
// label1
|
|
|
260 |
//
|
|
|
261 |
this->label1->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
262 |
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
263 |
static_cast<System::Byte>(0)));
|
|
|
264 |
this->label1->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
265 |
this->label1->Location = System::Drawing::Point(0, 0);
|
|
|
266 |
this->label1->Name = L"label1";
|
|
|
267 |
this->label1->Size = System::Drawing::Size(365, 31);
|
|
|
268 |
this->label1->TabIndex = 0;
|
|
|
269 |
this->label1->Text = L"Reading Mod File";
|
|
|
270 |
this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
271 |
//
|
|
|
272 |
// panel1
|
|
|
273 |
//
|
|
|
274 |
this->panel1->Controls->Add(this->label1);
|
|
|
275 |
this->panel1->Controls->Add(this->pictureBox1);
|
|
|
276 |
this->panel1->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
277 |
this->panel1->Location = System::Drawing::Point(25, 56);
|
|
|
278 |
this->panel1->Name = L"panel1";
|
|
|
279 |
this->panel1->Size = System::Drawing::Size(397, 31);
|
|
|
280 |
this->panel1->TabIndex = 9;
|
|
|
281 |
//
|
|
|
282 |
// pictureBox1
|
|
|
283 |
//
|
|
|
284 |
this->pictureBox1->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
285 |
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
|
|
|
286 |
this->pictureBox1->Location = System::Drawing::Point(365, 0);
|
|
|
287 |
this->pictureBox1->Name = L"pictureBox1";
|
|
|
288 |
this->pictureBox1->Size = System::Drawing::Size(32, 31);
|
|
|
289 |
this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
290 |
this->pictureBox1->TabIndex = 1;
|
|
|
291 |
this->pictureBox1->TabStop = false;
|
|
|
292 |
//
|
|
|
293 |
// panel2
|
|
|
294 |
//
|
|
|
295 |
this->panel2->Controls->Add(this->label10);
|
|
|
296 |
this->panel2->Controls->Add(this->pictureBox2);
|
|
|
297 |
this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
298 |
this->panel2->Location = System::Drawing::Point(25, 25);
|
|
|
299 |
this->panel2->Name = L"panel2";
|
|
|
300 |
this->panel2->Size = System::Drawing::Size(397, 31);
|
|
|
301 |
this->panel2->TabIndex = 10;
|
|
|
302 |
//
|
|
|
303 |
// label10
|
|
|
304 |
//
|
|
|
305 |
this->label10->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
306 |
this->label10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
307 |
static_cast<System::Byte>(0)));
|
|
|
308 |
this->label10->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
309 |
this->label10->Location = System::Drawing::Point(0, 0);
|
|
|
310 |
this->label10->Name = L"label10";
|
|
|
311 |
this->label10->Size = System::Drawing::Size(365, 31);
|
|
|
312 |
this->label10->TabIndex = 0;
|
|
|
313 |
this->label10->Text = L"Extracting Scene File";
|
|
|
314 |
this->label10->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
315 |
//
|
|
|
316 |
// pictureBox2
|
|
|
317 |
//
|
|
|
318 |
this->pictureBox2->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
319 |
this->pictureBox2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox2.Image")));
|
|
|
320 |
this->pictureBox2->Location = System::Drawing::Point(365, 0);
|
|
|
321 |
this->pictureBox2->Name = L"pictureBox2";
|
|
|
322 |
this->pictureBox2->Size = System::Drawing::Size(32, 31);
|
|
|
323 |
this->pictureBox2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
324 |
this->pictureBox2->TabIndex = 1;
|
|
|
325 |
this->pictureBox2->TabStop = false;
|
|
|
326 |
//
|
|
|
327 |
// panel3
|
|
|
328 |
//
|
|
|
329 |
this->panel3->Controls->Add(this->label11);
|
|
|
330 |
this->panel3->Controls->Add(this->pictureBox4);
|
|
|
331 |
this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
332 |
this->panel3->Location = System::Drawing::Point(25, 118);
|
|
|
333 |
this->panel3->Name = L"panel3";
|
|
|
334 |
this->panel3->Size = System::Drawing::Size(397, 31);
|
|
|
335 |
this->panel3->TabIndex = 11;
|
|
|
336 |
//
|
|
|
337 |
// label11
|
|
|
338 |
//
|
|
|
339 |
this->label11->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
340 |
this->label11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
341 |
static_cast<System::Byte>(0)));
|
|
|
342 |
this->label11->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
343 |
this->label11->Location = System::Drawing::Point(0, 0);
|
|
|
344 |
this->label11->Name = L"label11";
|
|
|
345 |
this->label11->Size = System::Drawing::Size(365, 31);
|
|
|
346 |
this->label11->TabIndex = 0;
|
|
|
347 |
this->label11->Text = L"Extracting Componants";
|
|
|
348 |
this->label11->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
349 |
//
|
|
|
350 |
// pictureBox4
|
|
|
351 |
//
|
|
|
352 |
this->pictureBox4->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
353 |
this->pictureBox4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox4.Image")));
|
|
|
354 |
this->pictureBox4->Location = System::Drawing::Point(365, 0);
|
|
|
355 |
this->pictureBox4->Name = L"pictureBox4";
|
|
|
356 |
this->pictureBox4->Size = System::Drawing::Size(32, 31);
|
|
|
357 |
this->pictureBox4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
358 |
this->pictureBox4->TabIndex = 1;
|
|
|
359 |
this->pictureBox4->TabStop = false;
|
|
|
360 |
//
|
|
|
361 |
// panel4
|
|
|
362 |
//
|
|
|
363 |
this->panel4->Controls->Add(this->label2);
|
|
|
364 |
this->panel4->Controls->Add(this->pictureBox5);
|
|
|
365 |
this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
366 |
this->panel4->Location = System::Drawing::Point(25, 149);
|
|
|
367 |
this->panel4->Name = L"panel4";
|
|
|
368 |
this->panel4->Size = System::Drawing::Size(397, 31);
|
|
|
369 |
this->panel4->TabIndex = 12;
|
|
|
370 |
//
|
|
|
371 |
// label2
|
|
|
372 |
//
|
|
|
373 |
this->label2->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
374 |
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
375 |
static_cast<System::Byte>(0)));
|
|
|
376 |
this->label2->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
377 |
this->label2->Location = System::Drawing::Point(0, 0);
|
|
|
378 |
this->label2->Name = L"label2";
|
|
|
379 |
this->label2->Size = System::Drawing::Size(365, 31);
|
|
|
380 |
this->label2->TabIndex = 0;
|
|
|
381 |
this->label2->Text = L"Extracting Models";
|
|
|
382 |
this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
383 |
//
|
|
|
384 |
// pictureBox5
|
|
|
385 |
//
|
|
|
386 |
this->pictureBox5->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
387 |
this->pictureBox5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox5.Image")));
|
|
|
388 |
this->pictureBox5->Location = System::Drawing::Point(365, 0);
|
|
|
389 |
this->pictureBox5->Name = L"pictureBox5";
|
|
|
390 |
this->pictureBox5->Size = System::Drawing::Size(32, 31);
|
|
|
391 |
this->pictureBox5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
392 |
this->pictureBox5->TabIndex = 1;
|
|
|
393 |
this->pictureBox5->TabStop = false;
|
|
|
394 |
//
|
|
|
395 |
// panel5
|
|
|
396 |
//
|
|
|
397 |
this->panel5->Controls->Add(this->label3);
|
|
|
398 |
this->panel5->Controls->Add(this->pictureBox3);
|
|
|
399 |
this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
400 |
this->panel5->Location = System::Drawing::Point(25, 87);
|
|
|
401 |
this->panel5->Name = L"panel5";
|
|
|
402 |
this->panel5->Size = System::Drawing::Size(397, 31);
|
|
|
403 |
this->panel5->TabIndex = 13;
|
|
|
404 |
//
|
|
|
405 |
// label3
|
|
|
406 |
//
|
|
|
407 |
this->label3->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
408 |
this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
409 |
static_cast<System::Byte>(0)));
|
|
|
410 |
this->label3->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
411 |
this->label3->Location = System::Drawing::Point(0, 0);
|
|
|
412 |
this->label3->Name = L"label3";
|
|
|
413 |
this->label3->Size = System::Drawing::Size(365, 31);
|
|
|
414 |
this->label3->TabIndex = 0;
|
|
|
415 |
this->label3->Text = L"Extracting Dummy Entries";
|
|
|
416 |
this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
417 |
//
|
|
|
418 |
// pictureBox3
|
|
|
419 |
//
|
|
|
420 |
this->pictureBox3->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
421 |
this->pictureBox3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox3.Image")));
|
|
|
422 |
this->pictureBox3->Location = System::Drawing::Point(365, 0);
|
|
|
423 |
this->pictureBox3->Name = L"pictureBox3";
|
|
|
424 |
this->pictureBox3->Size = System::Drawing::Size(32, 31);
|
|
|
425 |
this->pictureBox3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
426 |
this->pictureBox3->TabIndex = 1;
|
|
|
427 |
this->pictureBox3->TabStop = false;
|
|
|
428 |
//
|
|
|
429 |
// panel6
|
|
|
430 |
//
|
|
|
431 |
this->panel6->Controls->Add(this->label12);
|
|
|
432 |
this->panel6->Controls->Add(this->pictureBox6);
|
|
|
433 |
this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
434 |
this->panel6->Location = System::Drawing::Point(25, 180);
|
|
|
435 |
this->panel6->Name = L"panel6";
|
|
|
436 |
this->panel6->Size = System::Drawing::Size(397, 31);
|
|
|
437 |
this->panel6->TabIndex = 14;
|
|
|
438 |
//
|
|
|
439 |
// label12
|
|
|
440 |
//
|
|
|
441 |
this->label12->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
442 |
this->label12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
443 |
static_cast<System::Byte>(0)));
|
|
|
444 |
this->label12->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
445 |
this->label12->Location = System::Drawing::Point(0, 0);
|
|
|
446 |
this->label12->Name = L"label12";
|
|
|
447 |
this->label12->Size = System::Drawing::Size(365, 31);
|
|
|
448 |
this->label12->TabIndex = 0;
|
|
|
449 |
this->label12->Text = L"Extracting Textures";
|
|
|
450 |
this->label12->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
451 |
//
|
|
|
452 |
// pictureBox6
|
|
|
453 |
//
|
|
|
454 |
this->pictureBox6->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
455 |
this->pictureBox6->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox6.Image")));
|
|
|
456 |
this->pictureBox6->Location = System::Drawing::Point(365, 0);
|
|
|
457 |
this->pictureBox6->Name = L"pictureBox6";
|
|
|
458 |
this->pictureBox6->Size = System::Drawing::Size(32, 31);
|
|
|
459 |
this->pictureBox6->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
460 |
this->pictureBox6->TabIndex = 1;
|
|
|
461 |
this->pictureBox6->TabStop = false;
|
|
|
462 |
//
|
|
|
463 |
// panel7
|
|
|
464 |
//
|
|
|
465 |
this->panel7->Controls->Add(this->label13);
|
|
|
466 |
this->panel7->Controls->Add(this->pictureBox7);
|
|
|
467 |
this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
468 |
this->panel7->Location = System::Drawing::Point(25, 211);
|
|
|
469 |
this->panel7->Name = L"panel7";
|
|
|
470 |
this->panel7->Size = System::Drawing::Size(397, 31);
|
|
|
471 |
this->panel7->TabIndex = 15;
|
|
|
472 |
//
|
|
|
473 |
// label13
|
|
|
474 |
//
|
|
|
475 |
this->label13->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
476 |
this->label13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
477 |
static_cast<System::Byte>(0)));
|
|
|
478 |
this->label13->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
479 |
this->label13->Location = System::Drawing::Point(0, 0);
|
|
|
480 |
this->label13->Name = L"label13";
|
|
|
481 |
this->label13->Size = System::Drawing::Size(365, 31);
|
|
|
482 |
this->label13->TabIndex = 0;
|
|
|
483 |
this->label13->Text = L"Extracting Texts";
|
|
|
484 |
this->label13->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
485 |
//
|
|
|
486 |
// pictureBox7
|
|
|
487 |
//
|
|
|
488 |
this->pictureBox7->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
489 |
this->pictureBox7->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox7.Image")));
|
|
|
490 |
this->pictureBox7->Location = System::Drawing::Point(365, 0);
|
|
|
491 |
this->pictureBox7->Name = L"pictureBox7";
|
|
|
492 |
this->pictureBox7->Size = System::Drawing::Size(32, 31);
|
|
|
493 |
this->pictureBox7->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
494 |
this->pictureBox7->TabIndex = 1;
|
|
|
495 |
this->pictureBox7->TabStop = false;
|
|
|
496 |
//
|
|
|
497 |
// panel8
|
|
|
498 |
//
|
|
|
499 |
this->panel8->Controls->Add(this->label14);
|
|
|
500 |
this->panel8->Controls->Add(this->pictureBox8);
|
|
|
501 |
this->panel8->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
502 |
this->panel8->Location = System::Drawing::Point(25, 242);
|
|
|
503 |
this->panel8->Name = L"panel8";
|
|
|
504 |
this->panel8->Size = System::Drawing::Size(397, 31);
|
|
|
505 |
this->panel8->TabIndex = 16;
|
|
|
506 |
//
|
|
|
507 |
// label14
|
|
|
508 |
//
|
|
|
509 |
this->label14->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
510 |
this->label14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
511 |
static_cast<System::Byte>(0)));
|
|
|
512 |
this->label14->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
513 |
this->label14->Location = System::Drawing::Point(0, 0);
|
|
|
514 |
this->label14->Name = L"label14";
|
|
|
515 |
this->label14->Size = System::Drawing::Size(365, 31);
|
|
|
516 |
this->label14->TabIndex = 0;
|
|
|
517 |
this->label14->Text = L"Extracting Bodies";
|
|
|
518 |
this->label14->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
519 |
//
|
|
|
520 |
// pictureBox8
|
|
|
521 |
//
|
|
|
522 |
this->pictureBox8->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
523 |
this->pictureBox8->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox8.Image")));
|
|
|
524 |
this->pictureBox8->Location = System::Drawing::Point(365, 0);
|
|
|
525 |
this->pictureBox8->Name = L"pictureBox8";
|
|
|
526 |
this->pictureBox8->Size = System::Drawing::Size(32, 31);
|
|
|
527 |
this->pictureBox8->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
528 |
this->pictureBox8->TabIndex = 1;
|
|
|
529 |
this->pictureBox8->TabStop = false;
|
|
|
530 |
//
|
|
|
531 |
// panel9
|
|
|
532 |
//
|
|
|
533 |
this->panel9->Controls->Add(this->label15);
|
|
|
534 |
this->panel9->Controls->Add(this->pictureBox9);
|
|
|
535 |
this->panel9->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
536 |
this->panel9->Location = System::Drawing::Point(25, 273);
|
|
|
537 |
this->panel9->Name = L"panel9";
|
|
|
538 |
this->panel9->Size = System::Drawing::Size(397, 31);
|
|
|
539 |
this->panel9->TabIndex = 17;
|
|
|
540 |
//
|
|
|
541 |
// label15
|
|
|
542 |
//
|
|
|
543 |
this->label15->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
544 |
this->label15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
545 |
static_cast<System::Byte>(0)));
|
|
|
546 |
this->label15->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
547 |
this->label15->Location = System::Drawing::Point(0, 0);
|
|
|
548 |
this->label15->Name = L"label15";
|
|
|
549 |
this->label15->Size = System::Drawing::Size(365, 31);
|
|
|
550 |
this->label15->TabIndex = 0;
|
|
|
551 |
this->label15->Text = L"Extracting Cockpits";
|
|
|
552 |
this->label15->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
553 |
//
|
|
|
554 |
// pictureBox9
|
|
|
555 |
//
|
|
|
556 |
this->pictureBox9->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
557 |
this->pictureBox9->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox9.Image")));
|
|
|
558 |
this->pictureBox9->Location = System::Drawing::Point(365, 0);
|
|
|
559 |
this->pictureBox9->Name = L"pictureBox9";
|
|
|
560 |
this->pictureBox9->Size = System::Drawing::Size(32, 31);
|
|
|
561 |
this->pictureBox9->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
562 |
this->pictureBox9->TabIndex = 1;
|
|
|
563 |
this->pictureBox9->TabStop = false;
|
|
|
564 |
//
|
|
|
565 |
// panel10
|
|
|
566 |
//
|
|
|
567 |
this->panel10->Controls->Add(this->label4);
|
|
|
568 |
this->panel10->Controls->Add(this->pictureBox10);
|
|
|
569 |
this->panel10->Dock = System::Windows::Forms::DockStyle::Top;
|
|
|
570 |
this->panel10->Location = System::Drawing::Point(25, 304);
|
|
|
571 |
this->panel10->Name = L"panel10";
|
|
|
572 |
this->panel10->Size = System::Drawing::Size(397, 31);
|
|
|
573 |
this->panel10->TabIndex = 18;
|
|
|
574 |
//
|
|
|
575 |
// label4
|
|
|
576 |
//
|
|
|
577 |
this->label4->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
578 |
this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
|
|
|
579 |
static_cast<System::Byte>(0)));
|
|
|
580 |
this->label4->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
|
|
|
581 |
this->label4->Location = System::Drawing::Point(0, 0);
|
|
|
582 |
this->label4->Name = L"label4";
|
|
|
583 |
this->label4->Size = System::Drawing::Size(365, 31);
|
|
|
584 |
this->label4->TabIndex = 0;
|
|
|
585 |
this->label4->Text = L"Packing up Files";
|
|
|
586 |
this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
|
|
|
587 |
//
|
|
|
588 |
// pictureBox10
|
|
|
589 |
//
|
|
|
590 |
this->pictureBox10->Dock = System::Windows::Forms::DockStyle::Right;
|
|
|
591 |
this->pictureBox10->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox10.Image")));
|
|
|
592 |
this->pictureBox10->Location = System::Drawing::Point(365, 0);
|
|
|
593 |
this->pictureBox10->Name = L"pictureBox10";
|
|
|
594 |
this->pictureBox10->Size = System::Drawing::Size(32, 31);
|
|
|
595 |
this->pictureBox10->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
|
|
|
596 |
this->pictureBox10->TabIndex = 1;
|
|
|
597 |
this->pictureBox10->TabStop = false;
|
|
|
598 |
//
|
|
|
599 |
// button1
|
|
|
600 |
//
|
|
|
601 |
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
|
|
|
602 |
this->button1->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
603 |
this->button1->Location = System::Drawing::Point(50, 10);
|
|
|
604 |
this->button1->Name = L"button1";
|
|
|
605 |
this->button1->Size = System::Drawing::Size(297, 29);
|
|
|
606 |
this->button1->TabIndex = 19;
|
|
|
607 |
this->button1->Text = L"Done";
|
|
|
608 |
this->button1->UseVisualStyleBackColor = true;
|
|
|
609 |
//
|
|
|
610 |
// panel11
|
|
|
611 |
//
|
|
|
612 |
this->panel11->Controls->Add(this->button1);
|
|
|
613 |
this->panel11->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
614 |
this->panel11->Location = System::Drawing::Point(25, 335);
|
|
|
615 |
this->panel11->Name = L"panel11";
|
|
|
616 |
this->panel11->Padding = System::Windows::Forms::Padding(50, 10, 50, 10);
|
|
|
617 |
this->panel11->Size = System::Drawing::Size(397, 49);
|
|
|
618 |
this->panel11->TabIndex = 20;
|
|
|
619 |
//
|
|
|
620 |
// ImportShip
|
|
|
621 |
//
|
|
|
622 |
this->AcceptButton = this->button1;
|
|
|
623 |
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
|
|
|
624 |
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
|
|
|
625 |
this->ClientSize = System::Drawing::Size(447, 409);
|
|
|
626 |
this->ControlBox = false;
|
|
|
627 |
this->Controls->Add(this->panel11);
|
|
|
628 |
this->Controls->Add(this->panel10);
|
|
|
629 |
this->Controls->Add(this->panel9);
|
|
|
630 |
this->Controls->Add(this->panel8);
|
|
|
631 |
this->Controls->Add(this->panel7);
|
|
|
632 |
this->Controls->Add(this->panel6);
|
|
|
633 |
this->Controls->Add(this->panel4);
|
|
|
634 |
this->Controls->Add(this->panel3);
|
|
|
635 |
this->Controls->Add(this->panel5);
|
|
|
636 |
this->Controls->Add(this->panel1);
|
|
|
637 |
this->Controls->Add(this->panel2);
|
|
|
638 |
this->Name = L"ImportShip";
|
|
|
639 |
this->Padding = System::Windows::Forms::Padding(25);
|
|
|
640 |
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
|
|
|
641 |
this->Text = L"Importing Ship";
|
|
|
642 |
this->Load += gcnew System::EventHandler(this, &ImportShip::ImportShip_Load);
|
|
|
643 |
this->panel1->ResumeLayout(false);
|
|
|
644 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->EndInit();
|
|
|
645 |
this->panel2->ResumeLayout(false);
|
|
|
646 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox2))->EndInit();
|
|
|
647 |
this->panel3->ResumeLayout(false);
|
|
|
648 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox4))->EndInit();
|
|
|
649 |
this->panel4->ResumeLayout(false);
|
|
|
650 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox5))->EndInit();
|
|
|
651 |
this->panel5->ResumeLayout(false);
|
|
|
652 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox3))->EndInit();
|
|
|
653 |
this->panel6->ResumeLayout(false);
|
|
|
654 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox6))->EndInit();
|
|
|
655 |
this->panel7->ResumeLayout(false);
|
|
|
656 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox7))->EndInit();
|
|
|
657 |
this->panel8->ResumeLayout(false);
|
|
|
658 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox8))->EndInit();
|
|
|
659 |
this->panel9->ResumeLayout(false);
|
|
|
660 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox9))->EndInit();
|
|
|
661 |
this->panel10->ResumeLayout(false);
|
|
|
662 |
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox10))->EndInit();
|
|
|
663 |
this->panel11->ResumeLayout(false);
|
|
|
664 |
this->ResumeLayout(false);
|
|
|
665 |
|
|
|
666 |
}
|
|
|
667 |
#pragma endregion
|
|
|
668 |
private: System::Void ImportShip_Load(System::Object^ sender, System::EventArgs^ e) {
|
|
|
669 |
this->StartImport();
|
|
|
670 |
}
|
|
|
671 |
private: System::Void backgroundWorker1_DoWork(System::Object^ sender, System::ComponentModel::DoWorkEventArgs^ e) {
|
|
|
672 |
System::Threading::Thread::Sleep(100);
|
|
|
673 |
this->Import();
|
|
|
674 |
}
|
|
|
675 |
private: System::Void backgroundWorker1_RunWorkerCompleted(System::Object^ sender, System::ComponentModel::RunWorkerCompletedEventArgs^ e) {
|
|
|
676 |
if ( m_bError )
|
|
|
677 |
{
|
|
|
678 |
this->Close();
|
|
|
679 |
return;
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
if ( m_iStatus > IMPORTSHIP_SCENE )
|
|
|
683 |
this->pictureBox2->Visible = true;
|
|
|
684 |
if ( m_iStatus > IMPORTSHIP_EXTRACTSCENE )
|
|
|
685 |
this->pictureBox1->Visible = true;
|
|
|
686 |
if ( m_iStatus > IMPORTSHIP_DUMMIES )
|
|
|
687 |
this->pictureBox3->Visible = true;
|
|
|
688 |
if ( m_iStatus > IMPORTSHIP_COMPONANT )
|
|
|
689 |
this->pictureBox4->Visible = true;
|
|
|
690 |
if ( m_iStatus > IMPORTSHIP_MODELS )
|
|
|
691 |
this->pictureBox5->Visible = true;
|
|
|
692 |
if ( m_iStatus > IMPORTSHIP_TEXTURES )
|
|
|
693 |
this->pictureBox6->Visible = true;
|
|
|
694 |
if ( m_iStatus > IMPORTSHIP_TEXTS )
|
|
|
695 |
this->pictureBox7->Visible = true;
|
|
|
696 |
if ( m_iStatus > IMPORTSHIP_BODIES )
|
|
|
697 |
this->pictureBox8->Visible = true;
|
|
|
698 |
if ( m_iStatus > IMPORTSHIP_COCKPITS )
|
|
|
699 |
this->pictureBox9->Visible = true;
|
|
|
700 |
if ( m_iStatus > IMPORTSHIP_PACK )
|
|
|
701 |
this->pictureBox10->Visible = true;
|
|
|
702 |
|
|
|
703 |
if ( m_iStatus < IMPORTSHIP_DONE )
|
|
|
704 |
this->backgroundWorker1->RunWorkerAsync();
|
|
|
705 |
else
|
|
|
706 |
this->button1->Visible = true;
|
|
|
707 |
}
|
|
|
708 |
};
|
|
|
709 |
}
|