Subversion Repositories spk

Rev

Rev 18 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
#include "../../common/listviewsorter.h"
11
#include "../../SpkExplorer/src/Forms/DropFileDialog.h"
12
#include "../../SpkExplorer/src/Forms/AddDialog.h"
13
#include "InputBox.h"
14
#include "AddWare.h"
15
#include "AddWareText.h"
16
#include "AddShipText.h"
17
#include "LoadShip.h"
18
#include "AddShipPart.h"
19
#include "AddDepend.h"
20
 
21
#include "BaseForm.h"
22
#include "Options.h"
23
#include "CustomiseShip.h"
24
#include "SelectGame.h"
25
 
26
#undef GetTempPath
27
 
28
namespace Creator {
29
	/// <summary>
30
	/// Summary for PackageForm
31
	///
32
	/// WARNING: If you change the name of this class, you will need to change the
33
	///          'Resource File Name' property for the managed resource compiler tool
34
	///          associated with all .resx files this class depends on.  Otherwise,
35
	///          the designers will not be able to interact properly with localized
36
	///          resources associated with this form.
37
	/// </summary>
38
//#define DESIGNER
39
#ifdef DESIGNER
40
	public ref class PackageForm : public System::Windows::Forms::Form
41
#else
42
	public ref class PackageForm : public Creator::BaseForm
43
#endif	
44
	{
45
	public:
46
		PackageForm(System::Windows::Forms::Form ^parent, System::Windows::Forms::TabControl ^ctrl, System::Windows::Forms::TabPage ^page, System::Windows::Forms::ToolStripMenuItem ^tool, CPackages *p, Windows::Forms::ImageList ^imagelist, Collections::Hashtable ^hash, SSettings *set)  : BaseForm(parent, ctrl, page, tool, p, imagelist, hash, set)
47
		{
48
			InitializeComponent();
49
			this->LabelShipWarning->Visible = false;
50
			this->TextExactVersion->Visible = false;
51
			this->DoToolTips();
52
 
53
			this->ListDep->LargeImageList = this->imageList1;
54
			this->ListDep->SmallImageList = this->imageList1;
55
 
56
			m_pSettings = set;
57
			m_iFormType = FORMTYPE_SINGLE;
58
			m_pDisplayFile = NULL;
59
 
60
			this->NumTextID->Visible = false;
61
 
62
			m_iSelectedGame = -1;
63
 
64
			this->Closing += gcnew CancelEventHandler(this, &PackageForm::PackageForm_Closing);
65
 
66
			m_pPackage = NULL;
67
			m_pTypeList = new CyStringList;
68
 
69
			this->ComboShipPart->SelectedIndex = 0;
70
 
71
			m_bLoading = false;
72
		}
73
 
74
		void SetImageLists(ImageList ^smallList, ImageList ^largeList, ImageList ^gameList, ImageList ^fileList)
75
		{
76
			BaseForm::SetImageLists(smallList, largeList, gameList);
77
 
78
			this->ListGames->SmallImageList = this->imageListGames;
79
			this->ListGames->LargeImageList = this->imageListGames;
80
			this->ListNames->SmallImageList = this->imageListSmall;
81
			this->ListMirrors->SmallImageList = this->imageListSmall;
82
			this->ListWares->SmallImageList = this->imageListSmall;
83
			this->ListWareText->SmallImageList = this->imageListSmall;
84
			this->ListShipText->SmallImageList = this->imageListSmall;
85
			this->ListShipPart->SmallImageList = this->imageListSmall;
86
 
87
			this->ListNames->LargeImageList = this->imageListLarge;
88
			this->ListMirrors->LargeImageList = this->imageListLarge;
89
			this->ListWares->LargeImageList = this->imageListLarge;
90
			this->ListWareText->LargeImageList = this->imageListLarge;
91
			this->ListShipText->LargeImageList = this->imageListLarge;
92
			this->ListShipPart->LargeImageList = this->imageListLarge;
93
 
94
			this->ButGame->ImageList = this->imageListGames;
95
 
96
			this->imageListFiles = fileList;
97
			this->ListFiles->LargeImageList = this->imageListFiles;
98
			this->ListFiles->SmallImageList = this->imageListFiles;
99
 
100
			this->Setup();
101
		}
102
 
103
		int GetHighestGame();
104
 
105
		void CreateShip() { 
106
			if ( m_pPackage ) delete m_pPackage; 
107
			m_pPackage = new CXspFile; 
108
			((CXspFile *)m_pPackage)->SetShipData("0;0;0;0;0;0;0;0;0;106;1;5;37;0;112;202;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;35;36;1;0;0;0;0;0;1;0;25;1;0;0;0;0;0;SC_NEW_SHIP;");
109
		}
110
		void CreatePackage() { 
111
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageForm::typeid));
112
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
113
			if ( m_pPackage ) delete m_pPackage; 
114
			m_pPackage = new CSpkFile; 
115
		}
116
		void CreateBase() { if ( m_pPackage ) delete m_pPackage; m_pPackage = new CBaseFile; this->UpdateView(); }
117
 
118
		bool LoadPackage(CBaseFile *base, System::String ^filename);
119
		CBaseFile *GetPackage() { return m_pPackage; }
120
 
121
		virtual void Save() new;
122
		virtual void SaveAs() new;
123
 
124
		void UpdateChanged()
125
		{
126
			if ( m_bLoading )
127
				return;
128
			if ( !m_pPackage )
129
				return;
130
 
131
			String ^text = SystemStringFromCyString(CFileIO(m_pPackage->GetFilename()).GetFilename());
132
			String ^addonText = "";
133
			if ( text->Length < 1 )
134
			{
135
				if ( m_pPackage->GetType() == TYPE_XSP )
136
					text = "New Ship";
137
				else
138
					text = "New Package";
139
			}
140
 
141
			if ( m_pPackage->IsChanged() )
142
				addonText += "*";
143
			if ( m_pPackage->IsSigned() )
144
				addonText += " (Signed)";
145
			m_pTabPage->Text = text + addonText;
146
			this->Text = m_sFilename + addonText;
147
		}
148
 
149
		void Export()
150
		{
151
			int game = 0;
152
			if ( m_pPackage->IsMultipleGamesInPackage() ) {
153
				SelectGame ^selGame = gcnew SelectGame("Select game to extract package:\n" + SystemStringFromCyString(m_pPackage->GetFilename()), m_pP);
154
				if ( selGame->ShowDialog(this) == Windows::Forms::DialogResult::OK ) {
155
					game = selGame->GetGame() + 1;
156
				}
157
				else
158
					return;
159
			}
160
			else if ( m_pPackage->IsAnyGameInPackage() ) {
161
				game = m_pPackage->FindFirstGameInPackage();
162
			}
163
 
164
			SaveFileDialog ^ofd = gcnew SaveFileDialog();
165
			ofd->Filter = "Zip Archive (*.zip)|*.zip";
166
			ofd->FileName = SystemStringFromCyString((CFileIO(m_pPackage->GetFilename()).GetDir() + "/" + CFileIO(m_pPackage->GetFilename()).GetBaseName() + "_" + CBaseFile::ConvertGameToString(game) + ".zip").FindReplace("/", "\\"));
167
			ofd->FilterIndex = 1;
168
			ofd->RestoreDirectory = true;
169
			ofd->AddExtension =  true;
170
			ofd->Title = "Select the archive to export to";
171
			if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
172
			{
173
				if ( m_pPackage->SaveToArchive(CyStringFromSystemString(ofd->FileName), game) )
174
					MessageBox::Show(this, "Package saved to archive, " + ofd->FileName, "Package Exported", MessageBoxButtons::OK, MessageBoxIcon::Information);
175
				else
176
					MessageBox::Show(this, "Unable to export to archive, " + ofd->FileName, "Export Failed", MessageBoxButtons::OK, MessageBoxIcon::Error);
177
			}
178
		}
179
 
180
	private:
181
		void DropGetDirectories(String ^dir, CyStringList *list, bool packages);
182
		void UpdateMirrors();
183
		void UpdatePackageNames();
184
		void UpdateView();
185
		void Setup();
186
		void AddFile(C_File *file);
187
		void UpdateFileList();
188
		void UpdateGamesList();
189
		void AddNewFile();
190
		bool CheckSave();
191
		void UpdateGameVersion();
192
		void AddDisplayPic();
193
		void UpdateDisplayPic();
194
		void UpdateDisplayIcon();
195
		void AddDisplayIcon();
196
		void UpdateRatings();
197
		void UpdateText();
198
		void UpdateTextLang();
199
		void SaveText();
200
		void UpdateWares();
201
		void UpdateWareText();
202
		void UpdateShipText();
203
		void LoadShipData();
204
		void UpdateShipPartList();
205
		void UpdateDependacies();
206
		void DoToolTips();
207
		void EditShipParts(bool edit);
208
		void RemoveSelectedFiles();
209
		void UpdateScriptType();
210
		void ImportData(String ^file, int type);
211
		void ImportAnimations(String ^file);
212
		String ^ExtractImport(String ^text, String ^type);
213
		void EditDepend();
214
 
215
		Windows::Forms::ImageList ^imageListFiles;
216
		CBaseFile *m_pPackage;
217
		bool	m_bSortingAsc;
218
		int		m_iSortingCol;
219
		CyStringList *m_pTypeList;
220
		C_File *m_pDisplayFile;
221
		int		m_iSelectedGame;
222
 
223
	private: System::Windows::Forms::ContextMenuStrip^  ContextShipText;
224
	private: System::Windows::Forms::ToolStripMenuItem^  addLanguageToolStripMenuItem;
225
	private: System::Windows::Forms::ToolStripSeparator^  ContextShipTextSep1;
226
	private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextEdit;
227
 
228
 
229
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextRemove;
230
 
231
private: System::Windows::Forms::ToolStripSeparator^  ContextShipTextSep2;
232
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextClear;
233
private: System::Windows::Forms::TabPage^  PageRaw;
234
private: System::Windows::Forms::Panel^  panel23;
235
private: System::Windows::Forms::RichTextBox^  TextShipData;
236
 
237
private: System::Windows::Forms::CheckBox^  checkBox1;
238
private: System::Windows::Forms::Button^  button3;
239
private: System::Windows::Forms::Panel^  panel24;
240
private: System::Windows::Forms::Label^  label17;
241
private: System::Windows::Forms::TabPage^  PageShipComp;
242
private: System::Windows::Forms::Panel^  panel25;
243
private: System::Windows::Forms::ComboBox^  ComboShipPart;
244
 
245
private: System::Windows::Forms::Label^  label18;
246
private: System::Windows::Forms::Panel^  panel26;
247
private: System::Windows::Forms::ListView^  ListShipPart;
248
 
249
private: System::Windows::Forms::ColumnHeader^  ColumnPart1;
250
private: System::Windows::Forms::ColumnHeader^  ColumnPart2;
251
private: System::Windows::Forms::ColumnHeader^  ColumnPart3;
252
private: System::Windows::Forms::ToolStrip^  toolStrip1;
253
private: System::Windows::Forms::ToolStripButton^  toolStripButton2;
254
private: System::Windows::Forms::ToolStripButton^  toolStripButton3;
255
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator3;
256
private: System::Windows::Forms::ToolStripButton^  toolStripButton1;
257
private: System::Windows::Forms::ContextMenuStrip^  ContextShipPart;
258
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartAdd;
259
private: System::Windows::Forms::ToolStripSeparator^  ContextShipPartSep1;
260
 
261
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartRemove;
262
 
263
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartEdit;
264
 
265
private: System::Windows::Forms::ToolStripSeparator^  ContextShipPartSep2;
266
private: System::Windows::Forms::TabPage^  tabPage4;
267
private: System::Windows::Forms::ListView^  ListDep;
268
private: System::Windows::Forms::ColumnHeader^  columnHeader22;
269
private: System::Windows::Forms::ColumnHeader^  columnHeader23;
270
private: System::Windows::Forms::ColumnHeader^  columnHeader24;
271
private: System::Windows::Forms::ContextMenuStrip^  ContextDep;
272
private: System::Windows::Forms::ToolStripSeparator^  ContextDepSep2;
273
private: System::Windows::Forms::ToolStripMenuItem^  ContextDepClear;
274
private: System::Windows::Forms::ToolStripMenuItem^  ContextDepRemove;
275
private: System::Windows::Forms::ToolStripMenuItem^  addToolStripMenuItem1;
276
private: System::Windows::Forms::ToolStripMenuItem^  manualToolStripMenuItem;
277
private: System::Windows::Forms::ToolStripSeparator^  ContextDepSep1;
278
private: System::Windows::Forms::ToolStripMenuItem^  fromPackageToolStripMenuItem;
279
private: System::Windows::Forms::ToolStripMenuItem^  editSelectedToolStripMenuItem;
280
private: System::Windows::Forms::ToolStripSeparator^  ContextFileSep2;
281
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileClear;
282
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileDelete;
283
private: System::Windows::Forms::ToolStripMenuItem^  addFileToolStripMenuItem;
284
private: System::Windows::Forms::ToolStripSeparator^  ContextFileSep1;
285
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileEdit;
286
private: System::Windows::Forms::TextBox^  TextCustomType;
287
private: System::Windows::Forms::ToolStripMenuItem^  importTextToolStripMenuItem;
288
private: System::Windows::Forms::ToolStripMenuItem^  fromFileToolStripMenuItem;
289
private: System::Windows::Forms::ToolStripMenuItem^  fromDirectoryToolStripMenuItem;
290
private: System::Windows::Forms::ToolStripMenuItem^  fromModToolStripMenuItem;
291
private: System::Windows::Forms::ToolStripMenuItem^  importToolStripMenuItem;
292
 
293
 
294
 
295
private: System::Windows::Forms::ToolTip^  toolTip1;
296
private: System::Windows::Forms::ToolTip^  toolTip2;
297
 
298
private: System::Windows::Forms::ToolStripMenuItem^  packFileToolStripMenuItem;
299
private: System::Windows::Forms::ToolStripMenuItem^  unpackFileToolStripMenuItem;
300
private: System::Windows::Forms::ToolStripMenuItem^  convertToFakePatchToolStripMenuItem;
301
private: System::Windows::Forms::ToolStripMenuItem^  convertToNormalModToolStripMenuItem;
302
private: System::Windows::Forms::ToolStripMenuItem^  renameFileToolStripMenuItem;
303
private: System::Windows::Forms::ToolStripButton^  toolStripButton4;
304
private: System::Windows::Forms::Label^  LabelShipWarning;
305
private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel3;
306
private: System::Windows::Forms::Button^  button5;
307
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
308
private: System::Windows::Forms::ToolStripButton^  ToolCustomise;
309
private: System::Windows::Forms::ToolStripButton^  toolStripButton5;
310
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
311
private: System::Windows::Forms::ToolStripMenuItem^  convertToAutoTextFileToolStripMenuItem;
312
private: System::Windows::Forms::ColumnHeader^  columnHeader25;
313
private: System::Windows::Forms::TabPage^  tabPage5;
314
 
315
private: System::Windows::Forms::GroupBox^  groupBox8;
316
private: System::Windows::Forms::Panel^  panel10;
317
private: System::Windows::Forms::Panel^  panel21;
318
private: System::Windows::Forms::ComboBox^  ComboVersion;
319
private: System::Windows::Forms::TextBox^  TextExactVersion;
320
private: System::Windows::Forms::Button^  ButGame;
321
 
322
private: System::Windows::Forms::ListView^  ListGames;
323
private: System::Windows::Forms::ColumnHeader^  columnHeader26;
324
private: System::Windows::Forms::ColumnHeader^  columnHeader27;
325
 
326
private: System::Windows::Forms::Button^  ButGameAdd;
327
private: System::Windows::Forms::ColumnHeader^  columnHeader28;
328
private: System::Windows::Forms::ToolStripMenuItem^  ToolGame;
329
private: System::Windows::Forms::ComboBox^  ComboGameFilter;
330
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartClear;
331
 
332
	protected:
333
		/// <summary>
334
		/// Clean up any resources being used.
335
		/// </summary>
336
		~PackageForm()
337
		{
338
			if (components)
339
			{
340
				delete components;
341
			}
342
			delete m_pTypeList;
343
			if ( m_pPackage )
344
				delete m_pPackage;
345
		}
346
	private: System::Windows::Forms::Panel^  panel6;
347
	private: System::Windows::Forms::Button^  ButRemoveFile;
348
	private: System::Windows::Forms::Button^  button2;
349
	private: System::Windows::Forms::Button^  button1;
350
 
351
	private: System::Windows::Forms::ColumnHeader^  columnHeader18;
352
	private: System::Windows::Forms::Panel^  panel22;
353
	private: System::Windows::Forms::Label^  label15;
354
	private: System::Windows::Forms::ComboBox^  ComboPluginType;
355
	private: System::Windows::Forms::TabPage^  PageShip;
356
	private: System::Windows::Forms::CheckBox^  CheckShipID;
357
	private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel2;
358
	private: System::Windows::Forms::CheckBox^  CheckSYArgon;
359
	private: System::Windows::Forms::CheckBox^  CheckSYBoron;
360
	private: System::Windows::Forms::CheckBox^  CheckSYParanid;
361
	private: System::Windows::Forms::CheckBox^  CheckSYTeladi;
362
	private: System::Windows::Forms::CheckBox^  CheckSYSplit;
363
	private: System::Windows::Forms::CheckBox^  CheckSYPirate;
364
	private: System::Windows::Forms::CheckBox^  CheckSYFriend;
365
	private: System::Windows::Forms::CheckBox^  CheckSYXenon;
366
	private: System::Windows::Forms::CheckBox^  CheckSYTerran;
367
	private: System::Windows::Forms::CheckBox^  CheckSYATF;
368
	private: System::Windows::Forms::ListView^  ListShipText;
369
	private: System::Windows::Forms::CheckBox^  CheckSYYaki;
370
	private: System::Windows::Forms::CheckBox^  CheckExistingText;
371
	private: System::Windows::Forms::ColumnHeader^  columnHeader19;
372
	private: System::Windows::Forms::ColumnHeader^  columnHeader20;
373
	private: System::Windows::Forms::ColumnHeader^  columnHeader21;
374
	private: System::Windows::Forms::Panel^  PanelTextID;
375
	private: System::Windows::Forms::NumericUpDown^  NumTextID;
376
	private: System::Windows::Forms::Label^  label6;
377
	private: System::Windows::Forms::Panel^  PanelShip;
378
	private: System::Windows::Forms::TextBox^  TextShipID;
379
	private: System::Windows::Forms::Label^  label16;
380
	private: System::Windows::Forms::Panel^  panel7;
381
	private: System::Windows::Forms::GroupBox^  groupBox2;
382
	private: System::Windows::Forms::RichTextBox^  TextDesc;
383
	private: System::Windows::Forms::Panel^  panel8;
384
	private: System::Windows::Forms::Label^  label7;
385
	private: System::Windows::Forms::RadioButton^  RadioTypeUpdate;
386
	private: System::Windows::Forms::RadioButton^  RadioTypeStart;
387
	private: System::Windows::Forms::RadioButton^  RadioTypeScript;
388
	private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel1;
389
	private: System::Windows::Forms::RadioButton^  RadioTypeLibrary;
390
	private: System::Windows::Forms::RadioButton^  RadioTypePatch;
391
 
392
	private: System::Windows::Forms::Panel^  panel9;
393
	private: System::Windows::Forms::ComboBox^  ComboType;
394
	private: System::Windows::Forms::TabPage^  PagePackage;
395
	private: System::Windows::Forms::TabPage^  tabPage2;
396
 
397
 
398
 
399
	private: System::Windows::Forms::Panel^  panel12;
400
 
401
 
402
 
403
	private: System::Windows::Forms::Label^  label10;
404
	private: System::Windows::Forms::Panel^  panel11;
405
 
406
 
407
	private: System::Windows::Forms::Label^  label9;
408
 
409
	private: System::Windows::Forms::Panel^  panel13;
410
 
411
 
412
	private: System::Windows::Forms::Label^  label11;
413
private: System::Windows::Forms::TabPage^  tabPage3;
414
private: System::Windows::Forms::GroupBox^  groupBox3;
415
private: System::Windows::Forms::CheckBox^  CheckOther;
416
 
417
private: System::Windows::Forms::Label^  label13;
418
private: System::Windows::Forms::TextBox^  TextOtherName;
419
 
420
private: System::Windows::Forms::Label^  label12;
421
private: System::Windows::Forms::TextBox^  TextOtherAuthor;
422
 
423
private: System::Windows::Forms::Button^  ButFromFile;
424
private: System::Windows::Forms::GroupBox^  groupBox4;
425
private: System::Windows::Forms::Label^  label14;
426
private: System::Windows::Forms::ListView^  ListNames;
427
private: System::Windows::Forms::ColumnHeader^  columnHeader7;
428
private: System::Windows::Forms::ColumnHeader^  columnHeader8;
429
private: System::Windows::Forms::ListView^  ListMirrors;
430
private: System::Windows::Forms::ColumnHeader^  columnHeader6;
431
private: System::Windows::Forms::Panel^  panel14;
432
 
433
private: System::Windows::Forms::ContextMenuStrip^  ContextMirror;
434
private: System::Windows::Forms::ContextMenuStrip^  ContextLangName;
435
private: System::Windows::Forms::ToolStripMenuItem^  addMirrorToolStripMenuItem;
436
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;
437
private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem;
438
private: System::Windows::Forms::ToolStripMenuItem^  ContextRemoveMirror;
439
private: System::Windows::Forms::ToolStripMenuItem^  addToolStripMenuItem;
440
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator2;
441
private: System::Windows::Forms::ToolStripMenuItem^  ContextEditName;
442
private: System::Windows::Forms::ToolStripMenuItem^  ContextRemoveName;
443
private: System::Windows::Forms::ToolStripSeparator^  ContextNameSep;
444
private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem1;
445
private: System::Windows::Forms::Panel^  panel15;
446
private: System::Windows::Forms::Panel^  panel16;
447
private: System::Windows::Forms::Button^  ButPicAdd;
448
private: System::Windows::Forms::Button^  ButPicDel;
449
private: System::Windows::Forms::Button^  ButPicNext;
450
private: System::Windows::Forms::Button^  ButPicBack;
451
private: System::Windows::Forms::PictureBox^  DisplayPicture;
452
private: System::Windows::Forms::GroupBox^  groupBox5;
453
private: System::Windows::Forms::PictureBox^  DisplayIcon;
454
private: System::Windows::Forms::Button^  button4;
455
private: System::Windows::Forms::Button^  ButIconDel;
456
private: System::Windows::Forms::GroupBox^  groupBox6;
457
private: System::Windows::Forms::Panel^  panel17;
458
private: System::Windows::Forms::GroupBox^  GroupChange;
459
private: System::Windows::Forms::GroupBox^  GroupRec;
460
private: System::Windows::Forms::GroupBox^  GroupEase;
461
private: System::Windows::Forms::PictureBox^  PicRec4;
462
private: System::Windows::Forms::PictureBox^  PicRec3;
463
private: System::Windows::Forms::PictureBox^  PicRec2;
464
private: System::Windows::Forms::PictureBox^  PicRec1;
465
private: System::Windows::Forms::PictureBox^  PicEase5;
466
private: System::Windows::Forms::PictureBox^  PicEase4;
467
private: System::Windows::Forms::PictureBox^  PicEase3;
468
private: System::Windows::Forms::PictureBox^  PicEase2;
469
private: System::Windows::Forms::PictureBox^  PicEase1;
470
private: System::Windows::Forms::PictureBox^  PicChange4;
471
private: System::Windows::Forms::PictureBox^  PicChange3;
472
private: System::Windows::Forms::PictureBox^  PicChange2;
473
private: System::Windows::Forms::PictureBox^  PicChange5;
474
private: System::Windows::Forms::PictureBox^  PicChange1;
475
private: System::Windows::Forms::GroupBox^  groupBox7;
476
private: System::Windows::Forms::Panel^  panel19;
477
private: System::Windows::Forms::Button^  ButTextAdd;
478
private: System::Windows::Forms::Button^  ButTextDel;
479
private: System::Windows::Forms::ListBox^  ListLang;
480
private: System::Windows::Forms::RichTextBox^  TextText;
481
private: System::Windows::Forms::Panel^  panel18;
482
private: System::Windows::Forms::RadioButton^  RadioInstallAfter;
483
private: System::Windows::Forms::RadioButton^  RadioInstallBefore;
484
private: System::Windows::Forms::Panel^  panel20;
485
private: System::Windows::Forms::RadioButton^  RadioUninstallAfter;
486
private: System::Windows::Forms::RadioButton^  RadioUninstallBefore;
487
private: System::Windows::Forms::TabPage^  PageWares;
488
private: System::Windows::Forms::SplitContainer^  splitContainer1;
489
private: System::Windows::Forms::ListView^  ListWares;
490
private: System::Windows::Forms::ColumnHeader^  columnHeader9;
491
private: System::Windows::Forms::ColumnHeader^  columnHeader10;
492
private: System::Windows::Forms::ColumnHeader^  columnHeader11;
493
private: System::Windows::Forms::ColumnHeader^  columnHeader12;
494
private: System::Windows::Forms::ColumnHeader^  columnHeader13;
495
private: System::Windows::Forms::ColumnHeader^  columnHeader14;
496
private: System::Windows::Forms::ListView^  ListWareText;
497
 
498
private: System::Windows::Forms::ColumnHeader^  columnHeader15;
499
private: System::Windows::Forms::ColumnHeader^  columnHeader16;
500
private: System::Windows::Forms::ColumnHeader^  columnHeader17;
501
private: System::Windows::Forms::ContextMenuStrip^  ContextWare;
502
private: System::Windows::Forms::ToolStripMenuItem^  addWareToolStripMenuItem;
503
private: System::Windows::Forms::ToolStripSeparator^  ContextWareSep1;
504
 
505
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareEdit;
506
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareRemove;
507
private: System::Windows::Forms::ToolStripSeparator^  ContextWareSep2;
508
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareClear;
509
private: System::Windows::Forms::ContextMenuStrip^  ContextWareText;
510
private: System::Windows::Forms::ToolStripMenuItem^  addTextToolStripMenuItem;
511
private: System::Windows::Forms::ToolStripSeparator^  ContextWTSep1;
512
 
513
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTRemove;
514
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTEdit;
515
private: System::Windows::Forms::ToolStripSeparator^  ContextWTSep2;
516
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTClear;
517
private: System::Windows::Forms::PictureBox^  PicRec5;
518
private: System::Windows::Forms::RichTextBox^  TextForum;
519
private: System::Windows::Forms::RichTextBox^  TextEmail;
520
private: System::Windows::Forms::RichTextBox^  TextWebsite;
521
private: System::Windows::Forms::ContextMenuStrip^  ContextFiles;
522
private: System::Windows::Forms::RichTextBox^  TextWebAddress;
523
 
524
 
525
 
526
 
527
private: System::Windows::Forms::ContextMenuStrip^  ContextGames;
528
 
529
private: System::Windows::Forms::ToolStripMenuItem^  testToolStripMenuItem;
530
 
531
private: System::Windows::Forms::GroupBox^  groupBox1;
532
	private: System::Windows::Forms::TabControl^  tabControl1;
533
	private: System::Windows::Forms::TabPage^  tabPage1;
534
 
535
	private: System::Windows::Forms::Panel^  panel1;
536
	private: System::Windows::Forms::TextBox^  TextName;
537
	private: System::Windows::Forms::Label^  label1;
538
	private: System::Windows::Forms::Panel^  panel2;
539
	private: System::Windows::Forms::TextBox^  TextAuthor;
540
	private: System::Windows::Forms::Label^  label2;
541
	private: System::Windows::Forms::Panel^  panel3;
542
	private: System::Windows::Forms::TextBox^  TextVersion;
543
 
544
	private: System::Windows::Forms::Label^  label3;
545
	private: System::Windows::Forms::Panel^  panel4;
546
 
547
	private: System::Windows::Forms::Label^  label4;
548
	private: System::Windows::Forms::ListView^  ListFiles;
549
 
550
	private: System::Windows::Forms::Panel^  panel5;
551
	private: System::Windows::Forms::ComboBox^  ComboFileType;
552
	private: System::Windows::Forms::Label^  label5;
553
	private: System::Windows::Forms::DateTimePicker^  CreationDate;
554
	private: System::Windows::Forms::ColumnHeader^  columnHeader1;
555
	private: System::Windows::Forms::ColumnHeader^  columnHeader2;
556
	private: System::Windows::Forms::ColumnHeader^  columnHeader3;
557
	private: System::Windows::Forms::ColumnHeader^  columnHeader4;
558
	private: System::Windows::Forms::ColumnHeader^  columnHeader5;
559
private: System::ComponentModel::IContainer^  components;
560
		 /// <summary>
561
		/// Required designer variable.
562
		/// </summary>
563
 
564
 
565
#pragma region Windows Form Designer generated code
566
		/// <summary>
567
		/// Required method for Designer support - do not modify
568
		/// the contents of this method with the code editor.
569
		/// </summary>
570
		void InitializeComponent(void)
571
		{
572
			this->components = (gcnew System::ComponentModel::Container());
573
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageForm::typeid));
574
			this->PicChange5 = (gcnew System::Windows::Forms::PictureBox());
575
			this->PicChange1 = (gcnew System::Windows::Forms::PictureBox());
576
			this->PicRec5 = (gcnew System::Windows::Forms::PictureBox());
577
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
578
			this->ListFiles = (gcnew System::Windows::Forms::ListView());
579
			this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
580
			this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
581
			this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
582
			this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
583
			this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());
584
			this->columnHeader25 = (gcnew System::Windows::Forms::ColumnHeader());
585
			this->columnHeader28 = (gcnew System::Windows::Forms::ColumnHeader());
586
			this->ContextFiles = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
587
			this->addFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
588
			this->ContextFileSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
589
			this->ContextFileEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
590
			this->ContextFileDelete = (gcnew System::Windows::Forms::ToolStripMenuItem());
591
			this->renameFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
592
			this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
593
			this->ToolGame = (gcnew System::Windows::Forms::ToolStripMenuItem());
594
			this->packFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
595
			this->unpackFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
596
			this->convertToFakePatchToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
597
			this->convertToAutoTextFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
598
			this->convertToNormalModToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
599
			this->ContextFileSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
600
			this->ContextFileClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
601
			this->panel6 = (gcnew System::Windows::Forms::Panel());
602
			this->ButRemoveFile = (gcnew System::Windows::Forms::Button());
603
			this->button2 = (gcnew System::Windows::Forms::Button());
604
			this->button1 = (gcnew System::Windows::Forms::Button());
605
			this->panel5 = (gcnew System::Windows::Forms::Panel());
606
			this->ComboFileType = (gcnew System::Windows::Forms::ComboBox());
607
			this->ComboGameFilter = (gcnew System::Windows::Forms::ComboBox());
608
			this->label5 = (gcnew System::Windows::Forms::Label());
609
			this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
610
			this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
611
			this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
612
			this->TextDesc = (gcnew System::Windows::Forms::RichTextBox());
613
			this->panel13 = (gcnew System::Windows::Forms::Panel());
614
			this->TextForum = (gcnew System::Windows::Forms::RichTextBox());
615
			this->label11 = (gcnew System::Windows::Forms::Label());
616
			this->panel12 = (gcnew System::Windows::Forms::Panel());
617
			this->TextEmail = (gcnew System::Windows::Forms::RichTextBox());
618
			this->label10 = (gcnew System::Windows::Forms::Label());
619
			this->panel11 = (gcnew System::Windows::Forms::Panel());
620
			this->TextWebsite = (gcnew System::Windows::Forms::RichTextBox());
621
			this->label9 = (gcnew System::Windows::Forms::Label());
622
			this->LabelShipWarning = (gcnew System::Windows::Forms::Label());
623
			this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
624
			this->ListGames = (gcnew System::Windows::Forms::ListView());
625
			this->columnHeader26 = (gcnew System::Windows::Forms::ColumnHeader());
626
			this->columnHeader27 = (gcnew System::Windows::Forms::ColumnHeader());
627
			this->groupBox8 = (gcnew System::Windows::Forms::GroupBox());
628
			this->panel10 = (gcnew System::Windows::Forms::Panel());
629
			this->panel21 = (gcnew System::Windows::Forms::Panel());
630
			this->ComboVersion = (gcnew System::Windows::Forms::ComboBox());
631
			this->TextExactVersion = (gcnew System::Windows::Forms::TextBox());
632
			this->ButGameAdd = (gcnew System::Windows::Forms::Button());
633
			this->ButGame = (gcnew System::Windows::Forms::Button());
634
			this->ContextGames = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
635
			this->testToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
636
			this->PagePackage = (gcnew System::Windows::Forms::TabPage());
637
			this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
638
			this->TextOtherName = (gcnew System::Windows::Forms::TextBox());
639
			this->label13 = (gcnew System::Windows::Forms::Label());
640
			this->label12 = (gcnew System::Windows::Forms::Label());
641
			this->CheckOther = (gcnew System::Windows::Forms::CheckBox());
642
			this->TextOtherAuthor = (gcnew System::Windows::Forms::TextBox());
643
			this->ButFromFile = (gcnew System::Windows::Forms::Button());
644
			this->panel22 = (gcnew System::Windows::Forms::Panel());
645
			this->ComboPluginType = (gcnew System::Windows::Forms::ComboBox());
646
			this->label15 = (gcnew System::Windows::Forms::Label());
647
			this->panel7 = (gcnew System::Windows::Forms::Panel());
648
			this->panel8 = (gcnew System::Windows::Forms::Panel());
649
			this->flowLayoutPanel1 = (gcnew System::Windows::Forms::FlowLayoutPanel());
650
			this->RadioTypeUpdate = (gcnew System::Windows::Forms::RadioButton());
651
			this->RadioTypeLibrary = (gcnew System::Windows::Forms::RadioButton());
652
			this->RadioTypeStart = (gcnew System::Windows::Forms::RadioButton());
653
			this->RadioTypePatch = (gcnew System::Windows::Forms::RadioButton());
654
			this->panel9 = (gcnew System::Windows::Forms::Panel());
655
			this->TextCustomType = (gcnew System::Windows::Forms::TextBox());
656
			this->ComboType = (gcnew System::Windows::Forms::ComboBox());
657
			this->RadioTypeScript = (gcnew System::Windows::Forms::RadioButton());
658
			this->label7 = (gcnew System::Windows::Forms::Label());
659
			this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
660
			this->groupBox7 = (gcnew System::Windows::Forms::GroupBox());
661
			this->TextText = (gcnew System::Windows::Forms::RichTextBox());
662
			this->panel19 = (gcnew System::Windows::Forms::Panel());
663
			this->ListLang = (gcnew System::Windows::Forms::ListBox());
664
			this->panel20 = (gcnew System::Windows::Forms::Panel());
665
			this->ButTextDel = (gcnew System::Windows::Forms::Button());
666
			this->ButTextAdd = (gcnew System::Windows::Forms::Button());
667
			this->panel18 = (gcnew System::Windows::Forms::Panel());
668
			this->RadioUninstallAfter = (gcnew System::Windows::Forms::RadioButton());
669
			this->RadioUninstallBefore = (gcnew System::Windows::Forms::RadioButton());
670
			this->RadioInstallAfter = (gcnew System::Windows::Forms::RadioButton());
671
			this->RadioInstallBefore = (gcnew System::Windows::Forms::RadioButton());
672
			this->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
673
			this->panel17 = (gcnew System::Windows::Forms::Panel());
674
			this->GroupChange = (gcnew System::Windows::Forms::GroupBox());
675
			this->PicChange4 = (gcnew System::Windows::Forms::PictureBox());
676
			this->PicChange3 = (gcnew System::Windows::Forms::PictureBox());
677
			this->PicChange2 = (gcnew System::Windows::Forms::PictureBox());
678
			this->GroupRec = (gcnew System::Windows::Forms::GroupBox());
679
			this->PicRec4 = (gcnew System::Windows::Forms::PictureBox());
680
			this->PicRec3 = (gcnew System::Windows::Forms::PictureBox());
681
			this->PicRec2 = (gcnew System::Windows::Forms::PictureBox());
682
			this->PicRec1 = (gcnew System::Windows::Forms::PictureBox());
683
			this->GroupEase = (gcnew System::Windows::Forms::GroupBox());
684
			this->PicEase5 = (gcnew System::Windows::Forms::PictureBox());
685
			this->PicEase4 = (gcnew System::Windows::Forms::PictureBox());
686
			this->PicEase3 = (gcnew System::Windows::Forms::PictureBox());
687
			this->PicEase2 = (gcnew System::Windows::Forms::PictureBox());
688
			this->PicEase1 = (gcnew System::Windows::Forms::PictureBox());
689
			this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
690
			this->ButIconDel = (gcnew System::Windows::Forms::Button());
691
			this->DisplayIcon = (gcnew System::Windows::Forms::PictureBox());
692
			this->button4 = (gcnew System::Windows::Forms::Button());
693
			this->panel15 = (gcnew System::Windows::Forms::Panel());
694
			this->DisplayPicture = (gcnew System::Windows::Forms::PictureBox());
695
			this->panel16 = (gcnew System::Windows::Forms::Panel());
696
			this->ButPicAdd = (gcnew System::Windows::Forms::Button());
697
			this->ButPicDel = (gcnew System::Windows::Forms::Button());
698
			this->ButPicNext = (gcnew System::Windows::Forms::Button());
699
			this->ButPicBack = (gcnew System::Windows::Forms::Button());
700
			this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
701
			this->ListNames = (gcnew System::Windows::Forms::ListView());
702
			this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());
703
			this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());
704
			this->ContextLangName = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
705
			this->addToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
706
			this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
707
			this->ContextEditName = (gcnew System::Windows::Forms::ToolStripMenuItem());
708
			this->ContextRemoveName = (gcnew System::Windows::Forms::ToolStripMenuItem());
709
			this->ContextNameSep = (gcnew System::Windows::Forms::ToolStripSeparator());
710
			this->clearAllToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
711
			this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
712
			this->ListMirrors = (gcnew System::Windows::Forms::ListView());
713
			this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());
714
			this->ContextMirror = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
715
			this->addMirrorToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
716
			this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
717
			this->ContextRemoveMirror = (gcnew System::Windows::Forms::ToolStripMenuItem());
718
			this->clearAllToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
719
			this->panel14 = (gcnew System::Windows::Forms::Panel());
720
			this->TextWebAddress = (gcnew System::Windows::Forms::RichTextBox());
721
			this->label14 = (gcnew System::Windows::Forms::Label());
722
			this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
723
			this->ListDep = (gcnew System::Windows::Forms::ListView());
724
			this->columnHeader22 = (gcnew System::Windows::Forms::ColumnHeader());
725
			this->columnHeader23 = (gcnew System::Windows::Forms::ColumnHeader());
726
			this->columnHeader24 = (gcnew System::Windows::Forms::ColumnHeader());
727
			this->ContextDep = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
728
			this->addToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
729
			this->manualToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
730
			this->fromPackageToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
731
			this->ContextDepSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
732
			this->editSelectedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
733
			this->ContextDepRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
734
			this->ContextDepSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
735
			this->ContextDepClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
736
			this->PageWares = (gcnew System::Windows::Forms::TabPage());
737
			this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
738
			this->ListWares = (gcnew System::Windows::Forms::ListView());
739
			this->columnHeader9 = (gcnew System::Windows::Forms::ColumnHeader());
740
			this->columnHeader10 = (gcnew System::Windows::Forms::ColumnHeader());
741
			this->columnHeader11 = (gcnew System::Windows::Forms::ColumnHeader());
742
			this->columnHeader12 = (gcnew System::Windows::Forms::ColumnHeader());
743
			this->columnHeader13 = (gcnew System::Windows::Forms::ColumnHeader());
744
			this->columnHeader14 = (gcnew System::Windows::Forms::ColumnHeader());
745
			this->columnHeader18 = (gcnew System::Windows::Forms::ColumnHeader());
746
			this->ContextWare = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
747
			this->addWareToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
748
			this->ContextWareSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
749
			this->ContextWareEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
750
			this->ContextWareRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
751
			this->ContextWareSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
752
			this->ContextWareClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
753
			this->ListWareText = (gcnew System::Windows::Forms::ListView());
754
			this->columnHeader15 = (gcnew System::Windows::Forms::ColumnHeader());
755
			this->columnHeader16 = (gcnew System::Windows::Forms::ColumnHeader());
756
			this->columnHeader17 = (gcnew System::Windows::Forms::ColumnHeader());
757
			this->ContextWareText = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
758
			this->addTextToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
759
			this->ContextWTSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
760
			this->ContextWTRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
761
			this->ContextWTEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
762
			this->ContextWTSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
763
			this->ContextWTClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
764
			this->PageShip = (gcnew System::Windows::Forms::TabPage());
765
			this->ListShipText = (gcnew System::Windows::Forms::ListView());
766
			this->columnHeader19 = (gcnew System::Windows::Forms::ColumnHeader());
767
			this->columnHeader20 = (gcnew System::Windows::Forms::ColumnHeader());
768
			this->columnHeader21 = (gcnew System::Windows::Forms::ColumnHeader());
769
			this->ContextShipText = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
770
			this->importTextToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
771
			this->fromFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
772
			this->fromDirectoryToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
773
			this->fromModToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
774
			this->addLanguageToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
775
			this->ContextShipTextSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
776
			this->ContextShipTextEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
777
			this->ContextShipTextRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
778
			this->ContextShipTextSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
779
			this->ContextShipTextClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
780
			this->PanelTextID = (gcnew System::Windows::Forms::Panel());
781
			this->NumTextID = (gcnew System::Windows::Forms::NumericUpDown());
782
			this->CheckExistingText = (gcnew System::Windows::Forms::CheckBox());
783
			this->flowLayoutPanel2 = (gcnew System::Windows::Forms::FlowLayoutPanel());
784
			this->label16 = (gcnew System::Windows::Forms::Label());
785
			this->CheckSYArgon = (gcnew System::Windows::Forms::CheckBox());
786
			this->CheckSYBoron = (gcnew System::Windows::Forms::CheckBox());
787
			this->CheckSYParanid = (gcnew System::Windows::Forms::CheckBox());
788
			this->CheckSYTeladi = (gcnew System::Windows::Forms::CheckBox());
789
			this->CheckSYSplit = (gcnew System::Windows::Forms::CheckBox());
790
			this->CheckSYPirate = (gcnew System::Windows::Forms::CheckBox());
791
			this->CheckSYFriend = (gcnew System::Windows::Forms::CheckBox());
792
			this->CheckSYXenon = (gcnew System::Windows::Forms::CheckBox());
793
			this->CheckSYTerran = (gcnew System::Windows::Forms::CheckBox());
794
			this->CheckSYATF = (gcnew System::Windows::Forms::CheckBox());
795
			this->CheckSYYaki = (gcnew System::Windows::Forms::CheckBox());
796
			this->PageRaw = (gcnew System::Windows::Forms::TabPage());
797
			this->panel23 = (gcnew System::Windows::Forms::Panel());
798
			this->TextShipData = (gcnew System::Windows::Forms::RichTextBox());
799
			this->panel24 = (gcnew System::Windows::Forms::Panel());
800
			this->label17 = (gcnew System::Windows::Forms::Label());
801
			this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
802
			this->flowLayoutPanel3 = (gcnew System::Windows::Forms::FlowLayoutPanel());
803
			this->button3 = (gcnew System::Windows::Forms::Button());
804
			this->button5 = (gcnew System::Windows::Forms::Button());
805
			this->PageShipComp = (gcnew System::Windows::Forms::TabPage());
806
			this->panel26 = (gcnew System::Windows::Forms::Panel());
807
			this->ListShipPart = (gcnew System::Windows::Forms::ListView());
808
			this->ColumnPart1 = (gcnew System::Windows::Forms::ColumnHeader());
809
			this->ColumnPart2 = (gcnew System::Windows::Forms::ColumnHeader());
810
			this->ColumnPart3 = (gcnew System::Windows::Forms::ColumnHeader());
811
			this->ContextShipPart = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
812
			this->importToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
813
			this->ContextShipPartAdd = (gcnew System::Windows::Forms::ToolStripMenuItem());
814
			this->ContextShipPartSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
815
			this->ContextShipPartRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
816
			this->ContextShipPartEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
817
			this->ContextShipPartSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
818
			this->ContextShipPartClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
819
			this->panel25 = (gcnew System::Windows::Forms::Panel());
820
			this->ComboShipPart = (gcnew System::Windows::Forms::ComboBox());
821
			this->label18 = (gcnew System::Windows::Forms::Label());
822
			this->CheckShipID = (gcnew System::Windows::Forms::CheckBox());
823
			this->panel1 = (gcnew System::Windows::Forms::Panel());
824
			this->TextName = (gcnew System::Windows::Forms::TextBox());
825
			this->label1 = (gcnew System::Windows::Forms::Label());
826
			this->panel2 = (gcnew System::Windows::Forms::Panel());
827
			this->TextAuthor = (gcnew System::Windows::Forms::TextBox());
828
			this->label2 = (gcnew System::Windows::Forms::Label());
829
			this->panel3 = (gcnew System::Windows::Forms::Panel());
830
			this->TextVersion = (gcnew System::Windows::Forms::TextBox());
831
			this->label3 = (gcnew System::Windows::Forms::Label());
832
			this->panel4 = (gcnew System::Windows::Forms::Panel());
833
			this->CreationDate = (gcnew System::Windows::Forms::DateTimePicker());
834
			this->label4 = (gcnew System::Windows::Forms::Label());
835
			this->label6 = (gcnew System::Windows::Forms::Label());
836
			this->PanelShip = (gcnew System::Windows::Forms::Panel());
837
			this->TextShipID = (gcnew System::Windows::Forms::TextBox());
838
			this->toolStrip1 = (gcnew System::Windows::Forms::ToolStrip());
839
			this->toolStripButton2 = (gcnew System::Windows::Forms::ToolStripButton());
840
			this->toolStripButton3 = (gcnew System::Windows::Forms::ToolStripButton());
841
			this->toolStripButton5 = (gcnew System::Windows::Forms::ToolStripButton());
842
			this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator());
843
			this->toolStripButton1 = (gcnew System::Windows::Forms::ToolStripButton());
844
			this->toolStripButton4 = (gcnew System::Windows::Forms::ToolStripButton());
845
			this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
846
			this->ToolCustomise = (gcnew System::Windows::Forms::ToolStripButton());
847
			this->toolTip1 = (gcnew System::Windows::Forms::ToolTip(this->components));
848
			this->toolTip2 = (gcnew System::Windows::Forms::ToolTip(this->components));
849
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange5))->BeginInit();
850
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange1))->BeginInit();
851
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec5))->BeginInit();
852
			this->groupBox1->SuspendLayout();
853
			this->ContextFiles->SuspendLayout();
854
			this->panel6->SuspendLayout();
855
			this->panel5->SuspendLayout();
856
			this->tabControl1->SuspendLayout();
857
			this->tabPage1->SuspendLayout();
858
			this->groupBox2->SuspendLayout();
859
			this->panel13->SuspendLayout();
860
			this->panel12->SuspendLayout();
861
			this->panel11->SuspendLayout();
862
			this->tabPage5->SuspendLayout();
863
			this->groupBox8->SuspendLayout();
864
			this->panel10->SuspendLayout();
865
			this->panel21->SuspendLayout();
866
			this->ContextGames->SuspendLayout();
867
			this->PagePackage->SuspendLayout();
868
			this->groupBox3->SuspendLayout();
869
			this->panel22->SuspendLayout();
870
			this->panel7->SuspendLayout();
871
			this->panel8->SuspendLayout();
872
			this->flowLayoutPanel1->SuspendLayout();
873
			this->panel9->SuspendLayout();
874
			this->tabPage3->SuspendLayout();
875
			this->groupBox7->SuspendLayout();
876
			this->panel19->SuspendLayout();
877
			this->panel20->SuspendLayout();
878
			this->panel18->SuspendLayout();
879
			this->groupBox6->SuspendLayout();
880
			this->panel17->SuspendLayout();
881
			this->GroupChange->SuspendLayout();
882
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange4))->BeginInit();
883
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange3))->BeginInit();
884
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange2))->BeginInit();
885
			this->GroupRec->SuspendLayout();
886
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec4))->BeginInit();
887
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec3))->BeginInit();
888
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec2))->BeginInit();
889
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec1))->BeginInit();
890
			this->GroupEase->SuspendLayout();
891
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase5))->BeginInit();
892
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase4))->BeginInit();
893
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase3))->BeginInit();
894
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase2))->BeginInit();
895
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase1))->BeginInit();
896
			this->groupBox5->SuspendLayout();
897
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DisplayIcon))->BeginInit();
898
			this->panel15->SuspendLayout();
899
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DisplayPicture))->BeginInit();
900
			this->panel16->SuspendLayout();
901
			this->tabPage2->SuspendLayout();
902
			this->ContextLangName->SuspendLayout();
903
			this->groupBox4->SuspendLayout();
904
			this->ContextMirror->SuspendLayout();
905
			this->panel14->SuspendLayout();
906
			this->tabPage4->SuspendLayout();
907
			this->ContextDep->SuspendLayout();
908
			this->PageWares->SuspendLayout();
909
			this->splitContainer1->Panel1->SuspendLayout();
910
			this->splitContainer1->Panel2->SuspendLayout();
911
			this->splitContainer1->SuspendLayout();
912
			this->ContextWare->SuspendLayout();
913
			this->ContextWareText->SuspendLayout();
914
			this->PageShip->SuspendLayout();
915
			this->ContextShipText->SuspendLayout();
916
			this->PanelTextID->SuspendLayout();
917
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextID))->BeginInit();
918
			this->flowLayoutPanel2->SuspendLayout();
919
			this->PageRaw->SuspendLayout();
920
			this->panel23->SuspendLayout();
921
			this->panel24->SuspendLayout();
922
			this->flowLayoutPanel3->SuspendLayout();
923
			this->PageShipComp->SuspendLayout();
924
			this->panel26->SuspendLayout();
925
			this->ContextShipPart->SuspendLayout();
926
			this->panel25->SuspendLayout();
927
			this->panel1->SuspendLayout();
928
			this->panel2->SuspendLayout();
929
			this->panel3->SuspendLayout();
930
			this->panel4->SuspendLayout();
931
			this->PanelShip->SuspendLayout();
932
			this->toolStrip1->SuspendLayout();
933
			this->SuspendLayout();
934
			// 
935
			// PicChange5
936
			// 
937
			this->PicChange5->Dock = System::Windows::Forms::DockStyle::Left;
938
			this->PicChange5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange5.Image")));
939
			this->PicChange5->Location = System::Drawing::Point(99, 16);
940
			this->PicChange5->Name = L"PicChange5";
941
			this->PicChange5->Size = System::Drawing::Size(24, 25);
942
			this->PicChange5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
943
			this->PicChange5->TabIndex = 18;
944
			this->PicChange5->TabStop = false;
945
			this->PicChange5->Click += gcnew System::EventHandler(this, &PackageForm::PicChange5_Click);
946
			// 
947
			// PicChange1
948
			// 
949
			this->PicChange1->Dock = System::Windows::Forms::DockStyle::Left;
950
			this->PicChange1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange1.Image")));
951
			this->PicChange1->Location = System::Drawing::Point(3, 16);
952
			this->PicChange1->Name = L"PicChange1";
953
			this->PicChange1->Size = System::Drawing::Size(24, 25);
954
			this->PicChange1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
955
			this->PicChange1->TabIndex = 14;
956
			this->PicChange1->TabStop = false;
957
			this->PicChange1->Click += gcnew System::EventHandler(this, &PackageForm::PicChange1_Click);
958
			// 
959
			// PicRec5
960
			// 
961
			this->PicRec5->Dock = System::Windows::Forms::DockStyle::Left;
962
			this->PicRec5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec5.Image")));
963
			this->PicRec5->Location = System::Drawing::Point(99, 16);
964
			this->PicRec5->Name = L"PicRec5";
965
			this->PicRec5->Size = System::Drawing::Size(24, 25);
966
			this->PicRec5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
967
			this->PicRec5->TabIndex = 18;
968
			this->PicRec5->TabStop = false;
969
			this->PicRec5->Click += gcnew System::EventHandler(this, &PackageForm::PicRec5_Click);
970
			// 
971
			// groupBox1
972
			// 
973
			this->groupBox1->Controls->Add(this->ListFiles);
974
			this->groupBox1->Controls->Add(this->panel6);
975
			this->groupBox1->Controls->Add(this->panel5);
976
			this->groupBox1->Dock = System::Windows::Forms::DockStyle::Fill;
977
			this->groupBox1->Location = System::Drawing::Point(5, 375);
978
			this->groupBox1->Name = L"groupBox1";
979
			this->groupBox1->Size = System::Drawing::Size(756, 330);
980
			this->groupBox1->TabIndex = 0;
981
			this->groupBox1->TabStop = false;
982
			this->groupBox1->Text = L"Files";
983
			// 
984
			// ListFiles
985
			// 
986
			this->ListFiles->AllowDrop = true;
987
			this->ListFiles->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(7) {this->columnHeader1, this->columnHeader2, 
988
				this->columnHeader3, this->columnHeader4, this->columnHeader5, this->columnHeader25, this->columnHeader28});
989
			this->ListFiles->ContextMenuStrip = this->ContextFiles;
990
			this->ListFiles->Dock = System::Windows::Forms::DockStyle::Fill;
991
			this->ListFiles->FullRowSelect = true;
992
			this->ListFiles->HideSelection = false;
993
			this->ListFiles->Location = System::Drawing::Point(3, 41);
994
			this->ListFiles->Name = L"ListFiles";
995
			this->ListFiles->Size = System::Drawing::Size(750, 246);
996
			this->ListFiles->Sorting = System::Windows::Forms::SortOrder::Ascending;
997
			this->ListFiles->TabIndex = 1;
998
			this->ListFiles->UseCompatibleStateImageBehavior = false;
999
			this->ListFiles->View = System::Windows::Forms::View::Details;
1000
			this->ListFiles->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListFiles_MouseDoubleClick);
1001
			this->ListFiles->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListFiles_SelectedIndexChanged);
1002
			this->ListFiles->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &PackageForm::ListFiles_DragDrop);
1003
			this->ListFiles->DragOver += gcnew System::Windows::Forms::DragEventHandler(this, &PackageForm::ListFiles_DragOver);
1004
			// 
1005
			// columnHeader1
1006
			// 
1007
			this->columnHeader1->Text = L"";
1008
			this->columnHeader1->Width = 53;
1009
			// 
1010
			// columnHeader2
1011
			// 
1012
			this->columnHeader2->Text = L"Filename";
1013
			// 
1014
			// columnHeader3
1015
			// 
1016
			this->columnHeader3->Text = L"Size";
1017
			this->columnHeader3->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
1018
			// 
1019
			// columnHeader4
1020
			// 
1021
			this->columnHeader4->Text = L"Filetype";
1022
			// 
1023
			// columnHeader5
1024
			// 
1025
			this->columnHeader5->Text = L"Directory";
1026
			// 
1027
			// columnHeader25
1028
			// 
1029
			this->columnHeader25->Text = L"Signed";
1030
			// 
1031
			// columnHeader28
1032
			// 
1033
			this->columnHeader28->Text = L"Game";
1034
			// 
1035
			// ContextFiles
1036
			// 
1037
			this->ContextFiles->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(14) {this->addFileToolStripMenuItem, 
1038
				this->ContextFileSep1, this->ContextFileEdit, this->ContextFileDelete, this->renameFileToolStripMenuItem, this->toolStripSeparator5, 
1039
				this->ToolGame, this->packFileToolStripMenuItem, this->unpackFileToolStripMenuItem, this->convertToFakePatchToolStripMenuItem, 
1040
				this->convertToAutoTextFileToolStripMenuItem, this->convertToNormalModToolStripMenuItem, this->ContextFileSep2, this->ContextFileClear});
1041
			this->ContextFiles->Name = L"ContextFiles";
1042
			this->ContextFiles->Size = System::Drawing::Size(225, 440);
1043
			this->ContextFiles->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextFiles_Opening);
1044
			// 
1045
			// addFileToolStripMenuItem
1046
			// 
1047
			this->addFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addFileToolStripMenuItem.Image")));
1048
			this->addFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1049
			this->addFileToolStripMenuItem->Name = L"addFileToolStripMenuItem";
1050
			this->addFileToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1051
			this->addFileToolStripMenuItem->Text = L"Add File";
1052
			this->addFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addFileToolStripMenuItem_Click);
1053
			// 
1054
			// ContextFileSep1
1055
			// 
1056
			this->ContextFileSep1->Name = L"ContextFileSep1";
1057
			this->ContextFileSep1->Size = System::Drawing::Size(221, 6);
1058
			// 
1059
			// ContextFileEdit
1060
			// 
1061
			this->ContextFileEdit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextFileEdit.Image")));
1062
			this->ContextFileEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1063
			this->ContextFileEdit->Name = L"ContextFileEdit";
1064
			this->ContextFileEdit->Size = System::Drawing::Size(224, 38);
1065
			this->ContextFileEdit->Text = L"Edit Directory";
1066
			this->ContextFileEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileEdit_Click);
1067
			// 
1068
			// ContextFileDelete
1069
			// 
1070
			this->ContextFileDelete->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextFileDelete.Image")));
1071
			this->ContextFileDelete->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1072
			this->ContextFileDelete->Name = L"ContextFileDelete";
1073
			this->ContextFileDelete->Size = System::Drawing::Size(224, 38);
1074
			this->ContextFileDelete->Text = L"Remove Selected";
1075
			this->ContextFileDelete->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileDelete_Click);
1076
			// 
1077
			// renameFileToolStripMenuItem
1078
			// 
1079
			this->renameFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"renameFileToolStripMenuItem.Image")));
1080
			this->renameFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1081
			this->renameFileToolStripMenuItem->Name = L"renameFileToolStripMenuItem";
1082
			this->renameFileToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1083
			this->renameFileToolStripMenuItem->Text = L"Rename File";
1084
			this->renameFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::renameFileToolStripMenuItem_Click);
1085
			// 
1086
			// toolStripSeparator5
1087
			// 
1088
			this->toolStripSeparator5->Name = L"toolStripSeparator5";
1089
			this->toolStripSeparator5->Size = System::Drawing::Size(221, 6);
1090
			// 
1091
			// ToolGame
1092
			// 
1093
			this->ToolGame->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ToolGame.Image")));
1094
			this->ToolGame->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1095
			this->ToolGame->Name = L"ToolGame";
1096
			this->ToolGame->Size = System::Drawing::Size(224, 38);
1097
			this->ToolGame->Text = L"Set Game";
1098
			// 
1099
			// packFileToolStripMenuItem
1100
			// 
1101
			this->packFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"packFileToolStripMenuItem.Image")));
1102
			this->packFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1103
			this->packFileToolStripMenuItem->Name = L"packFileToolStripMenuItem";
1104
			this->packFileToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1105
			this->packFileToolStripMenuItem->Text = L"Pack File";
1106
			this->packFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::packFileToolStripMenuItem_Click);
1107
			// 
1108
			// unpackFileToolStripMenuItem
1109
			// 
1110
			this->unpackFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"unpackFileToolStripMenuItem.Image")));
1111
			this->unpackFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1112
			this->unpackFileToolStripMenuItem->Name = L"unpackFileToolStripMenuItem";
1113
			this->unpackFileToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1114
			this->unpackFileToolStripMenuItem->Text = L"Unpack File";
1115
			this->unpackFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::unpackFileToolStripMenuItem_Click);
1116
			// 
1117
			// convertToFakePatchToolStripMenuItem
1118
			// 
1119
			this->convertToFakePatchToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"convertToFakePatchToolStripMenuItem.Image")));
1120
			this->convertToFakePatchToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1121
			this->convertToFakePatchToolStripMenuItem->Name = L"convertToFakePatchToolStripMenuItem";
1122
			this->convertToFakePatchToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1123
			this->convertToFakePatchToolStripMenuItem->Text = L"Convert To Fake Patch";
1124
			this->convertToFakePatchToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToFakePatchToolStripMenuItem_Click);
1125
			// 
1126
			// convertToAutoTextFileToolStripMenuItem
1127
			// 
1128
			this->convertToAutoTextFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"convertToAutoTextFileToolStripMenuItem.Image")));
1129
			this->convertToAutoTextFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1130
			this->convertToAutoTextFileToolStripMenuItem->Name = L"convertToAutoTextFileToolStripMenuItem";
1131
			this->convertToAutoTextFileToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1132
			this->convertToAutoTextFileToolStripMenuItem->Text = L"Convert To Auto Text File";
1133
			this->convertToAutoTextFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToAutoTextFileToolStripMenuItem_Click);
1134
			// 
1135
			// convertToNormalModToolStripMenuItem
1136
			// 
1137
			this->convertToNormalModToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"convertToNormalModToolStripMenuItem.Image")));
1138
			this->convertToNormalModToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1139
			this->convertToNormalModToolStripMenuItem->Name = L"convertToNormalModToolStripMenuItem";
1140
			this->convertToNormalModToolStripMenuItem->Size = System::Drawing::Size(224, 38);
1141
			this->convertToNormalModToolStripMenuItem->Text = L"Convert To Normal Mod";
1142
			this->convertToNormalModToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToNormalModToolStripMenuItem_Click);
1143
			// 
1144
			// ContextFileSep2
1145
			// 
1146
			this->ContextFileSep2->Name = L"ContextFileSep2";
1147
			this->ContextFileSep2->Size = System::Drawing::Size(221, 6);
1148
			// 
1149
			// ContextFileClear
1150
			// 
1151
			this->ContextFileClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextFileClear.Image")));
1152
			this->ContextFileClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
1153
			this->ContextFileClear->Name = L"ContextFileClear";
1154
			this->ContextFileClear->Size = System::Drawing::Size(224, 38);
1155
			this->ContextFileClear->Text = L"Clear All";
1156
			this->ContextFileClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileClear_Click);
1157
			// 
1158
			// panel6
1159
			// 
1160
			this->panel6->Controls->Add(this->ButRemoveFile);
1161
			this->panel6->Controls->Add(this->button2);
1162
			this->panel6->Controls->Add(this->button1);
1163
			this->panel6->Dock = System::Windows::Forms::DockStyle::Bottom;
1164
			this->panel6->Location = System::Drawing::Point(3, 287);
1165
			this->panel6->Name = L"panel6";
1166
			this->panel6->Padding = System::Windows::Forms::Padding(5);
1167
			this->panel6->Size = System::Drawing::Size(750, 40);
1168
			this->panel6->TabIndex = 2;
1169
			// 
1170
			// ButRemoveFile
1171
			// 
1172
			this->ButRemoveFile->Dock = System::Windows::Forms::DockStyle::Right;
1173
			this->ButRemoveFile->Location = System::Drawing::Point(492, 5);
1174
			this->ButRemoveFile->Name = L"ButRemoveFile";
1175
			this->ButRemoveFile->Size = System::Drawing::Size(130, 30);
1176
			this->ButRemoveFile->TabIndex = 2;
1177
			this->ButRemoveFile->Text = L"Remove Selected";
1178
			this->ButRemoveFile->UseVisualStyleBackColor = true;
1179
			this->ButRemoveFile->Click += gcnew System::EventHandler(this, &PackageForm::ButRemoveFile_Click);
1180
			// 
1181
			// button2
1182
			// 
1183
			this->button2->Dock = System::Windows::Forms::DockStyle::Right;
1184
			this->button2->Location = System::Drawing::Point(622, 5);
1185
			this->button2->Name = L"button2";
1186
			this->button2->Size = System::Drawing::Size(123, 30);
1187
			this->button2->TabIndex = 1;
1188
			this->button2->Text = L"Clear All";
1189
			this->button2->UseVisualStyleBackColor = true;
1190
			this->button2->Click += gcnew System::EventHandler(this, &PackageForm::button2_Click);
1191
			// 
1192
			// button1
1193
			// 
1194
			this->button1->Dock = System::Windows::Forms::DockStyle::Left;
1195
			this->button1->Location = System::Drawing::Point(5, 5);
1196
			this->button1->Name = L"button1";
1197
			this->button1->Size = System::Drawing::Size(113, 30);
1198
			this->button1->TabIndex = 0;
1199
			this->button1->Text = L"Add File(s)";
1200
			this->button1->UseVisualStyleBackColor = true;
1201
			this->button1->Click += gcnew System::EventHandler(this, &PackageForm::button1_Click);
1202
			// 
1203
			// panel5
1204
			// 
1205
			this->panel5->Controls->Add(this->ComboFileType);
1206
			this->panel5->Controls->Add(this->ComboGameFilter);
1207
			this->panel5->Controls->Add(this->label5);
1208
			this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
1209
			this->panel5->Location = System::Drawing::Point(3, 16);
1210
			this->panel5->Name = L"panel5";
1211
			this->panel5->Size = System::Drawing::Size(750, 25);
1212
			this->panel5->TabIndex = 0;
1213
			// 
1214
			// ComboFileType
1215
			// 
1216
			this->ComboFileType->Dock = System::Windows::Forms::DockStyle::Fill;
1217
			this->ComboFileType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
1218
			this->ComboFileType->FormattingEnabled = true;
1219
			this->ComboFileType->Location = System::Drawing::Point(100, 0);
1220
			this->ComboFileType->Name = L"ComboFileType";
1221
			this->ComboFileType->Size = System::Drawing::Size(444, 21);
1222
			this->ComboFileType->TabIndex = 1;
1223
			this->ComboFileType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboFileType_SelectedIndexChanged);
1224
			// 
1225
			// ComboGameFilter
1226
			// 
1227
			this->ComboGameFilter->Dock = System::Windows::Forms::DockStyle::Right;
1228
			this->ComboGameFilter->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
1229
			this->ComboGameFilter->FormattingEnabled = true;
1230
			this->ComboGameFilter->Location = System::Drawing::Point(544, 0);
1231
			this->ComboGameFilter->Name = L"ComboGameFilter";
1232
			this->ComboGameFilter->Size = System::Drawing::Size(206, 21);
1233
			this->ComboGameFilter->TabIndex = 2;
1234
			this->ComboGameFilter->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboGameFilter_SelectedIndexChanged);
1235
			// 
1236
			// label5
1237
			// 
1238
			this->label5->Dock = System::Windows::Forms::DockStyle::Left;
1239
			this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1240
				static_cast<System::Byte>(0)));
1241
			this->label5->Location = System::Drawing::Point(0, 0);
1242
			this->label5->Name = L"label5";
1243
			this->label5->Size = System::Drawing::Size(100, 25);
1244
			this->label5->TabIndex = 0;
1245
			this->label5->Text = L"Filters";
1246
			this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
1247
			// 
1248
			// tabControl1
1249
			// 
1250
			this->tabControl1->Controls->Add(this->tabPage1);
1251
			this->tabControl1->Controls->Add(this->tabPage5);
1252
			this->tabControl1->Controls->Add(this->PagePackage);
1253
			this->tabControl1->Controls->Add(this->tabPage3);
1254
			this->tabControl1->Controls->Add(this->tabPage2);
1255
			this->tabControl1->Controls->Add(this->tabPage4);
1256
			this->tabControl1->Controls->Add(this->PageWares);
1257
			this->tabControl1->Controls->Add(this->PageShip);
1258
			this->tabControl1->Controls->Add(this->PageRaw);
1259
			this->tabControl1->Controls->Add(this->PageShipComp);
1260
			this->tabControl1->Dock = System::Windows::Forms::DockStyle::Top;
1261
			this->tabControl1->Location = System::Drawing::Point(5, 133);
1262
			this->tabControl1->Margin = System::Windows::Forms::Padding(6);
1263
			this->tabControl1->Multiline = true;
1264
			this->tabControl1->Name = L"tabControl1";
1265
			this->tabControl1->SelectedIndex = 0;
1266
			this->tabControl1->Size = System::Drawing::Size(756, 242);
1267
			this->tabControl1->TabIndex = 1;
1268
			// 
1269
			// tabPage1
1270
			// 
1271
			this->tabPage1->Controls->Add(this->groupBox2);
1272
			this->tabPage1->Controls->Add(this->panel13);
1273
			this->tabPage1->Controls->Add(this->panel12);
1274
			this->tabPage1->Controls->Add(this->panel11);
1275
			this->tabPage1->Controls->Add(this->LabelShipWarning);
1276
			this->tabPage1->Location = System::Drawing::Point(4, 22);
1277
			this->tabPage1->Name = L"tabPage1";
1278
			this->tabPage1->Padding = System::Windows::Forms::Padding(8);
1279
			this->tabPage1->Size = System::Drawing::Size(748, 216);
1280
			this->tabPage1->TabIndex = 0;
1281
			this->tabPage1->Text = L"Basic Settings";
1282
			this->tabPage1->UseVisualStyleBackColor = true;
1283
			// 
1284
			// groupBox2
1285
			// 
1286
			this->groupBox2->Controls->Add(this->TextDesc);
1287
			this->groupBox2->Dock = System::Windows::Forms::DockStyle::Fill;
1288
			this->groupBox2->Location = System::Drawing::Point(8, 89);
1289
			this->groupBox2->Name = L"groupBox2";
1290
			this->groupBox2->Padding = System::Windows::Forms::Padding(5);
1291
			this->groupBox2->Size = System::Drawing::Size(732, 119);
1292
			this->groupBox2->TabIndex = 1;
1293
			this->groupBox2->TabStop = false;
1294
			this->groupBox2->Text = L"Description";
1295
			// 
1296
			// TextDesc
1297
			// 
1298
			this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;
1299
			this->TextDesc->Location = System::Drawing::Point(5, 18);
1300
			this->TextDesc->Name = L"TextDesc";
1301
			this->TextDesc->Size = System::Drawing::Size(722, 96);
1302
			this->TextDesc->TabIndex = 0;
1303
			this->TextDesc->Text = L"";
1304
			this->TextDesc->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextDesc_TextChanged);
1305
			// 
1306
			// panel13
1307
			// 
1308
			this->panel13->Controls->Add(this->TextForum);
1309
			this->panel13->Controls->Add(this->label11);
1310
			this->panel13->Dock = System::Windows::Forms::DockStyle::Top;
1311
			this->panel13->Location = System::Drawing::Point(8, 67);
1312
			this->panel13->Name = L"panel13";
1313
			this->panel13->Size = System::Drawing::Size(732, 22);
1314
			this->panel13->TabIndex = 46;
1315
			// 
1316
			// TextForum
1317
			// 
1318
			this->TextForum->DetectUrls = false;
1319
			this->TextForum->Dock = System::Windows::Forms::DockStyle::Fill;
1320
			this->TextForum->Location = System::Drawing::Point(125, 0);
1321
			this->TextForum->Name = L"TextForum";
1322
			this->TextForum->Size = System::Drawing::Size(607, 22);
1323
			this->TextForum->TabIndex = 43;
1324
			this->TextForum->Text = L"";
1325
			this->TextForum->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextForum_TextChanged);
1326
			// 
1327
			// label11
1328
			// 
1329
			this->label11->Dock = System::Windows::Forms::DockStyle::Left;
1330
			this->label11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1331
				static_cast<System::Byte>(0)));
1332
			this->label11->Location = System::Drawing::Point(0, 0);
1333
			this->label11->Name = L"label11";
1334
			this->label11->Size = System::Drawing::Size(125, 22);
1335
			this->label11->TabIndex = 42;
1336
			this->label11->Text = L"Forum Link";
1337
			// 
1338
			// panel12
1339
			// 
1340
			this->panel12->Controls->Add(this->TextEmail);
1341
			this->panel12->Controls->Add(this->label10);
1342
			this->panel12->Dock = System::Windows::Forms::DockStyle::Top;
1343
			this->panel12->Location = System::Drawing::Point(8, 45);
1344
			this->panel12->Name = L"panel12";
1345
			this->panel12->Size = System::Drawing::Size(732, 22);
1346
			this->panel12->TabIndex = 45;
1347
			// 
1348
			// TextEmail
1349
			// 
1350
			this->TextEmail->DetectUrls = false;
1351
			this->TextEmail->Dock = System::Windows::Forms::DockStyle::Fill;
1352
			this->TextEmail->Location = System::Drawing::Point(125, 0);
1353
			this->TextEmail->Name = L"TextEmail";
1354
			this->TextEmail->Size = System::Drawing::Size(607, 22);
1355
			this->TextEmail->TabIndex = 43;
1356
			this->TextEmail->Text = L"";
1357
			this->TextEmail->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextEmail_TextChanged);
1358
			// 
1359
			// label10
1360
			// 
1361
			this->label10->Dock = System::Windows::Forms::DockStyle::Left;
1362
			this->label10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1363
				static_cast<System::Byte>(0)));
1364
			this->label10->Location = System::Drawing::Point(0, 0);
1365
			this->label10->Name = L"label10";
1366
			this->label10->Size = System::Drawing::Size(125, 22);
1367
			this->label10->TabIndex = 42;
1368
			this->label10->Text = L"Email Address";
1369
			// 
1370
			// panel11
1371
			// 
1372
			this->panel11->Controls->Add(this->TextWebsite);
1373
			this->panel11->Controls->Add(this->label9);
1374
			this->panel11->Dock = System::Windows::Forms::DockStyle::Top;
1375
			this->panel11->Location = System::Drawing::Point(8, 26);
1376
			this->panel11->Name = L"panel11";
1377
			this->panel11->Size = System::Drawing::Size(732, 19);
1378
			this->panel11->TabIndex = 44;
1379
			// 
1380
			// TextWebsite
1381
			// 
1382
			this->TextWebsite->DetectUrls = false;
1383
			this->TextWebsite->Dock = System::Windows::Forms::DockStyle::Fill;
1384
			this->TextWebsite->Location = System::Drawing::Point(125, 0);
1385
			this->TextWebsite->Name = L"TextWebsite";
1386
			this->TextWebsite->Size = System::Drawing::Size(607, 19);
1387
			this->TextWebsite->TabIndex = 41;
1388
			this->TextWebsite->Text = L"";
1389
			this->TextWebsite->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextWebsite_TextChanged);
1390
			// 
1391
			// label9
1392
			// 
1393
			this->label9->Dock = System::Windows::Forms::DockStyle::Left;
1394
			this->label9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1395
				static_cast<System::Byte>(0)));
1396
			this->label9->Location = System::Drawing::Point(0, 0);
1397
			this->label9->Name = L"label9";
1398
			this->label9->Size = System::Drawing::Size(125, 19);
1399
			this->label9->TabIndex = 40;
1400
			this->label9->Text = L"Web Site";
1401
			// 
1402
			// LabelShipWarning
1403
			// 
1404
			this->LabelShipWarning->Dock = System::Windows::Forms::DockStyle::Top;
1405
			this->LabelShipWarning->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point, 
1406
				static_cast<System::Byte>(0)));
1407
			this->LabelShipWarning->ForeColor = System::Drawing::Color::Red;
1408
			this->LabelShipWarning->Location = System::Drawing::Point(8, 8);
1409
			this->LabelShipWarning->Name = L"LabelShipWarning";
1410
			this->LabelShipWarning->Size = System::Drawing::Size(732, 18);
1411
			this->LabelShipWarning->TabIndex = 47;
1412
			this->LabelShipWarning->Text = L"NOTE: Ship files are not valid for X2, and only work in later games";
1413
			this->LabelShipWarning->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
1414
			// 
1415
			// tabPage5
1416
			// 
1417
			this->tabPage5->Controls->Add(this->ListGames);
1418
			this->tabPage5->Controls->Add(this->groupBox8);
1419
			this->tabPage5->Location = System::Drawing::Point(4, 22);
1420
			this->tabPage5->Name = L"tabPage5";
1421
			this->tabPage5->Padding = System::Windows::Forms::Padding(3);
1422
			this->tabPage5->Size = System::Drawing::Size(748, 216);
1423
			this->tabPage5->TabIndex = 10;
1424
			this->tabPage5->Text = L"Game Compatability";
1425
			this->tabPage5->UseVisualStyleBackColor = true;
1426
			// 
1427
			// ListGames
1428
			// 
1429
			this->ListGames->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {this->columnHeader26, this->columnHeader27});
1430
			this->ListGames->Dock = System::Windows::Forms::DockStyle::Fill;
1431
			this->ListGames->FullRowSelect = true;
1432
			this->ListGames->Location = System::Drawing::Point(3, 3);
1433
			this->ListGames->MultiSelect = false;
1434
			this->ListGames->Name = L"ListGames";
1435
			this->ListGames->Size = System::Drawing::Size(742, 140);
1436
			this->ListGames->TabIndex = 2;
1437
			this->ListGames->UseCompatibleStateImageBehavior = false;
1438
			this->ListGames->View = System::Windows::Forms::View::Details;
1439
			this->ListGames->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListGames_SelectedIndexChanged);
1440
			this->ListGames->DoubleClick += gcnew System::EventHandler(this, &PackageForm::ListGames_DoubleClick);
1441
			// 
1442
			// columnHeader26
1443
			// 
1444
			this->columnHeader26->Text = L"Game";
1445
			// 
1446
			// columnHeader27
1447
			// 
1448
			this->columnHeader27->Text = L"Version";
1449
			// 
1450
			// groupBox8
1451
			// 
1452
			this->groupBox8->Controls->Add(this->panel10);
1453
			this->groupBox8->Dock = System::Windows::Forms::DockStyle::Bottom;
1454
			this->groupBox8->Location = System::Drawing::Point(3, 143);
1455
			this->groupBox8->Name = L"groupBox8";
1456
			this->groupBox8->Size = System::Drawing::Size(742, 70);
1457
			this->groupBox8->TabIndex = 1;
1458
			this->groupBox8->TabStop = false;
1459
			this->groupBox8->Text = L"Add/Edit Game";
1460
			// 
1461
			// panel10
1462
			// 
1463
			this->panel10->Controls->Add(this->panel21);
1464
			this->panel10->Controls->Add(this->ButGame);
1465
			this->panel10->Dock = System::Windows::Forms::DockStyle::Top;
1466
			this->panel10->Location = System::Drawing::Point(3, 16);
1467
			this->panel10->Name = L"panel10";
1468
			this->panel10->Size = System::Drawing::Size(736, 43);
1469
			this->panel10->TabIndex = 44;
1470
			// 
1471
			// panel21
1472
			// 
1473
			this->panel21->Controls->Add(this->ComboVersion);
1474
			this->panel21->Controls->Add(this->TextExactVersion);
1475
			this->panel21->Controls->Add(this->ButGameAdd);
1476
			this->panel21->Dock = System::Windows::Forms::DockStyle::Fill;
1477
			this->panel21->Location = System::Drawing::Point(218, 0);
1478
			this->panel21->Name = L"panel21";
1479
			this->panel21->Size = System::Drawing::Size(518, 43);
1480
			this->panel21->TabIndex = 44;
1481
			// 
1482
			// ComboVersion
1483
			// 
1484
			this->ComboVersion->Dock = System::Windows::Forms::DockStyle::Fill;
1485
			this->ComboVersion->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
1486
			this->ComboVersion->Enabled = false;
1487
			this->ComboVersion->FormattingEnabled = true;
1488
			this->ComboVersion->Location = System::Drawing::Point(0, 0);
1489
			this->ComboVersion->Name = L"ComboVersion";
1490
			this->ComboVersion->Size = System::Drawing::Size(465, 21);
1491
			this->ComboVersion->TabIndex = 41;
1492
			this->ComboVersion->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboVersion_SelectedIndexChanged);
1493
			// 
1494
			// TextExactVersion
1495
			// 
1496
			this->TextExactVersion->Dock = System::Windows::Forms::DockStyle::Bottom;
1497
			this->TextExactVersion->Location = System::Drawing::Point(0, 23);
1498
			this->TextExactVersion->Name = L"TextExactVersion";
1499
			this->TextExactVersion->Size = System::Drawing::Size(465, 20);
1500
			this->TextExactVersion->TabIndex = 42;
1501
			// 
1502
			// ButGameAdd
1503
			// 
1504
			this->ButGameAdd->Dock = System::Windows::Forms::DockStyle::Right;
1505
			this->ButGameAdd->ForeColor = System::Drawing::Color::Green;
1506
			this->ButGameAdd->Location = System::Drawing::Point(465, 0);
1507
			this->ButGameAdd->Name = L"ButGameAdd";
1508
			this->ButGameAdd->Size = System::Drawing::Size(53, 43);
1509
			this->ButGameAdd->TabIndex = 43;
1510
			this->ButGameAdd->Text = L"Save!";
1511
			this->ButGameAdd->UseVisualStyleBackColor = true;
1512
			this->ButGameAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButGameAdd_Click);
1513
			// 
1514
			// ButGame
1515
			// 
1516
			this->ButGame->ContextMenuStrip = this->ContextGames;
1517
			this->ButGame->Dock = System::Windows::Forms::DockStyle::Left;
1518
			this->ButGame->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
1519
			this->ButGame->Location = System::Drawing::Point(0, 0);
1520
			this->ButGame->Name = L"ButGame";
1521
			this->ButGame->Size = System::Drawing::Size(218, 43);
1522
			this->ButGame->TabIndex = 43;
1523
			this->ButGame->UseVisualStyleBackColor = true;
1524
			this->ButGame->Click += gcnew System::EventHandler(this, &PackageForm::ButGame_Click);
1525
			// 
1526
			// ContextGames
1527
			// 
1528
			this->ContextGames->ImageScalingSize = System::Drawing::Size(32, 32);
1529
			this->ContextGames->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->testToolStripMenuItem});
1530
			this->ContextGames->Name = L"ContextGames";
1531
			this->ContextGames->Size = System::Drawing::Size(97, 26);
1532
			// 
1533
			// testToolStripMenuItem
1534
			// 
1535
			this->testToolStripMenuItem->Name = L"testToolStripMenuItem";
1536
			this->testToolStripMenuItem->Size = System::Drawing::Size(96, 22);
1537
			this->testToolStripMenuItem->Text = L"Test";
1538
			// 
1539
			// PagePackage
1540
			// 
1541
			this->PagePackage->Controls->Add(this->groupBox3);
1542
			this->PagePackage->Controls->Add(this->panel22);
1543
			this->PagePackage->Controls->Add(this->panel7);
1544
			this->PagePackage->Location = System::Drawing::Point(4, 22);
1545
			this->PagePackage->Name = L"PagePackage";
1546
			this->PagePackage->Padding = System::Windows::Forms::Padding(3);
1547
			this->PagePackage->Size = System::Drawing::Size(748, 216);
1548
			this->PagePackage->TabIndex = 2;
1549
			this->PagePackage->Text = L"Package Settings";
1550
			this->PagePackage->UseVisualStyleBackColor = true;
1551
			// 
1552
			// groupBox3
1553
			// 
1554
			this->groupBox3->Controls->Add(this->TextOtherName);
1555
			this->groupBox3->Controls->Add(this->label13);
1556
			this->groupBox3->Controls->Add(this->label12);
1557
			this->groupBox3->Controls->Add(this->CheckOther);
1558
			this->groupBox3->Controls->Add(this->TextOtherAuthor);
1559
			this->groupBox3->Controls->Add(this->ButFromFile);
1560
			this->groupBox3->Dock = System::Windows::Forms::DockStyle::Top;
1561
			this->groupBox3->Location = System::Drawing::Point(3, 95);
1562
			this->groupBox3->Margin = System::Windows::Forms::Padding(10);
1563
			this->groupBox3->Name = L"groupBox3";
1564
			this->groupBox3->Padding = System::Windows::Forms::Padding(10);
1565
			this->groupBox3->Size = System::Drawing::Size(742, 53);
1566
			this->groupBox3->TabIndex = 1;
1567
			this->groupBox3->TabStop = false;
1568
			this->groupBox3->Text = L"Requires Parent Mod/Package";
1569
			// 
1570
			// TextOtherName
1571
			// 
1572
			this->TextOtherName->Dock = System::Windows::Forms::DockStyle::Fill;
1573
			this->TextOtherName->Location = System::Drawing::Point(107, 23);
1574
			this->TextOtherName->Name = L"TextOtherName";
1575
			this->TextOtherName->Size = System::Drawing::Size(334, 20);
1576
			this->TextOtherName->TabIndex = 1;
1577
			this->TextOtherName->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextOtherName_TextChanged);
1578
			// 
1579
			// label13
1580
			// 
1581
			this->label13->Dock = System::Windows::Forms::DockStyle::Right;
1582
			this->label13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1583
				static_cast<System::Byte>(0)));
1584
			this->label13->Location = System::Drawing::Point(441, 23);
1585
			this->label13->Name = L"label13";
1586
			this->label13->Size = System::Drawing::Size(77, 20);
1587
			this->label13->TabIndex = 3;
1588
			this->label13->Text = L"Author";
1589
			this->label13->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
1590
			// 
1591
			// label12
1592
			// 
1593
			this->label12->Dock = System::Windows::Forms::DockStyle::Left;
1594
			this->label12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1595
				static_cast<System::Byte>(0)));
1596
			this->label12->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
1597
			this->label12->Location = System::Drawing::Point(25, 23);
1598
			this->label12->Name = L"label12";
1599
			this->label12->RightToLeft = System::Windows::Forms::RightToLeft::No;
1600
			this->label12->Size = System::Drawing::Size(82, 20);
1601
			this->label12->TabIndex = 2;
1602
			this->label12->Text = L"Package";
1603
			this->label12->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
1604
			// 
1605
			// CheckOther
1606
			// 
1607
			this->CheckOther->AutoSize = true;
1608
			this->CheckOther->Dock = System::Windows::Forms::DockStyle::Left;
1609
			this->CheckOther->Location = System::Drawing::Point(10, 23);
1610
			this->CheckOther->Name = L"CheckOther";
1611
			this->CheckOther->Size = System::Drawing::Size(15, 20);
1612
			this->CheckOther->TabIndex = 0;
1613
			this->CheckOther->UseVisualStyleBackColor = true;
1614
			this->CheckOther->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckOther_CheckedChanged);
1615
			// 
1616
			// TextOtherAuthor
1617
			// 
1618
			this->TextOtherAuthor->Dock = System::Windows::Forms::DockStyle::Right;
1619
			this->TextOtherAuthor->Location = System::Drawing::Point(518, 23);
1620
			this->TextOtherAuthor->Name = L"TextOtherAuthor";
1621
			this->TextOtherAuthor->Size = System::Drawing::Size(139, 20);
1622
			this->TextOtherAuthor->TabIndex = 4;
1623
			this->TextOtherAuthor->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextOtherName_TextChanged);
1624
			// 
1625
			// ButFromFile
1626
			// 
1627
			this->ButFromFile->Dock = System::Windows::Forms::DockStyle::Right;
1628
			this->ButFromFile->Location = System::Drawing::Point(657, 23);
1629
			this->ButFromFile->Name = L"ButFromFile";
1630
			this->ButFromFile->Size = System::Drawing::Size(75, 20);
1631
			this->ButFromFile->TabIndex = 5;
1632
			this->ButFromFile->Text = L"From File";
1633
			this->ButFromFile->UseVisualStyleBackColor = true;
1634
			this->ButFromFile->Click += gcnew System::EventHandler(this, &PackageForm::ButFromFile_Click);
1635
			// 
1636
			// panel22
1637
			// 
1638
			this->panel22->Controls->Add(this->ComboPluginType);
1639
			this->panel22->Controls->Add(this->label15);
1640
			this->panel22->Dock = System::Windows::Forms::DockStyle::Top;
1641
			this->panel22->Location = System::Drawing::Point(3, 63);
1642
			this->panel22->Name = L"panel22";
1643
			this->panel22->Size = System::Drawing::Size(742, 32);
1644
			this->panel22->TabIndex = 2;
1645
			// 
1646
			// ComboPluginType
1647
			// 
1648
			this->ComboPluginType->Dock = System::Windows::Forms::DockStyle::Fill;
1649
			this->ComboPluginType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
1650
			this->ComboPluginType->FormattingEnabled = true;
1651
			this->ComboPluginType->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Normal", L"Stable", L"Experimental", L"Cheat", 
1652
				L"Mod"});
1653
			this->ComboPluginType->Location = System::Drawing::Point(157, 0);
1654
			this->ComboPluginType->Name = L"ComboPluginType";
1655
			this->ComboPluginType->Size = System::Drawing::Size(585, 21);
1656
			this->ComboPluginType->TabIndex = 7;
1657
			this->ComboPluginType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboPluginType_SelectedIndexChanged);
1658
			// 
1659
			// label15
1660
			// 
1661
			this->label15->Dock = System::Windows::Forms::DockStyle::Left;
1662
			this->label15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1663
				static_cast<System::Byte>(0)));
1664
			this->label15->Location = System::Drawing::Point(0, 0);
1665
			this->label15->Name = L"label15";
1666
			this->label15->Size = System::Drawing::Size(157, 32);
1667
			this->label15->TabIndex = 2;
1668
			this->label15->Text = L"Plugin Type";
1669
			// 
1670
			// panel7
1671
			// 
1672
			this->panel7->Controls->Add(this->panel8);
1673
			this->panel7->Controls->Add(this->label7);
1674
			this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
1675
			this->panel7->Location = System::Drawing::Point(3, 3);
1676
			this->panel7->Name = L"panel7";
1677
			this->panel7->Padding = System::Windows::Forms::Padding(5, 5, 5, 10);
1678
			this->panel7->Size = System::Drawing::Size(742, 60);
1679
			this->panel7->TabIndex = 0;
1680
			// 
1681
			// panel8
1682
			// 
1683
			this->panel8->Controls->Add(this->flowLayoutPanel1);
1684
			this->panel8->Controls->Add(this->panel9);
1685
			this->panel8->Dock = System::Windows::Forms::DockStyle::Fill;
1686
			this->panel8->Location = System::Drawing::Point(162, 5);
1687
			this->panel8->Name = L"panel8";
1688
			this->panel8->Size = System::Drawing::Size(575, 45);
1689
			this->panel8->TabIndex = 2;
1690
			// 
1691
			// flowLayoutPanel1
1692
			// 
1693
			this->flowLayoutPanel1->Controls->Add(this->RadioTypeUpdate);
1694
			this->flowLayoutPanel1->Controls->Add(this->RadioTypeLibrary);
1695
			this->flowLayoutPanel1->Controls->Add(this->RadioTypeStart);
1696
			this->flowLayoutPanel1->Controls->Add(this->RadioTypePatch);
1697
			this->flowLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Fill;
1698
			this->flowLayoutPanel1->Location = System::Drawing::Point(0, 0);
1699
			this->flowLayoutPanel1->Name = L"flowLayoutPanel1";
1700
			this->flowLayoutPanel1->Size = System::Drawing::Size(575, 22);
1701
			this->flowLayoutPanel1->TabIndex = 4;
1702
			// 
1703
			// RadioTypeUpdate
1704
			// 
1705
			this->RadioTypeUpdate->AutoSize = true;
1706
			this->RadioTypeUpdate->Location = System::Drawing::Point(3, 3);
1707
			this->RadioTypeUpdate->Name = L"RadioTypeUpdate";
1708
			this->RadioTypeUpdate->Size = System::Drawing::Size(106, 17);
1709
			this->RadioTypeUpdate->TabIndex = 1;
1710
			this->RadioTypeUpdate->TabStop = true;
1711
			this->RadioTypeUpdate->Text = L"Update Package";
1712
			this->RadioTypeUpdate->UseVisualStyleBackColor = true;
1713
			this->RadioTypeUpdate->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeUpdate_CheckedChanged);
1714
			// 
1715
			// RadioTypeLibrary
1716
			// 
1717
			this->RadioTypeLibrary->AutoSize = true;
1718
			this->RadioTypeLibrary->Location = System::Drawing::Point(115, 3);
1719
			this->RadioTypeLibrary->Name = L"RadioTypeLibrary";
1720
			this->RadioTypeLibrary->Size = System::Drawing::Size(86, 17);
1721
			this->RadioTypeLibrary->TabIndex = 3;
1722
			this->RadioTypeLibrary->TabStop = true;
1723
			this->RadioTypeLibrary->Text = L"Script Library";
1724
			this->RadioTypeLibrary->UseVisualStyleBackColor = true;
1725
			this->RadioTypeLibrary->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeLibrary_CheckedChanged);
1726
			// 
1727
			// RadioTypeStart
1728
			// 
1729
			this->RadioTypeStart->AutoSize = true;
1730
			this->RadioTypeStart->Location = System::Drawing::Point(207, 3);
1731
			this->RadioTypeStart->Name = L"RadioTypeStart";
1732
			this->RadioTypeStart->Size = System::Drawing::Size(85, 17);
1733
			this->RadioTypeStart->TabIndex = 0;
1734
			this->RadioTypeStart->TabStop = true;
1735
			this->RadioTypeStart->Text = L"Custom Start";
1736
			this->RadioTypeStart->UseVisualStyleBackColor = true;
1737
			this->RadioTypeStart->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeStart_CheckedChanged);
1738
			// 
1739
			// RadioTypePatch
1740
			// 
1741
			this->RadioTypePatch->AutoSize = true;
1742
			this->RadioTypePatch->Location = System::Drawing::Point(298, 3);
1743
			this->RadioTypePatch->Name = L"RadioTypePatch";
1744
			this->RadioTypePatch->Size = System::Drawing::Size(77, 17);
1745
			this->RadioTypePatch->TabIndex = 2;
1746
			this->RadioTypePatch->TabStop = true;
1747
			this->RadioTypePatch->Text = L"Mod Patch";
1748
			this->RadioTypePatch->UseVisualStyleBackColor = true;
1749
			this->RadioTypePatch->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypePatch_CheckedChanged);
1750
			// 
1751
			// panel9
1752
			// 
1753
			this->panel9->Controls->Add(this->TextCustomType);
1754
			this->panel9->Controls->Add(this->ComboType);
1755
			this->panel9->Controls->Add(this->RadioTypeScript);
1756
			this->panel9->Dock = System::Windows::Forms::DockStyle::Bottom;
1757
			this->panel9->Location = System::Drawing::Point(0, 22);
1758
			this->panel9->Name = L"panel9";
1759
			this->panel9->Size = System::Drawing::Size(575, 23);
1760
			this->panel9->TabIndex = 6;
1761
			// 
1762
			// TextCustomType
1763
			// 
1764
			this->TextCustomType->Dock = System::Windows::Forms::DockStyle::Fill;
1765
			this->TextCustomType->Location = System::Drawing::Point(146, 0);
1766
			this->TextCustomType->Name = L"TextCustomType";
1767
			this->TextCustomType->Size = System::Drawing::Size(429, 20);
1768
			this->TextCustomType->TabIndex = 7;
1769
			this->TextCustomType->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextCustomType_TextChanged);
1770
			// 
1771
			// ComboType
1772
			// 
1773
			this->ComboType->Dock = System::Windows::Forms::DockStyle::Left;
1774
			this->ComboType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
1775
			this->ComboType->FormattingEnabled = true;
1776
			this->ComboType->Location = System::Drawing::Point(14, 0);
1777
			this->ComboType->Name = L"ComboType";
1778
			this->ComboType->Size = System::Drawing::Size(132, 21);
1779
			this->ComboType->TabIndex = 6;
1780
			this->ComboType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboType_SelectedIndexChanged);
1781
			// 
1782
			// RadioTypeScript
1783
			// 
1784
			this->RadioTypeScript->AutoSize = true;
1785
			this->RadioTypeScript->Dock = System::Windows::Forms::DockStyle::Left;
1786
			this->RadioTypeScript->Location = System::Drawing::Point(0, 0);
1787
			this->RadioTypeScript->Name = L"RadioTypeScript";
1788
			this->RadioTypeScript->Size = System::Drawing::Size(14, 23);
1789
			this->RadioTypeScript->TabIndex = 5;
1790
			this->RadioTypeScript->TabStop = true;
1791
			this->RadioTypeScript->UseVisualStyleBackColor = true;
1792
			this->RadioTypeScript->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeScript_CheckedChanged);
1793
			// 
1794
			// label7
1795
			// 
1796
			this->label7->Dock = System::Windows::Forms::DockStyle::Left;
1797
			this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
1798
				static_cast<System::Byte>(0)));
1799
			this->label7->Location = System::Drawing::Point(5, 5);
1800
			this->label7->Name = L"label7";
1801
			this->label7->Size = System::Drawing::Size(157, 45);
1802
			this->label7->TabIndex = 1;
1803
			this->label7->Text = L"Package Type";
1804
			this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
1805
			// 
1806
			// tabPage3
1807
			// 
1808
			this->tabPage3->Controls->Add(this->groupBox7);
1809
			this->tabPage3->Controls->Add(this->groupBox6);
1810
			this->tabPage3->Controls->Add(this->groupBox5);
1811
			this->tabPage3->Controls->Add(this->panel15);
1812
			this->tabPage3->Location = System::Drawing::Point(4, 22);
1813
			this->tabPage3->Name = L"tabPage3";
1814
			this->tabPage3->Padding = System::Windows::Forms::Padding(3);
1815
			this->tabPage3->Size = System::Drawing::Size(748, 216);
1816
			this->tabPage3->TabIndex = 4;
1817
			this->tabPage3->Text = L"Display";
1818
			this->tabPage3->UseVisualStyleBackColor = true;
1819
			// 
1820
			// groupBox7
1821
			// 
1822
			this->groupBox7->Controls->Add(this->TextText);
1823
			this->groupBox7->Controls->Add(this->panel19);
1824
			this->groupBox7->Controls->Add(this->panel18);
1825
			this->groupBox7->Dock = System::Windows::Forms::DockStyle::Fill;
1826
			this->groupBox7->Location = System::Drawing::Point(210, 66);
1827
			this->groupBox7->Name = L"groupBox7";
1828
			this->groupBox7->Padding = System::Windows::Forms::Padding(5, 0, 5, 5);
1829
			this->groupBox7->Size = System::Drawing::Size(535, 147);
1830
			this->groupBox7->TabIndex = 4;
1831
			this->groupBox7->TabStop = false;
1832
			this->groupBox7->Text = L"Text";
1833
			// 
1834
			// TextText
1835
			// 
1836
			this->TextText->Dock = System::Windows::Forms::DockStyle::Fill;
1837
			this->TextText->Location = System::Drawing::Point(104, 40);
1838
			this->TextText->Name = L"TextText";
1839
			this->TextText->Size = System::Drawing::Size(426, 102);
1840
			this->TextText->TabIndex = 3;
1841
			this->TextText->Text = L"";
1842
			this->TextText->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextText_TextChanged);
1843
			// 
1844
			// panel19
1845
			// 
1846
			this->panel19->Controls->Add(this->ListLang);
1847
			this->panel19->Controls->Add(this->panel20);
1848
			this->panel19->Dock = System::Windows::Forms::DockStyle::Left;
1849
			this->panel19->Location = System::Drawing::Point(5, 40);
1850
			this->panel19->Name = L"panel19";
1851
			this->panel19->Size = System::Drawing::Size(99, 102);
1852
			this->panel19->TabIndex = 5;
1853
			// 
1854
			// ListLang
1855
			// 
1856
			this->ListLang->Dock = System::Windows::Forms::DockStyle::Fill;
1857
			this->ListLang->FormattingEnabled = true;
1858
			this->ListLang->Items->AddRange(gcnew cli::array< System::Object^  >(1) {L"- Default -"});
1859
			this->ListLang->Location = System::Drawing::Point(0, 0);
1860
			this->ListLang->Name = L"ListLang";
1861
			this->ListLang->Size = System::Drawing::Size(99, 82);
1862
			this->ListLang->TabIndex = 4;
1863
			this->ListLang->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListLang_SelectedIndexChanged);
1864
			// 
1865
			// panel20
1866
			// 
1867
			this->panel20->Controls->Add(this->ButTextDel);
1868
			this->panel20->Controls->Add(this->ButTextAdd);
1869
			this->panel20->Dock = System::Windows::Forms::DockStyle::Bottom;
1870
			this->panel20->Location = System::Drawing::Point(0, 82);
1871
			this->panel20->Name = L"panel20";
1872
			this->panel20->Size = System::Drawing::Size(99, 20);
1873
			this->panel20->TabIndex = 7;
1874
			// 
1875
			// ButTextDel
1876
			// 
1877
			this->ButTextDel->Dock = System::Windows::Forms::DockStyle::Left;
1878
			this->ButTextDel->Location = System::Drawing::Point(51, 0);
1879
			this->ButTextDel->Name = L"ButTextDel";
1880
			this->ButTextDel->Size = System::Drawing::Size(46, 20);
1881
			this->ButTextDel->TabIndex = 5;
1882
			this->ButTextDel->Text = L"-";
1883
			this->ButTextDel->UseVisualStyleBackColor = true;
1884
			this->ButTextDel->Click += gcnew System::EventHandler(this, &PackageForm::ButTextDel_Click);
1885
			// 
1886
			// ButTextAdd
1887
			// 
1888
			this->ButTextAdd->Dock = System::Windows::Forms::DockStyle::Left;
1889
			this->ButTextAdd->Location = System::Drawing::Point(0, 0);
1890
			this->ButTextAdd->Name = L"ButTextAdd";
1891
			this->ButTextAdd->Size = System::Drawing::Size(51, 20);
1892
			this->ButTextAdd->TabIndex = 6;
1893
			this->ButTextAdd->Text = L"+";
1894
			this->ButTextAdd->UseVisualStyleBackColor = true;
1895
			this->ButTextAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButTextAdd_Click);
1896
			// 
1897
			// panel18
1898
			// 
1899
			this->panel18->Controls->Add(this->RadioUninstallAfter);
1900
			this->panel18->Controls->Add(this->RadioUninstallBefore);
1901
			this->panel18->Controls->Add(this->RadioInstallAfter);
1902
			this->panel18->Controls->Add(this->RadioInstallBefore);
1903
			this->panel18->Dock = System::Windows::Forms::DockStyle::Top;
1904
			this->panel18->Location = System::Drawing::Point(5, 13);
1905
			this->panel18->Name = L"panel18";
1906
			this->panel18->Size = System::Drawing::Size(525, 27);
1907
			this->panel18->TabIndex = 2;
1908
			// 
1909
			// RadioUninstallAfter
1910
			// 
1911
			this->RadioUninstallAfter->AutoSize = true;
1912
			this->RadioUninstallAfter->Dock = System::Windows::Forms::DockStyle::Left;
1913
			this->RadioUninstallAfter->Location = System::Drawing::Point(262, 0);
1914
			this->RadioUninstallAfter->Name = L"RadioUninstallAfter";
1915
			this->RadioUninstallAfter->Size = System::Drawing::Size(90, 27);
1916
			this->RadioUninstallAfter->TabIndex = 3;
1917
			this->RadioUninstallAfter->TabStop = true;
1918
			this->RadioUninstallAfter->Text = L"Uninstall After";
1919
			this->RadioUninstallAfter->UseVisualStyleBackColor = true;
1920
			this->RadioUninstallAfter->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioUninstallAfter_CheckedChanged);
1921
			// 
1922
			// RadioUninstallBefore
1923
			// 
1924
			this->RadioUninstallBefore->AutoSize = true;
1925
			this->RadioUninstallBefore->Dock = System::Windows::Forms::DockStyle::Left;
1926
			this->RadioUninstallBefore->Location = System::Drawing::Point(163, 0);
1927
			this->RadioUninstallBefore->Name = L"RadioUninstallBefore";
1928
			this->RadioUninstallBefore->Size = System::Drawing::Size(99, 27);
1929
			this->RadioUninstallBefore->TabIndex = 2;
1930
			this->RadioUninstallBefore->TabStop = true;
1931
			this->RadioUninstallBefore->Text = L"Uninstall Before";
1932
			this->RadioUninstallBefore->UseVisualStyleBackColor = true;
1933
			this->RadioUninstallBefore->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioUninstallBefore_CheckedChanged);
1934
			// 
1935
			// RadioInstallAfter
1936
			// 
1937
			this->RadioInstallAfter->AutoSize = true;
1938
			this->RadioInstallAfter->Dock = System::Windows::Forms::DockStyle::Left;
1939
			this->RadioInstallAfter->Location = System::Drawing::Point(86, 0);
1940
			this->RadioInstallAfter->Name = L"RadioInstallAfter";
1941
			this->RadioInstallAfter->Size = System::Drawing::Size(77, 27);
1942
			this->RadioInstallAfter->TabIndex = 1;
1943
			this->RadioInstallAfter->TabStop = true;
1944
			this->RadioInstallAfter->Text = L"Install After";
1945
			this->RadioInstallAfter->UseVisualStyleBackColor = true;
1946
			this->RadioInstallAfter->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioInstallAfter_CheckedChanged);
1947
			// 
1948
			// RadioInstallBefore
1949
			// 
1950
			this->RadioInstallBefore->AutoSize = true;
1951
			this->RadioInstallBefore->Dock = System::Windows::Forms::DockStyle::Left;
1952
			this->RadioInstallBefore->Location = System::Drawing::Point(0, 0);
1953
			this->RadioInstallBefore->Name = L"RadioInstallBefore";
1954
			this->RadioInstallBefore->Size = System::Drawing::Size(86, 27);
1955
			this->RadioInstallBefore->TabIndex = 0;
1956
			this->RadioInstallBefore->TabStop = true;
1957
			this->RadioInstallBefore->Text = L"Install Before";
1958
			this->RadioInstallBefore->UseVisualStyleBackColor = true;
1959
			this->RadioInstallBefore->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioInstallBefore_CheckedChanged);
1960
			// 
1961
			// groupBox6
1962
			// 
1963
			this->groupBox6->Controls->Add(this->panel17);
1964
			this->groupBox6->Dock = System::Windows::Forms::DockStyle::Top;
1965
			this->groupBox6->Location = System::Drawing::Point(210, 3);
1966
			this->groupBox6->Name = L"groupBox6";
1967
			this->groupBox6->Size = System::Drawing::Size(535, 63);
1968
			this->groupBox6->TabIndex = 3;
1969
			this->groupBox6->TabStop = false;
1970
			this->groupBox6->Text = L"Ratings";
1971
			// 
1972
			// panel17
1973
			// 
1974
			this->panel17->Controls->Add(this->GroupChange);
1975
			this->panel17->Controls->Add(this->GroupRec);
1976
			this->panel17->Controls->Add(this->GroupEase);
1977
			this->panel17->Dock = System::Windows::Forms::DockStyle::Fill;
1978
			this->panel17->Location = System::Drawing::Point(3, 16);
1979
			this->panel17->Name = L"panel17";
1980
			this->panel17->Size = System::Drawing::Size(529, 44);
1981
			this->panel17->TabIndex = 4;
1982
			// 
1983
			// GroupChange
1984
			// 
1985
			this->GroupChange->Controls->Add(this->PicChange5);
1986
			this->GroupChange->Controls->Add(this->PicChange4);
1987
			this->GroupChange->Controls->Add(this->PicChange3);
1988
			this->GroupChange->Controls->Add(this->PicChange2);
1989
			this->GroupChange->Controls->Add(this->PicChange1);
1990
			this->GroupChange->Dock = System::Windows::Forms::DockStyle::Left;
1991
			this->GroupChange->Location = System::Drawing::Point(251, 0);
1992
			this->GroupChange->Name = L"GroupChange";
1993
			this->GroupChange->Size = System::Drawing::Size(126, 44);
1994
			this->GroupChange->TabIndex = 2;
1995
			this->GroupChange->TabStop = false;
1996
			this->GroupChange->Text = L"Game Changing";
1997
			// 
1998
			// PicChange4
1999
			// 
2000
			this->PicChange4->Dock = System::Windows::Forms::DockStyle::Left;
2001
			this->PicChange4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange4.Image")));
2002
			this->PicChange4->Location = System::Drawing::Point(75, 16);
2003
			this->PicChange4->Name = L"PicChange4";
2004
			this->PicChange4->Size = System::Drawing::Size(24, 25);
2005
			this->PicChange4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2006
			this->PicChange4->TabIndex = 17;
2007
			this->PicChange4->TabStop = false;
2008
			this->PicChange4->Click += gcnew System::EventHandler(this, &PackageForm::PicChange4_Click);
2009
			// 
2010
			// PicChange3
2011
			// 
2012
			this->PicChange3->Dock = System::Windows::Forms::DockStyle::Left;
2013
			this->PicChange3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange3.Image")));
2014
			this->PicChange3->Location = System::Drawing::Point(51, 16);
2015
			this->PicChange3->Name = L"PicChange3";
2016
			this->PicChange3->Size = System::Drawing::Size(24, 25);
2017
			this->PicChange3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2018
			this->PicChange3->TabIndex = 16;
2019
			this->PicChange3->TabStop = false;
2020
			this->PicChange3->Click += gcnew System::EventHandler(this, &PackageForm::PicChange3_Click);
2021
			// 
2022
			// PicChange2
2023
			// 
2024
			this->PicChange2->Dock = System::Windows::Forms::DockStyle::Left;
2025
			this->PicChange2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange2.Image")));
2026
			this->PicChange2->Location = System::Drawing::Point(27, 16);
2027
			this->PicChange2->Name = L"PicChange2";
2028
			this->PicChange2->Size = System::Drawing::Size(24, 25);
2029
			this->PicChange2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2030
			this->PicChange2->TabIndex = 15;
2031
			this->PicChange2->TabStop = false;
2032
			this->PicChange2->Click += gcnew System::EventHandler(this, &PackageForm::PicChange2_Click);
2033
			// 
2034
			// GroupRec
2035
			// 
2036
			this->GroupRec->Controls->Add(this->PicRec5);
2037
			this->GroupRec->Controls->Add(this->PicRec4);
2038
			this->GroupRec->Controls->Add(this->PicRec3);
2039
			this->GroupRec->Controls->Add(this->PicRec2);
2040
			this->GroupRec->Controls->Add(this->PicRec1);
2041
			this->GroupRec->Dock = System::Windows::Forms::DockStyle::Left;
2042
			this->GroupRec->Location = System::Drawing::Point(126, 0);
2043
			this->GroupRec->Name = L"GroupRec";
2044
			this->GroupRec->Size = System::Drawing::Size(125, 44);
2045
			this->GroupRec->TabIndex = 3;
2046
			this->GroupRec->TabStop = false;
2047
			this->GroupRec->Text = L"Recommended";
2048
			// 
2049
			// PicRec4
2050
			// 
2051
			this->PicRec4->Dock = System::Windows::Forms::DockStyle::Left;
2052
			this->PicRec4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec4.Image")));
2053
			this->PicRec4->Location = System::Drawing::Point(75, 16);
2054
			this->PicRec4->Name = L"PicRec4";
2055
			this->PicRec4->Size = System::Drawing::Size(24, 25);
2056
			this->PicRec4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2057
			this->PicRec4->TabIndex = 17;
2058
			this->PicRec4->TabStop = false;
2059
			this->PicRec4->Click += gcnew System::EventHandler(this, &PackageForm::PicRec4_Click);
2060
			// 
2061
			// PicRec3
2062
			// 
2063
			this->PicRec3->Dock = System::Windows::Forms::DockStyle::Left;
2064
			this->PicRec3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec3.Image")));
2065
			this->PicRec3->Location = System::Drawing::Point(51, 16);
2066
			this->PicRec3->Name = L"PicRec3";
2067
			this->PicRec3->Size = System::Drawing::Size(24, 25);
2068
			this->PicRec3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2069
			this->PicRec3->TabIndex = 16;
2070
			this->PicRec3->TabStop = false;
2071
			this->PicRec3->Click += gcnew System::EventHandler(this, &PackageForm::PicRec3_Click);
2072
			// 
2073
			// PicRec2
2074
			// 
2075
			this->PicRec2->Dock = System::Windows::Forms::DockStyle::Left;
2076
			this->PicRec2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec2.Image")));
2077
			this->PicRec2->Location = System::Drawing::Point(27, 16);
2078
			this->PicRec2->Name = L"PicRec2";
2079
			this->PicRec2->Size = System::Drawing::Size(24, 25);
2080
			this->PicRec2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2081
			this->PicRec2->TabIndex = 15;
2082
			this->PicRec2->TabStop = false;
2083
			this->PicRec2->Click += gcnew System::EventHandler(this, &PackageForm::PicRec2_Click);
2084
			// 
2085
			// PicRec1
2086
			// 
2087
			this->PicRec1->Dock = System::Windows::Forms::DockStyle::Left;
2088
			this->PicRec1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec1.Image")));
2089
			this->PicRec1->Location = System::Drawing::Point(3, 16);
2090
			this->PicRec1->Name = L"PicRec1";
2091
			this->PicRec1->Size = System::Drawing::Size(24, 25);
2092
			this->PicRec1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2093
			this->PicRec1->TabIndex = 14;
2094
			this->PicRec1->TabStop = false;
2095
			this->PicRec1->Click += gcnew System::EventHandler(this, &PackageForm::PicRec1_Click);
2096
			// 
2097
			// GroupEase
2098
			// 
2099
			this->GroupEase->Controls->Add(this->PicEase5);
2100
			this->GroupEase->Controls->Add(this->PicEase4);
2101
			this->GroupEase->Controls->Add(this->PicEase3);
2102
			this->GroupEase->Controls->Add(this->PicEase2);
2103
			this->GroupEase->Controls->Add(this->PicEase1);
2104
			this->GroupEase->Dock = System::Windows::Forms::DockStyle::Left;
2105
			this->GroupEase->Location = System::Drawing::Point(0, 0);
2106
			this->GroupEase->Name = L"GroupEase";
2107
			this->GroupEase->Size = System::Drawing::Size(126, 44);
2108
			this->GroupEase->TabIndex = 1;
2109
			this->GroupEase->TabStop = false;
2110
			this->GroupEase->Text = L"Ease of Use";
2111
			// 
2112
			// PicEase5
2113
			// 
2114
			this->PicEase5->Dock = System::Windows::Forms::DockStyle::Left;
2115
			this->PicEase5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase5.Image")));
2116
			this->PicEase5->Location = System::Drawing::Point(99, 16);
2117
			this->PicEase5->Name = L"PicEase5";
2118
			this->PicEase5->Size = System::Drawing::Size(24, 25);
2119
			this->PicEase5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2120
			this->PicEase5->TabIndex = 17;
2121
			this->PicEase5->TabStop = false;
2122
			this->PicEase5->Click += gcnew System::EventHandler(this, &PackageForm::PicEase5_Click);
2123
			// 
2124
			// PicEase4
2125
			// 
2126
			this->PicEase4->Dock = System::Windows::Forms::DockStyle::Left;
2127
			this->PicEase4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase4.Image")));
2128
			this->PicEase4->Location = System::Drawing::Point(75, 16);
2129
			this->PicEase4->Name = L"PicEase4";
2130
			this->PicEase4->Size = System::Drawing::Size(24, 25);
2131
			this->PicEase4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2132
			this->PicEase4->TabIndex = 16;
2133
			this->PicEase4->TabStop = false;
2134
			this->PicEase4->Click += gcnew System::EventHandler(this, &PackageForm::PicEase4_Click);
2135
			// 
2136
			// PicEase3
2137
			// 
2138
			this->PicEase3->Dock = System::Windows::Forms::DockStyle::Left;
2139
			this->PicEase3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase3.Image")));
2140
			this->PicEase3->Location = System::Drawing::Point(51, 16);
2141
			this->PicEase3->Name = L"PicEase3";
2142
			this->PicEase3->Size = System::Drawing::Size(24, 25);
2143
			this->PicEase3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2144
			this->PicEase3->TabIndex = 15;
2145
			this->PicEase3->TabStop = false;
2146
			this->PicEase3->Click += gcnew System::EventHandler(this, &PackageForm::PicEase3_Click);
2147
			// 
2148
			// PicEase2
2149
			// 
2150
			this->PicEase2->Dock = System::Windows::Forms::DockStyle::Left;
2151
			this->PicEase2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase2.Image")));
2152
			this->PicEase2->Location = System::Drawing::Point(27, 16);
2153
			this->PicEase2->Name = L"PicEase2";
2154
			this->PicEase2->Size = System::Drawing::Size(24, 25);
2155
			this->PicEase2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2156
			this->PicEase2->TabIndex = 14;
2157
			this->PicEase2->TabStop = false;
2158
			this->PicEase2->Click += gcnew System::EventHandler(this, &PackageForm::PicEase2_Click);
2159
			// 
2160
			// PicEase1
2161
			// 
2162
			this->PicEase1->Dock = System::Windows::Forms::DockStyle::Left;
2163
			this->PicEase1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase1.Image")));
2164
			this->PicEase1->Location = System::Drawing::Point(3, 16);
2165
			this->PicEase1->Name = L"PicEase1";
2166
			this->PicEase1->Size = System::Drawing::Size(24, 25);
2167
			this->PicEase1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2168
			this->PicEase1->TabIndex = 13;
2169
			this->PicEase1->TabStop = false;
2170
			this->PicEase1->Click += gcnew System::EventHandler(this, &PackageForm::PicEase1_Click);
2171
			// 
2172
			// groupBox5
2173
			// 
2174
			this->groupBox5->Controls->Add(this->ButIconDel);
2175
			this->groupBox5->Controls->Add(this->DisplayIcon);
2176
			this->groupBox5->Controls->Add(this->button4);
2177
			this->groupBox5->Dock = System::Windows::Forms::DockStyle::Left;
2178
			this->groupBox5->Location = System::Drawing::Point(153, 3);
2179
			this->groupBox5->Name = L"groupBox5";
2180
			this->groupBox5->Size = System::Drawing::Size(57, 210);
2181
			this->groupBox5->TabIndex = 2;
2182
			this->groupBox5->TabStop = false;
2183
			this->groupBox5->Text = L"Icon";
2184
			// 
2185
			// ButIconDel
2186
			// 
2187
			this->ButIconDel->Dock = System::Windows::Forms::DockStyle::Top;
2188
			this->ButIconDel->Location = System::Drawing::Point(3, 85);
2189
			this->ButIconDel->Name = L"ButIconDel";
2190
			this->ButIconDel->Size = System::Drawing::Size(51, 23);
2191
			this->ButIconDel->TabIndex = 1;
2192
			this->ButIconDel->Text = L"Del";
2193
			this->ButIconDel->UseVisualStyleBackColor = true;
2194
			this->ButIconDel->Click += gcnew System::EventHandler(this, &PackageForm::ButIconDel_Click);
2195
			// 
2196
			// DisplayIcon
2197
			// 
2198
			this->DisplayIcon->Dock = System::Windows::Forms::DockStyle::Top;
2199
			this->DisplayIcon->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"DisplayIcon.Image")));
2200
			this->DisplayIcon->Location = System::Drawing::Point(3, 39);
2201
			this->DisplayIcon->Name = L"DisplayIcon";
2202
			this->DisplayIcon->Size = System::Drawing::Size(51, 46);
2203
			this->DisplayIcon->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2204
			this->DisplayIcon->TabIndex = 0;
2205
			this->DisplayIcon->TabStop = false;
2206
			// 
2207
			// button4
2208
			// 
2209
			this->button4->Dock = System::Windows::Forms::DockStyle::Top;
2210
			this->button4->Location = System::Drawing::Point(3, 16);
2211
			this->button4->Name = L"button4";
2212
			this->button4->Size = System::Drawing::Size(51, 23);
2213
			this->button4->TabIndex = 2;
2214
			this->button4->Text = L"Set";
2215
			this->button4->UseVisualStyleBackColor = true;
2216
			this->button4->Click += gcnew System::EventHandler(this, &PackageForm::button4_Click);
2217
			// 
2218
			// panel15
2219
			// 
2220
			this->panel15->Controls->Add(this->DisplayPicture);
2221
			this->panel15->Controls->Add(this->panel16);
2222
			this->panel15->Dock = System::Windows::Forms::DockStyle::Left;
2223
			this->panel15->Location = System::Drawing::Point(3, 3);
2224
			this->panel15->Name = L"panel15";
2225
			this->panel15->Size = System::Drawing::Size(150, 210);
2226
			this->panel15->TabIndex = 1;
2227
			// 
2228
			// DisplayPicture
2229
			// 
2230
			this->DisplayPicture->Dock = System::Windows::Forms::DockStyle::Fill;
2231
			this->DisplayPicture->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"DisplayPicture.Image")));
2232
			this->DisplayPicture->Location = System::Drawing::Point(0, 0);
2233
			this->DisplayPicture->Name = L"DisplayPicture";
2234
			this->DisplayPicture->Size = System::Drawing::Size(150, 181);
2235
			this->DisplayPicture->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
2236
			this->DisplayPicture->TabIndex = 0;
2237
			this->DisplayPicture->TabStop = false;
2238
			// 
2239
			// panel16
2240
			// 
2241
			this->panel16->Controls->Add(this->ButPicAdd);
2242
			this->panel16->Controls->Add(this->ButPicDel);
2243
			this->panel16->Controls->Add(this->ButPicNext);
2244
			this->panel16->Controls->Add(this->ButPicBack);
2245
			this->panel16->Dock = System::Windows::Forms::DockStyle::Bottom;
2246
			this->panel16->Location = System::Drawing::Point(0, 181);
2247
			this->panel16->Name = L"panel16";
2248
			this->panel16->Size = System::Drawing::Size(150, 29);
2249
			this->panel16->TabIndex = 2;
2250
			// 
2251
			// ButPicAdd
2252
			// 
2253
			this->ButPicAdd->Dock = System::Windows::Forms::DockStyle::Fill;
2254
			this->ButPicAdd->Location = System::Drawing::Point(32, 0);
2255
			this->ButPicAdd->Name = L"ButPicAdd";
2256
			this->ButPicAdd->Size = System::Drawing::Size(49, 29);
2257
			this->ButPicAdd->TabIndex = 4;
2258
			this->ButPicAdd->Text = L"Add";
2259
			this->ButPicAdd->UseVisualStyleBackColor = true;
2260
			this->ButPicAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButPicAdd_Click);
2261
			// 
2262
			// ButPicDel
2263
			// 
2264
			this->ButPicDel->Dock = System::Windows::Forms::DockStyle::Right;
2265
			this->ButPicDel->Enabled = false;
2266
			this->ButPicDel->Location = System::Drawing::Point(81, 0);
2267
			this->ButPicDel->Name = L"ButPicDel";
2268
			this->ButPicDel->Size = System::Drawing::Size(40, 29);
2269
			this->ButPicDel->TabIndex = 3;
2270
			this->ButPicDel->Text = L"Del";
2271
			this->ButPicDel->UseVisualStyleBackColor = true;
2272
			this->ButPicDel->Click += gcnew System::EventHandler(this, &PackageForm::ButPicDel_Click);
2273
			// 
2274
			// ButPicNext
2275
			// 
2276
			this->ButPicNext->Dock = System::Windows::Forms::DockStyle::Right;
2277
			this->ButPicNext->Enabled = false;
2278
			this->ButPicNext->Location = System::Drawing::Point(121, 0);
2279
			this->ButPicNext->Name = L"ButPicNext";
2280
			this->ButPicNext->Size = System::Drawing::Size(29, 29);
2281
			this->ButPicNext->TabIndex = 2;
2282
			this->ButPicNext->Text = L"->";
2283
			this->ButPicNext->UseVisualStyleBackColor = true;
2284
			this->ButPicNext->Click += gcnew System::EventHandler(this, &PackageForm::ButPicNext_Click);
2285
			// 
2286
			// ButPicBack
2287
			// 
2288
			this->ButPicBack->Dock = System::Windows::Forms::DockStyle::Left;
2289
			this->ButPicBack->Enabled = false;
2290
			this->ButPicBack->Location = System::Drawing::Point(0, 0);
2291
			this->ButPicBack->Name = L"ButPicBack";
2292
			this->ButPicBack->Size = System::Drawing::Size(32, 29);
2293
			this->ButPicBack->TabIndex = 1;
2294
			this->ButPicBack->Text = L"<-";
2295
			this->ButPicBack->UseVisualStyleBackColor = true;
2296
			this->ButPicBack->Click += gcnew System::EventHandler(this, &PackageForm::ButPicBack_Click);
2297
			// 
2298
			// tabPage2
2299
			// 
2300
			this->tabPage2->Controls->Add(this->ListNames);
2301
			this->tabPage2->Controls->Add(this->groupBox4);
2302
			this->tabPage2->Location = System::Drawing::Point(4, 22);
2303
			this->tabPage2->Name = L"tabPage2";
2304
			this->tabPage2->Padding = System::Windows::Forms::Padding(3);
2305
			this->tabPage2->Size = System::Drawing::Size(748, 216);
2306
			this->tabPage2->TabIndex = 3;
2307
			this->tabPage2->Text = L"Advanced";
2308
			this->tabPage2->UseVisualStyleBackColor = true;
2309
			// 
2310
			// ListNames
2311
			// 
2312
			this->ListNames->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {this->columnHeader7, this->columnHeader8});
2313
			this->ListNames->ContextMenuStrip = this->ContextLangName;
2314
			this->ListNames->Dock = System::Windows::Forms::DockStyle::Fill;
2315
			this->ListNames->FullRowSelect = true;
2316
			this->ListNames->Location = System::Drawing::Point(3, 121);
2317
			this->ListNames->Name = L"ListNames";
2318
			this->ListNames->Size = System::Drawing::Size(742, 92);
2319
			this->ListNames->TabIndex = 1;
2320
			this->ListNames->UseCompatibleStateImageBehavior = false;
2321
			this->ListNames->View = System::Windows::Forms::View::Details;
2322
			this->ListNames->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListNames_MouseDoubleClick);
2323
			// 
2324
			// columnHeader7
2325
			// 
2326
			this->columnHeader7->Text = L"Language";
2327
			this->columnHeader7->Width = 80;
2328
			// 
2329
			// columnHeader8
2330
			// 
2331
			this->columnHeader8->Text = L"Package Name";
2332
			this->columnHeader8->Width = 300;
2333
			// 
2334
			// ContextLangName
2335
			// 
2336
			this->ContextLangName->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->addToolStripMenuItem, 
2337
				this->toolStripSeparator2, this->ContextEditName, this->ContextRemoveName, this->ContextNameSep, this->clearAllToolStripMenuItem1});
2338
			this->ContextLangName->Name = L"ContextLangName";
2339
			this->ContextLangName->Size = System::Drawing::Size(195, 168);
2340
			this->ContextLangName->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextLangName_Opening);
2341
			// 
2342
			// addToolStripMenuItem
2343
			// 
2344
			this->addToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addToolStripMenuItem.Image")));
2345
			this->addToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2346
			this->addToolStripMenuItem->Name = L"addToolStripMenuItem";
2347
			this->addToolStripMenuItem->Size = System::Drawing::Size(194, 38);
2348
			this->addToolStripMenuItem->Text = L"Add Package Name";
2349
			this->addToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addToolStripMenuItem_Click);
2350
			// 
2351
			// toolStripSeparator2
2352
			// 
2353
			this->toolStripSeparator2->Name = L"toolStripSeparator2";
2354
			this->toolStripSeparator2->Size = System::Drawing::Size(191, 6);
2355
			// 
2356
			// ContextEditName
2357
			// 
2358
			this->ContextEditName->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextEditName.Image")));
2359
			this->ContextEditName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2360
			this->ContextEditName->Name = L"ContextEditName";
2361
			this->ContextEditName->Size = System::Drawing::Size(194, 38);
2362
			this->ContextEditName->Text = L"Edit Name";
2363
			this->ContextEditName->Click += gcnew System::EventHandler(this, &PackageForm::ContextEditName_Click);
2364
			// 
2365
			// ContextRemoveName
2366
			// 
2367
			this->ContextRemoveName->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextRemoveName.Image")));
2368
			this->ContextRemoveName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2369
			this->ContextRemoveName->Name = L"ContextRemoveName";
2370
			this->ContextRemoveName->Size = System::Drawing::Size(194, 38);
2371
			this->ContextRemoveName->Text = L"Remove Selected";
2372
			this->ContextRemoveName->Click += gcnew System::EventHandler(this, &PackageForm::ContextRemoveName_Click);
2373
			// 
2374
			// ContextNameSep
2375
			// 
2376
			this->ContextNameSep->Name = L"ContextNameSep";
2377
			this->ContextNameSep->Size = System::Drawing::Size(191, 6);
2378
			// 
2379
			// clearAllToolStripMenuItem1
2380
			// 
2381
			this->clearAllToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"clearAllToolStripMenuItem1.Image")));
2382
			this->clearAllToolStripMenuItem1->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2383
			this->clearAllToolStripMenuItem1->Name = L"clearAllToolStripMenuItem1";
2384
			this->clearAllToolStripMenuItem1->Size = System::Drawing::Size(194, 38);
2385
			this->clearAllToolStripMenuItem1->Text = L"Clear All";
2386
			this->clearAllToolStripMenuItem1->Click += gcnew System::EventHandler(this, &PackageForm::clearAllToolStripMenuItem1_Click);
2387
			// 
2388
			// groupBox4
2389
			// 
2390
			this->groupBox4->Controls->Add(this->ListMirrors);
2391
			this->groupBox4->Controls->Add(this->panel14);
2392
			this->groupBox4->Dock = System::Windows::Forms::DockStyle::Top;
2393
			this->groupBox4->Location = System::Drawing::Point(3, 3);
2394
			this->groupBox4->Name = L"groupBox4";
2395
			this->groupBox4->Size = System::Drawing::Size(742, 118);
2396
			this->groupBox4->TabIndex = 0;
2397
			this->groupBox4->TabStop = false;
2398
			this->groupBox4->Text = L"Automatic Update";
2399
			// 
2400
			// ListMirrors
2401
			// 
2402
			this->ListMirrors->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(1) {this->columnHeader6});
2403
			this->ListMirrors->ContextMenuStrip = this->ContextMirror;
2404
			this->ListMirrors->Dock = System::Windows::Forms::DockStyle::Fill;
2405
			this->ListMirrors->FullRowSelect = true;
2406
			this->ListMirrors->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
2407
			this->ListMirrors->LabelWrap = false;
2408
			this->ListMirrors->Location = System::Drawing::Point(3, 40);
2409
			this->ListMirrors->MultiSelect = false;
2410
			this->ListMirrors->Name = L"ListMirrors";
2411
			this->ListMirrors->ShowGroups = false;
2412
			this->ListMirrors->Size = System::Drawing::Size(736, 75);
2413
			this->ListMirrors->Sorting = System::Windows::Forms::SortOrder::Ascending;
2414
			this->ListMirrors->TabIndex = 1;
2415
			this->ListMirrors->UseCompatibleStateImageBehavior = false;
2416
			this->ListMirrors->View = System::Windows::Forms::View::Details;
2417
			this->ListMirrors->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListMirrors_MouseDoubleClick);
2418
			// 
2419
			// columnHeader6
2420
			// 
2421
			this->columnHeader6->Text = L"Mirror Address";
2422
			this->columnHeader6->Width = 121;
2423
			// 
2424
			// ContextMirror
2425
			// 
2426
			this->ContextMirror->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->addMirrorToolStripMenuItem, 
2427
				this->toolStripSeparator1, this->ContextRemoveMirror, this->clearAllToolStripMenuItem});
2428
			this->ContextMirror->Name = L"ContextMirror";
2429
			this->ContextMirror->Size = System::Drawing::Size(194, 124);
2430
			this->ContextMirror->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextMirror_Opening);
2431
			// 
2432
			// addMirrorToolStripMenuItem
2433
			// 
2434
			this->addMirrorToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addMirrorToolStripMenuItem.Image")));
2435
			this->addMirrorToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2436
			this->addMirrorToolStripMenuItem->Name = L"addMirrorToolStripMenuItem";
2437
			this->addMirrorToolStripMenuItem->Size = System::Drawing::Size(193, 38);
2438
			this->addMirrorToolStripMenuItem->Text = L"Add Mirror Address";
2439
			this->addMirrorToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addMirrorToolStripMenuItem_Click);
2440
			// 
2441
			// toolStripSeparator1
2442
			// 
2443
			this->toolStripSeparator1->Name = L"toolStripSeparator1";
2444
			this->toolStripSeparator1->Size = System::Drawing::Size(190, 6);
2445
			// 
2446
			// ContextRemoveMirror
2447
			// 
2448
			this->ContextRemoveMirror->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextRemoveMirror.Image")));
2449
			this->ContextRemoveMirror->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2450
			this->ContextRemoveMirror->Name = L"ContextRemoveMirror";
2451
			this->ContextRemoveMirror->Size = System::Drawing::Size(193, 38);
2452
			this->ContextRemoveMirror->Text = L"Remove Selected";
2453
			this->ContextRemoveMirror->Click += gcnew System::EventHandler(this, &PackageForm::ContextRemoveMirror_Click);
2454
			// 
2455
			// clearAllToolStripMenuItem
2456
			// 
2457
			this->clearAllToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"clearAllToolStripMenuItem.Image")));
2458
			this->clearAllToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2459
			this->clearAllToolStripMenuItem->Name = L"clearAllToolStripMenuItem";
2460
			this->clearAllToolStripMenuItem->Size = System::Drawing::Size(193, 38);
2461
			this->clearAllToolStripMenuItem->Text = L"Clear All";
2462
			this->clearAllToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::clearAllToolStripMenuItem_Click);
2463
			// 
2464
			// panel14
2465
			// 
2466
			this->panel14->Controls->Add(this->TextWebAddress);
2467
			this->panel14->Controls->Add(this->label14);
2468
			this->panel14->Dock = System::Windows::Forms::DockStyle::Top;
2469
			this->panel14->Location = System::Drawing::Point(3, 16);
2470
			this->panel14->Name = L"panel14";
2471
			this->panel14->Size = System::Drawing::Size(736, 24);
2472
			this->panel14->TabIndex = 2;
2473
			// 
2474
			// TextWebAddress
2475
			// 
2476
			this->TextWebAddress->DetectUrls = false;
2477
			this->TextWebAddress->Dock = System::Windows::Forms::DockStyle::Fill;
2478
			this->TextWebAddress->Location = System::Drawing::Point(142, 0);
2479
			this->TextWebAddress->Name = L"TextWebAddress";
2480
			this->TextWebAddress->Size = System::Drawing::Size(594, 24);
2481
			this->TextWebAddress->TabIndex = 1;
2482
			this->TextWebAddress->Text = L"";
2483
			this->TextWebAddress->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextWebAddress_TextChanged_1);
2484
			// 
2485
			// label14
2486
			// 
2487
			this->label14->Dock = System::Windows::Forms::DockStyle::Left;
2488
			this->label14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
2489
				static_cast<System::Byte>(0)));
2490
			this->label14->Location = System::Drawing::Point(0, 0);
2491
			this->label14->Name = L"label14";
2492
			this->label14->Size = System::Drawing::Size(142, 24);
2493
			this->label14->TabIndex = 0;
2494
			this->label14->Text = L"Primary Address";
2495
			// 
2496
			// tabPage4
2497
			// 
2498
			this->tabPage4->Controls->Add(this->ListDep);
2499
			this->tabPage4->Location = System::Drawing::Point(4, 22);
2500
			this->tabPage4->Name = L"tabPage4";
2501
			this->tabPage4->Padding = System::Windows::Forms::Padding(15);
2502
			this->tabPage4->Size = System::Drawing::Size(748, 216);
2503
			this->tabPage4->TabIndex = 9;
2504
			this->tabPage4->Text = L"Dependacies";
2505
			this->tabPage4->UseVisualStyleBackColor = true;
2506
			// 
2507
			// ListDep
2508
			// 
2509
			this->ListDep->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {this->columnHeader22, this->columnHeader23, 
2510
				this->columnHeader24});
2511
			this->ListDep->ContextMenuStrip = this->ContextDep;
2512
			this->ListDep->Dock = System::Windows::Forms::DockStyle::Fill;
2513
			this->ListDep->FullRowSelect = true;
2514
			this->ListDep->Location = System::Drawing::Point(15, 15);
2515
			this->ListDep->MultiSelect = false;
2516
			this->ListDep->Name = L"ListDep";
2517
			this->ListDep->Size = System::Drawing::Size(718, 186);
2518
			this->ListDep->TabIndex = 0;
2519
			this->ListDep->UseCompatibleStateImageBehavior = false;
2520
			this->ListDep->View = System::Windows::Forms::View::Details;
2521
			this->ListDep->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListDep_MouseDoubleClick);
2522
			// 
2523
			// columnHeader22
2524
			// 
2525
			this->columnHeader22->Text = L"Package Name";
2526
			// 
2527
			// columnHeader23
2528
			// 
2529
			this->columnHeader23->Text = L"Author";
2530
			// 
2531
			// columnHeader24
2532
			// 
2533
			this->columnHeader24->Text = L"Minimum Version";
2534
			// 
2535
			// ContextDep
2536
			// 
2537
			this->ContextDep->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->addToolStripMenuItem1, 
2538
				this->ContextDepSep1, this->editSelectedToolStripMenuItem, this->ContextDepRemove, this->ContextDepSep2, this->ContextDepClear});
2539
			this->ContextDep->Name = L"ContextDep";
2540
			this->ContextDep->Size = System::Drawing::Size(181, 168);
2541
			this->ContextDep->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextDep_Opening);
2542
			// 
2543
			// addToolStripMenuItem1
2544
			// 
2545
			this->addToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->manualToolStripMenuItem, 
2546
				this->fromPackageToolStripMenuItem});
2547
			this->addToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addToolStripMenuItem1.Image")));
2548
			this->addToolStripMenuItem1->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2549
			this->addToolStripMenuItem1->Name = L"addToolStripMenuItem1";
2550
			this->addToolStripMenuItem1->Size = System::Drawing::Size(180, 38);
2551
			this->addToolStripMenuItem1->Text = L"Add";
2552
			// 
2553
			// manualToolStripMenuItem
2554
			// 
2555
			this->manualToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"manualToolStripMenuItem.Image")));
2556
			this->manualToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2557
			this->manualToolStripMenuItem->Name = L"manualToolStripMenuItem";
2558
			this->manualToolStripMenuItem->Size = System::Drawing::Size(165, 38);
2559
			this->manualToolStripMenuItem->Text = L"Manual";
2560
			this->manualToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::manualToolStripMenuItem_Click);
2561
			// 
2562
			// fromPackageToolStripMenuItem
2563
			// 
2564
			this->fromPackageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"fromPackageToolStripMenuItem.Image")));
2565
			this->fromPackageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2566
			this->fromPackageToolStripMenuItem->Name = L"fromPackageToolStripMenuItem";
2567
			this->fromPackageToolStripMenuItem->Size = System::Drawing::Size(165, 38);
2568
			this->fromPackageToolStripMenuItem->Text = L"From Package";
2569
			this->fromPackageToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromPackageToolStripMenuItem_Click);
2570
			// 
2571
			// ContextDepSep1
2572
			// 
2573
			this->ContextDepSep1->Name = L"ContextDepSep1";
2574
			this->ContextDepSep1->Size = System::Drawing::Size(177, 6);
2575
			// 
2576
			// editSelectedToolStripMenuItem
2577
			// 
2578
			this->editSelectedToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"editSelectedToolStripMenuItem.Image")));
2579
			this->editSelectedToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2580
			this->editSelectedToolStripMenuItem->Name = L"editSelectedToolStripMenuItem";
2581
			this->editSelectedToolStripMenuItem->Size = System::Drawing::Size(180, 38);
2582
			this->editSelectedToolStripMenuItem->Text = L"Edit Selected";
2583
			this->editSelectedToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::editSelectedToolStripMenuItem_Click);
2584
			// 
2585
			// ContextDepRemove
2586
			// 
2587
			this->ContextDepRemove->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextDepRemove.Image")));
2588
			this->ContextDepRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2589
			this->ContextDepRemove->Name = L"ContextDepRemove";
2590
			this->ContextDepRemove->Size = System::Drawing::Size(180, 38);
2591
			this->ContextDepRemove->Text = L"Remove Selected";
2592
			this->ContextDepRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextDepRemove_Click);
2593
			// 
2594
			// ContextDepSep2
2595
			// 
2596
			this->ContextDepSep2->Name = L"ContextDepSep2";
2597
			this->ContextDepSep2->Size = System::Drawing::Size(177, 6);
2598
			// 
2599
			// ContextDepClear
2600
			// 
2601
			this->ContextDepClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextDepClear.Image")));
2602
			this->ContextDepClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2603
			this->ContextDepClear->Name = L"ContextDepClear";
2604
			this->ContextDepClear->Size = System::Drawing::Size(180, 38);
2605
			this->ContextDepClear->Text = L"Clear All";
2606
			this->ContextDepClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextDepClear_Click);
2607
			// 
2608
			// PageWares
2609
			// 
2610
			this->PageWares->Controls->Add(this->splitContainer1);
2611
			this->PageWares->Location = System::Drawing::Point(4, 22);
2612
			this->PageWares->Name = L"PageWares";
2613
			this->PageWares->Padding = System::Windows::Forms::Padding(3);
2614
			this->PageWares->Size = System::Drawing::Size(748, 216);
2615
			this->PageWares->TabIndex = 5;
2616
			this->PageWares->Text = L"Custom Wares";
2617
			this->PageWares->UseVisualStyleBackColor = true;
2618
			// 
2619
			// splitContainer1
2620
			// 
2621
			this->splitContainer1->Dock = System::Windows::Forms::DockStyle::Fill;
2622
			this->splitContainer1->Location = System::Drawing::Point(3, 3);
2623
			this->splitContainer1->Name = L"splitContainer1";
2624
			this->splitContainer1->Orientation = System::Windows::Forms::Orientation::Horizontal;
2625
			// 
2626
			// splitContainer1.Panel1
2627
			// 
2628
			this->splitContainer1->Panel1->Controls->Add(this->ListWares);
2629
			// 
2630
			// splitContainer1.Panel2
2631
			// 
2632
			this->splitContainer1->Panel2->Controls->Add(this->ListWareText);
2633
			this->splitContainer1->Size = System::Drawing::Size(742, 210);
2634
			this->splitContainer1->SplitterDistance = 109;
2635
			this->splitContainer1->TabIndex = 0;
2636
			// 
2637
			// ListWares
2638
			// 
2639
			this->ListWares->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(7) {this->columnHeader9, this->columnHeader10, 
2640
				this->columnHeader11, this->columnHeader12, this->columnHeader13, this->columnHeader14, this->columnHeader18});
2641
			this->ListWares->ContextMenuStrip = this->ContextWare;
2642
			this->ListWares->Dock = System::Windows::Forms::DockStyle::Fill;
2643
			this->ListWares->FullRowSelect = true;
2644
			this->ListWares->HideSelection = false;
2645
			this->ListWares->Location = System::Drawing::Point(0, 0);
2646
			this->ListWares->MultiSelect = false;
2647
			this->ListWares->Name = L"ListWares";
2648
			this->ListWares->Size = System::Drawing::Size(742, 109);
2649
			this->ListWares->TabIndex = 0;
2650
			this->ListWares->UseCompatibleStateImageBehavior = false;
2651
			this->ListWares->View = System::Windows::Forms::View::Details;
2652
			this->ListWares->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListWares_MouseDoubleClick);
2653
			this->ListWares->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListWares_SelectedIndexChanged);
2654
			// 
2655
			// columnHeader9
2656
			// 
2657
			this->columnHeader9->Text = L"Ware ID";
2658
			// 
2659
			// columnHeader10
2660
			// 
2661
			this->columnHeader10->Text = L"Ware Type";
2662
			this->columnHeader10->Width = 77;
2663
			// 
2664
			// columnHeader11
2665
			// 
2666
			this->columnHeader11->Text = L"Price";
2667
			// 
2668
			// columnHeader12
2669
			// 
2670
			this->columnHeader12->Text = L"Size Class";
2671
			// 
2672
			// columnHeader13
2673
			// 
2674
			this->columnHeader13->Text = L"Volume";
2675
			// 
2676
			// columnHeader14
2677
			// 
2678
			this->columnHeader14->Text = L"Min. Noto";
2679
			// 
2680
			// columnHeader18
2681
			// 
2682
			this->columnHeader18->Text = L"Text ID";
2683
			// 
2684
			// ContextWare
2685
			// 
2686
			this->ContextWare->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->addWareToolStripMenuItem, 
2687
				this->ContextWareSep1, this->ContextWareEdit, this->ContextWareRemove, this->ContextWareSep2, this->ContextWareClear});
2688
			this->ContextWare->Name = L"ContextWare";
2689
			this->ContextWare->Size = System::Drawing::Size(164, 168);
2690
			this->ContextWare->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextWare_Opening);
2691
			// 
2692
			// addWareToolStripMenuItem
2693
			// 
2694
			this->addWareToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addWareToolStripMenuItem.Image")));
2695
			this->addWareToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2696
			this->addWareToolStripMenuItem->Name = L"addWareToolStripMenuItem";
2697
			this->addWareToolStripMenuItem->Size = System::Drawing::Size(163, 38);
2698
			this->addWareToolStripMenuItem->Text = L"Add Ware";
2699
			this->addWareToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addWareToolStripMenuItem_Click);
2700
			// 
2701
			// ContextWareSep1
2702
			// 
2703
			this->ContextWareSep1->Name = L"ContextWareSep1";
2704
			this->ContextWareSep1->Size = System::Drawing::Size(160, 6);
2705
			// 
2706
			// ContextWareEdit
2707
			// 
2708
			this->ContextWareEdit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWareEdit.Image")));
2709
			this->ContextWareEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2710
			this->ContextWareEdit->Name = L"ContextWareEdit";
2711
			this->ContextWareEdit->Size = System::Drawing::Size(163, 38);
2712
			this->ContextWareEdit->Text = L"Edit Ware";
2713
			this->ContextWareEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareEdit_Click);
2714
			// 
2715
			// ContextWareRemove
2716
			// 
2717
			this->ContextWareRemove->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWareRemove.Image")));
2718
			this->ContextWareRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2719
			this->ContextWareRemove->Name = L"ContextWareRemove";
2720
			this->ContextWareRemove->Size = System::Drawing::Size(163, 38);
2721
			this->ContextWareRemove->Text = L"Remove Ware";
2722
			this->ContextWareRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareRemove_Click);
2723
			// 
2724
			// ContextWareSep2
2725
			// 
2726
			this->ContextWareSep2->Name = L"ContextWareSep2";
2727
			this->ContextWareSep2->Size = System::Drawing::Size(160, 6);
2728
			// 
2729
			// ContextWareClear
2730
			// 
2731
			this->ContextWareClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWareClear.Image")));
2732
			this->ContextWareClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2733
			this->ContextWareClear->Name = L"ContextWareClear";
2734
			this->ContextWareClear->Size = System::Drawing::Size(163, 38);
2735
			this->ContextWareClear->Text = L"Clear All";
2736
			this->ContextWareClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareClear_Click);
2737
			// 
2738
			// ListWareText
2739
			// 
2740
			this->ListWareText->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {this->columnHeader15, 
2741
				this->columnHeader16, this->columnHeader17});
2742
			this->ListWareText->ContextMenuStrip = this->ContextWareText;
2743
			this->ListWareText->Dock = System::Windows::Forms::DockStyle::Fill;
2744
			this->ListWareText->FullRowSelect = true;
2745
			this->ListWareText->Location = System::Drawing::Point(0, 0);
2746
			this->ListWareText->MultiSelect = false;
2747
			this->ListWareText->Name = L"ListWareText";
2748
			this->ListWareText->Size = System::Drawing::Size(742, 97);
2749
			this->ListWareText->TabIndex = 0;
2750
			this->ListWareText->UseCompatibleStateImageBehavior = false;
2751
			this->ListWareText->View = System::Windows::Forms::View::Details;
2752
			this->ListWareText->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListWareText_MouseDoubleClick);
2753
			// 
2754
			// columnHeader15
2755
			// 
2756
			this->columnHeader15->Text = L"Lang ID";
2757
			// 
2758
			// columnHeader16
2759
			// 
2760
			this->columnHeader16->Text = L"Ware Name";
2761
			this->columnHeader16->Width = 88;
2762
			// 
2763
			// columnHeader17
2764
			// 
2765
			this->columnHeader17->Text = L"Ware Description";
2766
			this->columnHeader17->Width = 115;
2767
			// 
2768
			// ContextWareText
2769
			// 
2770
			this->ContextWareText->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->addTextToolStripMenuItem, 
2771
				this->ContextWTSep1, this->ContextWTRemove, this->ContextWTEdit, this->ContextWTSep2, this->ContextWTClear});
2772
			this->ContextWareText->Name = L"ContextWareText";
2773
			this->ContextWareText->Size = System::Drawing::Size(159, 168);
2774
			this->ContextWareText->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextWareText_Opening);
2775
			// 
2776
			// addTextToolStripMenuItem
2777
			// 
2778
			this->addTextToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addTextToolStripMenuItem.Image")));
2779
			this->addTextToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2780
			this->addTextToolStripMenuItem->Name = L"addTextToolStripMenuItem";
2781
			this->addTextToolStripMenuItem->Size = System::Drawing::Size(158, 38);
2782
			this->addTextToolStripMenuItem->Text = L"Add Text";
2783
			this->addTextToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addTextToolStripMenuItem_Click);
2784
			// 
2785
			// ContextWTSep1
2786
			// 
2787
			this->ContextWTSep1->Name = L"ContextWTSep1";
2788
			this->ContextWTSep1->Size = System::Drawing::Size(155, 6);
2789
			// 
2790
			// ContextWTRemove
2791
			// 
2792
			this->ContextWTRemove->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWTRemove.Image")));
2793
			this->ContextWTRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2794
			this->ContextWTRemove->Name = L"ContextWTRemove";
2795
			this->ContextWTRemove->Size = System::Drawing::Size(158, 38);
2796
			this->ContextWTRemove->Text = L"Remove Text";
2797
			this->ContextWTRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTRemove_Click);
2798
			// 
2799
			// ContextWTEdit
2800
			// 
2801
			this->ContextWTEdit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWTEdit.Image")));
2802
			this->ContextWTEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2803
			this->ContextWTEdit->Name = L"ContextWTEdit";
2804
			this->ContextWTEdit->Size = System::Drawing::Size(158, 38);
2805
			this->ContextWTEdit->Text = L"Edit Text";
2806
			this->ContextWTEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTEdit_Click);
2807
			// 
2808
			// ContextWTSep2
2809
			// 
2810
			this->ContextWTSep2->Name = L"ContextWTSep2";
2811
			this->ContextWTSep2->Size = System::Drawing::Size(155, 6);
2812
			// 
2813
			// ContextWTClear
2814
			// 
2815
			this->ContextWTClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextWTClear.Image")));
2816
			this->ContextWTClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2817
			this->ContextWTClear->Name = L"ContextWTClear";
2818
			this->ContextWTClear->Size = System::Drawing::Size(158, 38);
2819
			this->ContextWTClear->Text = L"Clear All";
2820
			this->ContextWTClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTClear_Click);
2821
			// 
2822
			// PageShip
2823
			// 
2824
			this->PageShip->Controls->Add(this->ListShipText);
2825
			this->PageShip->Controls->Add(this->PanelTextID);
2826
			this->PageShip->Controls->Add(this->flowLayoutPanel2);
2827
			this->PageShip->Location = System::Drawing::Point(4, 22);
2828
			this->PageShip->Name = L"PageShip";
2829
			this->PageShip->Padding = System::Windows::Forms::Padding(8);
2830
			this->PageShip->Size = System::Drawing::Size(748, 216);
2831
			this->PageShip->TabIndex = 6;
2832
			this->PageShip->Text = L"Ship Settings";
2833
			this->PageShip->UseVisualStyleBackColor = true;
2834
			// 
2835
			// ListShipText
2836
			// 
2837
			this->ListShipText->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {this->columnHeader19, 
2838
				this->columnHeader20, this->columnHeader21});
2839
			this->ListShipText->ContextMenuStrip = this->ContextShipText;
2840
			this->ListShipText->Dock = System::Windows::Forms::DockStyle::Fill;
2841
			this->ListShipText->FullRowSelect = true;
2842
			this->ListShipText->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
2843
			this->ListShipText->Location = System::Drawing::Point(8, 110);
2844
			this->ListShipText->Name = L"ListShipText";
2845
			this->ListShipText->Size = System::Drawing::Size(732, 98);
2846
			this->ListShipText->TabIndex = 8;
2847
			this->ListShipText->UseCompatibleStateImageBehavior = false;
2848
			this->ListShipText->View = System::Windows::Forms::View::Details;
2849
			this->ListShipText->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListShipText_MouseDoubleClick);
2850
			// 
2851
			// columnHeader19
2852
			// 
2853
			this->columnHeader19->Text = L"Language";
2854
			// 
2855
			// columnHeader20
2856
			// 
2857
			this->columnHeader20->Text = L"Ship Name";
2858
			// 
2859
			// columnHeader21
2860
			// 
2861
			this->columnHeader21->Text = L"Ship Description";
2862
			// 
2863
			// ContextShipText
2864
			// 
2865
			this->ContextShipText->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->importTextToolStripMenuItem, 
2866
				this->addLanguageToolStripMenuItem, this->ContextShipTextSep1, this->ContextShipTextEdit, this->ContextShipTextRemove, this->ContextShipTextSep2, 
2867
				this->ContextShipTextClear});
2868
			this->ContextShipText->Name = L"ContextShipText";
2869
			this->ContextShipText->Size = System::Drawing::Size(168, 206);
2870
			this->ContextShipText->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextShipText_Opening);
2871
			// 
2872
			// importTextToolStripMenuItem
2873
			// 
2874
			this->importTextToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->fromFileToolStripMenuItem, 
2875
				this->fromDirectoryToolStripMenuItem, this->fromModToolStripMenuItem});
2876
			this->importTextToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"importTextToolStripMenuItem.Image")));
2877
			this->importTextToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2878
			this->importTextToolStripMenuItem->Name = L"importTextToolStripMenuItem";
2879
			this->importTextToolStripMenuItem->Size = System::Drawing::Size(167, 38);
2880
			this->importTextToolStripMenuItem->Text = L"Import Text";
2881
			// 
2882
			// fromFileToolStripMenuItem
2883
			// 
2884
			this->fromFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"fromFileToolStripMenuItem.Image")));
2885
			this->fromFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2886
			this->fromFileToolStripMenuItem->Name = L"fromFileToolStripMenuItem";
2887
			this->fromFileToolStripMenuItem->Size = System::Drawing::Size(169, 38);
2888
			this->fromFileToolStripMenuItem->Text = L"From File";
2889
			this->fromFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromFileToolStripMenuItem_Click);
2890
			// 
2891
			// fromDirectoryToolStripMenuItem
2892
			// 
2893
			this->fromDirectoryToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"fromDirectoryToolStripMenuItem.Image")));
2894
			this->fromDirectoryToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2895
			this->fromDirectoryToolStripMenuItem->Name = L"fromDirectoryToolStripMenuItem";
2896
			this->fromDirectoryToolStripMenuItem->Size = System::Drawing::Size(169, 38);
2897
			this->fromDirectoryToolStripMenuItem->Text = L"From Directory";
2898
			this->fromDirectoryToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromDirectoryToolStripMenuItem_Click);
2899
			// 
2900
			// fromModToolStripMenuItem
2901
			// 
2902
			this->fromModToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"fromModToolStripMenuItem.Image")));
2903
			this->fromModToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2904
			this->fromModToolStripMenuItem->Name = L"fromModToolStripMenuItem";
2905
			this->fromModToolStripMenuItem->Size = System::Drawing::Size(169, 38);
2906
			this->fromModToolStripMenuItem->Text = L"From Mod";
2907
			this->fromModToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromModToolStripMenuItem_Click);
2908
			// 
2909
			// addLanguageToolStripMenuItem
2910
			// 
2911
			this->addLanguageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addLanguageToolStripMenuItem.Image")));
2912
			this->addLanguageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2913
			this->addLanguageToolStripMenuItem->Name = L"addLanguageToolStripMenuItem";
2914
			this->addLanguageToolStripMenuItem->Size = System::Drawing::Size(167, 38);
2915
			this->addLanguageToolStripMenuItem->Text = L"Add Language";
2916
			this->addLanguageToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addLanguageToolStripMenuItem_Click);
2917
			// 
2918
			// ContextShipTextSep1
2919
			// 
2920
			this->ContextShipTextSep1->Name = L"ContextShipTextSep1";
2921
			this->ContextShipTextSep1->Size = System::Drawing::Size(164, 6);
2922
			// 
2923
			// ContextShipTextEdit
2924
			// 
2925
			this->ContextShipTextEdit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipTextEdit.Image")));
2926
			this->ContextShipTextEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2927
			this->ContextShipTextEdit->Name = L"ContextShipTextEdit";
2928
			this->ContextShipTextEdit->Size = System::Drawing::Size(167, 38);
2929
			this->ContextShipTextEdit->Text = L"Edit";
2930
			this->ContextShipTextEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextEdit_Click);
2931
			// 
2932
			// ContextShipTextRemove
2933
			// 
2934
			this->ContextShipTextRemove->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipTextRemove.Image")));
2935
			this->ContextShipTextRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2936
			this->ContextShipTextRemove->Name = L"ContextShipTextRemove";
2937
			this->ContextShipTextRemove->Size = System::Drawing::Size(167, 38);
2938
			this->ContextShipTextRemove->Text = L"Remove";
2939
			this->ContextShipTextRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextRemove_Click);
2940
			// 
2941
			// ContextShipTextSep2
2942
			// 
2943
			this->ContextShipTextSep2->Name = L"ContextShipTextSep2";
2944
			this->ContextShipTextSep2->Size = System::Drawing::Size(164, 6);
2945
			// 
2946
			// ContextShipTextClear
2947
			// 
2948
			this->ContextShipTextClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipTextClear.Image")));
2949
			this->ContextShipTextClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
2950
			this->ContextShipTextClear->Name = L"ContextShipTextClear";
2951
			this->ContextShipTextClear->Size = System::Drawing::Size(167, 38);
2952
			this->ContextShipTextClear->Text = L"Clear All";
2953
			this->ContextShipTextClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextClear_Click);
2954
			// 
2955
			// PanelTextID
2956
			// 
2957
			this->PanelTextID->Controls->Add(this->NumTextID);
2958
			this->PanelTextID->Controls->Add(this->CheckExistingText);
2959
			this->PanelTextID->Dock = System::Windows::Forms::DockStyle::Top;
2960
			this->PanelTextID->Location = System::Drawing::Point(8, 90);
2961
			this->PanelTextID->Name = L"PanelTextID";
2962
			this->PanelTextID->Size = System::Drawing::Size(732, 20);
2963
			this->PanelTextID->TabIndex = 9;
2964
			// 
2965
			// NumTextID
2966
			// 
2967
			this->NumTextID->Dock = System::Windows::Forms::DockStyle::Left;
2968
			this->NumTextID->Location = System::Drawing::Point(122, 0);
2969
			this->NumTextID->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {90000000, 0, 0, 0});
2970
			this->NumTextID->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
2971
			this->NumTextID->Name = L"NumTextID";
2972
			this->NumTextID->Size = System::Drawing::Size(103, 20);
2973
			this->NumTextID->TabIndex = 1;
2974
			this->NumTextID->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
2975
			this->NumTextID->ValueChanged += gcnew System::EventHandler(this, &PackageForm::NumTextID_ValueChanged);
2976
			this->NumTextID->Leave += gcnew System::EventHandler(this, &PackageForm::NumTextID_Leave);
2977
			// 
2978
			// CheckExistingText
2979
			// 
2980
			this->CheckExistingText->AutoSize = true;
2981
			this->CheckExistingText->Dock = System::Windows::Forms::DockStyle::Left;
2982
			this->CheckExistingText->Location = System::Drawing::Point(0, 0);
2983
			this->CheckExistingText->Name = L"CheckExistingText";
2984
			this->CheckExistingText->Size = System::Drawing::Size(122, 20);
2985
			this->CheckExistingText->TabIndex = 3;
2986
			this->CheckExistingText->Text = L"Use Existing Text ID";
2987
			this->CheckExistingText->UseVisualStyleBackColor = true;
2988
			this->CheckExistingText->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckExistingText_CheckedChanged);
2989
			// 
2990
			// flowLayoutPanel2
2991
			// 
2992
			this->flowLayoutPanel2->AutoSize = true;
2993
			this->flowLayoutPanel2->Controls->Add(this->label16);
2994
			this->flowLayoutPanel2->Controls->Add(this->CheckSYArgon);
2995
			this->flowLayoutPanel2->Controls->Add(this->CheckSYBoron);
2996
			this->flowLayoutPanel2->Controls->Add(this->CheckSYParanid);
2997
			this->flowLayoutPanel2->Controls->Add(this->CheckSYTeladi);
2998
			this->flowLayoutPanel2->Controls->Add(this->CheckSYSplit);
2999
			this->flowLayoutPanel2->Controls->Add(this->CheckSYPirate);
3000
			this->flowLayoutPanel2->Controls->Add(this->CheckSYFriend);
3001
			this->flowLayoutPanel2->Controls->Add(this->CheckSYXenon);
3002
			this->flowLayoutPanel2->Controls->Add(this->CheckSYTerran);
3003
			this->flowLayoutPanel2->Controls->Add(this->CheckSYATF);
3004
			this->flowLayoutPanel2->Controls->Add(this->CheckSYYaki);
3005
			this->flowLayoutPanel2->Dock = System::Windows::Forms::DockStyle::Top;
3006
			this->flowLayoutPanel2->Location = System::Drawing::Point(8, 8);
3007
			this->flowLayoutPanel2->Name = L"flowLayoutPanel2";
3008
			this->flowLayoutPanel2->Size = System::Drawing::Size(732, 82);
3009
			this->flowLayoutPanel2->TabIndex = 7;
3010
			// 
3011
			// label16
3012
			// 
3013
			this->label16->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3014
				static_cast<System::Byte>(0)));
3015
			this->label16->Location = System::Drawing::Point(3, 0);
3016
			this->label16->Name = L"label16";
3017
			this->label16->Size = System::Drawing::Size(90, 38);
3018
			this->label16->TabIndex = 11;
3019
			this->label16->Text = L"Add To Shipyards:";
3020
			this->label16->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3021
			// 
3022
			// CheckSYArgon
3023
			// 
3024
			this->CheckSYArgon->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
3025
				static_cast<System::Byte>(0)));
3026
			this->CheckSYArgon->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYArgon.Image")));
3027
			this->CheckSYArgon->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3028
			this->CheckSYArgon->Location = System::Drawing::Point(99, 3);
3029
			this->CheckSYArgon->Name = L"CheckSYArgon";
3030
			this->CheckSYArgon->Size = System::Drawing::Size(90, 35);
3031
			this->CheckSYArgon->TabIndex = 0;
3032
			this->CheckSYArgon->Text = L"Argon";
3033
			this->CheckSYArgon->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3034
			this->CheckSYArgon->UseVisualStyleBackColor = true;
3035
			this->CheckSYArgon->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYArgon_CheckedChanged);
3036
			// 
3037
			// CheckSYBoron
3038
			// 
3039
			this->CheckSYBoron->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYBoron.Image")));
3040
			this->CheckSYBoron->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3041
			this->CheckSYBoron->Location = System::Drawing::Point(195, 3);
3042
			this->CheckSYBoron->Name = L"CheckSYBoron";
3043
			this->CheckSYBoron->Size = System::Drawing::Size(90, 35);
3044
			this->CheckSYBoron->TabIndex = 1;
3045
			this->CheckSYBoron->Text = L"Boron";
3046
			this->CheckSYBoron->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3047
			this->CheckSYBoron->UseVisualStyleBackColor = true;
3048
			this->CheckSYBoron->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYBoron_CheckedChanged);
3049
			// 
3050
			// CheckSYParanid
3051
			// 
3052
			this->CheckSYParanid->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYParanid.Image")));
3053
			this->CheckSYParanid->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3054
			this->CheckSYParanid->Location = System::Drawing::Point(291, 3);
3055
			this->CheckSYParanid->Name = L"CheckSYParanid";
3056
			this->CheckSYParanid->Size = System::Drawing::Size(90, 35);
3057
			this->CheckSYParanid->TabIndex = 2;
3058
			this->CheckSYParanid->Text = L"Paranid";
3059
			this->CheckSYParanid->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3060
			this->CheckSYParanid->UseVisualStyleBackColor = true;
3061
			this->CheckSYParanid->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYParanid_CheckedChanged);
3062
			// 
3063
			// CheckSYTeladi
3064
			// 
3065
			this->CheckSYTeladi->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYTeladi.Image")));
3066
			this->CheckSYTeladi->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3067
			this->CheckSYTeladi->Location = System::Drawing::Point(387, 3);
3068
			this->CheckSYTeladi->Name = L"CheckSYTeladi";
3069
			this->CheckSYTeladi->Size = System::Drawing::Size(90, 35);
3070
			this->CheckSYTeladi->TabIndex = 3;
3071
			this->CheckSYTeladi->Text = L"Teladi";
3072
			this->CheckSYTeladi->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3073
			this->CheckSYTeladi->UseVisualStyleBackColor = true;
3074
			this->CheckSYTeladi->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYTeladi_CheckedChanged);
3075
			// 
3076
			// CheckSYSplit
3077
			// 
3078
			this->CheckSYSplit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYSplit.Image")));
3079
			this->CheckSYSplit->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3080
			this->CheckSYSplit->Location = System::Drawing::Point(483, 3);
3081
			this->CheckSYSplit->Name = L"CheckSYSplit";
3082
			this->CheckSYSplit->Size = System::Drawing::Size(90, 35);
3083
			this->CheckSYSplit->TabIndex = 4;
3084
			this->CheckSYSplit->Text = L"Split";
3085
			this->CheckSYSplit->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3086
			this->CheckSYSplit->UseVisualStyleBackColor = true;
3087
			this->CheckSYSplit->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYSplit_CheckedChanged);
3088
			// 
3089
			// CheckSYPirate
3090
			// 
3091
			this->CheckSYPirate->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYPirate.Image")));
3092
			this->CheckSYPirate->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3093
			this->CheckSYPirate->Location = System::Drawing::Point(579, 3);
3094
			this->CheckSYPirate->Name = L"CheckSYPirate";
3095
			this->CheckSYPirate->Size = System::Drawing::Size(90, 35);
3096
			this->CheckSYPirate->TabIndex = 5;
3097
			this->CheckSYPirate->Text = L"Pirate";
3098
			this->CheckSYPirate->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3099
			this->CheckSYPirate->UseVisualStyleBackColor = true;
3100
			this->CheckSYPirate->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYPirate_CheckedChanged);
3101
			// 
3102
			// CheckSYFriend
3103
			// 
3104
			this->CheckSYFriend->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYFriend.Image")));
3105
			this->CheckSYFriend->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3106
			this->CheckSYFriend->Location = System::Drawing::Point(3, 44);
3107
			this->CheckSYFriend->Name = L"CheckSYFriend";
3108
			this->CheckSYFriend->Size = System::Drawing::Size(90, 35);
3109
			this->CheckSYFriend->TabIndex = 6;
3110
			this->CheckSYFriend->Text = L"Friendly Race";
3111
			this->CheckSYFriend->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3112
			this->CheckSYFriend->UseVisualStyleBackColor = true;
3113
			this->CheckSYFriend->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYFriend_CheckedChanged);
3114
			// 
3115
			// CheckSYXenon
3116
			// 
3117
			this->CheckSYXenon->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYXenon.Image")));
3118
			this->CheckSYXenon->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3119
			this->CheckSYXenon->Location = System::Drawing::Point(99, 44);
3120
			this->CheckSYXenon->Name = L"CheckSYXenon";
3121
			this->CheckSYXenon->Size = System::Drawing::Size(90, 35);
3122
			this->CheckSYXenon->TabIndex = 7;
3123
			this->CheckSYXenon->Text = L"Xenon";
3124
			this->CheckSYXenon->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3125
			this->CheckSYXenon->UseVisualStyleBackColor = true;
3126
			this->CheckSYXenon->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYXenon_CheckedChanged);
3127
			// 
3128
			// CheckSYTerran
3129
			// 
3130
			this->CheckSYTerran->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYTerran.Image")));
3131
			this->CheckSYTerran->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3132
			this->CheckSYTerran->Location = System::Drawing::Point(195, 44);
3133
			this->CheckSYTerran->Name = L"CheckSYTerran";
3134
			this->CheckSYTerran->Size = System::Drawing::Size(90, 35);
3135
			this->CheckSYTerran->TabIndex = 8;
3136
			this->CheckSYTerran->Text = L"Terran";
3137
			this->CheckSYTerran->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3138
			this->CheckSYTerran->UseVisualStyleBackColor = true;
3139
			this->CheckSYTerran->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYTerran_CheckedChanged);
3140
			// 
3141
			// CheckSYATF
3142
			// 
3143
			this->CheckSYATF->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYATF.Image")));
3144
			this->CheckSYATF->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3145
			this->CheckSYATF->Location = System::Drawing::Point(291, 44);
3146
			this->CheckSYATF->Name = L"CheckSYATF";
3147
			this->CheckSYATF->Size = System::Drawing::Size(90, 35);
3148
			this->CheckSYATF->TabIndex = 9;
3149
			this->CheckSYATF->Text = L"ATF";
3150
			this->CheckSYATF->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3151
			this->CheckSYATF->UseVisualStyleBackColor = true;
3152
			this->CheckSYATF->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYATF_CheckedChanged);
3153
			// 
3154
			// CheckSYYaki
3155
			// 
3156
			this->CheckSYYaki->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"CheckSYYaki.Image")));
3157
			this->CheckSYYaki->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3158
			this->CheckSYYaki->Location = System::Drawing::Point(387, 44);
3159
			this->CheckSYYaki->Name = L"CheckSYYaki";
3160
			this->CheckSYYaki->Size = System::Drawing::Size(90, 35);
3161
			this->CheckSYYaki->TabIndex = 10;
3162
			this->CheckSYYaki->Text = L"Yaki";
3163
			this->CheckSYYaki->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3164
			this->CheckSYYaki->UseVisualStyleBackColor = true;
3165
			this->CheckSYYaki->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYYaki_CheckedChanged);
3166
			// 
3167
			// PageRaw
3168
			// 
3169
			this->PageRaw->Controls->Add(this->panel23);
3170
			this->PageRaw->Controls->Add(this->flowLayoutPanel3);
3171
			this->PageRaw->Location = System::Drawing::Point(4, 22);
3172
			this->PageRaw->Name = L"PageRaw";
3173
			this->PageRaw->Padding = System::Windows::Forms::Padding(3);
3174
			this->PageRaw->Size = System::Drawing::Size(748, 216);
3175
			this->PageRaw->TabIndex = 7;
3176
			this->PageRaw->Text = L"Ship Data";
3177
			this->PageRaw->UseVisualStyleBackColor = true;
3178
			// 
3179
			// panel23
3180
			// 
3181
			this->panel23->Controls->Add(this->TextShipData);
3182
			this->panel23->Controls->Add(this->panel24);
3183
			this->panel23->Dock = System::Windows::Forms::DockStyle::Fill;
3184
			this->panel23->Location = System::Drawing::Point(3, 42);
3185
			this->panel23->Name = L"panel23";
3186
			this->panel23->Padding = System::Windows::Forms::Padding(10);
3187
			this->panel23->Size = System::Drawing::Size(742, 171);
3188
			this->panel23->TabIndex = 3;
3189
			// 
3190
			// TextShipData
3191
			// 
3192
			this->TextShipData->BackColor = System::Drawing::SystemColors::Control;
3193
			this->TextShipData->Dock = System::Windows::Forms::DockStyle::Fill;
3194
			this->TextShipData->Location = System::Drawing::Point(10, 34);
3195
			this->TextShipData->Name = L"TextShipData";
3196
			this->TextShipData->ReadOnly = true;
3197
			this->TextShipData->Size = System::Drawing::Size(722, 127);
3198
			this->TextShipData->TabIndex = 0;
3199
			this->TextShipData->Text = L"";
3200
			this->TextShipData->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextShipData_TextChanged);
3201
			// 
3202
			// panel24
3203
			// 
3204
			this->panel24->Controls->Add(this->label17);
3205
			this->panel24->Controls->Add(this->checkBox1);
3206
			this->panel24->Dock = System::Windows::Forms::DockStyle::Top;
3207
			this->panel24->Location = System::Drawing::Point(10, 10);
3208
			this->panel24->Name = L"panel24";
3209
			this->panel24->Size = System::Drawing::Size(722, 24);
3210
			this->panel24->TabIndex = 2;
3211
			// 
3212
			// label17
3213
			// 
3214
			this->label17->Dock = System::Windows::Forms::DockStyle::Fill;
3215
			this->label17->Location = System::Drawing::Point(107, 0);
3216
			this->label17->Name = L"label17";
3217
			this->label17->Size = System::Drawing::Size(615, 24);
3218
			this->label17->TabIndex = 2;
3219
			this->label17->Text = L"(Warning: Making changes could break the ship if you dont know what your doing)";
3220
			this->label17->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3221
			// 
3222
			// checkBox1
3223
			// 
3224
			this->checkBox1->AutoSize = true;
3225
			this->checkBox1->Dock = System::Windows::Forms::DockStyle::Left;
3226
			this->checkBox1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3227
				static_cast<System::Byte>(0)));
3228
			this->checkBox1->Location = System::Drawing::Point(0, 0);
3229
			this->checkBox1->Name = L"checkBox1";
3230
			this->checkBox1->Size = System::Drawing::Size(107, 24);
3231
			this->checkBox1->TabIndex = 1;
3232
			this->checkBox1->Text = L"Allow Edit";
3233
			this->checkBox1->UseVisualStyleBackColor = true;
3234
			this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::checkBox1_CheckedChanged);
3235
			// 
3236
			// flowLayoutPanel3
3237
			// 
3238
			this->flowLayoutPanel3->Controls->Add(this->button3);
3239
			this->flowLayoutPanel3->Controls->Add(this->button5);
3240
			this->flowLayoutPanel3->Dock = System::Windows::Forms::DockStyle::Top;
3241
			this->flowLayoutPanel3->Location = System::Drawing::Point(3, 3);
3242
			this->flowLayoutPanel3->Name = L"flowLayoutPanel3";
3243
			this->flowLayoutPanel3->Size = System::Drawing::Size(742, 39);
3244
			this->flowLayoutPanel3->TabIndex = 4;
3245
			// 
3246
			// button3
3247
			// 
3248
			this->button3->AutoSize = true;
3249
			this->button3->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
3250
			this->button3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button3.Image")));
3251
			this->button3->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
3252
			this->button3->Location = System::Drawing::Point(3, 3);
3253
			this->button3->Name = L"button3";
3254
			this->button3->Size = System::Drawing::Size(113, 28);
3255
			this->button3->TabIndex = 2;
3256
			this->button3->Text = L"Load Ship Data";
3257
			this->button3->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3258
			this->button3->UseVisualStyleBackColor = true;
3259
			this->button3->Click += gcnew System::EventHandler(this, &PackageForm::button3_Click);
3260
			// 
3261
			// button5
3262
			// 
3263
			this->button5->AutoSize = true;
3264
			this->button5->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
3265
			this->button5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button5.Image")));
3266
			this->button5->Location = System::Drawing::Point(122, 3);
3267
			this->button5->Name = L"button5";
3268
			this->button5->Size = System::Drawing::Size(111, 28);
3269
			this->button5->TabIndex = 3;
3270
			this->button5->Text = L"Customise Ship";
3271
			this->button5->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
3272
			this->button5->UseVisualStyleBackColor = true;
3273
			this->button5->Click += gcnew System::EventHandler(this, &PackageForm::button5_Click);
3274
			// 
3275
			// PageShipComp
3276
			// 
3277
			this->PageShipComp->Controls->Add(this->panel26);
3278
			this->PageShipComp->Controls->Add(this->panel25);
3279
			this->PageShipComp->Location = System::Drawing::Point(4, 22);
3280
			this->PageShipComp->Name = L"PageShipComp";
3281
			this->PageShipComp->Padding = System::Windows::Forms::Padding(3);
3282
			this->PageShipComp->Size = System::Drawing::Size(748, 216);
3283
			this->PageShipComp->TabIndex = 8;
3284
			this->PageShipComp->Text = L"Ship Parts";
3285
			this->PageShipComp->UseVisualStyleBackColor = true;
3286
			// 
3287
			// panel26
3288
			// 
3289
			this->panel26->Controls->Add(this->ListShipPart);
3290
			this->panel26->Dock = System::Windows::Forms::DockStyle::Fill;
3291
			this->panel26->Location = System::Drawing::Point(3, 35);
3292
			this->panel26->Name = L"panel26";
3293
			this->panel26->Padding = System::Windows::Forms::Padding(10);
3294
			this->panel26->Size = System::Drawing::Size(742, 178);
3295
			this->panel26->TabIndex = 4;
3296
			// 
3297
			// ListShipPart
3298
			// 
3299
			this->ListShipPart->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {this->ColumnPart1, this->ColumnPart2, 
3300
				this->ColumnPart3});
3301
			this->ListShipPart->ContextMenuStrip = this->ContextShipPart;
3302
			this->ListShipPart->Dock = System::Windows::Forms::DockStyle::Fill;
3303
			this->ListShipPart->FullRowSelect = true;
3304
			this->ListShipPart->Location = System::Drawing::Point(10, 10);
3305
			this->ListShipPart->Name = L"ListShipPart";
3306
			this->ListShipPart->Size = System::Drawing::Size(722, 158);
3307
			this->ListShipPart->TabIndex = 3;
3308
			this->ListShipPart->UseCompatibleStateImageBehavior = false;
3309
			this->ListShipPart->View = System::Windows::Forms::View::Details;
3310
			this->ListShipPart->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListShipPart_MouseDoubleClick);
3311
			// 
3312
			// ContextShipPart
3313
			// 
3314
			this->ContextShipPart->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->importToolStripMenuItem, 
3315
				this->ContextShipPartAdd, this->ContextShipPartSep1, this->ContextShipPartRemove, this->ContextShipPartEdit, this->ContextShipPartSep2, 
3316
				this->ContextShipPartClear});
3317
			this->ContextShipPart->Name = L"ContextShipPart";
3318
			this->ContextShipPart->Size = System::Drawing::Size(181, 206);
3319
			this->ContextShipPart->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextShipPart_Opening);
3320
			// 
3321
			// importToolStripMenuItem
3322
			// 
3323
			this->importToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"importToolStripMenuItem.Image")));
3324
			this->importToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
3325
			this->importToolStripMenuItem->Name = L"importToolStripMenuItem";
3326
			this->importToolStripMenuItem->Size = System::Drawing::Size(180, 38);
3327
			this->importToolStripMenuItem->Text = L"Import";
3328
			this->importToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::importToolStripMenuItem_Click);
3329
			// 
3330
			// ContextShipPartAdd
3331
			// 
3332
			this->ContextShipPartAdd->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipPartAdd.Image")));
3333
			this->ContextShipPartAdd->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
3334
			this->ContextShipPartAdd->Name = L"ContextShipPartAdd";
3335
			this->ContextShipPartAdd->Size = System::Drawing::Size(180, 38);
3336
			this->ContextShipPartAdd->Text = L"Add";
3337
			this->ContextShipPartAdd->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartAdd_Click);
3338
			// 
3339
			// ContextShipPartSep1
3340
			// 
3341
			this->ContextShipPartSep1->Name = L"ContextShipPartSep1";
3342
			this->ContextShipPartSep1->Size = System::Drawing::Size(177, 6);
3343
			// 
3344
			// ContextShipPartRemove
3345
			// 
3346
			this->ContextShipPartRemove->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipPartRemove.Image")));
3347
			this->ContextShipPartRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
3348
			this->ContextShipPartRemove->Name = L"ContextShipPartRemove";
3349
			this->ContextShipPartRemove->Size = System::Drawing::Size(180, 38);
3350
			this->ContextShipPartRemove->Text = L"Remove Selected";
3351
			this->ContextShipPartRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartRemove_Click);
3352
			// 
3353
			// ContextShipPartEdit
3354
			// 
3355
			this->ContextShipPartEdit->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipPartEdit.Image")));
3356
			this->ContextShipPartEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
3357
			this->ContextShipPartEdit->Name = L"ContextShipPartEdit";
3358
			this->ContextShipPartEdit->Size = System::Drawing::Size(180, 38);
3359
			this->ContextShipPartEdit->Text = L"Edit Selected";
3360
			this->ContextShipPartEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartEdit_Click);
3361
			// 
3362
			// ContextShipPartSep2
3363
			// 
3364
			this->ContextShipPartSep2->Name = L"ContextShipPartSep2";
3365
			this->ContextShipPartSep2->Size = System::Drawing::Size(177, 6);
3366
			// 
3367
			// ContextShipPartClear
3368
			// 
3369
			this->ContextShipPartClear->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextShipPartClear.Image")));
3370
			this->ContextShipPartClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
3371
			this->ContextShipPartClear->Name = L"ContextShipPartClear";
3372
			this->ContextShipPartClear->Size = System::Drawing::Size(180, 38);
3373
			this->ContextShipPartClear->Text = L"Clear All";
3374
			this->ContextShipPartClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartClear_Click);
3375
			// 
3376
			// panel25
3377
			// 
3378
			this->panel25->Controls->Add(this->ComboShipPart);
3379
			this->panel25->Controls->Add(this->label18);
3380
			this->panel25->Dock = System::Windows::Forms::DockStyle::Top;
3381
			this->panel25->Location = System::Drawing::Point(3, 3);
3382
			this->panel25->Name = L"panel25";
3383
			this->panel25->Padding = System::Windows::Forms::Padding(5);
3384
			this->panel25->Size = System::Drawing::Size(742, 32);
3385
			this->panel25->TabIndex = 2;
3386
			// 
3387
			// ComboShipPart
3388
			// 
3389
			this->ComboShipPart->Dock = System::Windows::Forms::DockStyle::Fill;
3390
			this->ComboShipPart->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
3391
			this->ComboShipPart->FormattingEnabled = true;
3392
			this->ComboShipPart->Items->AddRange(gcnew cli::array< System::Object^  >(6) {L"Componants", L"Dummies", L"Cockpits", L"CutData", 
3393
				L"Bodies", L"Animations"});
3394
			this->ComboShipPart->Location = System::Drawing::Point(105, 5);
3395
			this->ComboShipPart->Name = L"ComboShipPart";
3396
			this->ComboShipPart->Size = System::Drawing::Size(632, 21);
3397
			this->ComboShipPart->TabIndex = 0;
3398
			this->ComboShipPart->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboShipPart_SelectedIndexChanged);
3399
			// 
3400
			// label18
3401
			// 
3402
			this->label18->Dock = System::Windows::Forms::DockStyle::Left;
3403
			this->label18->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3404
				static_cast<System::Byte>(0)));
3405
			this->label18->Location = System::Drawing::Point(5, 5);
3406
			this->label18->Name = L"label18";
3407
			this->label18->Size = System::Drawing::Size(100, 22);
3408
			this->label18->TabIndex = 1;
3409
			this->label18->Text = L"Part Type";
3410
			this->label18->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3411
			// 
3412
			// CheckShipID
3413
			// 
3414
			this->CheckShipID->AutoSize = true;
3415
			this->CheckShipID->Dock = System::Windows::Forms::DockStyle::Left;
3416
			this->CheckShipID->Location = System::Drawing::Point(157, 0);
3417
			this->CheckShipID->Name = L"CheckShipID";
3418
			this->CheckShipID->Size = System::Drawing::Size(129, 20);
3419
			this->CheckShipID->TabIndex = 2;
3420
			this->CheckShipID->Text = L"Replace Existing Ship";
3421
			this->CheckShipID->UseVisualStyleBackColor = true;
3422
			this->CheckShipID->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckShipID_CheckedChanged);
3423
			// 
3424
			// panel1
3425
			// 
3426
			this->panel1->Controls->Add(this->TextName);
3427
			this->panel1->Controls->Add(this->label1);
3428
			this->panel1->Dock = System::Windows::Forms::DockStyle::Top;
3429
			this->panel1->Location = System::Drawing::Point(5, 36);
3430
			this->panel1->Name = L"panel1";
3431
			this->panel1->Size = System::Drawing::Size(756, 17);
3432
			this->panel1->TabIndex = 2;
3433
			// 
3434
			// TextName
3435
			// 
3436
			this->TextName->Dock = System::Windows::Forms::DockStyle::Fill;
3437
			this->TextName->Location = System::Drawing::Point(157, 0);
3438
			this->TextName->Name = L"TextName";
3439
			this->TextName->Size = System::Drawing::Size(599, 20);
3440
			this->TextName->TabIndex = 1;
3441
			this->TextName->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextName_TextChanged);
3442
			// 
3443
			// label1
3444
			// 
3445
			this->label1->Dock = System::Windows::Forms::DockStyle::Left;
3446
			this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3447
				static_cast<System::Byte>(0)));
3448
			this->label1->Location = System::Drawing::Point(0, 0);
3449
			this->label1->Name = L"label1";
3450
			this->label1->Size = System::Drawing::Size(157, 17);
3451
			this->label1->TabIndex = 0;
3452
			this->label1->Text = L"Package Name";
3453
			this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3454
			// 
3455
			// panel2
3456
			// 
3457
			this->panel2->Controls->Add(this->TextAuthor);
3458
			this->panel2->Controls->Add(this->label2);
3459
			this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
3460
			this->panel2->Location = System::Drawing::Point(5, 53);
3461
			this->panel2->Name = L"panel2";
3462
			this->panel2->Size = System::Drawing::Size(756, 20);
3463
			this->panel2->TabIndex = 3;
3464
			// 
3465
			// TextAuthor
3466
			// 
3467
			this->TextAuthor->Dock = System::Windows::Forms::DockStyle::Fill;
3468
			this->TextAuthor->Location = System::Drawing::Point(157, 0);
3469
			this->TextAuthor->Name = L"TextAuthor";
3470
			this->TextAuthor->Size = System::Drawing::Size(599, 20);
3471
			this->TextAuthor->TabIndex = 1;
3472
			this->TextAuthor->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextAuthor_TextChanged);
3473
			// 
3474
			// label2
3475
			// 
3476
			this->label2->Dock = System::Windows::Forms::DockStyle::Left;
3477
			this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3478
				static_cast<System::Byte>(0)));
3479
			this->label2->Location = System::Drawing::Point(0, 0);
3480
			this->label2->Name = L"label2";
3481
			this->label2->Size = System::Drawing::Size(157, 20);
3482
			this->label2->TabIndex = 0;
3483
			this->label2->Text = L"Author";
3484
			this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3485
			// 
3486
			// panel3
3487
			// 
3488
			this->panel3->Controls->Add(this->TextVersion);
3489
			this->panel3->Controls->Add(this->label3);
3490
			this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
3491
			this->panel3->Location = System::Drawing::Point(5, 73);
3492
			this->panel3->Name = L"panel3";
3493
			this->panel3->Size = System::Drawing::Size(756, 20);
3494
			this->panel3->TabIndex = 4;
3495
			// 
3496
			// TextVersion
3497
			// 
3498
			this->TextVersion->Dock = System::Windows::Forms::DockStyle::Fill;
3499
			this->TextVersion->Location = System::Drawing::Point(157, 0);
3500
			this->TextVersion->Name = L"TextVersion";
3501
			this->TextVersion->Size = System::Drawing::Size(599, 20);
3502
			this->TextVersion->TabIndex = 1;
3503
			this->TextVersion->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextVersion_TextChanged);
3504
			// 
3505
			// label3
3506
			// 
3507
			this->label3->Dock = System::Windows::Forms::DockStyle::Left;
3508
			this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3509
				static_cast<System::Byte>(0)));
3510
			this->label3->Location = System::Drawing::Point(0, 0);
3511
			this->label3->Name = L"label3";
3512
			this->label3->Size = System::Drawing::Size(157, 20);
3513
			this->label3->TabIndex = 0;
3514
			this->label3->Text = L"Version";
3515
			this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3516
			// 
3517
			// panel4
3518
			// 
3519
			this->panel4->Controls->Add(this->CreationDate);
3520
			this->panel4->Controls->Add(this->label4);
3521
			this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
3522
			this->panel4->Location = System::Drawing::Point(5, 93);
3523
			this->panel4->Name = L"panel4";
3524
			this->panel4->Size = System::Drawing::Size(756, 20);
3525
			this->panel4->TabIndex = 5;
3526
			// 
3527
			// CreationDate
3528
			// 
3529
			this->CreationDate->Checked = false;
3530
			this->CreationDate->Dock = System::Windows::Forms::DockStyle::Fill;
3531
			this->CreationDate->Location = System::Drawing::Point(157, 0);
3532
			this->CreationDate->Name = L"CreationDate";
3533
			this->CreationDate->RightToLeft = System::Windows::Forms::RightToLeft::No;
3534
			this->CreationDate->Size = System::Drawing::Size(599, 20);
3535
			this->CreationDate->TabIndex = 2;
3536
			this->CreationDate->Value = System::DateTime(2009, 12, 8, 19, 52, 0, 0);
3537
			this->CreationDate->ValueChanged += gcnew System::EventHandler(this, &PackageForm::CreationDate_ValueChanged);
3538
			// 
3539
			// label4
3540
			// 
3541
			this->label4->Dock = System::Windows::Forms::DockStyle::Left;
3542
			this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3543
				static_cast<System::Byte>(0)));
3544
			this->label4->Location = System::Drawing::Point(0, 0);
3545
			this->label4->Name = L"label4";
3546
			this->label4->Size = System::Drawing::Size(157, 20);
3547
			this->label4->TabIndex = 0;
3548
			this->label4->Text = L"Creation Date";
3549
			this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3550
			// 
3551
			// label6
3552
			// 
3553
			this->label6->Dock = System::Windows::Forms::DockStyle::Left;
3554
			this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
3555
				static_cast<System::Byte>(0)));
3556
			this->label6->Location = System::Drawing::Point(0, 0);
3557
			this->label6->Name = L"label6";
3558
			this->label6->Size = System::Drawing::Size(157, 20);
3559
			this->label6->TabIndex = 1;
3560
			this->label6->Text = L"Ship ID";
3561
			this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
3562
			// 
3563
			// PanelShip
3564
			// 
3565
			this->PanelShip->Controls->Add(this->TextShipID);
3566
			this->PanelShip->Controls->Add(this->CheckShipID);
3567
			this->PanelShip->Controls->Add(this->label6);
3568
			this->PanelShip->Dock = System::Windows::Forms::DockStyle::Top;
3569
			this->PanelShip->Location = System::Drawing::Point(5, 113);
3570
			this->PanelShip->Name = L"PanelShip";
3571
			this->PanelShip->Size = System::Drawing::Size(756, 20);
3572
			this->PanelShip->TabIndex = 6;
3573
			// 
3574
			// TextShipID
3575
			// 
3576
			this->TextShipID->Dock = System::Windows::Forms::DockStyle::Fill;
3577
			this->TextShipID->Location = System::Drawing::Point(286, 0);
3578
			this->TextShipID->Name = L"TextShipID";
3579
			this->TextShipID->Size = System::Drawing::Size(470, 20);
3580
			this->TextShipID->TabIndex = 2;
3581
			this->TextShipID->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextShipID_TextChanged);
3582
			// 
3583
			// toolStrip1
3584
			// 
3585
			this->toolStrip1->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
3586
			this->toolStrip1->ImageScalingSize = System::Drawing::Size(24, 24);
3587
			this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(8) {this->toolStripButton2, 
3588
				this->toolStripButton3, this->toolStripButton5, this->toolStripSeparator3, this->toolStripButton1, this->toolStripButton4, this->toolStripSeparator4, 
3589
				this->ToolCustomise});
3590
			this->toolStrip1->Location = System::Drawing::Point(5, 5);
3591
			this->toolStrip1->Name = L"toolStrip1";
3592
			this->toolStrip1->Size = System::Drawing::Size(756, 31);
3593
			this->toolStrip1->Stretch = true;
3594
			this->toolStrip1->TabIndex = 7;
3595
			this->toolStrip1->Text = L"toolStrip1";
3596
			// 
3597
			// toolStripButton2
3598
			// 
3599
			this->toolStripButton2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton2.Image")));
3600
			this->toolStripButton2->ImageTransparentColor = System::Drawing::Color::Magenta;
3601
			this->toolStripButton2->Name = L"toolStripButton2";
3602
			this->toolStripButton2->Size = System::Drawing::Size(59, 28);
3603
			this->toolStripButton2->Text = L"Save";
3604
			this->toolStripButton2->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton2_Click);
3605
			// 
3606
			// toolStripButton3
3607
			// 
3608
			this->toolStripButton3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton3.Image")));
3609
			this->toolStripButton3->ImageTransparentColor = System::Drawing::Color::Magenta;
3610
			this->toolStripButton3->Name = L"toolStripButton3";
3611
			this->toolStripButton3->Size = System::Drawing::Size(75, 28);
3612
			this->toolStripButton3->Text = L"Save As";
3613
			this->toolStripButton3->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton3_Click);
3614
			// 
3615
			// toolStripButton5
3616
			// 
3617
			this->toolStripButton5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton5.Image")));
3618
			this->toolStripButton5->ImageTransparentColor = System::Drawing::Color::Magenta;
3619
			this->toolStripButton5->Name = L"toolStripButton5";
3620
			this->toolStripButton5->Size = System::Drawing::Size(68, 28);
3621
			this->toolStripButton5->Text = L"Export";
3622
			this->toolStripButton5->ToolTipText = L"Exports the package to an archive";
3623
			this->toolStripButton5->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton5_Click);
3624
			// 
3625
			// toolStripSeparator3
3626
			// 
3627
			this->toolStripSeparator3->Name = L"toolStripSeparator3";
3628
			this->toolStripSeparator3->Size = System::Drawing::Size(6, 31);
3629
			// 
3630
			// toolStripButton1
3631
			// 
3632
			this->toolStripButton1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
3633
			this->toolStripButton1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton1.Image")));
3634
			this->toolStripButton1->ImageTransparentColor = System::Drawing::Color::Magenta;
3635
			this->toolStripButton1->Name = L"toolStripButton1";
3636
			this->toolStripButton1->Size = System::Drawing::Size(28, 28);
3637
			this->toolStripButton1->Text = L"Generate Script";
3638
			this->toolStripButton1->ToolTipText = L"Generate packager script";
3639
			this->toolStripButton1->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton1_Click);
3640
			// 
3641
			// toolStripButton4
3642
			// 
3643
			this->toolStripButton4->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
3644
			this->toolStripButton4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton4.Image")));
3645
			this->toolStripButton4->ImageTransparentColor = System::Drawing::Color::Magenta;
3646
			this->toolStripButton4->Name = L"toolStripButton4";
3647
			this->toolStripButton4->Size = System::Drawing::Size(28, 28);
3648
			this->toolStripButton4->Text = L"toolStripButton4";
3649
			this->toolStripButton4->ToolTipText = L"Generate package update file to allow auto updates";
3650
			this->toolStripButton4->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton4_Click);
3651
			// 
3652
			// toolStripSeparator4
3653
			// 
3654
			this->toolStripSeparator4->Name = L"toolStripSeparator4";
3655
			this->toolStripSeparator4->Size = System::Drawing::Size(6, 31);
3656
			// 
3657
			// ToolCustomise
3658
			// 
3659
			this->ToolCustomise->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
3660
			this->ToolCustomise->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ToolCustomise.Image")));
3661
			this->ToolCustomise->ImageTransparentColor = System::Drawing::Color::Magenta;
3662
			this->ToolCustomise->Name = L"ToolCustomise";
3663
			this->ToolCustomise->Size = System::Drawing::Size(28, 28);
3664
			this->ToolCustomise->Text = L"toolStripButton5";
3665
			this->ToolCustomise->ToolTipText = L"Customise Ship, allows you to edit the ships data to adjust its stats";
3666
			this->ToolCustomise->Click += gcnew System::EventHandler(this, &PackageForm::ToolCustomise_Click);
3667
			// 
3668
			// toolTip1
3669
			// 
3670
			this->toolTip1->AutoPopDelay = 20000;
3671
			this->toolTip1->InitialDelay = 2000;
3672
			this->toolTip1->IsBalloon = true;
3673
			this->toolTip1->ReshowDelay = 200;
3674
			this->toolTip1->ShowAlways = true;
3675
			this->toolTip1->ToolTipIcon = System::Windows::Forms::ToolTipIcon::Info;
3676
			this->toolTip1->ToolTipTitle = L"Mod Patch";
3677
			this->toolTip1->Popup += gcnew System::Windows::Forms::PopupEventHandler(this, &PackageForm::toolTip1_Popup);
3678
			// 
3679
			// toolTip2
3680
			// 
3681
			this->toolTip2->AutoPopDelay = 20000;
3682
			this->toolTip2->InitialDelay = 2000;
3683
			this->toolTip2->IsBalloon = true;
3684
			this->toolTip2->ReshowDelay = 200;
3685
			this->toolTip2->ShowAlways = true;
3686
			this->toolTip2->ToolTipIcon = System::Windows::Forms::ToolTipIcon::Info;
3687
			this->toolTip2->ToolTipTitle = L"Mod Patch";
3688
			this->toolTip2->Popup += gcnew System::Windows::Forms::PopupEventHandler(this, &PackageForm::toolTip2_Popup);
3689
			// 
3690
			// PackageForm
3691
			// 
3692
			this->AllowDrop = true;
3693
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
3694
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
3695
			this->ClientSize = System::Drawing::Size(766, 710);
3696
			this->Controls->Add(this->groupBox1);
3697
			this->Controls->Add(this->tabControl1);
3698
			this->Controls->Add(this->PanelShip);
3699
			this->Controls->Add(this->panel4);
3700
			this->Controls->Add(this->panel3);
3701
			this->Controls->Add(this->panel2);
3702
			this->Controls->Add(this->panel1);
3703
			this->Controls->Add(this->toolStrip1);
3704
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
3705
			this->Name = L"PackageForm";
3706
			this->Padding = System::Windows::Forms::Padding(5);
3707
			this->ShowIcon = false;
3708
			this->ShowInTaskbar = false;
3709
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
3710
			this->Text = L"Package";
3711
			this->Load += gcnew System::EventHandler(this, &PackageForm::PackageForm_Load);
3712
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange5))->EndInit();
3713
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange1))->EndInit();
3714
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec5))->EndInit();
3715
			this->groupBox1->ResumeLayout(false);
3716
			this->ContextFiles->ResumeLayout(false);
3717
			this->panel6->ResumeLayout(false);
3718
			this->panel5->ResumeLayout(false);
3719
			this->tabControl1->ResumeLayout(false);
3720
			this->tabPage1->ResumeLayout(false);
3721
			this->groupBox2->ResumeLayout(false);
3722
			this->panel13->ResumeLayout(false);
3723
			this->panel12->ResumeLayout(false);
3724
			this->panel11->ResumeLayout(false);
3725
			this->tabPage5->ResumeLayout(false);
3726
			this->groupBox8->ResumeLayout(false);
3727
			this->panel10->ResumeLayout(false);
3728
			this->panel21->ResumeLayout(false);
3729
			this->panel21->PerformLayout();
3730
			this->ContextGames->ResumeLayout(false);
3731
			this->PagePackage->ResumeLayout(false);
3732
			this->groupBox3->ResumeLayout(false);
3733
			this->groupBox3->PerformLayout();
3734
			this->panel22->ResumeLayout(false);
3735
			this->panel7->ResumeLayout(false);
3736
			this->panel8->ResumeLayout(false);
3737
			this->flowLayoutPanel1->ResumeLayout(false);
3738
			this->flowLayoutPanel1->PerformLayout();
3739
			this->panel9->ResumeLayout(false);
3740
			this->panel9->PerformLayout();
3741
			this->tabPage3->ResumeLayout(false);
3742
			this->groupBox7->ResumeLayout(false);
3743
			this->panel19->ResumeLayout(false);
3744
			this->panel20->ResumeLayout(false);
3745
			this->panel18->ResumeLayout(false);
3746
			this->panel18->PerformLayout();
3747
			this->groupBox6->ResumeLayout(false);
3748
			this->panel17->ResumeLayout(false);
3749
			this->GroupChange->ResumeLayout(false);
3750
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange4))->EndInit();
3751
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange3))->EndInit();
3752
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange2))->EndInit();
3753
			this->GroupRec->ResumeLayout(false);
3754
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec4))->EndInit();
3755
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec3))->EndInit();
3756
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec2))->EndInit();
3757
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec1))->EndInit();
3758
			this->GroupEase->ResumeLayout(false);
3759
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase5))->EndInit();
3760
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase4))->EndInit();
3761
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase3))->EndInit();
3762
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase2))->EndInit();
3763
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase1))->EndInit();
3764
			this->groupBox5->ResumeLayout(false);
3765
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DisplayIcon))->EndInit();
3766
			this->panel15->ResumeLayout(false);
3767
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DisplayPicture))->EndInit();
3768
			this->panel16->ResumeLayout(false);
3769
			this->tabPage2->ResumeLayout(false);
3770
			this->ContextLangName->ResumeLayout(false);
3771
			this->groupBox4->ResumeLayout(false);
3772
			this->ContextMirror->ResumeLayout(false);
3773
			this->panel14->ResumeLayout(false);
3774
			this->tabPage4->ResumeLayout(false);
3775
			this->ContextDep->ResumeLayout(false);
3776
			this->PageWares->ResumeLayout(false);
3777
			this->splitContainer1->Panel1->ResumeLayout(false);
3778
			this->splitContainer1->Panel2->ResumeLayout(false);
3779
			this->splitContainer1->ResumeLayout(false);
3780
			this->ContextWare->ResumeLayout(false);
3781
			this->ContextWareText->ResumeLayout(false);
3782
			this->PageShip->ResumeLayout(false);
3783
			this->PageShip->PerformLayout();
3784
			this->ContextShipText->ResumeLayout(false);
3785
			this->PanelTextID->ResumeLayout(false);
3786
			this->PanelTextID->PerformLayout();
3787
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextID))->EndInit();
3788
			this->flowLayoutPanel2->ResumeLayout(false);
3789
			this->PageRaw->ResumeLayout(false);
3790
			this->panel23->ResumeLayout(false);
3791
			this->panel24->ResumeLayout(false);
3792
			this->panel24->PerformLayout();
3793
			this->flowLayoutPanel3->ResumeLayout(false);
3794
			this->flowLayoutPanel3->PerformLayout();
3795
			this->PageShipComp->ResumeLayout(false);
3796
			this->panel26->ResumeLayout(false);
3797
			this->ContextShipPart->ResumeLayout(false);
3798
			this->panel25->ResumeLayout(false);
3799
			this->panel1->ResumeLayout(false);
3800
			this->panel1->PerformLayout();
3801
			this->panel2->ResumeLayout(false);
3802
			this->panel2->PerformLayout();
3803
			this->panel3->ResumeLayout(false);
3804
			this->panel3->PerformLayout();
3805
			this->panel4->ResumeLayout(false);
3806
			this->PanelShip->ResumeLayout(false);
3807
			this->PanelShip->PerformLayout();
3808
			this->toolStrip1->ResumeLayout(false);
3809
			this->toolStrip1->PerformLayout();
3810
			this->ResumeLayout(false);
3811
			this->PerformLayout();
3812
 
3813
		}
3814
#pragma endregion
3815
private: System::Void PackageForm::PackageForm_Closing(System::Object^  sender, CancelEventArgs^  e);
3816
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
3817
			 this->AddNewFile();
3818
		 }
3819
private: System::Void ComboFileType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
3820
			 if ( !m_pPackage )
3821
				 return;
3822
 
3823
			 this->UpdateFileList();
3824
		 }
3825
private: System::Void TextName_TextChanged(System::Object^  sender, System::EventArgs^  e) {
3826
			 if ( !m_bLoading )
3827
				m_pPackage->SetName(CyStringFromSystemString(this->TextName->Text));
3828
			 this->UpdateChanged();
3829
		 }
3830
private: System::Void TextAuthor_TextChanged(System::Object^  sender, System::EventArgs^  e) {
3831
			 if ( !m_bLoading )
3832
				 m_pPackage->SetAuthor(CyStringFromSystemString(this->TextAuthor->Text));
3833
			 this->UpdateChanged();
3834
		 }
3835
private: System::Void TextVersion_TextChanged(System::Object^  sender, System::EventArgs^  e) {
3836
			 if ( !m_bLoading )
3837
				 m_pPackage->SetVersion(CyStringFromSystemString(this->TextVersion->Text));
3838
			 this->UpdateChanged();
3839
		 }
3840
private: System::Void CreationDate_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
3841
			 if ( !m_bLoading )
3842
			 {
3843
				 System::DateTime ^time = DateTime(this->CreationDate->Value);
3844
 
3845
				 String ^t = System::Convert::ToString(time->Day) + "/" + System::Convert::ToString(time->Month) + "/" + System::Convert::ToString(time->Year);
3846
				 m_pPackage->SetCreationDate(CyStringFromSystemString(t));
3847
			 }
3848
			 this->UpdateChanged();
3849
		 }
3850
 
3851
private: System::Void SortList(System::Object ^Sender, ColumnClickEventArgs ^E)
3852
	{
3853
		if ( E->Column == m_iSortingCol )
3854
		{
3855
			m_bSortingAsc = !m_bSortingAsc;
3856
			this->ListFiles->ListViewItemSorter = gcnew ListViewItemComparer(E->Column, !m_bSortingAsc);
3857
		}
3858
		else
3859
		{
3860
			m_bSortingAsc = true;
3861
			this->ListFiles->ListViewItemSorter = gcnew ListViewItemComparer(E->Column, !m_bSortingAsc);
3862
		}
3863
		this->ListFiles->Sort();
3864
		m_iSortingCol = E->Column;
3865
 
3866
	}
3867
 
3868
private: System::Void ButRemoveFile_Click(System::Object^  sender, System::EventArgs^  e) {
3869
			 this->RemoveSelectedFiles();
3870
		}
3871
private: System::Void Event_FileChecked(System::Object^  sender, ItemCheckedEventArgs^  e) {
3872
			int id = CyStringFromSystemString(cli::safe_cast<System::String ^>(e->Item->Tag)).ToInt();
3873
			C_File *file = m_pPackage->GetFileList()->Get(id);
3874
			if ( file->IsShared() != e->Item->Checked )
3875
			{
3876
				file->SetShared(e->Item->Checked);
3877
				m_pPackage->SetChanged(true);
3878
				this->UpdateChanged();
3879
			}
3880
		}
3881
private: System::Void ListFiles_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
3882
			if ( ListFiles->SelectedItems->Count )
3883
			{
3884
				this->ButRemoveFile->Enabled = true;
3885
 
3886
				for ( int i = 0; i < ListFiles->SelectedItems->Count; i++ )
3887
				{
3888
					int id = CyStringFromSystemString(cli::safe_cast<System::String ^>(this->ListFiles->SelectedItems[i]->Tag)).ToInt();
3889
					C_File *file = m_pPackage->GetFileList()->Get(id);
3890
					if ( file->IsShared() != this->ListFiles->SelectedItems[i]->Checked )
3891
					{
3892
						file->SetShared(this->ListFiles->SelectedItems[i]->Checked);
3893
						m_pPackage->SetChanged(true);
3894
					}
3895
				}
3896
 
3897
				this->UpdateChanged();
3898
			}
3899
			else
3900
			{
3901
				this->ButRemoveFile->Enabled = false;
3902
			}
3903
		}
3904
private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
3905
			 m_pPackage->RemoveAllFiles(this->ComboFileType->SelectedIndex - 1, this->ComboGameFilter->SelectedIndex - 1);
3906
			 m_pDisplayFile = NULL;
3907
			 this->UpdateDisplayPic();
3908
			 this->ComboFileType->SelectedIndex = 0;
3909
			 this->ComboGameFilter->SelectedIndex = 0;
3910
			 this->UpdateFileList();
3911
			 this->UpdateChanged();
3912
		 }
3913
private: System::Void RadioTypeScript_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
3914
			 if ( RadioTypeScript->Checked )
3915
			 {
3916
				 this->RadioTypeUpdate->Checked = false;
3917
				 this->RadioTypePatch->Checked = false;
3918
				 this->RadioTypeLibrary->Checked = false;
3919
				 this->RadioTypePatch->Checked = false;
3920
				 this->ComboType->Enabled = true;
3921
				 if ( !m_bLoading )
3922
				 {
3923
					 ((CSpkFile *)m_pPackage)->SetScriptType(this->ComboType->SelectedIndex);
3924
					 this->UpdateDependacies();
3925
				 }
3926
				 this->UpdateChanged();
3927
			 }
3928
			 else
3929
				 this->ComboType->Enabled = false;
3930
			 this->UpdateDisplayIcon();
3931
		 }
3932
private: System::Void RadioTypeLibrary_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
3933
			 if ( this->RadioTypeLibrary->Checked )
3934
			 {
3935
				 this->RadioTypeScript->Checked = false;
3936
				 if ( !m_bLoading )
3937
				 {
3938
					 ((CSpkFile *)m_pPackage)->SetLibrary();
3939
					 this->UpdateDependacies();
3940
				 }
3941
				 this->UpdateChanged();
3942
				 this->UpdateDisplayIcon();
3943
			 }
3944
		 }
3945
private: System::Void RadioTypeUpdate_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
3946
			 if ( this->RadioTypeUpdate->Checked )
3947
			 {
3948
				 this->RadioTypeScript->Checked = false;
3949
 				 if ( !m_bLoading )
3950
				 {
3951
					((CSpkFile *)m_pPackage)->SetPackageUpdate();
3952
					this->UpdateDependacies();
3953
				 }
3954
				 this->UpdateChanged();
3955
				 this->UpdateDisplayIcon();
3956
			 }
3957
		 }
3958
private: System::Void RadioTypePatch_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
3959
			 if ( this->RadioTypePatch->Checked )
3960
			 {
3961
				 this->RadioTypeScript->Checked = false;
3962
				 if ( !m_bLoading )
3963
				 {
3964
					 ((CSpkFile *)m_pPackage)->SetPatch();
3965
					 this->UpdateDependacies();
3966
				 }
3967
				 this->UpdateChanged();
3968
				 this->UpdateDisplayIcon();
3969
			 }
3970
		 }
3971
private: System::Void RadioTypeStart_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
3972
			 if ( this->RadioTypeStart->Checked )
3973
			 {
3974
				 this->RadioTypeScript->Checked = false;
3975
				 {
3976
					((CSpkFile *)m_pPackage)->SetCustomStart();
3977
					 this->UpdateDependacies();
3978
				 }
3979
				 this->UpdateChanged();
3980
				 this->UpdateDisplayIcon();
3981
			 }
3982
		 }
3983
private: System::Void ComboType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
3984
			 if ( !m_bLoading )
3985
			 {
3986
				 ((CSpkFile *)m_pPackage)->SetScriptType(this->ComboType->SelectedIndex);
3987
				 this->UpdateDependacies();
3988
			 }
3989
			 this->UpdateScriptType();
3990
			 this->UpdateChanged();
3991
		 }
3992
private: System::Void TextDesc_TextChanged(System::Object^  sender, System::EventArgs^  e) {
3993
			if ( !m_bLoading )
3994
				m_pPackage->SetDescription(CyStringFromSystemString(this->TextDesc->Text).FindReplace("\n", "<br>"));
3995
			this->UpdateChanged();
3996
		 }
3997
private: System::Void ComboVersion_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
3998
			 if ( this->ComboVersion->SelectedIndex >= this->ComboVersion->Items->Count - 1 )
3999
			 {
4000
				 this->TextExactVersion->Visible = true;
4001
				 this->TextExactVersion->Text = "1.00";
4002
			 }
4003
			 else
4004
			 {
4005
				 this->TextExactVersion->Visible = false;
4006
			 }
4007
		 }
4008
private: System::Void TextWebsite_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4009
			 if ( !m_bLoading )
4010
				 m_pPackage->SetWebSite(CyStringFromSystemString(this->TextWebsite->Text));
4011
			 this->UpdateChanged();
4012
		 }
4013
private: System::Void TextEmail_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4014
			 if ( !m_bLoading )
4015
				 m_pPackage->SetEmail(CyStringFromSystemString(this->TextEmail->Text));
4016
			 this->UpdateChanged();
4017
		 }
4018
private: System::Void TextForum_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4019
			 if ( !m_bLoading )
4020
				 m_pPackage->SetForumLink(CyStringFromSystemString(this->TextForum->Text));
4021
			 this->UpdateChanged();
4022
		 }
4023
private: System::Void ButFromFile_Click(System::Object^  sender, System::EventArgs^  e) {
4024
			OpenFileDialog ^ofd = gcnew OpenFileDialog();
4025
			ofd->Filter = "Package Files (*.spk)|*.spk";
4026
			ofd->FilterIndex = 1;
4027
			ofd->RestoreDirectory = true;
4028
			ofd->Title = "Select package to use as parent package";
4029
 
4030
			if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4031
			{
4032
				int error;
4033
				CBaseFile *p = m_pP->OpenPackage(CyStringFromSystemString(ofd->FileName), &error, 0, SPKREAD_VALUES);
4034
				if ( p )
4035
				{
4036
					this->TextOtherAuthor->Text = SystemStringFromCyString(p->GetAuthor());
4037
					this->TextOtherName->Text = SystemStringFromCyString(p->GetName());
10 cycrow 4038
					((CSpkFile *)m_pPackage)->SetAnotherMod(p->GetName().ToString(), p->GetAuthor().ToString());
1 cycrow 4039
					delete p;
4040
					this->UpdateChanged();
4041
				}
4042
			}
4043
		 }
4044
private: System::Void CheckOther_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4045
			 this->TextOtherAuthor->Enabled = this->CheckOther->Checked;
4046
			 this->TextOtherName->Enabled = this->CheckOther->Checked;
4047
			 this->ButFromFile->Enabled = this->CheckOther->Checked;
4048
 
4049
			 if ( !m_bLoading )
4050
			 {
4051
				 if ( this->CheckOther->Checked )
10 cycrow 4052
					 ((CSpkFile *)m_pPackage)->SetAnotherMod(CyStringFromSystemString(this->TextOtherName->Text).ToString(), CyStringFromSystemString(this->TextOtherAuthor->Text).ToString());
1 cycrow 4053
				 else
4054
					 ((CSpkFile *)m_pPackage)->SetAnotherMod("", "");
4055
			 }
4056
			 this->UpdateChanged();
4057
		 }
4058
private: System::Void TextOtherName_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4059
			if ( !m_bLoading )
10 cycrow 4060
				((CSpkFile *)m_pPackage)->SetAnotherMod(CyStringFromSystemString(this->TextOtherName->Text).ToString(), CyStringFromSystemString(this->TextOtherAuthor->Text).ToString());
1 cycrow 4061
			this->UpdateChanged();
4062
		 }
4063
private: System::Void ContextMirror_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4064
			Point ^mousePoint = this->ListMirrors->PointToClient(this->ContextMirror->MousePosition);
4065
			ListViewItem ^item = this->ListMirrors->GetItemAt(mousePoint->X, mousePoint->Y);
4066
			if ( item )
4067
			{
4068
				this->ContextRemoveMirror->Visible = true;
4069
				this->ContextRemoveMirror->Text = "Remove: " + item->Text;
4070
			}
4071
			else
4072
				this->ContextRemoveMirror->Visible = false;
4073
			m_pSelectedItem = item;
4074
			 e->Cancel = false;
4075
		 }
4076
private: System::Void clearAllToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
4077
			 m_pPackage->ClearWebMirrors();
4078
			 this->UpdateMirrors();
4079
			 this->UpdateChanged();
4080
		 }
4081
private: System::Void addMirrorToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
4082
			 InputBox ^input = gcnew InputBox("Enter the web address to add", "http://");
4083
			if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4084
			{
4085
				m_pPackage->AddWebMirror(CyStringFromSystemString(input->GetInput()));
4086
				this->UpdateChanged();
4087
				this->UpdateMirrors();
4088
			}
4089
		 }
4090
private: System::Void ContextRemoveMirror_Click(System::Object^  sender, System::EventArgs^  e) {
4091
			if ( m_pSelectedItem )
4092
			{
4093
				m_pPackage->RemoveWebMirror(CyStringFromSystemString(m_pSelectedItem->Text));
4094
				this->UpdateMirrors();
4095
				this->UpdateChanged();
4096
			}
4097
		 }
4098
private: System::Void ContextLangName_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4099
			 Point ^mousePoint = this->ListNames->PointToClient(this->ContextLangName->MousePosition);
4100
			ListViewItem ^item = this->ListNames->GetItemAt(mousePoint->X, mousePoint->Y);
4101
			if ( item )
4102
			{
4103
				this->ContextRemoveName->Visible = true;
4104
				this->ContextEditName->Visible = true;
4105
				this->ContextRemoveName->Text = "Remove: " + item->Text;
4106
				this->ContextNameSep->Visible = true;
4107
			}
4108
			else
4109
			{
4110
				this->ContextNameSep->Visible = false;
4111
				this->ContextRemoveName->Visible = false;
4112
				this->ContextEditName->Visible = false;
4113
			}
4114
			m_pSelectedItem = item;
4115
			e->Cancel = false;
4116
		 }
4117
private: System::Void clearAllToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
4118
			 m_pPackage->ClearNames();
4119
			 this->UpdatePackageNames();
4120
			 this->UpdateChanged();
4121
		 }
4122
private: System::Void addToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
4123
			 InputBox ^input = gcnew InputBox("Enter the language id (ie 44)", "");
4124
			if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4125
			{
4126
				InputBox ^input2 = gcnew InputBox("Enter the package name (Language: " + input->GetInput() + ")", "");
4127
				if ( input2->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4128
				{
4129
					m_pPackage->AddLanguageName(Convert::ToInt32(input->GetInput()), CyStringFromSystemString(input2->GetInput()));
4130
					this->UpdateChanged();
4131
					this->UpdatePackageNames();
4132
				}
4133
			}
4134
		 }
4135
private: System::Void ContextRemoveName_Click(System::Object^  sender, System::EventArgs^  e) {
4136
			if ( m_pSelectedItem )
4137
			{
4138
				m_pPackage->RemoveLanguageName(Convert::ToInt32(m_pSelectedItem->Text));
4139
				this->UpdatePackageNames();
4140
				this->UpdateChanged();
4141
			}
4142
		 }
4143
private: System::Void ContextEditName_Click(System::Object^  sender, System::EventArgs^  e) {
4144
			InputBox ^input = gcnew InputBox("Enter the package name (Language: " + m_pSelectedItem->Text + ")", m_pSelectedItem->SubItems[1]->Text);
4145
			if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4146
			{
4147
				m_pPackage->AddLanguageName(Convert::ToInt32(m_pSelectedItem->Text), CyStringFromSystemString(input->GetInput()));
4148
				m_pSelectedItem->SubItems[1]->Text = input->GetInput();
4149
				this->UpdateChanged();
4150
			}
4151
		 }
4152
private: System::Void ButPicAdd_Click(System::Object^  sender, System::EventArgs^  e) {
4153
			 this->AddDisplayPic();
4154
		 }
4155
private: System::Void ButPicDel_Click(System::Object^  sender, System::EventArgs^  e) {
4156
			 if ( m_pDisplayFile )
4157
			 {
4158
				 C_File *oldFile = m_pDisplayFile;
4159
				 m_pDisplayFile = m_pPackage->GetNextFile(m_pDisplayFile);
4160
 
4161
				 m_pPackage->RemoveFile(oldFile);
4162
 
4163
				 if ( !m_pDisplayFile )
4164
					 m_pDisplayFile = m_pPackage->GetFirstFile(FILETYPE_ADVERT);
4165
				 this->UpdateDisplayPic();
4166
				 this->UpdateFileList();
4167
				 this->UpdateChanged();
4168
			 }
4169
		 }
4170
private: System::Void ButPicBack_Click(System::Object^  sender, System::EventArgs^  e) {
4171
			 m_pDisplayFile = m_pPackage->GetPrevFile(m_pDisplayFile);
4172
			 this->UpdateDisplayPic();
4173
		 }
4174
private: System::Void ButPicNext_Click(System::Object^  sender, System::EventArgs^  e) {
4175
			 m_pDisplayFile = m_pPackage->GetNextFile(m_pDisplayFile);
4176
			 this->UpdateDisplayPic();
4177
		 }
4178
private: System::Void ButIconDel_Click(System::Object^  sender, System::EventArgs^  e) {
4179
			 m_pPackage->SetIcon(NULL, NullString);
4180
			 this->UpdateDisplayIcon();
4181
			 this->UpdateChanged();
4182
		 }
4183
private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
4184
			 this->AddDisplayIcon();
4185
		 }
4186
private: System::Void PicEase1_Click(System::Object^  sender, System::EventArgs^  e) {
4187
			 m_pPackage->SetEaseOfUse(1);
4188
			 this->UpdateRatings();
4189
			 this->UpdateChanged();
4190
		 }
4191
private: System::Void PicEase2_Click(System::Object^  sender, System::EventArgs^  e) {
4192
			 m_pPackage->SetEaseOfUse(2);
4193
			 this->UpdateChanged();
4194
			 this->UpdateRatings();
4195
		 }
4196
private: System::Void PicEase3_Click(System::Object^  sender, System::EventArgs^  e) {
4197
			 m_pPackage->SetEaseOfUse(3);
4198
			 this->UpdateChanged();
4199
			 this->UpdateRatings();
4200
		 }
4201
private: System::Void PicEase4_Click(System::Object^  sender, System::EventArgs^  e) {
4202
			 m_pPackage->SetEaseOfUse(4);
4203
			 this->UpdateChanged();
4204
			 this->UpdateRatings();
4205
		 }
4206
private: System::Void PicEase5_Click(System::Object^  sender, System::EventArgs^  e) {
4207
			 m_pPackage->SetEaseOfUse(5);
4208
			 this->UpdateChanged();
4209
			 this->UpdateRatings();
4210
		 }
4211
private: System::Void PicRec1_Click(System::Object^  sender, System::EventArgs^  e) {
4212
			 m_pPackage->SetRecommended(1);
4213
			 this->UpdateChanged();
4214
			 this->UpdateRatings();
4215
		 }
4216
private: System::Void PicRec2_Click(System::Object^  sender, System::EventArgs^  e) {
4217
			 m_pPackage->SetRecommended(2);
4218
			 this->UpdateChanged();
4219
			 this->UpdateRatings();
4220
		 }
4221
private: System::Void PicRec3_Click(System::Object^  sender, System::EventArgs^  e) {
4222
			 m_pPackage->SetRecommended(3);
4223
			 this->UpdateChanged();
4224
			 this->UpdateRatings();
4225
		 }
4226
private: System::Void PicRec4_Click(System::Object^  sender, System::EventArgs^  e) {
4227
			 m_pPackage->SetRecommended(4);
4228
			 this->UpdateChanged();
4229
			 this->UpdateRatings();
4230
		 }
4231
private: System::Void PicRec5_Click(System::Object^  sender, System::EventArgs^  e) {
4232
			 m_pPackage->SetRecommended(5);
4233
			 this->UpdateChanged();
4234
			 this->UpdateRatings();
4235
		 }
4236
private: System::Void PicChange1_Click(System::Object^  sender, System::EventArgs^  e) {
4237
			 m_pPackage->SetGameChanging(1);
4238
			 this->UpdateChanged();
4239
			 this->UpdateRatings();
4240
		 }
4241
private: System::Void PicChange2_Click(System::Object^  sender, System::EventArgs^  e) {
4242
			 m_pPackage->SetGameChanging(2);
4243
			 this->UpdateChanged();
4244
			 this->UpdateRatings();
4245
		 }
4246
private: System::Void PicChange3_Click(System::Object^  sender, System::EventArgs^  e) {
4247
			 m_pPackage->SetGameChanging(3);
4248
			 this->UpdateChanged();
4249
			 this->UpdateRatings();
4250
		 }
4251
private: System::Void PicChange4_Click(System::Object^  sender, System::EventArgs^  e) {
4252
			 m_pPackage->SetGameChanging(4);
4253
			 this->UpdateChanged();
4254
			 this->UpdateRatings();
4255
		 }
4256
private: System::Void PicChange5_Click(System::Object^  sender, System::EventArgs^  e) {
4257
			 m_pPackage->SetGameChanging(5);
4258
			 this->UpdateChanged();
4259
			 this->UpdateRatings();
4260
		 }
4261
private: System::Void RadioInstallBefore_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4262
			 this->UpdateText();
4263
		 }
4264
private: System::Void RadioInstallAfter_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4265
			 this->UpdateText();
4266
		 }
4267
private: System::Void RadioUninstallBefore_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4268
			 this->UpdateText();
4269
		 }
4270
private: System::Void RadioUninstallAfter_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4271
			 this->UpdateText();
4272
		 }
4273
private: System::Void ListLang_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
4274
			 this->UpdateTextLang();
4275
		 }
4276
private: System::Void TextText_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4277
			 if ( Convert::ToInt32(this->TextText->Tag) != 1 )
4278
				this->SaveText();
4279
		 }
4280
private: System::Void ButTextAdd_Click(System::Object^  sender, System::EventArgs^  e) {
4281
			 InputBox ^input = gcnew InputBox("Enter the language id to add (ie 44)", "");
4282
			if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4283
			{
4284
				int lang = System::Convert::ToInt32(input->GetInput());
4285
				if ( lang )
4286
				{
4287
					CyString t;
4288
					if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
4289
						t = m_pPackage->GetInstallBeforeText(lang);
4290
					else
4291
						t = m_pPackage->GetUninstallBeforeText(lang);
4292
 
4293
					if ( t.Empty() )
4294
					{
4295
						if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
4296
							m_pPackage->AddInstallBeforeText(lang, "");
4297
						else
4298
							m_pPackage->AddUninstallBeforeText(lang, "");
4299
					}
4300
 
4301
					this->UpdateText();
4302
 
4303
					this->ListLang->Text = System::Convert::ToString(lang);
4304
 
4305
					this->UpdateTextLang();
4306
					this->UpdateChanged();
4307
				}
4308
			}
4309
		 }
4310
private: System::Void ButTextDel_Click(System::Object^  sender, System::EventArgs^  e) {
4311
			 if ( this->ListLang->SelectedIndex < 1 )
4312
				 return;
4313
			 int lang = System::Convert::ToInt32(this->ListLang->Text);
4314
			 if ( lang )
4315
			 {
4316
				 if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
4317
					m_pPackage->RemoveInstallText(lang);
4318
				 else if ( this->RadioUninstallAfter->Checked || this->RadioUninstallBefore->Checked )
4319
					m_pPackage->RemoveUninstallText(lang);
4320
				 this->UpdateText();
4321
				this->UpdateChanged();
4322
			 }
4323
		 }
4324
private: System::Void ContextWare_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4325
			Point ^mousePoint = this->ListWares->PointToClient(this->ContextWare->MousePosition);
4326
			ListViewItem ^item = this->ListWares->GetItemAt(mousePoint->X, mousePoint->Y);
4327
			if ( item )
4328
			{
4329
				this->ContextWareSep1->Visible = true;
4330
				this->ContextWareRemove->Visible = true;
4331
				this->ContextWareEdit->Visible = true;
4332
				this->ContextWareRemove->Text = "Remove: " + item->Text;
4333
				this->ContextWareEdit->Text = "Edit: " + item->Text;
4334
			}
4335
			else
4336
			{
4337
				this->ContextWareSep1->Visible = false;
4338
				this->ContextWareRemove->Visible = false;
4339
				this->ContextWareEdit->Visible = false;
4340
			}
4341
 
4342
			if ( this->ListWares->Items->Count )
4343
			{
4344
				this->ContextWareSep2->Visible = true;
4345
				this->ContextWareClear->Visible = true;
4346
			}
4347
			else
4348
			{
4349
				this->ContextWareSep2->Visible = false;
4350
				this->ContextWareClear->Visible = false;
4351
			}
4352
 
4353
			m_pSelectedItem = item;
4354
			e->Cancel = false;
4355
		 }
4356
private: System::Void ContextWareClear_Click(System::Object^  sender, System::EventArgs^  e) {
4357
			 ((CSpkFile *)m_pPackage)->ClearWares();
4358
			 this->UpdateWares();
4359
		 }
4360
private: System::Void ContextWareRemove_Click(System::Object^  sender, System::EventArgs^  e) {
4361
			 if ( this->ListWares->SelectedItems->Count )
4362
			 {
4363
				 for ( int i = 0; i < this->ListWares->SelectedItems->Count; i++ )
10 cycrow 4364
					 ((CSpkFile *)m_pPackage)->RemoveWare(CyStringFromSystemString(this->ListWares->SelectedItems[i]->Text).ToString());
1 cycrow 4365
				 this->UpdateWares();
4366
			 }
4367
		 }
4368
private: System::Void addWareToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
4369
			 AddWare ^aw = gcnew AddWare;
4370
			 if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4371
			 {
4372
				 if ( aw->GetID()->Length < 1 )
4373
					 MessageBox::Show(this, "Invalid ware ID, entry cant be empty", "Invalid Entry", MessageBoxButtons::OK, MessageBoxIcon::Warning);
4374
				 else
4375
				 {
4376
					 SWares *w = new SWares;
4377
					 w->iTextID = aw->GetTextID();
4378
					 w->iTextPage = aw->GetTextPage();
4379
					 w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
4380
					 w->iNotority = aw->GetMinNotoriety();
4381
					 w->iPrice = aw->GetPrice();
4382
					 w->iVolumn = aw->GetVolumn();
4383
					 w->iSize = aw->GetSize();
10 cycrow 4384
					 w->sID = CyStringFromSystemString(aw->GetID()).ToString();
1 cycrow 4385
					 ((CSpkFile *)m_pPackage)->AddWare(w);
4386
					 this->UpdateWares();
4387
				 }
4388
			 }
4389
		 }
4390
private: System::Void ContextWareEdit_Click(System::Object^  sender, System::EventArgs^  e) {
10 cycrow 4391
			 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(m_pSelectedItem->Text).ToString());
1 cycrow 4392
			 if ( w )
4393
			 {
4394
				 AddWare ^aw = gcnew AddWare;
4395
				 aw->SetEdit(SystemStringFromCyString(w->sID));
4396
				 aw->SetType(CPackages::ConvertWareType(w->cType));
4397
				 aw->SetSize(w->iSize);
4398
				 aw->SetPrice(w->iPrice);
4399
				 aw->SetMinNotoriety(w->iNotority);
4400
				 aw->SetVolumn(w->iVolumn);
4401
				 if ( w->iTextPage == 0 || w->iTextID <= 0 )
4402
					 aw->SetNoText();
4403
				 else
4404
					 aw->SetTextPage(w->iTextPage, w->iTextID);
4405
				 if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4406
				 {
4407
					 w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
4408
					 w->iNotority = aw->GetMinNotoriety();
4409
					 w->iPrice = aw->GetPrice();
4410
					 w->iVolumn = aw->GetVolumn();
4411
					 w->iSize = aw->GetSize();
4412
					 w->iTextID = aw->GetTextID();
4413
					 w->iTextPage = aw->GetTextPage();
4414
					 this->UpdateWares();
4415
				 }
4416
			 }
4417
		 }
4418
private: System::Void ListWares_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
4419
			 this->UpdateWareText();
4420
		 }
4421
private: System::Void ContextWareText_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4422
			Point ^mousePoint = this->ListWareText->PointToClient(this->ContextWareText->MousePosition);
4423
			ListViewItem ^item = this->ListWareText->GetItemAt(mousePoint->X, mousePoint->Y);
4424
 
4425
			this->ContextWTEdit->Visible = (item) ? true : false;
4426
			this->ContextWTSep1->Visible = (item) ? true : false;
4427
			this->ContextWTRemove->Visible = (item) ? true : false;
4428
 
4429
			if ( this->ListWareText->Items->Count )
4430
			{
4431
				this->ContextWTClear->Visible = true;
4432
				this->ContextWTSep2->Visible = true;
4433
			}
4434
			else
4435
			{
4436
				this->ContextWTClear->Visible = false;
4437
				this->ContextWTSep2->Visible = false;
4438
			}
4439
 
4440
			m_pSelectedItem = item;
4441
			e->Cancel = false;
4442
		 }
4443
private: System::Void ContextWTClear_Click(System::Object^  sender, System::EventArgs^  e) {
4444
			 if ( this->ListWares->SelectedItems->Count )
4445
			 {
10 cycrow 4446
				 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(this->ListWares->SelectedItems[0]->Text).ToString());
1 cycrow 4447
				 if ( w )
4448
				 {
4449
					 w->lText.clear();
4450
					 this->UpdateWareText();
4451
				 }
4452
			 }
4453
		 }
4454
private: System::Void addTextToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
10 cycrow 4455
			 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(this->ListWares->SelectedItems[0]->Text).ToString());
1 cycrow 4456
			 if ( w )
4457
			 {
4458
				 AddWareText ^wt = gcnew AddWareText(SystemStringFromCyString(w->sID));
4459
				 if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4460
				 {
10 cycrow 4461
					 ((CSpkFile *)m_pPackage)->AddWareText(w, wt->GetLang(), CyStringFromSystemString(wt->GetName()).ToString(), CyStringFromSystemString(wt->GetDescription()).ToString());
1 cycrow 4462
					 this->UpdateWareText();
4463
				 }
4464
			 }
4465
		 }
4466
 
4467
private: System::Void ContextWTEdit_Click(System::Object^  sender, System::EventArgs^  e) {
10 cycrow 4468
			 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(this->ListWares->SelectedItems[0]->Text).ToString());
1 cycrow 4469
			 if ( w )
4470
			 {
4471
				 AddWareText ^wt = gcnew AddWareText(SystemStringFromCyString(w->sID));
4472
				 wt->SetEdit(System::Convert::ToInt32(m_pSelectedItem->Text));
4473
				 wt->SetName(m_pSelectedItem->SubItems[1]->Text);
4474
				 wt->SetDesc(m_pSelectedItem->SubItems[2]->Text);
4475
				 if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4476
				 {
10 cycrow 4477
					 ((CSpkFile *)m_pPackage)->AddWareText(w, wt->GetLang(), CyStringFromSystemString(wt->GetName()).ToString(), CyStringFromSystemString(wt->GetDescription()).ToString());
1 cycrow 4478
					 this->UpdateWareText();
4479
				 }
4480
			 }
4481
		 }
4482
private: System::Void ContextWTRemove_Click(System::Object^  sender, System::EventArgs^  e) {
4483
			 if ( this->ListWareText->SelectedItems->Count )
4484
			 {
4485
				 for ( int i = 0; i < this->ListWareText->SelectedItems->Count; i++ )
10 cycrow 4486
					 ((CSpkFile *)m_pPackage)->RemoveWareText(CyStringFromSystemString(this->ListWares->SelectedItems[0]->Text).ToString(), System::Convert::ToInt32(this->ListWareText->SelectedItems[i]->Text));
1 cycrow 4487
				 this->UpdateWareText();
4488
			 }
4489
		 }
4490
private: System::Void ContextFiles_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4491
			Point ^mousePoint = this->ListFiles->PointToClient(this->ContextFiles->MousePosition);
4492
			ListViewItem ^item = this->ListFiles->GetItemAt(mousePoint->X, mousePoint->Y);
4493
 
4494
			this->convertToAutoTextFileToolStripMenuItem->Visible = false;
4495
			this->convertToFakePatchToolStripMenuItem->Visible = false;
4496
			this->convertToNormalModToolStripMenuItem->Visible = false;
4497
			this->packFileToolStripMenuItem->Visible = false;
4498
			this->unpackFileToolStripMenuItem->Visible = false;
4499
			this->ContextFileEdit->Visible = false;
4500
			this->renameFileToolStripMenuItem->Visible = false;
4501
			this->ContextFileSep1->Visible = false;
4502
			if ( item )
4503
			{
4504
				int id = Convert::ToInt32(item->Tag);
4505
				C_File *f = m_pPackage->GetFileList()->Get(id);
4506
				if ( f )
4507
				{
4508
					this->ContextFileSep1->Visible = true;
4509
					this->renameFileToolStripMenuItem->Visible = true;
4510
					this->ContextFileEdit->Visible = C_File::DoesTypeHaveExtraDir(f->GetFileType());
4511
					if ( f->CheckFileExt("xml") || f->CheckFileExt("bob") || f->CheckFileExt("bod") )
4512
						this->packFileToolStripMenuItem->Visible = true;
4513
					else if ( f->CheckFileExt("pck") || f->CheckFileExt("pbb") || f->CheckFileExt("pbd") )
4514
						this->unpackFileToolStripMenuItem->Visible = true;
4515
 
4516
					if ( f->GetFileType() == FILETYPE_MOD )
4517
					{
4518
						if ( f->IsFakePatch() )
4519
							this->convertToNormalModToolStripMenuItem->Visible = true;
4520
						else
4521
							this->convertToFakePatchToolStripMenuItem->Visible = true;
4522
					}
4523
					else if ( f->GetFileType() == FILETYPE_TEXT && !f->IsAutoTextFile() )
4524
						this->convertToAutoTextFileToolStripMenuItem->Visible = true;
4525
				}
4526
			}
4527
			this->ContextFileDelete->Visible = (item) ? true : false;
4528
			this->ContextFileClear->Visible = (this->ListFiles->Items->Count) ? true : false;
4529
			this->ContextFileSep2->Visible = (this->ListFiles->Items->Count) ? true : false;
4530
 
4531
			m_pSelectedItem = item;
4532
 
4533
			e->Cancel = false;
4534
		 }
4535
private: System::Void ButGame_Click(System::Object^  sender, System::EventArgs^  e) {
4536
			 this->ContextGames->Show(this->ButGame, this->ButGame->PointToClient(this->ButGame->MousePosition));
4537
		 }
4538
private: System::Void ContextGame_Selected(System::Object^  sender, System::EventArgs^  e) {
4539
			System::Windows::Forms::ToolStripMenuItem ^item = cli::safe_cast<System::Windows::Forms::ToolStripMenuItem ^>(sender);
4540
 
4541
			this->ButGame->ImageIndex = Convert::ToInt32(item->Tag) - 1;
4542
			this->ButGame->Text = item->Text;
4543
			this->ComboVersion->Enabled = true;
4544
			this->ButGameAdd->Enabled = true;
4545
			this->UpdateGameVersion();
4546
			this->ComboVersion->SelectedIndex = 0;
4547
		 }
4548
private: System::Void SetGame_Selected(System::Object^  sender, System::EventArgs^  e) {
4549
			System::Windows::Forms::ToolStripMenuItem ^item = cli::safe_cast<System::Windows::Forms::ToolStripMenuItem ^>(sender);
4550
 
4551
			int done = 0;
4552
			if ( ListFiles->SelectedItems->Count )
4553
			{
4554
				for ( int i = 0; i < ListFiles->SelectedItems->Count; i++ )
4555
				{
4556
					int id = CyStringFromSystemString(cli::safe_cast<System::String ^>(this->ListFiles->SelectedItems[i]->Tag)).ToInt();
4557
					C_File *file = m_pPackage->GetFileList()->Get(id);
4558
					if ( file ) {
4559
						file->SetGame(Convert::ToInt32(item->Tag));
4560
						++done;
4561
					}
4562
				}
4563
			}
4564
 
4565
			if ( done ) {
4566
				this->UpdateFileList();
4567
				this->UpdateChanged();
4568
			}
4569
		 }
4570
private: System::Void ComboPluginType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
4571
			 if ( m_pPackage->GetType() == TYPE_SPK )
4572
			 {
4573
				 if ( !m_bLoading )
4574
					((CSpkFile *)m_pPackage)->SetPluginType(this->ComboPluginType->SelectedIndex);
4575
				 this->UpdateChanged();
4576
			 }
4577
		 }
4578
private: System::Void CheckExistingText_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4579
			 this->ListShipText->Visible = !this->CheckExistingText->Checked;
4580
			 this->NumTextID->Visible = this->CheckExistingText->Checked;
4581
			 if ( !m_bLoading )
4582
			 {
4583
				 if ( this->CheckExistingText->Checked )
4584
					 ((CXspFile *)m_pPackage)->SetOriginalDescription(Convert::ToInt32(this->NumTextID->Value));
4585
				 else
4586
					 ((CXspFile *)m_pPackage)->SetOriginalDescription(0);
4587
			 }
4588
			 this->UpdateChanged();
4589
		 }
4590
private: System::Void CheckShipID_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4591
			 if ( m_pPackage->GetType() == TYPE_XSP )
4592
			 {
4593
				 if ( !m_bLoading )
4594
					((CXspFile *)m_pPackage)->SetExistingShip(true);
4595
				 this->UpdateChanged();
4596
			 }
4597
 
4598
		 }
4599
private: System::Void NumTextID_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
4600
			 if ( !m_bLoading )
4601
			 {
4602
				 int i = Convert::ToInt32(this->NumTextID->Value);
4603
				 if ( i > 0 )
4604
					((CXspFile *)m_pPackage)->SetOriginalDescription(i);
4605
			 }
4606
			 this->UpdateChanged();
4607
		 }
4608
private: System::Void TextShipID_TextChanged(System::Object^  sender, System::EventArgs^  e) {
4609
			 if ( !m_bLoading )
14 cycrow 4610
				 ((CXspFile *)m_pPackage)->SetShipID(CyStringFromSystemString(this->TextShipID->Text).ToString());
1 cycrow 4611
			 this->UpdateChanged();
4612
		 }
4613
private: System::Void NumTextID_Leave(System::Object^  sender, System::EventArgs^  e) {
4614
			 if ( !m_bLoading )
4615
			 {
4616
				 int i = Convert::ToInt32(this->NumTextID->Value);
4617
				 if ( i > 0 )
4618
					((CXspFile *)m_pPackage)->SetOriginalDescription(i);
4619
			 }
4620
			 this->UpdateChanged();
4621
		 }
4622
private: System::Void CheckSYArgon_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4623
			 if ( !m_bLoading )
4624
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_ARGON, this->CheckSYArgon->Checked);
4625
			 this->UpdateChanged();
4626
		 }
4627
private: System::Void CheckSYBoron_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4628
			 if ( !m_bLoading )
4629
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_BORON, this->CheckSYBoron->Checked);
4630
			 this->UpdateChanged();
4631
		 }
4632
private: System::Void CheckSYParanid_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4633
			 if ( !m_bLoading )
4634
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_PARANID, this->CheckSYParanid->Checked);
4635
			 this->UpdateChanged();
4636
		 }
4637
private: System::Void CheckSYTeladi_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4638
			 if ( !m_bLoading )
4639
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_TELADI, this->CheckSYTeladi->Checked);
4640
			 this->UpdateChanged();
4641
		 }
4642
private: System::Void CheckSYSplit_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4643
			 if ( !m_bLoading )
4644
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_SPLIT, this->CheckSYSplit->Checked);
4645
			 this->UpdateChanged();
4646
		 }
4647
private: System::Void CheckSYPirate_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4648
			 if ( !m_bLoading )
4649
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_PIRATES, this->CheckSYPirate->Checked);
4650
			 this->UpdateChanged();
4651
		 }
4652
private: System::Void CheckSYFriend_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4653
			 if ( !m_bLoading )
4654
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_FRIEND, this->CheckSYFriend->Checked);
4655
			 this->UpdateChanged();
4656
		 }
4657
private: System::Void CheckSYXenon_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4658
			 if ( !m_bLoading )
4659
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_XENON, this->CheckSYXenon->Checked);
4660
			 this->UpdateChanged();
4661
		 }
4662
private: System::Void CheckSYTerran_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4663
			 if ( !m_bLoading )
4664
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_TERRAN, this->CheckSYTerran->Checked);
4665
			 this->UpdateChanged();
4666
		 }
4667
private: System::Void CheckSYATF_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4668
			 if ( !m_bLoading )
4669
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_ATF, this->CheckSYATF->Checked);
4670
			 this->UpdateChanged();
4671
		 }
4672
private: System::Void CheckSYYaki_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4673
			 if ( !m_bLoading )
4674
				((CXspFile *)m_pPackage)->SetShipyard(SHIPYARD_YAKI, this->CheckSYYaki->Checked);
4675
			 this->UpdateChanged();
4676
		 }
4677
private: System::Void ContextShipText_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4678
			Point ^mousePoint = this->ListShipText->PointToClient(this->ContextShipText->MousePosition);
4679
			ListViewItem ^item = this->ListShipText->GetItemAt(mousePoint->X, mousePoint->Y);
4680
 
4681
			this->ContextShipTextSep2->Visible = ((CXspFile *)m_pPackage)->AnyTexts();
4682
			this->ContextShipTextClear->Visible = ((CXspFile *)m_pPackage)->AnyTexts();
4683
 
4684
			this->ContextShipTextSep1->Visible = (item) ? true : false;
4685
			this->ContextShipTextEdit->Visible = (item) ? true : false;
4686
			this->ContextShipTextRemove->Visible = (item) ? true : false;
4687
 
4688
			m_pSelectedItem = item;
4689
			e->Cancel = false;
4690
		 }
4691
private: System::Void addLanguageToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
4692
			 AddShipText ^st = gcnew AddShipText();
4693
			 if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4694
			 {
4695
				 ((CXspFile *)m_pPackage)->AddText(st->GetLanguage(), CyStringFromSystemString(st->GetName()), CyStringFromSystemString(st->GetDescription()));
4696
				 this->UpdateShipText();
4697
				 this->UpdateChanged();
4698
			 }
4699
		 }
4700
private: System::Void ContextShipTextEdit_Click(System::Object^  sender, System::EventArgs^  e) {
4701
			 AddShipText ^st = gcnew AddShipText();
4702
			 st->SetEdit(Convert::ToInt32(m_pSelectedItem->Text));
4703
			 st->SetLanguage(Convert::ToInt32(m_pSelectedItem->Text));
4704
			 st->SetName(m_pSelectedItem->SubItems[1]->Text);
4705
			 st->SetDescription(m_pSelectedItem->SubItems[2]->Text);
4706
			 if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4707
			 {
4708
				 ((CXspFile *)m_pPackage)->AddText(st->GetLanguage(), CyStringFromSystemString(st->GetName()), CyStringFromSystemString(st->GetDescription()));
4709
				 this->UpdateShipText();
4710
				 this->UpdateChanged();
4711
			 }
4712
		 }
4713
private: System::Void ContextShipTextRemove_Click(System::Object^  sender, System::EventArgs^  e) {
4714
			((CXspFile *)m_pPackage)->RemoveText(Convert::ToInt32(m_pSelectedItem->Text));
4715
			 this->UpdateShipText();
4716
			 this->UpdateChanged();
4717
		 }
4718
private: System::Void ContextShipTextClear_Click(System::Object^  sender, System::EventArgs^  e) {
4719
			((CXspFile *)m_pPackage)->ClearText();
4720
			this->UpdateShipText();
4721
			this->UpdateChanged();
4722
		 }
4723
private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
4724
			this->TextShipData->ReadOnly = !this->checkBox1->Checked;
4725
			if ( this->TextShipData->ReadOnly )
4726
				this->TextShipData->BackColor = System::Drawing::SystemColors::Control;
4727
			else
4728
				this->TextShipData->BackColor = System::Drawing::SystemColors::Window;
4729
		 }
4730
private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
4731
			 this->LoadShipData();
4732
		 }
4733
private: System::Void ComboShipPart_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
4734
			 this->UpdateShipPartList();
4735
		 }
4736
private: System::Void ListFiles_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4737
			 if ( this->ListFiles->SelectedItems->Count )
4738
			 {
4739
				 ListViewItem ^item = this->ListFiles->SelectedItems[0];
4740
				 if ( item )
4741
				 {
4742
					 if ( C_File::DoesTypeHaveExtraDir(item->ImageIndex) )
4743
					 {
4744
						 InputBox ^input = gcnew InputBox("Enter the directory to install into", (item->SubItems->Count >= 5) ? item->SubItems[4]->Text : "");
4745
						 if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4746
						 {
4747
							 if ( item->SubItems->Count >= 5 )
4748
								item->SubItems[4]->Text = input->GetInput();
4749
							 else
4750
								 item->SubItems->Add(input->GetInput());
4751
 							 int id = CyStringFromSystemString(cli::safe_cast<System::String ^>(item->Tag)).ToInt();
4752
 							 C_File *file = m_pPackage->GetFileList()->Get(id);
4753
							 file->SetDir(CyStringFromSystemString(input->GetInput()));
4754
						 }
4755
					 }
4756
				 }
4757
			 }
4758
		 }
4759
private: System::Void ListShipText_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4760
			 if ( this->ListShipText->Items->Count )
4761
			 {
4762
				 ListViewItem ^item = this->ListShipText->SelectedItems[0];
4763
				 AddShipText ^st = gcnew AddShipText();
4764
				 st->SetEdit(Convert::ToInt32(item->Text));
4765
				 st->SetLanguage(Convert::ToInt32(item->Text));
4766
				 st->SetName(item->SubItems[1]->Text);
4767
				 st->SetDescription(item->SubItems[2]->Text);
4768
				 if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4769
				 {
4770
					 ((CXspFile *)m_pPackage)->AddText(st->GetLanguage(), CyStringFromSystemString(st->GetName()), CyStringFromSystemString(st->GetDescription()));
4771
					 item->SubItems[1]->Text = st->GetName();
4772
					 item->SubItems[2]->Text = st->GetDescription();
4773
					 this->UpdateChanged();
4774
				 }
4775
			 }
4776
		 }
4777
private: System::Void ListNames_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4778
			 if ( this->ListNames->Items->Count )
4779
			 {
4780
				 ListViewItem ^item = this->ListNames->SelectedItems[0];
4781
				InputBox ^input = gcnew InputBox("Enter the package name (Language: " + item->Text + ")", item->SubItems[1]->Text);
4782
				if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4783
				{
4784
					m_pPackage->AddLanguageName(Convert::ToInt32(item->Text), CyStringFromSystemString(input->GetInput()));
4785
					item->SubItems[1]->Text = input->GetInput();
4786
					this->UpdateChanged();
4787
				}
4788
			 }
4789
		 }
4790
private: System::Void ListMirrors_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4791
			 if ( this->ListMirrors->Items->Count )
4792
			 {
4793
				 ListViewItem ^item = this->ListMirrors->SelectedItems[0];
4794
				InputBox ^input = gcnew InputBox("Enter the web address for the mirror", item->Text);
4795
				if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4796
				{
4797
					m_pPackage->RemoveWebMirror(CyStringFromSystemString(item->Text));
4798
					m_pPackage->AddWebMirror(CyStringFromSystemString(input->GetInput()));
4799
					item->Text = input->GetInput();
4800
					this->UpdateChanged();
4801
				}
4802
			 }
4803
		 }
4804
private: System::Void ListWares_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4805
			 if ( this->ListWares->Items->Count )
4806
			 {
4807
				 ListViewItem ^item = this->ListWares->SelectedItems[0];
10 cycrow 4808
				 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(item->Text).ToString());
1 cycrow 4809
				 if ( w )
4810
				 {
4811
					 AddWare ^aw = gcnew AddWare;
4812
					 aw->SetEdit(SystemStringFromCyString(w->sID));
4813
					 aw->SetType(CPackages::ConvertWareType(w->cType));
4814
					 aw->SetSize(w->iSize);
4815
					 aw->SetPrice(w->iPrice);
4816
					 aw->SetMinNotoriety(w->iNotority);
4817
					 aw->SetVolumn(w->iVolumn);
4818
					 if ( w->iTextPage == 0 || w->iTextID <= 0 )
4819
						 aw->SetNoText();
4820
					 else
4821
						 aw->SetTextPage(w->iTextPage, w->iTextID);
4822
					 if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4823
					 {
4824
						 w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
4825
						 w->iNotority = aw->GetMinNotoriety();
4826
						 w->iPrice = aw->GetPrice();
4827
						 w->iVolumn = aw->GetVolumn();
4828
						 w->iSize = aw->GetSize();
4829
						 w->iTextID = aw->GetTextID();
4830
						 w->iTextPage = aw->GetTextPage();
4831
						 this->UpdateWares();
4832
						 this->UpdateChanged();
4833
					 }
4834
				 }
4835
			 }
4836
		 }
4837
private: System::Void ListWareText_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4838
			 if ( this->ListWareText->Items->Count )
4839
			 {
4840
				 ListViewItem ^item = this->ListWareText->SelectedItems[0];
10 cycrow 4841
				 SWares *w = ((CSpkFile *)m_pPackage)->FindWare(CyStringFromSystemString(this->ListWares->SelectedItems[0]->Text).ToString());
1 cycrow 4842
				 if ( w )
4843
				 {
4844
					 AddWareText ^wt = gcnew AddWareText(SystemStringFromCyString(w->sID));
4845
					 wt->SetEdit(System::Convert::ToInt32(item->Text));
4846
					 wt->SetName(item->SubItems[1]->Text);
4847
					 wt->SetDesc(item->SubItems[2]->Text);
4848
					 if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
4849
					 {
10 cycrow 4850
						 ((CSpkFile *)m_pPackage)->AddWareText(w, wt->GetLang(), CyStringFromSystemString(wt->GetName()).ToString(), CyStringFromSystemString(wt->GetDescription()).ToString());
1 cycrow 4851
						 item->SubItems[1]->Text = wt->GetName();
4852
						 item->SubItems[2]->Text = wt->GetDescription();
4853
						 this->UpdateChanged();
4854
					 }
4855
				 }
4856
			 }
4857
		 }
4858
private: System::Void toolStripButton2_Click(System::Object^  sender, System::EventArgs^  e) {
4859
			 this->Save();
4860
		 }
4861
private: System::Void toolStripButton3_Click(System::Object^  sender, System::EventArgs^  e) {
4862
			 this->SaveAs();
4863
		 }
4864
private: System::Void toolStripButton1_Click(System::Object^  sender, System::EventArgs^  e) {
4865
			 bool wildcard = false;
4866
			 if ( MessageBox::Show(this, "Do you want to generate the script using wildcards for files?", "Generate Script - Wildcards", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == System::Windows::Forms::DialogResult::Yes )
4867
				 wildcard = true;
4868
 
4869
			CyStringList list;
4870
			if ( !m_pPackage->GeneratePackagerScript(wildcard, &list) )
4871
				MessageBox::Show(this, "Unable to generated packager script", "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
4872
			else
4873
			{
4874
				SaveFileDialog ^ofd = gcnew SaveFileDialog();
4875
				ofd->Filter = "Package Script (*.sps)|*.sps";
4876
				ofd->Title = "Select file to save packager script to";
4877
				ofd->AddExtension = true;
4878
				ofd->FilterIndex = 1;
4879
				ofd->RestoreDirectory = true;
4880
				if ( ofd->ShowDialog() == System::Windows::Forms::DialogResult::OK )
4881
				{
4882
					if ( CFileIO(CyStringFromSystemString(ofd->FileName)).WriteFile(&list) )
4883
						MessageBox::Show(this, "Package script has been saved\n" + ofd->FileName, "Script Saved", MessageBoxButtons::OK, MessageBoxIcon::Information);
4884
				}
4885
			}
4886
		}
4887
private: System::Void ContextShipPart_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
4888
			 Point ^mousePoint = this->ListShipPart->PointToClient(this->ContextShipPart->MousePosition);
4889
			ListViewItem ^item = this->ListShipPart->GetItemAt(mousePoint->X, mousePoint->Y);
4890
 
4891
			this->ContextShipPartEdit->Visible = (item) ? true : false;
4892
			this->ContextShipPartSep1->Visible = (item) ? true : false;
4893
			this->ContextShipPartRemove->Visible = (item) ? true : false;
4894
 
4895
			this->ContextShipPartClear->Visible = (this->ListShipPart->Items->Count) ? true : false;
4896
			this->ContextShipPartSep2->Visible = (this->ListShipPart->Items->Count) ? true : false;
4897
 
4898
			this->ContextShipPartAdd->Text = "Add: " + this->ComboShipPart->Text;
4899
			m_pSelectedItem = item;
4900
			e->Cancel = false;
4901
		 }
4902
private: System::Void ContextShipPartAdd_Click(System::Object^  sender, System::EventArgs^  e) {
4903
			 this->EditShipParts(false);
4904
		 }
4905
private: System::Void ContextShipPartClear_Click(System::Object^  sender, System::EventArgs^  e) {
4906
			 CXspFile *xsp = (CXspFile *)m_pPackage;
4907
			 switch ( this->ComboShipPart->SelectedIndex )
4908
			 {
4909
				case 0:
4910
					xsp->GetComponents()->MemoryClear();
4911
					break;
4912
				case 1:
4913
					xsp->GetDummies()->MemoryClear();
4914
					break;
4915
				case 2:
4916
					xsp->GetCockpits()->MemoryClear();
4917
					break;
4918
				case 3:
4919
					xsp->GetCutData()->Clear();
4920
					break;
4921
				case 4:
4922
					xsp->GetBodies()->Clear();
4923
					break;
4924
				case 5:
4925
					xsp->GetAnimations()->Clear();
4926
					break;
4927
			 }
4928
 
4929
			 this->UpdateShipPartList();
4930
			 this->UpdateChanged();
4931
		 }
4932
private: System::Void ContextShipPartRemove_Click(System::Object^  sender, System::EventArgs^  e) {
4933
			 CXspFile *xsp = (CXspFile *)m_pPackage;
4934
			 switch ( this->ComboShipPart->SelectedIndex )
4935
			 {
4936
				case 0:
4937
					if ( xsp->RemoveComponent(CyStringFromSystemString(m_pSelectedItem->Text), CyStringFromSystemString(m_pSelectedItem->SubItems[1]->Text), CyStringFromSystemString(m_pSelectedItem->SubItems[2]->Text)) )
4938
						this->UpdateShipPartList();
4939
					break;
4940
				case 1:
4941
					if ( xsp->RemoveDummy(CyStringFromSystemString(m_pSelectedItem->Text), CyStringFromSystemString(m_pSelectedItem->SubItems[1]->Text)) )
4942
						this->UpdateShipPartList();
4943
					break;
4944
				case 2:
4945
					if ( xsp->RemoveCockpit(CyStringFromSystemString(m_pSelectedItem->Text)) )
4946
						this->UpdateShipPartList();
4947
					break;
4948
				case 3:
4949
					if ( xsp->RemoveCutData(CyStringFromSystemString(m_pSelectedItem->Text)) )
4950
						this->UpdateShipPartList();
4951
					break;
4952
				case 4:
4953
					if ( xsp->RemoveBodies(CyStringFromSystemString(m_pSelectedItem->Text + ";" + m_pSelectedItem->SubItems[1]->Text)) )
4954
						this->UpdateShipPartList();
4955
					break;
4956
				case 5:
4957
					if ( xsp->RemoveAnimation(CyStringFromSystemString(m_pSelectedItem->Text)) )
4958
						this->UpdateShipPartList();
4959
					break;
4960
			 }		
4961
			 this->UpdateChanged();
4962
		 }
4963
private: System::Void ContextShipPartEdit_Click(System::Object^  sender, System::EventArgs^  e) {
4964
			 this->EditShipParts(true);
4965
		 }
4966
private: System::Void ListShipPart_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
4967
			 if ( this->ListShipPart->SelectedItems->Count )
4968
			 {
4969
				 m_pSelectedItem = this->ListShipPart->SelectedItems[0];
4970
				 this->EditShipParts(true);
4971
			 }
4972
		 }
4973
private: System::Void ListFiles_DragDrop(System::Object^  sender, System::Windows::Forms::DragEventArgs^  e) {
4974
		// dropping from outside
4975
		if ( e->Data->GetDataPresent(DataFormats::FileDrop) )
4976
		{
4977
			CyStringList fileList;
4978
			cli::array<String ^> ^a = (cli::array<String ^> ^)e->Data->GetData(DataFormats::FileDrop, false);
4979
			int i;
4980
			for(i = 0; i < a->Length; i++)
4981
			{
4982
				if ( IO::DirectoryInfo(a[i]).Exists )
4983
					this->DropGetDirectories(a[i], &fileList, false);
4984
				else
18 cycrow 4985
					fileList.PushBack(CyStringFromSystemString(a[i]), CyString::Number(SPK::GetAutomaticFiletype(CyStringFromSystemString(a[i]), NULL, false)));
1 cycrow 4986
			}
4987
 
4988
			SPK::AssignAutomaticFiletypes(&fileList);
4989
 
4990
			if ( !fileList.Empty() )
4991
			{
4992
				SpkExplorer::DropFileDialog ^dropType = gcnew SpkExplorer::DropFileDialog(&fileList);
4993
				if ( dropType->ShowDialog(this) == Windows::Forms::DialogResult::OK )
4994
				{
4995
					for ( SStringList *str = fileList.Head(); str; str = str->next )
4996
					{
4997
						int type = str->data.GetToken(" ", 1, 1).ToInt();
4998
						if ( type == -1 )
4999
							continue;
5000
 
5001
						int filetype = m_pP->AdjustFileType(str->str, type);
5002
						CyString dir = (filetype == FILETYPE_EXTRA) ? "PluginManager/Extras/$scriptname" : "";
5003
						CyString checkDir = CFileIO(str->str).GetDir().GetToken("/", -1);
5004
						if ( checkDir.Compare("types") )
5005
							dir = checkDir;
5006
 
5007
						C_File *f = m_pPackage->AddFile(str->str, dir, filetype);
5008
						if ( filetype == FILETYPE_MOD && CFileIO(str->str).CheckFileExtension("cat"))
5009
							m_pPackage->AddFile(CFileIO(str->str).ChangeFileExtension("dat"), "", filetype);
5010
						else if ( filetype == FILETYPE_MOD && CFileIO(str->str).CheckFileExtension("dat"))
5011
							m_pPackage->AddFile(CFileIO(str->str).ChangeFileExtension("cat"), "", filetype);
5012
					}
5013
					this->UpdateFileList();
5014
					this->UpdateDisplayPic();
5015
					this->UpdateChanged();
5016
				}
5017
			}
5018
			return;
5019
		}
5020
		 }
5021
private: System::Void ListFiles_DragOver(System::Object^  sender, System::Windows::Forms::DragEventArgs^  e) {
5022
			e->Effect = DragDropEffects::None;
5023
			if ( e->Data->GetDataPresent(DataFormats::FileDrop) )
5024
				e->Effect = DragDropEffects::Copy;
5025
		 }
5026
private: System::Void ContextDep_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
5027
			 Point ^mousePoint = this->ListDep->PointToClient(this->ContextDep->MousePosition);
5028
			ListViewItem ^item = this->ListDep->GetItemAt(mousePoint->X, mousePoint->Y);
5029
 
5030
			this->editSelectedToolStripMenuItem->Visible = (item) ? true : false;
5031
			this->ContextDepRemove->Visible = (item) ? true : false;
5032
			this->ContextDepSep1->Visible = (item) ? true : false;
5033
 
5034
			bool clear = (this->ListDep->Items->Count) ? true : false;
5035
 
5036
			if ( this->ListDep->Items->Count == 1 && String::Compare("<package>", this->ListDep->Items[0]->Text) == 0 && String::Compare("<author>", this->ListDep->Items[0]->SubItems[1]->Text) == 0)
5037
				clear = false;
5038
 
5039
			this->ContextDepClear->Visible = clear;
5040
			this->ContextDepSep2->Visible = clear;
5041
 
5042
			if ( item && String::Compare("<package>", item->Text) == 0 && String::Compare("<author>", item->SubItems[1]->Text) == 0 )
5043
				this->ContextDepRemove->Visible = false;
5044
			m_pSelectedItem = item;
5045
			e->Cancel = false;
5046
		 }
5047
private: System::Void ContextDepClear_Click(System::Object^  sender, System::EventArgs^  e) {
5048
			 m_pPackage->ClearNeededPackages();
5049
			 this->UpdateDependacies();
5050
			 this->UpdateChanged();
5051
		 }
5052
private: System::Void ContextDepRemove_Click(System::Object^  sender, System::EventArgs^  e) {
5053
			 if ( String::Compare("<package>", m_pSelectedItem->Text) == 0 && String::Compare("<author>", m_pSelectedItem->SubItems[1]->Text) == 0 )
5054
				 return;
5055
			 m_pPackage->RemovePackageNeeded(CyStringFromSystemString(m_pSelectedItem->Text), CyStringFromSystemString(m_pSelectedItem->SubItems[1]->Text));
5056
			 this->UpdateDependacies();
5057
			 this->UpdateChanged();
5058
		 }
5059
private: System::Void manualToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5060
			 AddDepend ^depend = gcnew AddDepend();
5061
			 if ( depend->ShowDialog(this) == Windows::Forms::DialogResult::OK )
5062
			 {
5063
				 m_pPackage->AddNeededLibrary(CyStringFromSystemString(depend->GetName()), CyStringFromSystemString(depend->GetAuthor()), CyStringFromSystemString(depend->GetVersion()));
5064
				 this->UpdateDependacies();
5065
				 this->UpdateChanged();
5066
			 }
5067
		 }
5068
private: System::Void fromPackageToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5069
			OpenFileDialog ^ofd = gcnew OpenFileDialog();
5070
			ofd->Filter = "Package Files (*.spk)|*.spk";
5071
			ofd->Title = "Select the package to be used as a dependacy";
5072
			ofd->FilterIndex = 1;
5073
			ofd->RestoreDirectory = true;
5074
			ofd->Multiselect = false;
5075
 
5076
			if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5077
			{
5078
				int error;
5079
				CBaseFile *p = m_pP->OpenPackage(CyStringFromSystemString(ofd->FileName), &error, 0, SPKREAD_VALUES);
5080
				if ( p )
5081
				{
5082
					m_pPackage->AddNeededLibrary(p->GetName(), p->GetAuthor(), p->GetVersion());
5083
					this->UpdateDependacies();
5084
					 this->UpdateChanged();
5085
				}
5086
			}
5087
		 }
5088
private: System::Void editSelectedToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5089
			 this->EditDepend();
5090
		 }
5091
private: System::Void ListDep_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
5092
			 if ( this->ListDep->SelectedItems->Count )
5093
			 {
5094
				 m_pSelectedItem = this->ListDep->SelectedItems[0];
5095
				 this->EditDepend();
5096
			 }
5097
		 }
5098
private: System::Void ContextFileClear_Click(System::Object^  sender, System::EventArgs^  e) {
5099
			 m_pPackage->GetFileList()->MemoryClear();
5100
			 m_pPackage->SetChanged(true);
5101
			 this->UpdateChanged();
5102
			 this->UpdateFileList();
5103
			 this->UpdateDisplayPic();
5104
		 }
5105
private: System::Void ContextFileDelete_Click(System::Object^  sender, System::EventArgs^  e) {
5106
			 this->RemoveSelectedFiles();
5107
		 }
5108
private: System::Void addFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5109
			 this->AddNewFile();
5110
		 }
5111
private: System::Void ContextFileEdit_Click(System::Object^  sender, System::EventArgs^  e) {
5112
			 InputBox ^input = gcnew InputBox("Enter the directory to install into", m_pSelectedItem->SubItems[4]->Text);
5113
			 if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5114
			 {
5115
				 m_pSelectedItem->SubItems[4]->Text = input->GetInput();
5116
				 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5117
				 C_File *file = m_pPackage->GetFileList()->Get(id);
5118
				 file->SetDir(CyStringFromSystemString(input->GetInput()));
5119
			 }
5120
		 }
5121
private: System::Void TextWebAddress_TextChanged_1(System::Object^  sender, System::EventArgs^  e) {
5122
			 if ( !m_bLoading )
5123
				 m_pPackage->SetWebAddress(CyStringFromSystemString(this->TextWebAddress->Text));
5124
			 this->UpdateChanged();
5125
		 }
5126
private: System::Void TextCustomType_TextChanged(System::Object^  sender, System::EventArgs^  e) {
5127
			 if ( !m_bLoading )
10 cycrow 5128
				 ((CSpkFile *)m_pPackage)->SetScriptType(CyStringFromSystemString(this->TextCustomType->Text).ToString());
1 cycrow 5129
			 this->UpdateChanged();
5130
		 }
5131
private: System::Void fromFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5132
			OpenFileDialog ^ofd = gcnew OpenFileDialog();
5133
			ofd->Filter = "Text Files (*.xml *.pck)|*.xml;*.pck";
5134
			ofd->Title = "Select the text file(s) to load text from";
5135
			ofd->FilterIndex = 1;
5136
			ofd->RestoreDirectory = true;
5137
			ofd->Multiselect = true;
5138
 
5139
			if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5140
			{
5141
				array<System::String ^> ^fileArray = ofd->FileNames;
5142
				for ( int i = 0; i < fileArray->Length; i++ )
5143
				{
5144
					((CXspFile *)m_pPackage)->AddTextFromFile(CyStringFromSystemString(fileArray[i]));
5145
					m_pPackage->SetChanged(true);
5146
				}
5147
				this->UpdateShipText();
5148
				this->UpdateChanged();
5149
			}
5150
		 }
5151
private: System::Void fromDirectoryToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5152
				FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
5153
				fbd->Description = "Select the path to load text files from";
5154
				if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5155
				{
5156
					bool added = false;
5157
					array <System::String ^> ^Files = System::IO::Directory::GetFiles(fbd->SelectedPath, "*.xml");
5158
					for ( int i = 0; i < Files->Length; i++ )
5159
					{
5160
						CyString file = CyStringFromSystemString(Files[i]);
5161
						if ( m_pP->AdjustFileType(file, -1) == FILETYPE_TEXT )
5162
						{
5163
							if ( ((CXspFile *)m_pPackage)->AddTextFromFile(file) )
5164
								added = true;
5165
						}
5166
					}
5167
					Files = System::IO::Directory::GetFiles(fbd->SelectedPath, "*.pck");
5168
					for ( int i = 0; i < Files->Length; i++ )
5169
					{
5170
						CyString file = CyStringFromSystemString(Files[i]);
5171
						if ( m_pP->AdjustFileType(file, -1) == FILETYPE_TEXT )
5172
						{
5173
							if ( ((CXspFile *)m_pPackage)->AddTextFromFile(file) )
5174
								added = true;
5175
						}
5176
					}
5177
 
5178
					if ( added )
5179
					{
5180
						this->UpdateShipText();
5181
						this->UpdateChanged();
5182
					}
5183
				}
5184
		 }
5185
private: System::Void fromModToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5186
			OpenFileDialog ^ofd = gcnew OpenFileDialog();
5187
			ofd->Filter = "X Mod Files (*.cat)|*.cat";
5188
			ofd->Title = "Select the mod files to extract texts from";
5189
			ofd->FilterIndex = 1;
5190
			ofd->RestoreDirectory = true;
5191
			ofd->Multiselect = true;
5192
 
5193
			if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5194
			{
5195
				array<System::String ^> ^fileArray = ofd->FileNames;
5196
				for ( int i = 0; i < fileArray->Length; i++ )
5197
				{
5198
					CCatFile cat;
5199
					if ( cat.Open(CyStringFromSystemString(fileArray[i]), "", CATREAD_CATDECRYPT, false) == CATERR_NONE )
5200
						((CXspFile *)m_pPackage)->ExtractTexts(&cat, -1);
5201
				}
5202
				this->UpdateShipText();
5203
				this->UpdateChanged();
5204
			}
5205
 
5206
		 }
5207
private: System::Void importToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5208
			OpenFileDialog ^ofd = gcnew OpenFileDialog();
5209
			ofd->FilterIndex = 1;
5210
			ofd->RestoreDirectory = true;
5211
			ofd->Multiselect = false;
5212
			String ^type;
5213
 
5214
			switch ( this->ComboShipPart->SelectedIndex )
5215
			{
5216
				case 0:
5217
					type = "Components";
5218
					break;
5219
				case 1:
5220
					type = "Dummies";
5221
					break;
5222
				case 2:
5223
					type = "TCockpits";
5224
					break;
5225
				case 3:
5226
					type = "CutData";
5227
					break;
5228
				case 4:
5229
					type = "Bodies";
5230
					break;
5231
				case 5:
5232
					type = "Animations";
5233
					break;
5234
			}
5235
			ofd->Filter = "All|" + type + ".pck;" + type + ".txt;*.cat|Mod Files|*.cat|" + type + "|" + type + ".pck;" + type + ".txt";
5236
			ofd->Title = "Select the " + type + "/mod file to import data from";
5237
 
5238
			if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5239
			{
5240
				String ^f = ExtractImport(ofd->FileName, type);
5241
 
5242
				if ( !f->Length )
5243
				{
5244
					MessageBox::Show(this, "No data to import from file\n" + ofd->FileName + "\nType = " + type, "Error Importing", MessageBoxButtons::OK, MessageBoxIcon::Error);
5245
					return;
5246
				}
5247
 
5248
				switch ( this->ComboShipPart->SelectedIndex )
5249
				{
5250
					case 0:
5251
					case 1:
5252
					case 2:
5253
					case 3:
5254
					case 4:
5255
						this->ImportData(f, this->ComboShipPart->SelectedIndex);
5256
						break;
5257
					case 5:
5258
						this->ImportAnimations(f);
5259
						break;
5260
				}
5261
 
5262
				if ( IO::File::Exists("tmp") )
5263
					IO::File::Delete("tmp");
5264
			}
5265
		 }
5266
private: System::Void TextShipData_TextChanged(System::Object^  sender, System::EventArgs^  e) {
14 cycrow 5267
			 ((CXspFile *)m_pPackage)->SetShipData(CyStringFromSystemString(this->TextShipData->Text).ToString());
1 cycrow 5268
			 this->UpdateChanged();
5269
		 }
5270
private: System::Void toolTip1_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
5271
			 ToolTip ^tip = cli::safe_cast<ToolTip ^>(sender);
5272
			 tip->ToolTipTitle = e->AssociatedControl->Text;
5273
		 }
5274
private: System::Void toolTip2_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
5275
			 ToolTip ^tip = cli::safe_cast<ToolTip ^>(sender);
5276
			 tip->ToolTipTitle = Convert::ToString(e->AssociatedControl->Tag);
5277
		 }
5278
private: System::Void packFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5279
			 if ( !m_pSelectedItem ) return;
5280
 
5281
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5282
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5283
 
5284
			 if ( f )
5285
			 {
5286
				 if ( !f->PCKFile() )
5287
					 MessageBox::Show(this, "There was a problem trying to pack the file\n" + SystemStringFromCyString(f->GetFilename()), "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
5288
				 else
5289
				 {
5290
					if ( f->CheckFileExt("bob") )
5291
						f->ChangeFileExt("pbb");
5292
					else if ( f->CheckFileExt("bod") )
5293
						f->ChangeFileExt("pbd");
5294
					else
5295
						f->ChangeFileExt("pck");
5296
					m_pSelectedItem->SubItems[1]->Text = SystemStringFromCyString(CyString("<PACKAGE>/") + f->GetNameDirectory(NULL));
5297
					m_pSelectedItem->SubItems[2]->Text = SystemStringFromCyString(f->GetUncompressedSizeString());
5298
 
5299
					m_pPackage->SetChanged(true);
5300
					this->UpdateChanged();
5301
				 }
5302
			 }
5303
		 }
5304
private: System::Void unpackFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5305
			 if ( !m_pSelectedItem ) return;
5306
 
5307
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5308
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5309
 
5310
			 if ( f )
5311
			 {
5312
				 if ( !f->UnPCKFile() )
5313
					 MessageBox::Show(this, "There was a problem trying to unpack the file\n" + SystemStringFromCyString(f->GetFilename()), "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
5314
				 else
5315
				 {
5316
					if ( f->CheckFileExt("pbb") )
5317
						f->ChangeFileExt("bob");
5318
					else if ( f->CheckFileExt("pbd") )
5319
						f->ChangeFileExt("bod");
5320
					else
5321
						f->ChangeFileExt("xml");
5322
					m_pSelectedItem->SubItems[1]->Text = SystemStringFromCyString(CyString("<PACKAGE>/") + f->GetNameDirectory(NULL));
5323
					m_pSelectedItem->SubItems[2]->Text = SystemStringFromCyString(f->GetUncompressedSizeString());
5324
 
5325
					m_pPackage->SetChanged(true);
5326
					this->UpdateChanged();
5327
				 }
5328
			 }
5329
		 }
5330
private: System::Void convertToFakePatchToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5331
			 if ( !m_pSelectedItem ) return;
5332
 
5333
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5334
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5335
 
5336
			 if ( f )
5337
			 {
5338
				 m_pPackage->ConvertFakePatch(f);
5339
				 this->UpdateFileList();
5340
			 }
5341
		 }
5342
private: System::Void convertToNormalModToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5343
			 if ( !m_pSelectedItem ) return;
5344
 
5345
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5346
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5347
 
5348
			 if ( f )
5349
			 {
5350
				 InputBox ^input = gcnew InputBox("Enter the name you want the mod to be called");
5351
				 if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
5352
				 {
5353
					 if ( input->GetInput()->Length )
5354
					 {
5355
						 m_pPackage->ConvertNormalMod(f, CyStringFromSystemString(input->GetInput()));
5356
						 this->UpdateFileList();
5357
					 }
5358
				 }
5359
			 }
5360
		 }
5361
private: System::Void renameFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5362
			 if ( !m_pSelectedItem ) return;
5363
 
5364
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5365
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5366
 
5367
			 if ( f )
5368
			 {
5369
				 InputBox ^input = gcnew InputBox("Enter the new file name to change to", SystemStringFromCyString(f->GetBaseName()));
5370
				 if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
5371
				 {
5372
					 if ( input->GetInput()->Length )
5373
					 {
5374
						 m_pPackage->RenameFile(f, CyStringFromSystemString(input->GetInput()));
5375
						 this->UpdateFileList();
5376
					 }
5377
				 }
5378
			 }
5379
		 }
5380
private: System::Void toolStripButton4_Click(System::Object^  sender, System::EventArgs^  e) {
5381
			 if ( m_pPackage->GetWebAddress().Empty() )
5382
				 MessageBox::Show(this, "You dont have a primary web address set, you need an address for automatic updates to work", "No Web Address", MessageBoxButtons::OK, MessageBoxIcon::Asterisk);
5383
			 else
5384
			 {
5385
				FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
5386
				fbd->Description = "Select the path to save the update file to";
5387
				fbd->SelectedPath = SystemStringFromCyString(CFileIO(m_pPackage->GetFilename()).GetDir().FindReplace("/", "\\"));
5388
				if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5389
				{
5390
					CyString file = m_pPackage->CreateUpdateFile(CyStringFromSystemString(fbd->SelectedPath));
5391
					if ( !file.Empty() )
5392
						MessageBox::Show(this, "Update file has been created\n" + SystemStringFromCyString(file) + "\n\nRemember to upload it your web server so its accessable\n" + SystemStringFromCyString(m_pPackage->GetWebAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
5393
				}
5394
			}
5395
		 }
5396
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
5397
			 CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
5398
			 if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
5399
				 this->UpdateView();
5400
		 }
5401
private: System::Void ToolCustomise_Click(System::Object^  sender, System::EventArgs^  e) {
5402
			 CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
5403
			 if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
5404
				 this->UpdateView();
5405
		 }
5406
private: System::Void PackageForm_Load(System::Object^  sender, System::EventArgs^  e) {
5407
			this->UpdateView();
5408
		 }
5409
private: System::Void toolStripButton5_Click(System::Object^  sender, System::EventArgs^  e) {
5410
			 this->Export();
5411
		 }
5412
private: System::Void convertToAutoTextFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
5413
			 if ( !m_pSelectedItem ) return;
5414
 
5415
			 int id = Convert::ToInt32(m_pSelectedItem->Tag);
5416
			 C_File *f = m_pPackage->GetFileList()->Get(id);
5417
 
5418
			 if ( f )
5419
			 {
5420
				 m_pPackage->ConvertAutoText(f);
5421
				 this->UpdateFileList();
5422
			 }
5423
		 }
5424
private: System::Void ButGameAdd_Click(System::Object^  sender, System::EventArgs^  e) {
5425
			 if ( ButGame->ImageIndex < 0 )
5426
				 return;
5427
 
5428
			 if ( this->TextExactVersion->Visible )
5429
				m_pPackage->AddGameCompatability(ButGame->ImageIndex + 1, CyStringFromSystemString(this->TextExactVersion->Text));
5430
			 else
5431
				m_pPackage->AddGameCompatability(ButGame->ImageIndex + 1, CyString::Number(this->ComboVersion->SelectedIndex));
5432
 
5433
			 this->UpdateGamesList();
5434
			 ButGame->Text = "- Select Game -";
5435
			 this->TextExactVersion->Text = "";
5436
			 this->TextExactVersion->Visible = false;
5437
			 this->ComboVersion->Items->Clear();
5438
			 this->ComboVersion->Enabled = false;
5439
			 ButGame->ImageIndex = -1;
5440
			 this->ButGameAdd->Enabled = false;
5441
			 this->UpdateChanged();
5442
		 }
5443
private: System::Void ListGames_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
5444
 
5445
			if ( !this->ListGames->SelectedItems->Count )
5446
				 return;
5447
 
5448
			System::Windows::Forms::ListViewItem ^item = this->ListGames->SelectedItems[0];
5449
			if ( item ) {
5450
				int game = Convert::ToInt32(item->Tag);
5451
				if ( game ) {
5452
					SGameCompat *g = m_pPackage->GetGameCompatability(game);
5453
					if ( g ) {
5454
						SGameExe *exe = m_pP->GetGameExe()->GetGame(game - 1);
5455
						if ( exe ) {
5456
							this->ButGame->ImageIndex = game - 1;
5457
							this->ButGame->Text = SystemStringFromCyString(exe->sName);
5458
							this->ComboVersion->Enabled = true;
5459
							this->ButGameAdd->Enabled = true;
5460
							this->UpdateGameVersion();
5461
							if ( !g->sVersion.Empty() ) {
5462
								this->ComboVersion->SelectedIndex = this->ComboVersion->Items->Count - 1;
5463
								this->TextExactVersion->Visible = true;
5464
								this->TextExactVersion->Text = SystemStringFromCyString(g->sVersion);
5465
							}
5466
							else {
5467
								this->ComboVersion->SelectedIndex = g->iVersion;
5468
								this->TextExactVersion->Visible = false;
5469
							}
5470
							this->UpdateChanged();
5471
						}
5472
					}
5473
				}
5474
			}
5475
		 }
5476
private: System::Void ListGames_DoubleClick(System::Object^  sender, System::EventArgs^  e) {
5477
			if ( !this->ListGames->SelectedItems->Count )
5478
				 return;
5479
 
5480
			System::Windows::Forms::ListViewItem ^item = this->ListGames->SelectedItems[0];
5481
			if ( !item ) return;
5482
 
5483
			int game = Convert::ToInt32(item->Tag);
5484
			if ( !game ) return;	
5485
 
5486
			m_pPackage->RemoveGameCompatability(game);
5487
			this->UpdateGamesList();
5488
			this->UpdateChanged();
5489
		 }
5490
private: System::Void ComboGameFilter_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
5491
			 this->UpdateFileList();
5492
		 }
5493
};
5494
}