Subversion Repositories spk

Rev

Rev 1 | Rev 133 | 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 <spk.h>
11
 
12
namespace PluginManager {
13
 
14
	/// <summary>
15
	/// Summary for PackageBrowser
16
	///
17
	/// WARNING: If you change the name of this class, you will need to change the
18
	///          'Resource File Name' property for the managed resource compiler tool
19
	///          associated with all .resx files this class depends on.  Otherwise,
20
	///          the designers will not be able to interact properly with localized
21
	///          resources associated with this form.
22
	/// </summary>
23
	public ref class PackageBrowser : public System::Windows::Forms::Form
24
	{
25
	public:
26
		PackageBrowser(CPackages *p, ImageList ^imageList)
27
		{
28
			InitializeComponent();
29
 
121 cycrow 30
			m_sCurrentDir = _US(p->getCurrentDirectory());
1 cycrow 31
			m_pImageList = imageList;
32
			m_bReverse = false;
33
			m_iLastCol = 0;
34
			m_lAvailablePackages = NULL;
35
			m_pPackages = p;
36
			m_pSelectedMod = NULL;
37
			m_pSelectedPackage = NULL;
38
 
39
			for ( int i = 0; i < imageList->Images->Count; i++ )
40
				this->imageList1->Images->Add(imageList->Images->Keys[i], imageList->Images[i]);
41
 
42
			this->UpdateControls();
43
			this->SetupEvents();
44
 
45
			this->FindPackages();
46
		}
47
 
48
		void RemovePackages();
49
		void UpdatePackages();
50
 
51
		bool AnyPackages();
52
 
53
		CBaseFile *SelectedMod() { return m_pSelectedMod; }
54
 
55
		void DownloadPackage();
56
		void SetExperimental(bool e) { this->CheckExperimental->Checked = e; }
57
		void SetCheat(bool e) { this->CheckCheat->Checked = e; }
58
		void SetShips(bool e) { this->CheckShips->Checked = e; }
59
		void SetSigned(bool e) { this->CheckSigned->Checked = e; }
60
		void SetDownload(bool e) { this->checkBox1->Checked = e; }
61
 
62
		bool IsExperimental() { return this->CheckExperimental->Checked; }
63
		bool IsCheat() { return this->CheckCheat->Checked; }
64
		bool IsShips() { return this->CheckShips->Checked; }
65
		bool IsSigned() { return this->CheckSigned->Checked; }
66
		bool IsDownload() { return this->checkBox1->Checked; }
67
 
68
	protected:
69
		/// <summary>
70
		/// Clean up any resources being used.
71
		/// </summary>
72
		~PackageBrowser()
73
		{
74
			if (components)
75
			{
76
				delete components;
77
			}
78
		}
79
	private: System::Windows::Forms::GroupBox^  GroupFilter;
80
	protected: 
81
	private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel1;
82
	private: System::Windows::Forms::CheckBox^  CheckExperimental;
83
	private: System::Windows::Forms::CheckBox^  CheckCheat;
84
	private: System::Windows::Forms::GroupBox^  GroupPackage;
85
	private: System::Windows::Forms::Panel^  panel1;
86
	private: System::Windows::Forms::ListView^  ListPackages;
87
 
88
	private: System::Windows::Forms::ColumnHeader^  ColPackage;
89
	private: System::Windows::Forms::ColumnHeader^  ColAuthor;
90
	private: System::Windows::Forms::ColumnHeader^  ColVersion;
91
	private: System::Windows::Forms::ColumnHeader^  ColUpdated;
92
	private: System::Windows::Forms::Button^  ButInstall;
93
 
94
	private: System::Windows::Forms::Button^  ButClose;
95
	private: System::Windows::Forms::RichTextBox^  TextDesc;
96
	private: System::Windows::Forms::Panel^  panel2;
97
	private: System::Windows::Forms::Label^  label1;
98
	private: System::Windows::Forms::PictureBox^  PicEase1;
99
 
100
	private: System::Windows::Forms::Label^  label3;
101
	private: System::Windows::Forms::Label^  label2;
102
	private: System::Windows::Forms::PictureBox^  PicRec5;
103
	private: System::Windows::Forms::PictureBox^  PicRec4;
104
	private: System::Windows::Forms::PictureBox^  PicRec3;
105
	private: System::Windows::Forms::PictureBox^  PicRec2;
106
	private: System::Windows::Forms::PictureBox^  PicChange5;
107
	private: System::Windows::Forms::PictureBox^  PicChange4;
108
	private: System::Windows::Forms::PictureBox^  PicChange3;
109
	private: System::Windows::Forms::PictureBox^  PicChange2;
110
	private: System::Windows::Forms::PictureBox^  PicEase5;
111
	private: System::Windows::Forms::PictureBox^  PicEase4;
112
	private: System::Windows::Forms::PictureBox^  PicEase3;
113
	private: System::Windows::Forms::PictureBox^  PicEase2;
114
	private: System::Windows::Forms::PictureBox^  PicRec1;
115
	private: System::Windows::Forms::PictureBox^  PicChange1;
116
	private: System::Windows::Forms::Label^  LabRecNA;
117
	private: System::Windows::Forms::Label^  LabChangeNA;
118
	private: System::Windows::Forms::Label^  LabEaseNA;
119
	private: System::Windows::Forms::ColumnHeader^  ColType;
120
	private: System::Windows::Forms::CheckBox^  CheckShips;
121
	private: System::Windows::Forms::CheckBox^  checkBox1;
122
	private: System::Windows::Forms::CheckBox^  CheckSigned;
123
	private: System::Windows::Forms::Button^  button1;
124
	private: System::Windows::Forms::ColumnHeader^  ColSigned;
125
	private: System::Windows::Forms::ImageList^  imageList1;
126
	private: System::Windows::Forms::PictureBox^  PictureBox;
127
 
128
	private:
129
		void FindPackages_Directory(String ^dir);
130
		void FindPackages_Files(System::String ^dir);
131
		void FindPackages();
132
		void UpdateControls();
133
		bool CheckValidPackage(CBaseFile *p);
134
		bool CheckValidPackage(SAvailablePackage *p);
135
		ListViewItem ^CreateItem(CBaseFile *p);
136
		ListViewItem ^CreateItem(SAvailablePackage *p);
137
 
138
		void UpdateRatings(bool clear, int ease, int change, int rec);
139
		void SetupEvents();
140
		void PackageSelected(System::Object ^Sender, System::EventArgs ^E);
141
		void SortList(System::Object ^Sender, ColumnClickEventArgs ^E);
142
		void CheckEvent(System::Object ^Sender, System::EventArgs ^E)
143
		{
144
			this->UpdatePackages();
145
		}
146
 
147
		CPackages *m_pPackages;
148
		CBaseFile	*m_pSelectedMod;
149
		SAvailablePackage *m_pSelectedPackage;
150
		CLinkList<CBaseFile> *m_lAvailablePackages;
151
 
152
		bool m_bReverse;
153
		int m_iLastCol;
154
		ImageList ^m_pImageList;
155
		String ^m_sCurrentDir;
156
private: System::ComponentModel::IContainer^  components;
157
 
158
		/// <summary>
159
		/// Required designer variable.
160
		/// </summary>
161
 
162
 
163
#pragma region Windows Form Designer generated code
164
		/// <summary>
165
		/// Required method for Designer support - do not modify
166
		/// the contents of this method with the code editor.
167
		/// </summary>
168
		void InitializeComponent(void)
169
		{
170
			this->components = (gcnew System::ComponentModel::Container());
171
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageBrowser::typeid));
172
			this->GroupFilter = (gcnew System::Windows::Forms::GroupBox());
173
			this->flowLayoutPanel1 = (gcnew System::Windows::Forms::FlowLayoutPanel());
174
			this->CheckExperimental = (gcnew System::Windows::Forms::CheckBox());
175
			this->CheckCheat = (gcnew System::Windows::Forms::CheckBox());
176
			this->CheckShips = (gcnew System::Windows::Forms::CheckBox());
177
			this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
178
			this->CheckSigned = (gcnew System::Windows::Forms::CheckBox());
179
			this->GroupPackage = (gcnew System::Windows::Forms::GroupBox());
180
			this->TextDesc = (gcnew System::Windows::Forms::RichTextBox());
181
			this->panel2 = (gcnew System::Windows::Forms::Panel());
182
			this->LabRecNA = (gcnew System::Windows::Forms::Label());
183
			this->LabChangeNA = (gcnew System::Windows::Forms::Label());
184
			this->LabEaseNA = (gcnew System::Windows::Forms::Label());
185
			this->PicRec5 = (gcnew System::Windows::Forms::PictureBox());
186
			this->PicRec4 = (gcnew System::Windows::Forms::PictureBox());
187
			this->PicRec3 = (gcnew System::Windows::Forms::PictureBox());
188
			this->PicRec2 = (gcnew System::Windows::Forms::PictureBox());
189
			this->PicChange5 = (gcnew System::Windows::Forms::PictureBox());
190
			this->PicChange4 = (gcnew System::Windows::Forms::PictureBox());
191
			this->PicChange3 = (gcnew System::Windows::Forms::PictureBox());
192
			this->PicChange2 = (gcnew System::Windows::Forms::PictureBox());
193
			this->PicEase5 = (gcnew System::Windows::Forms::PictureBox());
194
			this->PicEase4 = (gcnew System::Windows::Forms::PictureBox());
195
			this->PicEase3 = (gcnew System::Windows::Forms::PictureBox());
196
			this->PicEase2 = (gcnew System::Windows::Forms::PictureBox());
197
			this->PicRec1 = (gcnew System::Windows::Forms::PictureBox());
198
			this->PicChange1 = (gcnew System::Windows::Forms::PictureBox());
199
			this->PicEase1 = (gcnew System::Windows::Forms::PictureBox());
200
			this->label3 = (gcnew System::Windows::Forms::Label());
201
			this->label2 = (gcnew System::Windows::Forms::Label());
202
			this->label1 = (gcnew System::Windows::Forms::Label());
203
			this->PictureBox = (gcnew System::Windows::Forms::PictureBox());
204
			this->panel1 = (gcnew System::Windows::Forms::Panel());
205
			this->button1 = (gcnew System::Windows::Forms::Button());
206
			this->ButInstall = (gcnew System::Windows::Forms::Button());
207
			this->ButClose = (gcnew System::Windows::Forms::Button());
208
			this->ListPackages = (gcnew System::Windows::Forms::ListView());
209
			this->ColPackage = (gcnew System::Windows::Forms::ColumnHeader());
210
			this->ColAuthor = (gcnew System::Windows::Forms::ColumnHeader());
211
			this->ColVersion = (gcnew System::Windows::Forms::ColumnHeader());
212
			this->ColUpdated = (gcnew System::Windows::Forms::ColumnHeader());
213
			this->ColType = (gcnew System::Windows::Forms::ColumnHeader());
214
			this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));
215
			this->ColSigned = (gcnew System::Windows::Forms::ColumnHeader());
216
			this->GroupFilter->SuspendLayout();
217
			this->flowLayoutPanel1->SuspendLayout();
218
			this->GroupPackage->SuspendLayout();
219
			this->panel2->SuspendLayout();
220
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec5))->BeginInit();
221
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec4))->BeginInit();
222
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec3))->BeginInit();
223
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec2))->BeginInit();
224
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange5))->BeginInit();
225
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange4))->BeginInit();
226
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange3))->BeginInit();
227
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange2))->BeginInit();
228
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase5))->BeginInit();
229
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase4))->BeginInit();
230
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase3))->BeginInit();
231
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase2))->BeginInit();
232
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec1))->BeginInit();
233
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange1))->BeginInit();
234
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase1))->BeginInit();
235
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PictureBox))->BeginInit();
236
			this->panel1->SuspendLayout();
237
			this->SuspendLayout();
238
			// 
239
			// GroupFilter
240
			// 
241
			this->GroupFilter->Controls->Add(this->flowLayoutPanel1);
242
			this->GroupFilter->Dock = System::Windows::Forms::DockStyle::Top;
243
			this->GroupFilter->Location = System::Drawing::Point(0, 0);
244
			this->GroupFilter->Name = L"GroupFilter";
245
			this->GroupFilter->Size = System::Drawing::Size(739, 44);
246
			this->GroupFilter->TabIndex = 0;
247
			this->GroupFilter->TabStop = false;
248
			this->GroupFilter->Text = L"Filters";
249
			// 
250
			// flowLayoutPanel1
251
			// 
252
			this->flowLayoutPanel1->Controls->Add(this->CheckExperimental);
253
			this->flowLayoutPanel1->Controls->Add(this->CheckCheat);
254
			this->flowLayoutPanel1->Controls->Add(this->CheckShips);
255
			this->flowLayoutPanel1->Controls->Add(this->checkBox1);
256
			this->flowLayoutPanel1->Controls->Add(this->CheckSigned);
257
			this->flowLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Fill;
258
			this->flowLayoutPanel1->Location = System::Drawing::Point(3, 16);
259
			this->flowLayoutPanel1->Margin = System::Windows::Forms::Padding(10);
260
			this->flowLayoutPanel1->Name = L"flowLayoutPanel1";
261
			this->flowLayoutPanel1->Size = System::Drawing::Size(733, 25);
262
			this->flowLayoutPanel1->TabIndex = 0;
263
			// 
264
			// CheckExperimental
265
			// 
266
			this->CheckExperimental->AutoSize = true;
267
			this->CheckExperimental->Location = System::Drawing::Point(3, 3);
268
			this->CheckExperimental->Name = L"CheckExperimental";
269
			this->CheckExperimental->Size = System::Drawing::Size(124, 17);
270
			this->CheckExperimental->TabIndex = 0;
271
			this->CheckExperimental->Text = L"Include Experimental";
272
			this->CheckExperimental->UseVisualStyleBackColor = true;
273
			this->CheckExperimental->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckExperimental_CheckedChanged);
274
			// 
275
			// CheckCheat
276
			// 
277
			this->CheckCheat->AutoSize = true;
278
			this->CheckCheat->Location = System::Drawing::Point(133, 3);
279
			this->CheckCheat->Name = L"CheckCheat";
280
			this->CheckCheat->Size = System::Drawing::Size(97, 17);
281
			this->CheckCheat->TabIndex = 1;
282
			this->CheckCheat->Text = L"Include Cheats";
283
			this->CheckCheat->UseVisualStyleBackColor = true;
284
			this->CheckCheat->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckCheat_CheckedChanged);
285
			// 
286
			// CheckShips
287
			// 
288
			this->CheckShips->AutoSize = true;
289
			this->CheckShips->Location = System::Drawing::Point(236, 3);
290
			this->CheckShips->Name = L"CheckShips";
291
			this->CheckShips->Size = System::Drawing::Size(90, 17);
292
			this->CheckShips->TabIndex = 2;
293
			this->CheckShips->Text = L"Include Ships";
294
			this->CheckShips->UseVisualStyleBackColor = true;
295
			this->CheckShips->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckShips_CheckedChanged);
296
			// 
297
			// checkBox1
298
			// 
299
			this->checkBox1->AutoSize = true;
300
			this->checkBox1->Location = System::Drawing::Point(332, 3);
301
			this->checkBox1->Name = L"checkBox1";
302
			this->checkBox1->Size = System::Drawing::Size(132, 17);
303
			this->checkBox1->TabIndex = 3;
304
			this->checkBox1->Text = L"Include Downloadable";
305
			this->checkBox1->UseVisualStyleBackColor = true;
306
			this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::checkBox1_CheckedChanged);
307
			// 
308
			// CheckSigned
309
			// 
310
			this->CheckSigned->AutoSize = true;
311
			this->CheckSigned->Location = System::Drawing::Point(332, 3);
312
			this->CheckSigned->Name = L"CheckSigned";
313
			this->CheckSigned->Size = System::Drawing::Size(132, 17);
314
			this->CheckSigned->TabIndex = 3;
315
			this->CheckSigned->Text = L"Only Signed";
316
			this->CheckSigned->UseVisualStyleBackColor = true;
317
			this->CheckSigned->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckSigned_CheckedChanged);
318
			// 
319
			// GroupPackage
320
			// 
321
			this->GroupPackage->Controls->Add(this->TextDesc);
322
			this->GroupPackage->Controls->Add(this->panel2);
323
			this->GroupPackage->Controls->Add(this->PictureBox);
324
			this->GroupPackage->Dock = System::Windows::Forms::DockStyle::Bottom;
325
			this->GroupPackage->Location = System::Drawing::Point(0, 477);
326
			this->GroupPackage->Name = L"GroupPackage";
327
			this->GroupPackage->Size = System::Drawing::Size(739, 182);
328
			this->GroupPackage->TabIndex = 1;
329
			this->GroupPackage->TabStop = false;
330
			this->GroupPackage->Text = L"Current Package";
331
			// 
332
			// TextDesc
333
			// 
334
			this->TextDesc->BackColor = System::Drawing::SystemColors::Info;
335
			this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;
336
			this->TextDesc->Location = System::Drawing::Point(148, 93);
337
			this->TextDesc->Name = L"TextDesc";
338
			this->TextDesc->ReadOnly = true;
339
			this->TextDesc->Size = System::Drawing::Size(588, 86);
340
			this->TextDesc->TabIndex = 1;
341
			this->TextDesc->Text = L"";
342
			// 
343
			// panel2
344
			// 
345
			this->panel2->Controls->Add(this->LabRecNA);
346
			this->panel2->Controls->Add(this->LabChangeNA);
347
			this->panel2->Controls->Add(this->LabEaseNA);
348
			this->panel2->Controls->Add(this->PicRec5);
349
			this->panel2->Controls->Add(this->PicRec4);
350
			this->panel2->Controls->Add(this->PicRec3);
351
			this->panel2->Controls->Add(this->PicRec2);
352
			this->panel2->Controls->Add(this->PicChange5);
353
			this->panel2->Controls->Add(this->PicChange4);
354
			this->panel2->Controls->Add(this->PicChange3);
355
			this->panel2->Controls->Add(this->PicChange2);
356
			this->panel2->Controls->Add(this->PicEase5);
357
			this->panel2->Controls->Add(this->PicEase4);
358
			this->panel2->Controls->Add(this->PicEase3);
359
			this->panel2->Controls->Add(this->PicEase2);
360
			this->panel2->Controls->Add(this->PicRec1);
361
			this->panel2->Controls->Add(this->PicChange1);
362
			this->panel2->Controls->Add(this->PicEase1);
363
			this->panel2->Controls->Add(this->label3);
364
			this->panel2->Controls->Add(this->label2);
365
			this->panel2->Controls->Add(this->label1);
366
			this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
367
			this->panel2->Location = System::Drawing::Point(148, 16);
368
			this->panel2->Name = L"panel2";
369
			this->panel2->Size = System::Drawing::Size(588, 77);
370
			this->panel2->TabIndex = 2;
371
			// 
372
			// LabRecNA
373
			// 
374
			this->LabRecNA->AutoSize = true;
375
			this->LabRecNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
376
				static_cast<System::Byte>(0)));
377
			this->LabRecNA->Location = System::Drawing::Point(164, 52);
378
			this->LabRecNA->Name = L"LabRecNA";
379
			this->LabRecNA->Size = System::Drawing::Size(34, 16);
380
			this->LabRecNA->TabIndex = 20;
381
			this->LabRecNA->Text = L"N/A";
382
			// 
383
			// LabChangeNA
384
			// 
385
			this->LabChangeNA->AutoSize = true;
386
			this->LabChangeNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
387
				static_cast<System::Byte>(0)));
388
			this->LabChangeNA->Location = System::Drawing::Point(163, 28);
389
			this->LabChangeNA->Name = L"LabChangeNA";
390
			this->LabChangeNA->Size = System::Drawing::Size(34, 16);
391
			this->LabChangeNA->TabIndex = 19;
392
			this->LabChangeNA->Text = L"N/A";
393
			// 
394
			// LabEaseNA
395
			// 
396
			this->LabEaseNA->AutoSize = true;
397
			this->LabEaseNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
398
				static_cast<System::Byte>(0)));
399
			this->LabEaseNA->Location = System::Drawing::Point(162, 5);
400
			this->LabEaseNA->Name = L"LabEaseNA";
401
			this->LabEaseNA->Size = System::Drawing::Size(34, 16);
402
			this->LabEaseNA->TabIndex = 18;
403
			this->LabEaseNA->Text = L"N/A";
404
			// 
405
			// PicRec5
406
			// 
407
			this->PicRec5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec5.Image")));
408
			this->PicRec5->Location = System::Drawing::Point(253, 48);
409
			this->PicRec5->Name = L"PicRec5";
410
			this->PicRec5->Size = System::Drawing::Size(24, 24);
411
			this->PicRec5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
412
			this->PicRec5->TabIndex = 17;
413
			this->PicRec5->TabStop = false;
414
			// 
415
			// PicRec4
416
			// 
417
			this->PicRec4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec4.Image")));
418
			this->PicRec4->Location = System::Drawing::Point(230, 48);
419
			this->PicRec4->Name = L"PicRec4";
420
			this->PicRec4->Size = System::Drawing::Size(24, 24);
421
			this->PicRec4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
422
			this->PicRec4->TabIndex = 16;
423
			this->PicRec4->TabStop = false;
424
			// 
425
			// PicRec3
426
			// 
427
			this->PicRec3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec3.Image")));
428
			this->PicRec3->Location = System::Drawing::Point(207, 48);
429
			this->PicRec3->Name = L"PicRec3";
430
			this->PicRec3->Size = System::Drawing::Size(24, 24);
431
			this->PicRec3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
432
			this->PicRec3->TabIndex = 15;
433
			this->PicRec3->TabStop = false;
434
			// 
435
			// PicRec2
436
			// 
437
			this->PicRec2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec2.Image")));
438
			this->PicRec2->Location = System::Drawing::Point(184, 48);
439
			this->PicRec2->Name = L"PicRec2";
440
			this->PicRec2->Size = System::Drawing::Size(24, 24);
441
			this->PicRec2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
442
			this->PicRec2->TabIndex = 14;
443
			this->PicRec2->TabStop = false;
444
			// 
445
			// PicChange5
446
			// 
447
			this->PicChange5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange5.Image")));
448
			this->PicChange5->Location = System::Drawing::Point(253, 24);
449
			this->PicChange5->Name = L"PicChange5";
450
			this->PicChange5->Size = System::Drawing::Size(24, 24);
451
			this->PicChange5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
452
			this->PicChange5->TabIndex = 13;
453
			this->PicChange5->TabStop = false;
454
			// 
455
			// PicChange4
456
			// 
457
			this->PicChange4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange4.Image")));
458
			this->PicChange4->Location = System::Drawing::Point(230, 24);
459
			this->PicChange4->Name = L"PicChange4";
460
			this->PicChange4->Size = System::Drawing::Size(24, 24);
461
			this->PicChange4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
462
			this->PicChange4->TabIndex = 12;
463
			this->PicChange4->TabStop = false;
464
			// 
465
			// PicChange3
466
			// 
467
			this->PicChange3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange3.Image")));
468
			this->PicChange3->Location = System::Drawing::Point(207, 24);
469
			this->PicChange3->Name = L"PicChange3";
470
			this->PicChange3->Size = System::Drawing::Size(24, 24);
471
			this->PicChange3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
472
			this->PicChange3->TabIndex = 11;
473
			this->PicChange3->TabStop = false;
474
			// 
475
			// PicChange2
476
			// 
477
			this->PicChange2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange2.Image")));
478
			this->PicChange2->Location = System::Drawing::Point(184, 24);
479
			this->PicChange2->Name = L"PicChange2";
480
			this->PicChange2->Size = System::Drawing::Size(24, 24);
481
			this->PicChange2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
482
			this->PicChange2->TabIndex = 10;
483
			this->PicChange2->TabStop = false;
484
			// 
485
			// PicEase5
486
			// 
487
			this->PicEase5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase5.Image")));
488
			this->PicEase5->Location = System::Drawing::Point(253, 0);
489
			this->PicEase5->Name = L"PicEase5";
490
			this->PicEase5->Size = System::Drawing::Size(24, 24);
491
			this->PicEase5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
492
			this->PicEase5->TabIndex = 9;
493
			this->PicEase5->TabStop = false;
494
			// 
495
			// PicEase4
496
			// 
497
			this->PicEase4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase4.Image")));
498
			this->PicEase4->Location = System::Drawing::Point(230, 0);
499
			this->PicEase4->Name = L"PicEase4";
500
			this->PicEase4->Size = System::Drawing::Size(24, 24);
501
			this->PicEase4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
502
			this->PicEase4->TabIndex = 8;
503
			this->PicEase4->TabStop = false;
504
			// 
505
			// PicEase3
506
			// 
507
			this->PicEase3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase3.Image")));
508
			this->PicEase3->Location = System::Drawing::Point(207, 0);
509
			this->PicEase3->Name = L"PicEase3";
510
			this->PicEase3->Size = System::Drawing::Size(24, 24);
511
			this->PicEase3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
512
			this->PicEase3->TabIndex = 7;
513
			this->PicEase3->TabStop = false;
514
			// 
515
			// PicEase2
516
			// 
517
			this->PicEase2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase2.Image")));
518
			this->PicEase2->Location = System::Drawing::Point(184, 0);
519
			this->PicEase2->Name = L"PicEase2";
520
			this->PicEase2->Size = System::Drawing::Size(24, 24);
521
			this->PicEase2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
522
			this->PicEase2->TabIndex = 6;
523
			this->PicEase2->TabStop = false;
524
			// 
525
			// PicRec1
526
			// 
527
			this->PicRec1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicRec1.Image")));
528
			this->PicRec1->Location = System::Drawing::Point(161, 48);
529
			this->PicRec1->Name = L"PicRec1";
530
			this->PicRec1->Size = System::Drawing::Size(24, 24);
531
			this->PicRec1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
532
			this->PicRec1->TabIndex = 5;
533
			this->PicRec1->TabStop = false;
534
			// 
535
			// PicChange1
536
			// 
537
			this->PicChange1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicChange1.Image")));
538
			this->PicChange1->Location = System::Drawing::Point(161, 24);
539
			this->PicChange1->Name = L"PicChange1";
540
			this->PicChange1->Size = System::Drawing::Size(24, 24);
541
			this->PicChange1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
542
			this->PicChange1->TabIndex = 4;
543
			this->PicChange1->TabStop = false;
544
			// 
545
			// PicEase1
546
			// 
547
			this->PicEase1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PicEase1.Image")));
548
			this->PicEase1->Location = System::Drawing::Point(161, 0);
549
			this->PicEase1->Name = L"PicEase1";
550
			this->PicEase1->Size = System::Drawing::Size(24, 24);
551
			this->PicEase1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
552
			this->PicEase1->TabIndex = 3;
553
			this->PicEase1->TabStop = false;
554
			// 
555
			// label3
556
			// 
557
			this->label3->AutoSize = true;
558
			this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
559
				static_cast<System::Byte>(0)));
560
			this->label3->Location = System::Drawing::Point(4, 54);
561
			this->label3->Name = L"label3";
562
			this->label3->Size = System::Drawing::Size(113, 16);
563
			this->label3->TabIndex = 2;
564
			this->label3->Text = L"Recommended";
565
			// 
566
			// label2
567
			// 
568
			this->label2->AutoSize = true;
569
			this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
570
				static_cast<System::Byte>(0)));
571
			this->label2->Location = System::Drawing::Point(3, 28);
572
			this->label2->Name = L"label2";
573
			this->label2->Size = System::Drawing::Size(130, 16);
574
			this->label2->TabIndex = 1;
575
			this->label2->Text = L"Change Changing";
576
			// 
577
			// label1
578
			// 
579
			this->label1->AutoSize = true;
580
			this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
581
				static_cast<System::Byte>(0)));
582
			this->label1->Location = System::Drawing::Point(4, 5);
583
			this->label1->Name = L"label1";
584
			this->label1->Size = System::Drawing::Size(95, 16);
585
			this->label1->TabIndex = 0;
586
			this->label1->Text = L"Ease Of Use";
587
			// 
588
			// PictureBox
589
			// 
590
			this->PictureBox->Dock = System::Windows::Forms::DockStyle::Left;
591
			this->PictureBox->Location = System::Drawing::Point(3, 16);
592
			this->PictureBox->Name = L"PictureBox";
593
			this->PictureBox->Size = System::Drawing::Size(145, 163);
594
			this->PictureBox->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
595
			this->PictureBox->TabIndex = 0;
596
			this->PictureBox->TabStop = false;
597
			// 
598
			// panel1
599
			// 
600
			this->panel1->Controls->Add(this->button1);
601
			this->panel1->Controls->Add(this->ButInstall);
602
			this->panel1->Controls->Add(this->ButClose);
603
			this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
604
			this->panel1->Location = System::Drawing::Point(0, 659);
605
			this->panel1->Name = L"panel1";
606
			this->panel1->Size = System::Drawing::Size(739, 31);
607
			this->panel1->TabIndex = 2;
608
			// 
609
			// button1
610
			// 
611
			this->button1->Dock = System::Windows::Forms::DockStyle::Left;
612
			this->button1->Location = System::Drawing::Point(122, 0);
613
			this->button1->Name = L"button1";
614
			this->button1->Size = System::Drawing::Size(125, 31);
615
			this->button1->TabIndex = 2;
616
			this->button1->Text = L"Download";
617
			this->button1->UseVisualStyleBackColor = true;
618
			this->button1->Visible = false;
619
			this->button1->Click += gcnew System::EventHandler(this, &PackageBrowser::button1_Click);
620
			// 
621
			// ButInstall
622
			// 
623
			this->ButInstall->DialogResult = System::Windows::Forms::DialogResult::OK;
624
			this->ButInstall->Dock = System::Windows::Forms::DockStyle::Left;
625
			this->ButInstall->Location = System::Drawing::Point(0, 0);
626
			this->ButInstall->Name = L"ButInstall";
627
			this->ButInstall->Size = System::Drawing::Size(122, 31);
628
			this->ButInstall->TabIndex = 1;
629
			this->ButInstall->Text = L"Install Package";
630
			this->ButInstall->UseVisualStyleBackColor = true;
631
			// 
632
			// ButClose
633
			// 
634
			this->ButClose->DialogResult = System::Windows::Forms::DialogResult::Cancel;
635
			this->ButClose->Dock = System::Windows::Forms::DockStyle::Right;
636
			this->ButClose->Location = System::Drawing::Point(633, 0);
637
			this->ButClose->Name = L"ButClose";
638
			this->ButClose->Size = System::Drawing::Size(106, 31);
639
			this->ButClose->TabIndex = 0;
640
			this->ButClose->Text = L"Close";
641
			this->ButClose->UseVisualStyleBackColor = true;
642
			// 
643
			// ListPackages
644
			// 
645
			this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(6) {this->ColPackage, this->ColAuthor, 
646
				this->ColVersion, this->ColUpdated, this->ColType, this->ColSigned});
647
			this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;
648
			this->ListPackages->FullRowSelect = true;
649
			this->ListPackages->LargeImageList = this->imageList1;
650
			this->ListPackages->Location = System::Drawing::Point(0, 44);
651
			this->ListPackages->MultiSelect = false;
652
			this->ListPackages->Name = L"ListPackages";
653
			this->ListPackages->Size = System::Drawing::Size(739, 433);
654
			this->ListPackages->SmallImageList = this->imageList1;
655
			this->ListPackages->Sorting = System::Windows::Forms::SortOrder::Ascending;
656
			this->ListPackages->TabIndex = 3;
657
			this->ListPackages->UseCompatibleStateImageBehavior = false;
658
			this->ListPackages->View = System::Windows::Forms::View::Details;
659
			// 
660
			// ColPackage
661
			// 
662
			this->ColPackage->Text = L"Package";
663
			// 
664
			// ColAuthor
665
			// 
666
			this->ColAuthor->Text = L"Author";
667
			// 
668
			// ColVersion
669
			// 
670
			this->ColVersion->Text = L"Version";
671
			// 
672
			// ColUpdated
673
			// 
674
			this->ColUpdated->Text = L"Updated";
675
			// 
676
			// ColType
677
			// 
678
			this->ColType->Text = L"Script Type";
679
			// 
680
			// imageList1
681
			// 
682
			this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^  >(resources->GetObject(L"imageList1.ImageStream")));
683
			this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
684
			this->imageList1->Images->SetKeyName(0, L"download");
685
			// 
686
			// ColSigned
687
			// 
688
			this->ColSigned->Text = L"Signed";
689
			// 
690
			// PackageBrowser
691
			// 
692
			this->AcceptButton = this->ButInstall;
693
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
694
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
695
			this->CancelButton = this->ButClose;
696
			this->ClientSize = System::Drawing::Size(739, 690);
697
			this->Controls->Add(this->ListPackages);
698
			this->Controls->Add(this->GroupPackage);
699
			this->Controls->Add(this->panel1);
700
			this->Controls->Add(this->GroupFilter);
701
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
702
			this->Name = L"PackageBrowser";
703
			this->Text = L"Package Browser";
704
			this->GroupFilter->ResumeLayout(false);
705
			this->flowLayoutPanel1->ResumeLayout(false);
706
			this->flowLayoutPanel1->PerformLayout();
707
			this->GroupPackage->ResumeLayout(false);
708
			this->panel2->ResumeLayout(false);
709
			this->panel2->PerformLayout();
710
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec5))->EndInit();
711
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec4))->EndInit();
712
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec3))->EndInit();
713
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec2))->EndInit();
714
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange5))->EndInit();
715
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange4))->EndInit();
716
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange3))->EndInit();
717
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange2))->EndInit();
718
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase5))->EndInit();
719
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase4))->EndInit();
720
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase3))->EndInit();
721
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase2))->EndInit();
722
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicRec1))->EndInit();
723
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicChange1))->EndInit();
724
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PicEase1))->EndInit();
725
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PictureBox))->EndInit();
726
			this->panel1->ResumeLayout(false);
727
			this->ResumeLayout(false);
728
 
729
		}
730
#pragma endregion
731
private: System::Void CheckShips_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
732
			 this->UpdatePackages();
733
		 }
734
private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
735
			 this->UpdatePackages();
736
		 }
737
private: System::Void CheckSigned_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
738
			 this->UpdatePackages();
739
		 }
740
private: System::Void CheckCheat_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
741
			 this->UpdatePackages();
742
		 }
743
private: System::Void CheckExperimental_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
744
			 this->UpdatePackages();
745
		 }
746
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
747
			 this->DownloadPackage();
748
		 }
749
};
750
}