Subversion Repositories spk

Rev

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