Rev 163 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#pragma onceusing namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System::Data;using namespace System::Drawing;#include <spk.h>namespace PluginManager {/// <summary>/// Summary for PackageBrowser////// WARNING: If you change the name of this class, you will need to change the/// 'Resource File Name' property for the managed resource compiler tool/// associated with all .resx files this class depends on. Otherwise,/// the designers will not be able to interact properly with localized/// resources associated with this form./// </summary>///ref class MainGui;public ref class PackageBrowser : public System::Windows::Forms::Form{public:PackageBrowser(CPackages *p, CLinkList<CBaseFile> *available, ImageList ^imageList, MainGui ^mainGui){InitializeComponent();m_pMainGui = mainGui;m_sCurrentDir = _US(p->getCurrentDirectory());m_pImageList = imageList;m_bReverse = false;m_iLastCol = 0;m_lAvailablePackages = available;m_pPackages = p;m_pSelectedMod = NULL;m_pSelectedPackage = NULL;for ( int i = 0; i < imageList->Images->Count; i++ )this->imageList1->Images->Add(imageList->Images->Keys[i], imageList->Images[i]);this->UpdateControls();this->SetupEvents();}void RemovePackages();void UpdatePackages();bool AnyPackages();CBaseFile *SelectedMod() { return m_pSelectedMod; }void DownloadPackage();void SetExperimental(bool e) { this->CheckExperimental->Checked = e; }void SetCheat(bool e) { this->CheckCheat->Checked = e; }void SetShips(bool e) { this->CheckShips->Checked = e; }void SetSigned(bool e) { this->CheckSigned->Checked = e; }void SetDownload(bool e) { this->checkBox1->Checked = e; }bool IsExperimental() { return this->CheckExperimental->Checked; }bool IsCheat() { return this->CheckCheat->Checked; }bool IsShips() { return this->CheckShips->Checked; }bool IsSigned() { return this->CheckSigned->Checked; }bool IsDownload() { return this->checkBox1->Checked; }protected:/// <summary>/// Clean up any resources being used./// </summary>~PackageBrowser(){if (components){delete components;}}private: System::Windows::Forms::GroupBox^ GroupFilter;protected:private: System::Windows::Forms::FlowLayoutPanel^ flowLayoutPanel1;private: System::Windows::Forms::CheckBox^ CheckExperimental;private: System::Windows::Forms::CheckBox^ CheckCheat;private: System::Windows::Forms::GroupBox^ GroupPackage;private: System::Windows::Forms::Panel^ panel1;private: System::Windows::Forms::ListView^ ListPackages;private: System::Windows::Forms::ColumnHeader^ ColPackage;private: System::Windows::Forms::ColumnHeader^ ColAuthor;private: System::Windows::Forms::ColumnHeader^ ColVersion;private: System::Windows::Forms::ColumnHeader^ ColUpdated;private: System::Windows::Forms::Button^ ButInstall;private: System::Windows::Forms::Button^ ButClose;private: System::Windows::Forms::RichTextBox^ TextDesc;private: System::Windows::Forms::Panel^ panel2;private: System::Windows::Forms::Label^ label1;private: System::Windows::Forms::PictureBox^ PicEase1;private: System::Windows::Forms::Label^ label3;private: System::Windows::Forms::Label^ label2;private: System::Windows::Forms::PictureBox^ PicRec5;private: System::Windows::Forms::PictureBox^ PicRec4;private: System::Windows::Forms::PictureBox^ PicRec3;private: System::Windows::Forms::PictureBox^ PicRec2;private: System::Windows::Forms::PictureBox^ PicChange5;private: System::Windows::Forms::PictureBox^ PicChange4;private: System::Windows::Forms::PictureBox^ PicChange3;private: System::Windows::Forms::PictureBox^ PicChange2;private: System::Windows::Forms::PictureBox^ PicEase5;private: System::Windows::Forms::PictureBox^ PicEase4;private: System::Windows::Forms::PictureBox^ PicEase3;private: System::Windows::Forms::PictureBox^ PicEase2;private: System::Windows::Forms::PictureBox^ PicRec1;private: System::Windows::Forms::PictureBox^ PicChange1;private: System::Windows::Forms::Label^ LabRecNA;private: System::Windows::Forms::Label^ LabChangeNA;private: System::Windows::Forms::Label^ LabEaseNA;private: System::Windows::Forms::ColumnHeader^ ColType;private: System::Windows::Forms::CheckBox^ CheckShips;private: System::Windows::Forms::CheckBox^ checkBox1;private: System::Windows::Forms::CheckBox^ CheckSigned;private: System::Windows::Forms::Button^ button1;private: System::Windows::Forms::ColumnHeader^ ColSigned;private: System::Windows::Forms::ImageList^ imageList1;private: System::Windows::Forms::PictureBox^ PictureBox;private:void UpdateControls();bool CheckValidPackage(CBaseFile *p);bool CheckValidPackage(SAvailablePackage *p);ListViewItem ^CreateItem(CBaseFile *p);ListViewItem ^CreateItem(SAvailablePackage *p);void UpdateRatings(bool clear, int ease, int change, int rec);void SetupEvents();void PackageSelected(System::Object ^Sender, System::EventArgs ^E);void SortList(System::Object ^Sender, ColumnClickEventArgs ^E);void CheckEvent(System::Object ^Sender, System::EventArgs ^E){this->UpdatePackages();}CPackages *m_pPackages;CBaseFile *m_pSelectedMod;const SAvailablePackage *m_pSelectedPackage;CLinkList<CBaseFile> *m_lAvailablePackages;bool m_bReverse;int m_iLastCol;ImageList ^m_pImageList;String ^m_sCurrentDir;MainGui^ m_pMainGui;private: System::ComponentModel::IContainer^ components;/// <summary>/// Required designer variable./// </summary>#pragma region Windows Form Designer generated code/// <summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// </summary>void InitializeComponent(void){this->components = (gcnew System::ComponentModel::Container());System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageBrowser::typeid));this->GroupFilter = (gcnew System::Windows::Forms::GroupBox());this->flowLayoutPanel1 = (gcnew System::Windows::Forms::FlowLayoutPanel());this->CheckExperimental = (gcnew System::Windows::Forms::CheckBox());this->CheckCheat = (gcnew System::Windows::Forms::CheckBox());this->CheckShips = (gcnew System::Windows::Forms::CheckBox());this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());this->CheckSigned = (gcnew System::Windows::Forms::CheckBox());this->GroupPackage = (gcnew System::Windows::Forms::GroupBox());this->TextDesc = (gcnew System::Windows::Forms::RichTextBox());this->panel2 = (gcnew System::Windows::Forms::Panel());this->LabRecNA = (gcnew System::Windows::Forms::Label());this->LabChangeNA = (gcnew System::Windows::Forms::Label());this->LabEaseNA = (gcnew System::Windows::Forms::Label());this->PicRec5 = (gcnew System::Windows::Forms::PictureBox());this->PicRec4 = (gcnew System::Windows::Forms::PictureBox());this->PicRec3 = (gcnew System::Windows::Forms::PictureBox());this->PicRec2 = (gcnew System::Windows::Forms::PictureBox());this->PicChange5 = (gcnew System::Windows::Forms::PictureBox());this->PicChange4 = (gcnew System::Windows::Forms::PictureBox());this->PicChange3 = (gcnew System::Windows::Forms::PictureBox());this->PicChange2 = (gcnew System::Windows::Forms::PictureBox());this->PicEase5 = (gcnew System::Windows::Forms::PictureBox());this->PicEase4 = (gcnew System::Windows::Forms::PictureBox());this->PicEase3 = (gcnew System::Windows::Forms::PictureBox());this->PicEase2 = (gcnew System::Windows::Forms::PictureBox());this->PicRec1 = (gcnew System::Windows::Forms::PictureBox());this->PicChange1 = (gcnew System::Windows::Forms::PictureBox());this->PicEase1 = (gcnew System::Windows::Forms::PictureBox());this->label3 = (gcnew System::Windows::Forms::Label());this->label2 = (gcnew System::Windows::Forms::Label());this->label1 = (gcnew System::Windows::Forms::Label());this->PictureBox = (gcnew System::Windows::Forms::PictureBox());this->panel1 = (gcnew System::Windows::Forms::Panel());this->button1 = (gcnew System::Windows::Forms::Button());this->ButInstall = (gcnew System::Windows::Forms::Button());this->ButClose = (gcnew System::Windows::Forms::Button());this->ListPackages = (gcnew System::Windows::Forms::ListView());this->ColPackage = (gcnew System::Windows::Forms::ColumnHeader());this->ColAuthor = (gcnew System::Windows::Forms::ColumnHeader());this->ColVersion = (gcnew System::Windows::Forms::ColumnHeader());this->ColUpdated = (gcnew System::Windows::Forms::ColumnHeader());this->ColType = (gcnew System::Windows::Forms::ColumnHeader());this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));this->ColSigned = (gcnew System::Windows::Forms::ColumnHeader());this->GroupFilter->SuspendLayout();this->flowLayoutPanel1->SuspendLayout();this->GroupPackage->SuspendLayout();this->panel2->SuspendLayout();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec5))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec4))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec3))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec2))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange5))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange4))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange3))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange2))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase5))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase4))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase3))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase2))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec1))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange1))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase1))->BeginInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureBox))->BeginInit();this->panel1->SuspendLayout();this->SuspendLayout();//// GroupFilter//this->GroupFilter->Controls->Add(this->flowLayoutPanel1);this->GroupFilter->Dock = System::Windows::Forms::DockStyle::Top;this->GroupFilter->Location = System::Drawing::Point(0, 0);this->GroupFilter->Name = L"GroupFilter";this->GroupFilter->Size = System::Drawing::Size(739, 44);this->GroupFilter->TabIndex = 0;this->GroupFilter->TabStop = false;this->GroupFilter->Text = L"Filters";//// flowLayoutPanel1//this->flowLayoutPanel1->Controls->Add(this->CheckExperimental);this->flowLayoutPanel1->Controls->Add(this->CheckCheat);this->flowLayoutPanel1->Controls->Add(this->CheckShips);this->flowLayoutPanel1->Controls->Add(this->checkBox1);this->flowLayoutPanel1->Controls->Add(this->CheckSigned);this->flowLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Fill;this->flowLayoutPanel1->Location = System::Drawing::Point(3, 16);this->flowLayoutPanel1->Margin = System::Windows::Forms::Padding(10);this->flowLayoutPanel1->Name = L"flowLayoutPanel1";this->flowLayoutPanel1->Size = System::Drawing::Size(733, 25);this->flowLayoutPanel1->TabIndex = 0;//// CheckExperimental//this->CheckExperimental->AutoSize = true;this->CheckExperimental->Location = System::Drawing::Point(3, 3);this->CheckExperimental->Name = L"CheckExperimental";this->CheckExperimental->Size = System::Drawing::Size(124, 17);this->CheckExperimental->TabIndex = 0;this->CheckExperimental->Text = L"Include Experimental";this->CheckExperimental->UseVisualStyleBackColor = true;this->CheckExperimental->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckExperimental_CheckedChanged);//// CheckCheat//this->CheckCheat->AutoSize = true;this->CheckCheat->Location = System::Drawing::Point(133, 3);this->CheckCheat->Name = L"CheckCheat";this->CheckCheat->Size = System::Drawing::Size(97, 17);this->CheckCheat->TabIndex = 1;this->CheckCheat->Text = L"Include Cheats";this->CheckCheat->UseVisualStyleBackColor = true;this->CheckCheat->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckCheat_CheckedChanged);//// CheckShips//this->CheckShips->AutoSize = true;this->CheckShips->Location = System::Drawing::Point(236, 3);this->CheckShips->Name = L"CheckShips";this->CheckShips->Size = System::Drawing::Size(90, 17);this->CheckShips->TabIndex = 2;this->CheckShips->Text = L"Include Ships";this->CheckShips->UseVisualStyleBackColor = true;this->CheckShips->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckShips_CheckedChanged);//// checkBox1//this->checkBox1->AutoSize = true;this->checkBox1->Location = System::Drawing::Point(332, 3);this->checkBox1->Name = L"checkBox1";this->checkBox1->Size = System::Drawing::Size(132, 17);this->checkBox1->TabIndex = 3;this->checkBox1->Text = L"Include Downloadable";this->checkBox1->UseVisualStyleBackColor = true;this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::checkBox1_CheckedChanged);//// CheckSigned//this->CheckSigned->AutoSize = true;this->CheckSigned->Location = System::Drawing::Point(332, 3);this->CheckSigned->Name = L"CheckSigned";this->CheckSigned->Size = System::Drawing::Size(132, 17);this->CheckSigned->TabIndex = 3;this->CheckSigned->Text = L"Only Signed";this->CheckSigned->UseVisualStyleBackColor = true;this->CheckSigned->CheckedChanged += gcnew System::EventHandler(this, &PackageBrowser::CheckSigned_CheckedChanged);//// GroupPackage//this->GroupPackage->Controls->Add(this->TextDesc);this->GroupPackage->Controls->Add(this->panel2);this->GroupPackage->Controls->Add(this->PictureBox);this->GroupPackage->Dock = System::Windows::Forms::DockStyle::Bottom;this->GroupPackage->Location = System::Drawing::Point(0, 477);this->GroupPackage->Name = L"GroupPackage";this->GroupPackage->Size = System::Drawing::Size(739, 182);this->GroupPackage->TabIndex = 1;this->GroupPackage->TabStop = false;this->GroupPackage->Text = L"Current Package";//// TextDesc//this->TextDesc->BackColor = System::Drawing::SystemColors::Info;this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;this->TextDesc->Location = System::Drawing::Point(148, 93);this->TextDesc->Name = L"TextDesc";this->TextDesc->ReadOnly = true;this->TextDesc->Size = System::Drawing::Size(588, 86);this->TextDesc->TabIndex = 1;this->TextDesc->Text = L"";//// panel2//this->panel2->Controls->Add(this->LabRecNA);this->panel2->Controls->Add(this->LabChangeNA);this->panel2->Controls->Add(this->LabEaseNA);this->panel2->Controls->Add(this->PicRec5);this->panel2->Controls->Add(this->PicRec4);this->panel2->Controls->Add(this->PicRec3);this->panel2->Controls->Add(this->PicRec2);this->panel2->Controls->Add(this->PicChange5);this->panel2->Controls->Add(this->PicChange4);this->panel2->Controls->Add(this->PicChange3);this->panel2->Controls->Add(this->PicChange2);this->panel2->Controls->Add(this->PicEase5);this->panel2->Controls->Add(this->PicEase4);this->panel2->Controls->Add(this->PicEase3);this->panel2->Controls->Add(this->PicEase2);this->panel2->Controls->Add(this->PicRec1);this->panel2->Controls->Add(this->PicChange1);this->panel2->Controls->Add(this->PicEase1);this->panel2->Controls->Add(this->label3);this->panel2->Controls->Add(this->label2);this->panel2->Controls->Add(this->label1);this->panel2->Dock = System::Windows::Forms::DockStyle::Top;this->panel2->Location = System::Drawing::Point(148, 16);this->panel2->Name = L"panel2";this->panel2->Size = System::Drawing::Size(588, 77);this->panel2->TabIndex = 2;//// LabRecNA//this->LabRecNA->AutoSize = true;this->LabRecNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->LabRecNA->Location = System::Drawing::Point(164, 52);this->LabRecNA->Name = L"LabRecNA";this->LabRecNA->Size = System::Drawing::Size(34, 16);this->LabRecNA->TabIndex = 20;this->LabRecNA->Text = L"N/A";//// LabChangeNA//this->LabChangeNA->AutoSize = true;this->LabChangeNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->LabChangeNA->Location = System::Drawing::Point(163, 28);this->LabChangeNA->Name = L"LabChangeNA";this->LabChangeNA->Size = System::Drawing::Size(34, 16);this->LabChangeNA->TabIndex = 19;this->LabChangeNA->Text = L"N/A";//// LabEaseNA//this->LabEaseNA->AutoSize = true;this->LabEaseNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->LabEaseNA->Location = System::Drawing::Point(162, 5);this->LabEaseNA->Name = L"LabEaseNA";this->LabEaseNA->Size = System::Drawing::Size(34, 16);this->LabEaseNA->TabIndex = 18;this->LabEaseNA->Text = L"N/A";//// PicRec5//this->PicRec5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec5.Image")));this->PicRec5->Location = System::Drawing::Point(253, 48);this->PicRec5->Name = L"PicRec5";this->PicRec5->Size = System::Drawing::Size(24, 24);this->PicRec5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicRec5->TabIndex = 17;this->PicRec5->TabStop = false;//// PicRec4//this->PicRec4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec4.Image")));this->PicRec4->Location = System::Drawing::Point(230, 48);this->PicRec4->Name = L"PicRec4";this->PicRec4->Size = System::Drawing::Size(24, 24);this->PicRec4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicRec4->TabIndex = 16;this->PicRec4->TabStop = false;//// PicRec3//this->PicRec3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec3.Image")));this->PicRec3->Location = System::Drawing::Point(207, 48);this->PicRec3->Name = L"PicRec3";this->PicRec3->Size = System::Drawing::Size(24, 24);this->PicRec3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicRec3->TabIndex = 15;this->PicRec3->TabStop = false;//// PicRec2//this->PicRec2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec2.Image")));this->PicRec2->Location = System::Drawing::Point(184, 48);this->PicRec2->Name = L"PicRec2";this->PicRec2->Size = System::Drawing::Size(24, 24);this->PicRec2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicRec2->TabIndex = 14;this->PicRec2->TabStop = false;//// PicChange5//this->PicChange5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange5.Image")));this->PicChange5->Location = System::Drawing::Point(253, 24);this->PicChange5->Name = L"PicChange5";this->PicChange5->Size = System::Drawing::Size(24, 24);this->PicChange5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicChange5->TabIndex = 13;this->PicChange5->TabStop = false;//// PicChange4//this->PicChange4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange4.Image")));this->PicChange4->Location = System::Drawing::Point(230, 24);this->PicChange4->Name = L"PicChange4";this->PicChange4->Size = System::Drawing::Size(24, 24);this->PicChange4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicChange4->TabIndex = 12;this->PicChange4->TabStop = false;//// PicChange3//this->PicChange3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange3.Image")));this->PicChange3->Location = System::Drawing::Point(207, 24);this->PicChange3->Name = L"PicChange3";this->PicChange3->Size = System::Drawing::Size(24, 24);this->PicChange3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicChange3->TabIndex = 11;this->PicChange3->TabStop = false;//// PicChange2//this->PicChange2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange2.Image")));this->PicChange2->Location = System::Drawing::Point(184, 24);this->PicChange2->Name = L"PicChange2";this->PicChange2->Size = System::Drawing::Size(24, 24);this->PicChange2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicChange2->TabIndex = 10;this->PicChange2->TabStop = false;//// PicEase5//this->PicEase5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase5.Image")));this->PicEase5->Location = System::Drawing::Point(253, 0);this->PicEase5->Name = L"PicEase5";this->PicEase5->Size = System::Drawing::Size(24, 24);this->PicEase5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicEase5->TabIndex = 9;this->PicEase5->TabStop = false;//// PicEase4//this->PicEase4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase4.Image")));this->PicEase4->Location = System::Drawing::Point(230, 0);this->PicEase4->Name = L"PicEase4";this->PicEase4->Size = System::Drawing::Size(24, 24);this->PicEase4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicEase4->TabIndex = 8;this->PicEase4->TabStop = false;//// PicEase3//this->PicEase3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase3.Image")));this->PicEase3->Location = System::Drawing::Point(207, 0);this->PicEase3->Name = L"PicEase3";this->PicEase3->Size = System::Drawing::Size(24, 24);this->PicEase3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicEase3->TabIndex = 7;this->PicEase3->TabStop = false;//// PicEase2//this->PicEase2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase2.Image")));this->PicEase2->Location = System::Drawing::Point(184, 0);this->PicEase2->Name = L"PicEase2";this->PicEase2->Size = System::Drawing::Size(24, 24);this->PicEase2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicEase2->TabIndex = 6;this->PicEase2->TabStop = false;//// PicRec1//this->PicRec1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec1.Image")));this->PicRec1->Location = System::Drawing::Point(161, 48);this->PicRec1->Name = L"PicRec1";this->PicRec1->Size = System::Drawing::Size(24, 24);this->PicRec1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicRec1->TabIndex = 5;this->PicRec1->TabStop = false;//// PicChange1//this->PicChange1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange1.Image")));this->PicChange1->Location = System::Drawing::Point(161, 24);this->PicChange1->Name = L"PicChange1";this->PicChange1->Size = System::Drawing::Size(24, 24);this->PicChange1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicChange1->TabIndex = 4;this->PicChange1->TabStop = false;//// PicEase1//this->PicEase1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase1.Image")));this->PicEase1->Location = System::Drawing::Point(161, 0);this->PicEase1->Name = L"PicEase1";this->PicEase1->Size = System::Drawing::Size(24, 24);this->PicEase1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PicEase1->TabIndex = 3;this->PicEase1->TabStop = false;//// label3//this->label3->AutoSize = true;this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->label3->Location = System::Drawing::Point(4, 54);this->label3->Name = L"label3";this->label3->Size = System::Drawing::Size(113, 16);this->label3->TabIndex = 2;this->label3->Text = L"Recommended";//// label2//this->label2->AutoSize = true;this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->label2->Location = System::Drawing::Point(3, 28);this->label2->Name = L"label2";this->label2->Size = System::Drawing::Size(130, 16);this->label2->TabIndex = 1;this->label2->Text = L"Game Changing";//// label1//this->label1->AutoSize = true;this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,static_cast<System::Byte>(0)));this->label1->Location = System::Drawing::Point(4, 5);this->label1->Name = L"label1";this->label1->Size = System::Drawing::Size(95, 16);this->label1->TabIndex = 0;this->label1->Text = L"Ease Of Use";//// PictureBox//this->PictureBox->Dock = System::Windows::Forms::DockStyle::Left;this->PictureBox->Location = System::Drawing::Point(3, 16);this->PictureBox->Name = L"PictureBox";this->PictureBox->Size = System::Drawing::Size(145, 163);this->PictureBox->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;this->PictureBox->TabIndex = 0;this->PictureBox->TabStop = false;//// panel1//this->panel1->Controls->Add(this->button1);this->panel1->Controls->Add(this->ButInstall);this->panel1->Controls->Add(this->ButClose);this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;this->panel1->Location = System::Drawing::Point(0, 659);this->panel1->Name = L"panel1";this->panel1->Size = System::Drawing::Size(739, 31);this->panel1->TabIndex = 2;//// button1//this->button1->Dock = System::Windows::Forms::DockStyle::Left;this->button1->Location = System::Drawing::Point(122, 0);this->button1->Name = L"button1";this->button1->Size = System::Drawing::Size(125, 31);this->button1->TabIndex = 2;this->button1->Text = L"Download";this->button1->UseVisualStyleBackColor = true;this->button1->Visible = false;this->button1->Click += gcnew System::EventHandler(this, &PackageBrowser::button1_Click);//// ButInstall//this->ButInstall->DialogResult = System::Windows::Forms::DialogResult::OK;this->ButInstall->Dock = System::Windows::Forms::DockStyle::Left;this->ButInstall->Location = System::Drawing::Point(0, 0);this->ButInstall->Name = L"ButInstall";this->ButInstall->Size = System::Drawing::Size(122, 31);this->ButInstall->TabIndex = 1;this->ButInstall->Text = L"Install Package";this->ButInstall->UseVisualStyleBackColor = true;//// ButClose//this->ButClose->DialogResult = System::Windows::Forms::DialogResult::Cancel;this->ButClose->Dock = System::Windows::Forms::DockStyle::Right;this->ButClose->Location = System::Drawing::Point(633, 0);this->ButClose->Name = L"ButClose";this->ButClose->Size = System::Drawing::Size(106, 31);this->ButClose->TabIndex = 0;this->ButClose->Text = L"Close";this->ButClose->UseVisualStyleBackColor = true;//// ListPackages//this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(6) {this->ColPackage, this->ColAuthor,this->ColVersion, this->ColUpdated, this->ColType, this->ColSigned});this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;this->ListPackages->FullRowSelect = true;this->ListPackages->LargeImageList = this->imageList1;this->ListPackages->Location = System::Drawing::Point(0, 44);this->ListPackages->MultiSelect = false;this->ListPackages->Name = L"ListPackages";this->ListPackages->Size = System::Drawing::Size(739, 433);this->ListPackages->SmallImageList = this->imageList1;this->ListPackages->Sorting = System::Windows::Forms::SortOrder::Ascending;this->ListPackages->TabIndex = 3;this->ListPackages->UseCompatibleStateImageBehavior = false;this->ListPackages->View = System::Windows::Forms::View::Details;//// ColPackage//this->ColPackage->Text = L"Package";//// ColAuthor//this->ColAuthor->Text = L"Author";//// ColVersion//this->ColVersion->Text = L"Version";//// ColUpdated//this->ColUpdated->Text = L"Updated";//// ColType//this->ColType->Text = L"Script Type";//// imageList1//this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"imageList1.ImageStream")));this->imageList1->TransparentColor = System::Drawing::Color::Transparent;this->imageList1->Images->SetKeyName(0, L"download");//// ColSigned//this->ColSigned->Text = L"Signed";//// PackageBrowser//this->AcceptButton = this->ButInstall;this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;this->CancelButton = this->ButClose;this->ClientSize = System::Drawing::Size(739, 690);this->Controls->Add(this->ListPackages);this->Controls->Add(this->GroupPackage);this->Controls->Add(this->panel1);this->Controls->Add(this->GroupFilter);this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));this->Name = L"PackageBrowser";this->Text = L"Package Browser";this->GroupFilter->ResumeLayout(false);this->flowLayoutPanel1->ResumeLayout(false);this->flowLayoutPanel1->PerformLayout();this->GroupPackage->ResumeLayout(false);this->panel2->ResumeLayout(false);this->panel2->PerformLayout();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec5))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec4))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec3))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec2))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange5))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange4))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange3))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange2))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase5))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase4))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase3))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase2))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec1))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange1))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase1))->EndInit();(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureBox))->EndInit();this->panel1->ResumeLayout(false);this->ResumeLayout(false);}#pragma endregionprivate: System::Void CheckShips_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {this->UpdatePackages();}private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {this->UpdatePackages();}private: System::Void CheckSigned_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {this->UpdatePackages();}private: System::Void CheckCheat_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {this->UpdatePackages();}private: System::Void CheckExperimental_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {this->UpdatePackages();}private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {this->DownloadPackage();}};}