Subversion Repositories spk

Rev

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