Subversion Repositories spk

Rev

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