Subversion Repositories spk

Rev

Rev 248 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

#include "../../common/listviewsorter.h"
#include "../../SpkExplorer/src/Forms/DropFileDialog.h"
#include "../../SpkExplorer/src/Forms/AddDialog.h"
#include "InputBox.h"
#include "AddWare.h"
#include "AddWareText.h"
#include "AddShipText.h"
#include "LoadShip.h"
#include "AddShipPart.h"
#include "AddDepend.h"

#include "BaseForm.h"
#include "Options.h"
#include "CustomiseShip.h"
#include "SelectGame.h"

#undef GetTempPath


namespace Creator {
        /// <summary>
        /// Summary for PackageForm
        ///
        /// 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>
        /// 
        
        /*
        public ref class PackageForm : public System::Windows::Forms::Form
        #define DESIGNER
        */

                
#ifdef DESIGNER
        public ref class PackageForm : public System::Windows::Forms::Form
#else
        public ref class PackageForm : public Creator::BaseForm
#endif  

        {
        public:
                PackageForm(System::Windows::Forms::Form ^parent, System::Windows::Forms::TabControl ^ctrl, System::Windows::Forms::TabPage ^page, System::Windows::Forms::ToolStripMenuItem ^tool, CPackages *p, Windows::Forms::ImageList ^imagelist, SSettings *set)                 
#ifndef DESIGNER
                        : BaseForm(parent, ctrl, page, tool, p, imagelist, set),
                        _addGameItem(nullptr),
                        _removeGameItem(nullptr)
#endif

                {
                        InitializeComponent();
                        m_pSettings = set;
                        _init();
                }

                void _init();

                void SetImageLists(ImageList ^smallList, ImageList ^largeList, ImageList ^gameList, ImageList ^fileList);
                CGameDirectories *gameDirectories();

                void CreateShip() { 
                        if ( m_pPackage ) delete m_pPackage; 
                        m_pPackage = new CXspFile; 
                        ((CXspFile *)m_pPackage)->setShipData(L"0;0;0;0;0;0;0;0;0;106;1;5;37;0;112;202;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;35;36;1;0;0;0;0;0;1;0;25;1;0;0;0;0;0;SC_NEW_SHIP;");
                }
                void CreatePackage() { 
                        System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageForm::typeid));
                        this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
                        if ( m_pPackage ) delete m_pPackage; 
                        m_pPackage = new CSpkFile; 
                }
                void CreateBase() { if ( m_pPackage ) delete m_pPackage; m_pPackage = new CBaseFile; this->UpdateView(); }

                bool LoadPackage(CBaseFile *base, System::String ^filename);
                CBaseFile *GetPackage() { return m_pPackage; }

                virtual void Save() new;
                virtual void SaveAs() new;

                void UpdateChanged()
                {
                        if ( m_bLoading )
                                return;
                        if ( !m_pPackage )
                                return;

                        String ^text = _US(CFileIO(m_pPackage->filename()).filename());
                        String ^addonText = "";
                        if ( text->Length < 1 )
                        {
                                if ( m_pPackage->GetType() == TYPE_XSP )
                                        text = "New Ship";
                                else
                                        text = "New Package";
                        }
                        
                        if ( m_pPackage->hasChanged() )
                                addonText += "*";
                        if ( m_pPackage->IsSigned() )
                                addonText += " (Signed)";
                        m_pTabPage->Text = text + addonText;
                        this->Text = m_sFilename + addonText;
                }

                void Export()
                {
                        int game = 0;
                        if ( m_pPackage->IsMultipleGamesInPackage() ) {
                                SelectGame ^selGame = gcnew SelectGame("Select game to extract package:\n" + _US(m_pPackage->filename()), m_pP);
                                if ( selGame->ShowDialog(this) == Windows::Forms::DialogResult::OK ) {
                                        game = selGame->GetGame() + 1;
                                }
                                else
                                        return;
                        }
                        else if ( m_pPackage->IsAnyGameInPackage() ) {
                                game = m_pPackage->FindFirstGameInPackage();
                        }

                        SaveFileDialog ^ofd = gcnew SaveFileDialog();
                        ofd->Filter = "Zip Archive (*.zip)|*.zip";
                        ofd->FileName = _US((CFileIO(m_pPackage->filename()).dir() + L"/" + CFileIO(m_pPackage->filename()).baseName() + L"_" + CBaseFile::ConvertGameToString(game) + L".zip").findReplace(L"/", L"\\"));
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->AddExtension =  true;
                        ofd->Title = "Select the archive to export to";
                        if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                        {
                                if ( m_pPackage->saveToArchive(_WS(ofd->FileName), game, m_pP->GetGameExe()) )
                                        MessageBox::Show(this, "Package saved to archive, " + ofd->FileName, "Package Exported", MessageBoxButtons::OK, MessageBoxIcon::Information);
                                else
                                        MessageBox::Show(this, "Unable to export to archive, " + ofd->FileName, "Export Failed", MessageBoxButtons::OK, MessageBoxIcon::Error);
                        }
                }

        protected:
                /// <summary>
                /// Clean up any resources being used.
                /// </summary>
                ~PackageForm();

        private:
                void DropGetDirectories(String ^dir, Utils::WStringList *list, bool packages);
                void UpdateMirrors();
                void UpdatePackageNames();
                void UpdateView();
                void Setup();
                void AddFile(C_File *file);
                void UpdateFileList();
                void UpdateGamesList();
                void AddNewFile();
                bool CheckSave();
                void UpdateGameVersion();
                void AddDisplayPic();
                void UpdateDisplayPic();
                void UpdateDisplayIcon();
                void AddDisplayIcon();
                void UpdateRatings();
                void UpdateText();
                void UpdateTextLang();
                void SaveText();
                void UpdateWares();
                void UpdateWareText();
                void UpdateShipText();
                void LoadShipData();
                void UpdateShipPartList();
                void UpdateDependacies();
                void UpdateGlobals();
                void DoToolTips();
                void EditShipParts(bool edit);
                void RemoveSelectedFiles();
                void UpdateScriptType();
                void ImportData(String ^file, int type);
                void ImportAnimations(String ^file);
                String ^ExtractImport(String ^text, String ^type);
                void EditDepend();
                void AddNewGlobal();
                void EditGlobal();

                Windows::Forms::ImageList ^imageListFiles;
                CBaseFile *m_pPackage;
                bool    m_bSortingAsc;
                int             m_iSortingCol;
                Utils::WStringList *m_pTypeList;
                C_File *m_pDisplayFile;
                int             m_iSelectedGame;
                CPackages *_pPackages;

                ToolStripMenuItem ^_addGameItem;
                ToolStripMenuItem ^_removeGameItem;

private: System::Windows::Forms::ContextMenuStrip^  ContextShipText;
private: System::Windows::Forms::ToolStripMenuItem^  addLanguageToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextShipTextSep1;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextEdit;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextRemove;
private: System::Windows::Forms::ToolStripSeparator^  ContextShipTextSep2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipTextClear;
private: System::Windows::Forms::TabPage^  PageRaw;
private: System::Windows::Forms::Panel^  panel23;
private: System::Windows::Forms::RichTextBox^  TextShipData;
private: System::Windows::Forms::CheckBox^  checkBox1;
private: System::Windows::Forms::Button^  button3;
private: System::Windows::Forms::Panel^  panel24;
private: System::Windows::Forms::Label^  label17;
private: System::Windows::Forms::TabPage^  PageShipComp;
private: System::Windows::Forms::Panel^  panel25;
private: System::Windows::Forms::ComboBox^  ComboShipPart;
private: System::Windows::Forms::Label^  label18;
private: System::Windows::Forms::Panel^  panel26;
private: System::Windows::Forms::ListView^  ListShipPart;
private: System::Windows::Forms::ColumnHeader^  ColumnPart1;
private: System::Windows::Forms::ColumnHeader^  ColumnPart2;
private: System::Windows::Forms::ColumnHeader^  ColumnPart3;
private: System::Windows::Forms::ToolStrip^  toolStrip1;
private: System::Windows::Forms::ToolStripButton^  toolStripButton2;
private: System::Windows::Forms::ToolStripButton^  toolStripButton3;
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator3;
private: System::Windows::Forms::ToolStripButton^  toolStripButton1;
private: System::Windows::Forms::ContextMenuStrip^  ContextShipPart;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartAdd;
private: System::Windows::Forms::ToolStripSeparator^  ContextShipPartSep1;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartRemove;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartEdit;
private: System::Windows::Forms::ToolStripSeparator^  ContextShipPartSep2;
private: System::Windows::Forms::TabPage^  tabPage4;
private: System::Windows::Forms::ListView^  ListDep;
private: System::Windows::Forms::ColumnHeader^  columnHeader22;
private: System::Windows::Forms::ColumnHeader^  columnHeader23;
private: System::Windows::Forms::ColumnHeader^  columnHeader24;
private: System::Windows::Forms::ContextMenuStrip^  ContextDep;
private: System::Windows::Forms::ToolStripSeparator^  ContextDepSep2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextDepClear;
private: System::Windows::Forms::ToolStripMenuItem^  ContextDepRemove;
private: System::Windows::Forms::ToolStripMenuItem^  addToolStripMenuItem1;
private: System::Windows::Forms::ToolStripMenuItem^  manualToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextDepSep1;
private: System::Windows::Forms::ToolStripMenuItem^  fromPackageToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  editSelectedToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextFileSep2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileClear;
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileDelete;
private: System::Windows::Forms::ToolStripMenuItem^  addFileToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextFileSep1;
private: System::Windows::Forms::ToolStripMenuItem^  ContextFileEdit;
private: System::Windows::Forms::TextBox^  TextCustomType;
private: System::Windows::Forms::ToolStripMenuItem^  importTextToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  fromFileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  fromDirectoryToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  fromModToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  importToolStripMenuItem;
private: System::Windows::Forms::ToolTip^  toolTip1;
private: System::Windows::Forms::ToolTip^  toolTip2;
private: System::Windows::Forms::ToolStripMenuItem^  packFileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  unpackFileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  convertToFakePatchToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  convertToNormalModToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  renameFileToolStripMenuItem;
private: System::Windows::Forms::ToolStripButton^  toolStripButton4;
private: System::Windows::Forms::Label^  LabelShipWarning;
private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel3;
private: System::Windows::Forms::Button^  button5;
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
private: System::Windows::Forms::ToolStripButton^  ToolCustomise;
private: System::Windows::Forms::ToolStripButton^  toolStripButton5;
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
private: System::Windows::Forms::ToolStripMenuItem^  convertToAutoTextFileToolStripMenuItem;
private: System::Windows::Forms::ColumnHeader^  columnHeader25;
private: System::Windows::Forms::TabPage^  tabPage5;
private: System::Windows::Forms::GroupBox^  groupBox8;
private: System::Windows::Forms::Panel^  panel10;
private: System::Windows::Forms::Panel^  panel21;
private: System::Windows::Forms::ComboBox^  ComboVersion;
private: System::Windows::Forms::TextBox^  TextExactVersion;
private: System::Windows::Forms::Button^  ButGame;
private: System::Windows::Forms::ListView^  ListGames;
private: System::Windows::Forms::ColumnHeader^  columnHeader26;
private: System::Windows::Forms::ColumnHeader^  columnHeader27;
private: System::Windows::Forms::Button^  ButGameAdd;
private: System::Windows::Forms::ColumnHeader^  columnHeader28;
private: System::Windows::Forms::ToolStripMenuItem^  ToolGame;
private: System::Windows::Forms::ComboBox^  ComboGameFilter;
private: System::Windows::Forms::ToolStripMenuItem^  ContextShipPartClear;
private: System::Windows::Forms::Panel^  panel6;
private: System::Windows::Forms::Button^  ButRemoveFile;
private: System::Windows::Forms::Button^  button2;
private: System::Windows::Forms::Button^  button1;
private: System::Windows::Forms::ColumnHeader^  columnHeader18;
private: System::Windows::Forms::Panel^  panel22;
private: System::Windows::Forms::Label^  label15;
private: System::Windows::Forms::ComboBox^  ComboPluginType;
private: System::Windows::Forms::TabPage^  PageShip;
private: System::Windows::Forms::CheckBox^  CheckShipID;
private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel2;
private: System::Windows::Forms::CheckBox^  CheckSYArgon;
private: System::Windows::Forms::CheckBox^  CheckSYBoron;
private: System::Windows::Forms::CheckBox^  CheckSYParanid;
private: System::Windows::Forms::CheckBox^  CheckSYTeladi;
private: System::Windows::Forms::CheckBox^  CheckSYSplit;
private: System::Windows::Forms::CheckBox^  CheckSYPirate;
private: System::Windows::Forms::CheckBox^  CheckSYFriend;
private: System::Windows::Forms::CheckBox^  CheckSYXenon;
private: System::Windows::Forms::CheckBox^  CheckSYTerran;
private: System::Windows::Forms::CheckBox^  CheckSYATF;
private: System::Windows::Forms::ListView^  ListShipText;
private: System::Windows::Forms::CheckBox^  CheckSYYaki;
private: System::Windows::Forms::CheckBox^  CheckExistingText;
private: System::Windows::Forms::ColumnHeader^  columnHeader19;
private: System::Windows::Forms::ColumnHeader^  columnHeader20;
private: System::Windows::Forms::ColumnHeader^  columnHeader21;
private: System::Windows::Forms::Panel^  PanelTextID;
private: System::Windows::Forms::NumericUpDown^  NumTextID;
private: System::Windows::Forms::Label^  label6;
private: System::Windows::Forms::Panel^  PanelShip;
private: System::Windows::Forms::TextBox^  TextShipID;
private: System::Windows::Forms::Label^  label16;
private: System::Windows::Forms::Panel^  panel7;
private: System::Windows::Forms::GroupBox^  groupBox2;
private: System::Windows::Forms::RichTextBox^  TextDesc;
private: System::Windows::Forms::Panel^  panel8;
private: System::Windows::Forms::Label^  label7;
private: System::Windows::Forms::RadioButton^  RadioTypeUpdate;
private: System::Windows::Forms::RadioButton^  RadioTypeStart;
private: System::Windows::Forms::RadioButton^  RadioTypeScript;
private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel1;
private: System::Windows::Forms::RadioButton^  RadioTypeLibrary;
private: System::Windows::Forms::RadioButton^  RadioTypePatch;
private: System::Windows::Forms::Panel^  panel9;
private: System::Windows::Forms::ComboBox^  ComboType;
private: System::Windows::Forms::TabPage^  PagePackage;
private: System::Windows::Forms::TabPage^  tabPage2;
private: System::Windows::Forms::Panel^  panel12;
private: System::Windows::Forms::Label^  label10;
private: System::Windows::Forms::Panel^  panel11;
private: System::Windows::Forms::Label^  label9;
private: System::Windows::Forms::Panel^  panel13;
private: System::Windows::Forms::Label^  label11;
private: System::Windows::Forms::TabPage^  tabPage3;
private: System::Windows::Forms::GroupBox^  groupBox3;
private: System::Windows::Forms::CheckBox^  CheckOther;
private: System::Windows::Forms::Label^  label13;
private: System::Windows::Forms::TextBox^  TextOtherName;
private: System::Windows::Forms::Label^  label12;
private: System::Windows::Forms::TextBox^  TextOtherAuthor;
private: System::Windows::Forms::Button^  ButFromFile;
private: System::Windows::Forms::GroupBox^  groupBox4;
private: System::Windows::Forms::Label^  label14;
private: System::Windows::Forms::ListView^  ListNames;
private: System::Windows::Forms::ColumnHeader^  columnHeader7;
private: System::Windows::Forms::ColumnHeader^  columnHeader8;
private: System::Windows::Forms::ListView^  ListMirrors;
private: System::Windows::Forms::ColumnHeader^  columnHeader6;
private: System::Windows::Forms::Panel^  panel14;
private: System::Windows::Forms::ContextMenuStrip^  ContextMirror;
private: System::Windows::Forms::ContextMenuStrip^  ContextLangName;
private: System::Windows::Forms::ToolStripMenuItem^  addMirrorToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;
private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^  ContextRemoveMirror;
private: System::Windows::Forms::ToolStripMenuItem^  addToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextEditName;
private: System::Windows::Forms::ToolStripMenuItem^  ContextRemoveName;
private: System::Windows::Forms::ToolStripSeparator^  ContextNameSep;
private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem1;
private: System::Windows::Forms::Panel^  panel15;
private: System::Windows::Forms::Panel^  panel16;
private: System::Windows::Forms::Button^  ButPicAdd;
private: System::Windows::Forms::Button^  ButPicDel;
private: System::Windows::Forms::Button^  ButPicNext;
private: System::Windows::Forms::Button^  ButPicBack;
private: System::Windows::Forms::PictureBox^  DisplayPicture;
private: System::Windows::Forms::GroupBox^  groupBox5;
private: System::Windows::Forms::PictureBox^  DisplayIcon;
private: System::Windows::Forms::Button^  button4;
private: System::Windows::Forms::Button^  ButIconDel;
private: System::Windows::Forms::GroupBox^  groupBox6;
private: System::Windows::Forms::Panel^  panel17;
private: System::Windows::Forms::GroupBox^  GroupChange;
private: System::Windows::Forms::GroupBox^  GroupRec;
private: System::Windows::Forms::GroupBox^  GroupEase;
private: System::Windows::Forms::PictureBox^  PicRec4;
private: System::Windows::Forms::PictureBox^  PicRec3;
private: System::Windows::Forms::PictureBox^  PicRec2;
private: System::Windows::Forms::PictureBox^  PicRec1;
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^  PicEase1;
private: System::Windows::Forms::PictureBox^  PicChange4;
private: System::Windows::Forms::PictureBox^  PicChange3;
private: System::Windows::Forms::PictureBox^  PicChange2;
private: System::Windows::Forms::PictureBox^  PicChange5;
private: System::Windows::Forms::PictureBox^  PicChange1;
private: System::Windows::Forms::GroupBox^  groupBox7;
private: System::Windows::Forms::Panel^  panel19;
private: System::Windows::Forms::Button^  ButTextAdd;
private: System::Windows::Forms::Button^  ButTextDel;
private: System::Windows::Forms::ListBox^  ListLang;
private: System::Windows::Forms::RichTextBox^  TextText;
private: System::Windows::Forms::Panel^  panel18;
private: System::Windows::Forms::RadioButton^  RadioInstallAfter;
private: System::Windows::Forms::RadioButton^  RadioInstallBefore;
private: System::Windows::Forms::Panel^  panel20;
private: System::Windows::Forms::RadioButton^  RadioUninstallAfter;
private: System::Windows::Forms::RadioButton^  RadioUninstallBefore;
private: System::Windows::Forms::TabPage^  PageWares;
private: System::Windows::Forms::SplitContainer^  splitContainer1;
private: System::Windows::Forms::ListView^  ListWares;
private: System::Windows::Forms::ColumnHeader^  columnHeader9;
private: System::Windows::Forms::ColumnHeader^  columnHeader10;
private: System::Windows::Forms::ColumnHeader^  columnHeader11;
private: System::Windows::Forms::ColumnHeader^  columnHeader12;
private: System::Windows::Forms::ColumnHeader^  columnHeader13;
private: System::Windows::Forms::ColumnHeader^  columnHeader14;
private: System::Windows::Forms::ListView^  ListWareText;
private: System::Windows::Forms::ColumnHeader^  columnHeader15;
private: System::Windows::Forms::ColumnHeader^  columnHeader16;
private: System::Windows::Forms::ColumnHeader^  columnHeader17;
private: System::Windows::Forms::ContextMenuStrip^  ContextWare;
private: System::Windows::Forms::ToolStripMenuItem^  addWareToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextWareSep1;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareEdit;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareRemove;
private: System::Windows::Forms::ToolStripSeparator^  ContextWareSep2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWareClear;
private: System::Windows::Forms::ContextMenuStrip^  ContextWareText;
private: System::Windows::Forms::ToolStripMenuItem^  addTextToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^  ContextWTSep1;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTRemove;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTEdit;
private: System::Windows::Forms::ToolStripSeparator^  ContextWTSep2;
private: System::Windows::Forms::ToolStripMenuItem^  ContextWTClear;
private: System::Windows::Forms::PictureBox^  PicRec5;
private: System::Windows::Forms::RichTextBox^  TextForum;
private: System::Windows::Forms::RichTextBox^  TextEmail;
private: System::Windows::Forms::RichTextBox^  TextWebsite;
private: System::Windows::Forms::ContextMenuStrip^  ContextFiles;
private: System::Windows::Forms::RichTextBox^  TextWebAddress;
private: System::Windows::Forms::ContextMenuStrip^  ContextGames;
private: System::Windows::Forms::ToolStripMenuItem^  testToolStripMenuItem;
private: System::Windows::Forms::GroupBox^  groupBox1;
private: System::Windows::Forms::TabControl^  tabControl1;
private: System::Windows::Forms::TabPage^  tabPage1;
private: System::Windows::Forms::Panel^  panel1;
private: System::Windows::Forms::TextBox^  TextName;
private: System::Windows::Forms::Label^  label1;
private: System::Windows::Forms::Panel^  panel2;
private: System::Windows::Forms::TextBox^  TextAuthor;
private: System::Windows::Forms::Label^  label2;
private: System::Windows::Forms::Panel^  panel3;
private: System::Windows::Forms::TextBox^  TextVersion;
private: System::Windows::Forms::Label^  label3;
private: System::Windows::Forms::Panel^  panel4;
private: System::Windows::Forms::Label^  label4;
private: System::Windows::Forms::ListView^  ListFiles;
private: System::Windows::Forms::Panel^  panel5;
private: System::Windows::Forms::ComboBox^  ComboFileType;
private: System::Windows::Forms::Label^  label5;
private: System::Windows::Forms::DateTimePicker^  CreationDate;
private: System::Windows::Forms::ColumnHeader^  columnHeader1;
private: System::Windows::Forms::ColumnHeader^  columnHeader2;
private: System::Windows::Forms::ColumnHeader^  columnHeader3;
private: System::Windows::Forms::ColumnHeader^  columnHeader4;
private: System::Windows::Forms::ColumnHeader^  columnHeader5;
private: System::Windows::Forms::TabPage^ tabGlobals;
private: System::Windows::Forms::Button^ butGlobalClear;
private: System::Windows::Forms::Button^ butAddGlobal;
private: System::Windows::Forms::ListView^ listGlobals;
private: System::Windows::Forms::ColumnHeader^ ColGlobalName;
private: System::Windows::Forms::ColumnHeader^ ColGlobalValue;
private: System::Windows::Forms::ContextMenuStrip^ contextGlobal;
private: System::Windows::Forms::ToolStripMenuItem^ addNewToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^ toolStripSeparator6;
private: System::Windows::Forms::ToolStripMenuItem^ editSelectedToolStripMenuItem1;
private: System::Windows::Forms::ToolStripMenuItem^ removeSelectedToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^ toolStripSeparator7;
private: System::Windows::Forms::ToolStripMenuItem^ clearAllToolStripMenuItem2;



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(PackageForm::typeid));
                        this->PicChange5 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicChange1 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicRec5 = (gcnew System::Windows::Forms::PictureBox());
                        this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
                        this->ListFiles = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader25 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader28 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextFiles = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextFileSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextFileEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextFileDelete = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->renameFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ToolGame = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->packFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->unpackFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->convertToFakePatchToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->convertToAutoTextFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->convertToNormalModToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextFileSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextFileClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->panel6 = (gcnew System::Windows::Forms::Panel());
                        this->ButRemoveFile = (gcnew System::Windows::Forms::Button());
                        this->button2 = (gcnew System::Windows::Forms::Button());
                        this->button1 = (gcnew System::Windows::Forms::Button());
                        this->panel5 = (gcnew System::Windows::Forms::Panel());
                        this->ComboFileType = (gcnew System::Windows::Forms::ComboBox());
                        this->ComboGameFilter = (gcnew System::Windows::Forms::ComboBox());
                        this->label5 = (gcnew System::Windows::Forms::Label());
                        this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
                        this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
                        this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
                        this->TextDesc = (gcnew System::Windows::Forms::RichTextBox());
                        this->panel13 = (gcnew System::Windows::Forms::Panel());
                        this->TextForum = (gcnew System::Windows::Forms::RichTextBox());
                        this->label11 = (gcnew System::Windows::Forms::Label());
                        this->panel12 = (gcnew System::Windows::Forms::Panel());
                        this->TextEmail = (gcnew System::Windows::Forms::RichTextBox());
                        this->label10 = (gcnew System::Windows::Forms::Label());
                        this->panel11 = (gcnew System::Windows::Forms::Panel());
                        this->TextWebsite = (gcnew System::Windows::Forms::RichTextBox());
                        this->label9 = (gcnew System::Windows::Forms::Label());
                        this->LabelShipWarning = (gcnew System::Windows::Forms::Label());
                        this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
                        this->ListGames = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader26 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader27 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->groupBox8 = (gcnew System::Windows::Forms::GroupBox());
                        this->panel10 = (gcnew System::Windows::Forms::Panel());
                        this->panel21 = (gcnew System::Windows::Forms::Panel());
                        this->ComboVersion = (gcnew System::Windows::Forms::ComboBox());
                        this->TextExactVersion = (gcnew System::Windows::Forms::TextBox());
                        this->ButGameAdd = (gcnew System::Windows::Forms::Button());
                        this->ButGame = (gcnew System::Windows::Forms::Button());
                        this->ContextGames = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->testToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->PagePackage = (gcnew System::Windows::Forms::TabPage());
                        this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
                        this->TextOtherName = (gcnew System::Windows::Forms::TextBox());
                        this->label13 = (gcnew System::Windows::Forms::Label());
                        this->label12 = (gcnew System::Windows::Forms::Label());
                        this->CheckOther = (gcnew System::Windows::Forms::CheckBox());
                        this->TextOtherAuthor = (gcnew System::Windows::Forms::TextBox());
                        this->ButFromFile = (gcnew System::Windows::Forms::Button());
                        this->panel22 = (gcnew System::Windows::Forms::Panel());
                        this->ComboPluginType = (gcnew System::Windows::Forms::ComboBox());
                        this->label15 = (gcnew System::Windows::Forms::Label());
                        this->panel7 = (gcnew System::Windows::Forms::Panel());
                        this->panel8 = (gcnew System::Windows::Forms::Panel());
                        this->flowLayoutPanel1 = (gcnew System::Windows::Forms::FlowLayoutPanel());
                        this->RadioTypeUpdate = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioTypeLibrary = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioTypeStart = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioTypePatch = (gcnew System::Windows::Forms::RadioButton());
                        this->panel9 = (gcnew System::Windows::Forms::Panel());
                        this->TextCustomType = (gcnew System::Windows::Forms::TextBox());
                        this->ComboType = (gcnew System::Windows::Forms::ComboBox());
                        this->RadioTypeScript = (gcnew System::Windows::Forms::RadioButton());
                        this->label7 = (gcnew System::Windows::Forms::Label());
                        this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
                        this->groupBox7 = (gcnew System::Windows::Forms::GroupBox());
                        this->TextText = (gcnew System::Windows::Forms::RichTextBox());
                        this->panel19 = (gcnew System::Windows::Forms::Panel());
                        this->ListLang = (gcnew System::Windows::Forms::ListBox());
                        this->panel20 = (gcnew System::Windows::Forms::Panel());
                        this->ButTextDel = (gcnew System::Windows::Forms::Button());
                        this->ButTextAdd = (gcnew System::Windows::Forms::Button());
                        this->panel18 = (gcnew System::Windows::Forms::Panel());
                        this->RadioUninstallAfter = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioUninstallBefore = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioInstallAfter = (gcnew System::Windows::Forms::RadioButton());
                        this->RadioInstallBefore = (gcnew System::Windows::Forms::RadioButton());
                        this->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
                        this->panel17 = (gcnew System::Windows::Forms::Panel());
                        this->GroupChange = (gcnew System::Windows::Forms::GroupBox());
                        this->PicChange4 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicChange3 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicChange2 = (gcnew System::Windows::Forms::PictureBox());
                        this->GroupRec = (gcnew System::Windows::Forms::GroupBox());
                        this->PicRec4 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicRec3 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicRec2 = (gcnew System::Windows::Forms::PictureBox());
                        this->PicRec1 = (gcnew System::Windows::Forms::PictureBox());
                        this->GroupEase = (gcnew System::Windows::Forms::GroupBox());
                        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->PicEase1 = (gcnew System::Windows::Forms::PictureBox());
                        this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
                        this->ButIconDel = (gcnew System::Windows::Forms::Button());
                        this->DisplayIcon = (gcnew System::Windows::Forms::PictureBox());
                        this->button4 = (gcnew System::Windows::Forms::Button());
                        this->panel15 = (gcnew System::Windows::Forms::Panel());
                        this->DisplayPicture = (gcnew System::Windows::Forms::PictureBox());
                        this->panel16 = (gcnew System::Windows::Forms::Panel());
                        this->ButPicAdd = (gcnew System::Windows::Forms::Button());
                        this->ButPicDel = (gcnew System::Windows::Forms::Button());
                        this->ButPicNext = (gcnew System::Windows::Forms::Button());
                        this->ButPicBack = (gcnew System::Windows::Forms::Button());
                        this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
                        this->ListNames = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextLangName = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextEditName = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextRemoveName = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextNameSep = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->clearAllToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
                        this->ListMirrors = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextMirror = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addMirrorToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextRemoveMirror = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->clearAllToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->panel14 = (gcnew System::Windows::Forms::Panel());
                        this->TextWebAddress = (gcnew System::Windows::Forms::RichTextBox());
                        this->label14 = (gcnew System::Windows::Forms::Label());
                        this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
                        this->ListDep = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader22 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader23 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader24 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextDep = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->manualToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->fromPackageToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextDepSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->editSelectedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextDepRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextDepSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextDepClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->PageWares = (gcnew System::Windows::Forms::TabPage());
                        this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
                        this->ListWares = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader9 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader10 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader11 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader12 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader13 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader14 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader18 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextWare = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addWareToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWareSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextWareEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWareRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWareSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextWareClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ListWareText = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader15 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader16 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader17 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextWareText = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addTextToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWTSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextWTRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWTEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextWTSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextWTClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->PageShip = (gcnew System::Windows::Forms::TabPage());
                        this->ListShipText = (gcnew System::Windows::Forms::ListView());
                        this->columnHeader19 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader20 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->columnHeader21 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextShipText = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->importTextToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->fromFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->fromDirectoryToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->fromModToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->addLanguageToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipTextSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextShipTextEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipTextRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipTextSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextShipTextClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->PanelTextID = (gcnew System::Windows::Forms::Panel());
                        this->NumTextID = (gcnew System::Windows::Forms::NumericUpDown());
                        this->CheckExistingText = (gcnew System::Windows::Forms::CheckBox());
                        this->flowLayoutPanel2 = (gcnew System::Windows::Forms::FlowLayoutPanel());
                        this->label16 = (gcnew System::Windows::Forms::Label());
                        this->CheckSYArgon = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYBoron = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYParanid = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYTeladi = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYSplit = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYPirate = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYFriend = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYXenon = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYTerran = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYATF = (gcnew System::Windows::Forms::CheckBox());
                        this->CheckSYYaki = (gcnew System::Windows::Forms::CheckBox());
                        this->PageRaw = (gcnew System::Windows::Forms::TabPage());
                        this->panel23 = (gcnew System::Windows::Forms::Panel());
                        this->TextShipData = (gcnew System::Windows::Forms::RichTextBox());
                        this->panel24 = (gcnew System::Windows::Forms::Panel());
                        this->label17 = (gcnew System::Windows::Forms::Label());
                        this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
                        this->flowLayoutPanel3 = (gcnew System::Windows::Forms::FlowLayoutPanel());
                        this->button3 = (gcnew System::Windows::Forms::Button());
                        this->button5 = (gcnew System::Windows::Forms::Button());
                        this->PageShipComp = (gcnew System::Windows::Forms::TabPage());
                        this->panel26 = (gcnew System::Windows::Forms::Panel());
                        this->ListShipPart = (gcnew System::Windows::Forms::ListView());
                        this->ColumnPart1 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ColumnPart2 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ColumnPart3 = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ContextShipPart = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->importToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipPartAdd = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipPartSep1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextShipPartRemove = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipPartEdit = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->ContextShipPartSep2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ContextShipPartClear = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->panel25 = (gcnew System::Windows::Forms::Panel());
                        this->ComboShipPart = (gcnew System::Windows::Forms::ComboBox());
                        this->label18 = (gcnew System::Windows::Forms::Label());
                        this->tabGlobals = (gcnew System::Windows::Forms::TabPage());
                        this->butGlobalClear = (gcnew System::Windows::Forms::Button());
                        this->butAddGlobal = (gcnew System::Windows::Forms::Button());
                        this->listGlobals = (gcnew System::Windows::Forms::ListView());
                        this->ColGlobalName = (gcnew System::Windows::Forms::ColumnHeader());
                        this->ColGlobalValue = (gcnew System::Windows::Forms::ColumnHeader());
                        this->contextGlobal = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
                        this->addNewToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->editSelectedToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->removeSelectedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator7 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->clearAllToolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->CheckShipID = (gcnew System::Windows::Forms::CheckBox());
                        this->panel1 = (gcnew System::Windows::Forms::Panel());
                        this->TextName = (gcnew System::Windows::Forms::TextBox());
                        this->label1 = (gcnew System::Windows::Forms::Label());
                        this->panel2 = (gcnew System::Windows::Forms::Panel());
                        this->TextAuthor = (gcnew System::Windows::Forms::TextBox());
                        this->label2 = (gcnew System::Windows::Forms::Label());
                        this->panel3 = (gcnew System::Windows::Forms::Panel());
                        this->TextVersion = (gcnew System::Windows::Forms::TextBox());
                        this->label3 = (gcnew System::Windows::Forms::Label());
                        this->panel4 = (gcnew System::Windows::Forms::Panel());
                        this->CreationDate = (gcnew System::Windows::Forms::DateTimePicker());
                        this->label4 = (gcnew System::Windows::Forms::Label());
                        this->label6 = (gcnew System::Windows::Forms::Label());
                        this->PanelShip = (gcnew System::Windows::Forms::Panel());
                        this->TextShipID = (gcnew System::Windows::Forms::TextBox());
                        this->toolStrip1 = (gcnew System::Windows::Forms::ToolStrip());
                        this->toolStripButton2 = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolStripButton3 = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolStripButton5 = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->toolStripButton1 = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolStripButton4 = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->ToolCustomise = (gcnew System::Windows::Forms::ToolStripButton());
                        this->toolTip1 = (gcnew System::Windows::Forms::ToolTip(this->components));
                        this->toolTip2 = (gcnew System::Windows::Forms::ToolTip(this->components));
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicChange5))->BeginInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicChange1))->BeginInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicRec5))->BeginInit();
                        this->groupBox1->SuspendLayout();
                        this->ContextFiles->SuspendLayout();
                        this->panel6->SuspendLayout();
                        this->panel5->SuspendLayout();
                        this->tabControl1->SuspendLayout();
                        this->tabPage1->SuspendLayout();
                        this->groupBox2->SuspendLayout();
                        this->panel13->SuspendLayout();
                        this->panel12->SuspendLayout();
                        this->panel11->SuspendLayout();
                        this->tabPage5->SuspendLayout();
                        this->groupBox8->SuspendLayout();
                        this->panel10->SuspendLayout();
                        this->panel21->SuspendLayout();
                        this->ContextGames->SuspendLayout();
                        this->PagePackage->SuspendLayout();
                        this->groupBox3->SuspendLayout();
                        this->panel22->SuspendLayout();
                        this->panel7->SuspendLayout();
                        this->panel8->SuspendLayout();
                        this->flowLayoutPanel1->SuspendLayout();
                        this->panel9->SuspendLayout();
                        this->tabPage3->SuspendLayout();
                        this->groupBox7->SuspendLayout();
                        this->panel19->SuspendLayout();
                        this->panel20->SuspendLayout();
                        this->panel18->SuspendLayout();
                        this->groupBox6->SuspendLayout();
                        this->panel17->SuspendLayout();
                        this->GroupChange->SuspendLayout();
                        (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();
                        this->GroupRec->SuspendLayout();
                        (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->PicRec1))->BeginInit();
                        this->GroupEase->SuspendLayout();
                        (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->PicEase1))->BeginInit();
                        this->groupBox5->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->DisplayIcon))->BeginInit();
                        this->panel15->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->DisplayPicture))->BeginInit();
                        this->panel16->SuspendLayout();
                        this->tabPage2->SuspendLayout();
                        this->ContextLangName->SuspendLayout();
                        this->groupBox4->SuspendLayout();
                        this->ContextMirror->SuspendLayout();
                        this->panel14->SuspendLayout();
                        this->tabPage4->SuspendLayout();
                        this->ContextDep->SuspendLayout();
                        this->PageWares->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->splitContainer1))->BeginInit();
                        this->splitContainer1->Panel1->SuspendLayout();
                        this->splitContainer1->Panel2->SuspendLayout();
                        this->splitContainer1->SuspendLayout();
                        this->ContextWare->SuspendLayout();
                        this->ContextWareText->SuspendLayout();
                        this->PageShip->SuspendLayout();
                        this->ContextShipText->SuspendLayout();
                        this->PanelTextID->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumTextID))->BeginInit();
                        this->flowLayoutPanel2->SuspendLayout();
                        this->PageRaw->SuspendLayout();
                        this->panel23->SuspendLayout();
                        this->panel24->SuspendLayout();
                        this->flowLayoutPanel3->SuspendLayout();
                        this->PageShipComp->SuspendLayout();
                        this->panel26->SuspendLayout();
                        this->ContextShipPart->SuspendLayout();
                        this->panel25->SuspendLayout();
                        this->tabGlobals->SuspendLayout();
                        this->contextGlobal->SuspendLayout();
                        this->panel1->SuspendLayout();
                        this->panel2->SuspendLayout();
                        this->panel3->SuspendLayout();
                        this->panel4->SuspendLayout();
                        this->PanelShip->SuspendLayout();
                        this->toolStrip1->SuspendLayout();
                        this->SuspendLayout();
                        // 
                        // PicChange5
                        // 
                        this->PicChange5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicChange5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicChange5.Image")));
                        this->PicChange5->Location = System::Drawing::Point(99, 16);
                        this->PicChange5->Name = L"PicChange5";
                        this->PicChange5->Size = System::Drawing::Size(24, 25);
                        this->PicChange5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicChange5->TabIndex = 18;
                        this->PicChange5->TabStop = false;
                        this->PicChange5->Click += gcnew System::EventHandler(this, &PackageForm::PicChange5_Click);
                        // 
                        // PicChange1
                        // 
                        this->PicChange1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicChange1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicChange1.Image")));
                        this->PicChange1->Location = System::Drawing::Point(3, 16);
                        this->PicChange1->Name = L"PicChange1";
                        this->PicChange1->Size = System::Drawing::Size(24, 25);
                        this->PicChange1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicChange1->TabIndex = 14;
                        this->PicChange1->TabStop = false;
                        this->PicChange1->Click += gcnew System::EventHandler(this, &PackageForm::PicChange1_Click);
                        // 
                        // PicRec5
                        // 
                        this->PicRec5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicRec5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicRec5.Image")));
                        this->PicRec5->Location = System::Drawing::Point(99, 16);
                        this->PicRec5->Name = L"PicRec5";
                        this->PicRec5->Size = System::Drawing::Size(24, 25);
                        this->PicRec5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicRec5->TabIndex = 18;
                        this->PicRec5->TabStop = false;
                        this->PicRec5->Click += gcnew System::EventHandler(this, &PackageForm::PicRec5_Click);
                        // 
                        // groupBox1
                        // 
                        this->groupBox1->Controls->Add(this->ListFiles);
                        this->groupBox1->Controls->Add(this->panel6);
                        this->groupBox1->Controls->Add(this->panel5);
                        this->groupBox1->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->groupBox1->Location = System::Drawing::Point(5, 375);
                        this->groupBox1->Name = L"groupBox1";
                        this->groupBox1->Size = System::Drawing::Size(756, 330);
                        this->groupBox1->TabIndex = 0;
                        this->groupBox1->TabStop = false;
                        this->groupBox1->Text = L"Files";
                        // 
                        // ListFiles
                        // 
                        this->ListFiles->AllowDrop = true;
                        this->ListFiles->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(7) {
                                this->columnHeader1, this->columnHeader2,
                                        this->columnHeader3, this->columnHeader4, this->columnHeader5, this->columnHeader25, this->columnHeader28
                        });
                        this->ListFiles->ContextMenuStrip = this->ContextFiles;
                        this->ListFiles->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListFiles->FullRowSelect = true;
                        this->ListFiles->HideSelection = false;
                        this->ListFiles->Location = System::Drawing::Point(3, 41);
                        this->ListFiles->Name = L"ListFiles";
                        this->ListFiles->Size = System::Drawing::Size(750, 246);
                        this->ListFiles->Sorting = System::Windows::Forms::SortOrder::Ascending;
                        this->ListFiles->TabIndex = 1;
                        this->ListFiles->UseCompatibleStateImageBehavior = false;
                        this->ListFiles->View = System::Windows::Forms::View::Details;
                        this->ListFiles->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListFiles_SelectedIndexChanged);
                        this->ListFiles->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &PackageForm::ListFiles_DragDrop);
                        this->ListFiles->DragOver += gcnew System::Windows::Forms::DragEventHandler(this, &PackageForm::ListFiles_DragOver);
                        this->ListFiles->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListFiles_MouseDoubleClick);
                        // 
                        // columnHeader1
                        // 
                        this->columnHeader1->Text = L"";
                        this->columnHeader1->Width = 53;
                        // 
                        // columnHeader2
                        // 
                        this->columnHeader2->Text = L"Filename";
                        // 
                        // columnHeader3
                        // 
                        this->columnHeader3->Text = L"Size";
                        this->columnHeader3->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
                        // 
                        // columnHeader4
                        // 
                        this->columnHeader4->Text = L"Filetype";
                        // 
                        // columnHeader5
                        // 
                        this->columnHeader5->Text = L"Directory";
                        // 
                        // columnHeader25
                        // 
                        this->columnHeader25->Text = L"Signed";
                        // 
                        // columnHeader28
                        // 
                        this->columnHeader28->Text = L"Game";
                        // 
                        // ContextFiles
                        // 
                        this->ContextFiles->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextFiles->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(14) {
                                this->addFileToolStripMenuItem,
                                        this->ContextFileSep1, this->ContextFileEdit, this->ContextFileDelete, this->renameFileToolStripMenuItem, this->toolStripSeparator5,
                                        this->ToolGame, this->packFileToolStripMenuItem, this->unpackFileToolStripMenuItem, this->convertToFakePatchToolStripMenuItem,
                                        this->convertToAutoTextFileToolStripMenuItem, this->convertToNormalModToolStripMenuItem, this->ContextFileSep2, this->ContextFileClear
                        });
                        this->ContextFiles->Name = L"ContextFiles";
                        this->ContextFiles->Size = System::Drawing::Size(222, 440);
                        this->ContextFiles->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextFiles_Opening);
                        // 
                        // addFileToolStripMenuItem
                        // 
                        this->addFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addFileToolStripMenuItem.Image")));
                        this->addFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addFileToolStripMenuItem->Name = L"addFileToolStripMenuItem";
                        this->addFileToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->addFileToolStripMenuItem->Text = L"Add File";
                        this->addFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addFileToolStripMenuItem_Click);
                        // 
                        // ContextFileSep1
                        // 
                        this->ContextFileSep1->Name = L"ContextFileSep1";
                        this->ContextFileSep1->Size = System::Drawing::Size(218, 6);
                        // 
                        // ContextFileEdit
                        // 
                        this->ContextFileEdit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextFileEdit.Image")));
                        this->ContextFileEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextFileEdit->Name = L"ContextFileEdit";
                        this->ContextFileEdit->Size = System::Drawing::Size(221, 38);
                        this->ContextFileEdit->Text = L"Edit Directory";
                        this->ContextFileEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileEdit_Click);
                        // 
                        // ContextFileDelete
                        // 
                        this->ContextFileDelete->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextFileDelete.Image")));
                        this->ContextFileDelete->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextFileDelete->Name = L"ContextFileDelete";
                        this->ContextFileDelete->Size = System::Drawing::Size(221, 38);
                        this->ContextFileDelete->Text = L"Remove Selected";
                        this->ContextFileDelete->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileDelete_Click);
                        // 
                        // renameFileToolStripMenuItem
                        // 
                        this->renameFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"renameFileToolStripMenuItem.Image")));
                        this->renameFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->renameFileToolStripMenuItem->Name = L"renameFileToolStripMenuItem";
                        this->renameFileToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->renameFileToolStripMenuItem->Text = L"Rename File";
                        this->renameFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::renameFileToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator5
                        // 
                        this->toolStripSeparator5->Name = L"toolStripSeparator5";
                        this->toolStripSeparator5->Size = System::Drawing::Size(218, 6);
                        // 
                        // ToolGame
                        // 
                        this->ToolGame->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ToolGame.Image")));
                        this->ToolGame->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ToolGame->Name = L"ToolGame";
                        this->ToolGame->Size = System::Drawing::Size(221, 38);
                        this->ToolGame->Text = L"Set Game";
                        // 
                        // packFileToolStripMenuItem
                        // 
                        this->packFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"packFileToolStripMenuItem.Image")));
                        this->packFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->packFileToolStripMenuItem->Name = L"packFileToolStripMenuItem";
                        this->packFileToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->packFileToolStripMenuItem->Text = L"Pack File";
                        this->packFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::packFileToolStripMenuItem_Click);
                        // 
                        // unpackFileToolStripMenuItem
                        // 
                        this->unpackFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"unpackFileToolStripMenuItem.Image")));
                        this->unpackFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->unpackFileToolStripMenuItem->Name = L"unpackFileToolStripMenuItem";
                        this->unpackFileToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->unpackFileToolStripMenuItem->Text = L"Unpack File";
                        this->unpackFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::unpackFileToolStripMenuItem_Click);
                        // 
                        // convertToFakePatchToolStripMenuItem
                        // 
                        this->convertToFakePatchToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"convertToFakePatchToolStripMenuItem.Image")));
                        this->convertToFakePatchToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->convertToFakePatchToolStripMenuItem->Name = L"convertToFakePatchToolStripMenuItem";
                        this->convertToFakePatchToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->convertToFakePatchToolStripMenuItem->Text = L"Convert To Fake Patch";
                        this->convertToFakePatchToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToFakePatchToolStripMenuItem_Click);
                        // 
                        // convertToAutoTextFileToolStripMenuItem
                        // 
                        this->convertToAutoTextFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"convertToAutoTextFileToolStripMenuItem.Image")));
                        this->convertToAutoTextFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->convertToAutoTextFileToolStripMenuItem->Name = L"convertToAutoTextFileToolStripMenuItem";
                        this->convertToAutoTextFileToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->convertToAutoTextFileToolStripMenuItem->Text = L"Convert To Auto Text File";
                        this->convertToAutoTextFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToAutoTextFileToolStripMenuItem_Click);
                        // 
                        // convertToNormalModToolStripMenuItem
                        // 
                        this->convertToNormalModToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"convertToNormalModToolStripMenuItem.Image")));
                        this->convertToNormalModToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->convertToNormalModToolStripMenuItem->Name = L"convertToNormalModToolStripMenuItem";
                        this->convertToNormalModToolStripMenuItem->Size = System::Drawing::Size(221, 38);
                        this->convertToNormalModToolStripMenuItem->Text = L"Convert To Normal Mod";
                        this->convertToNormalModToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::convertToNormalModToolStripMenuItem_Click);
                        // 
                        // ContextFileSep2
                        // 
                        this->ContextFileSep2->Name = L"ContextFileSep2";
                        this->ContextFileSep2->Size = System::Drawing::Size(218, 6);
                        // 
                        // ContextFileClear
                        // 
                        this->ContextFileClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextFileClear.Image")));
                        this->ContextFileClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextFileClear->Name = L"ContextFileClear";
                        this->ContextFileClear->Size = System::Drawing::Size(221, 38);
                        this->ContextFileClear->Text = L"Clear All";
                        this->ContextFileClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextFileClear_Click);
                        // 
                        // panel6
                        // 
                        this->panel6->Controls->Add(this->ButRemoveFile);
                        this->panel6->Controls->Add(this->button2);
                        this->panel6->Controls->Add(this->button1);
                        this->panel6->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel6->Location = System::Drawing::Point(3, 287);
                        this->panel6->Name = L"panel6";
                        this->panel6->Padding = System::Windows::Forms::Padding(5);
                        this->panel6->Size = System::Drawing::Size(750, 40);
                        this->panel6->TabIndex = 2;
                        // 
                        // ButRemoveFile
                        // 
                        this->ButRemoveFile->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ButRemoveFile->Location = System::Drawing::Point(492, 5);
                        this->ButRemoveFile->Name = L"ButRemoveFile";
                        this->ButRemoveFile->Size = System::Drawing::Size(130, 30);
                        this->ButRemoveFile->TabIndex = 2;
                        this->ButRemoveFile->Text = L"Remove Selected";
                        this->ButRemoveFile->UseVisualStyleBackColor = true;
                        this->ButRemoveFile->Click += gcnew System::EventHandler(this, &PackageForm::ButRemoveFile_Click);
                        // 
                        // button2
                        // 
                        this->button2->Dock = System::Windows::Forms::DockStyle::Right;
                        this->button2->Location = System::Drawing::Point(622, 5);
                        this->button2->Name = L"button2";
                        this->button2->Size = System::Drawing::Size(123, 30);
                        this->button2->TabIndex = 1;
                        this->button2->Text = L"Clear All";
                        this->button2->UseVisualStyleBackColor = true;
                        this->button2->Click += gcnew System::EventHandler(this, &PackageForm::button2_Click);
                        // 
                        // button1
                        // 
                        this->button1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button1->Location = System::Drawing::Point(5, 5);
                        this->button1->Name = L"button1";
                        this->button1->Size = System::Drawing::Size(113, 30);
                        this->button1->TabIndex = 0;
                        this->button1->Text = L"Add File(s)";
                        this->button1->UseVisualStyleBackColor = true;
                        this->button1->Click += gcnew System::EventHandler(this, &PackageForm::button1_Click);
                        // 
                        // panel5
                        // 
                        this->panel5->Controls->Add(this->ComboFileType);
                        this->panel5->Controls->Add(this->ComboGameFilter);
                        this->panel5->Controls->Add(this->label5);
                        this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel5->Location = System::Drawing::Point(3, 16);
                        this->panel5->Name = L"panel5";
                        this->panel5->Size = System::Drawing::Size(750, 25);
                        this->panel5->TabIndex = 0;
                        // 
                        // ComboFileType
                        // 
                        this->ComboFileType->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ComboFileType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboFileType->FormattingEnabled = true;
                        this->ComboFileType->Location = System::Drawing::Point(100, 0);
                        this->ComboFileType->Name = L"ComboFileType";
                        this->ComboFileType->Size = System::Drawing::Size(444, 21);
                        this->ComboFileType->TabIndex = 1;
                        this->ComboFileType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboFileType_SelectedIndexChanged);
                        // 
                        // ComboGameFilter
                        // 
                        this->ComboGameFilter->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ComboGameFilter->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboGameFilter->FormattingEnabled = true;
                        this->ComboGameFilter->Location = System::Drawing::Point(544, 0);
                        this->ComboGameFilter->Name = L"ComboGameFilter";
                        this->ComboGameFilter->Size = System::Drawing::Size(206, 21);
                        this->ComboGameFilter->TabIndex = 2;
                        this->ComboGameFilter->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboGameFilter_SelectedIndexChanged);
                        // 
                        // label5
                        // 
                        this->label5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label5->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->label5->Location = System::Drawing::Point(0, 0);
                        this->label5->Name = L"label5";
                        this->label5->Size = System::Drawing::Size(100, 25);
                        this->label5->TabIndex = 0;
                        this->label5->Text = L"Filters";
                        this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // tabControl1
                        // 
                        this->tabControl1->Controls->Add(this->tabPage1);
                        this->tabControl1->Controls->Add(this->tabPage5);
                        this->tabControl1->Controls->Add(this->PagePackage);
                        this->tabControl1->Controls->Add(this->tabPage3);
                        this->tabControl1->Controls->Add(this->tabPage2);
                        this->tabControl1->Controls->Add(this->tabPage4);
                        this->tabControl1->Controls->Add(this->PageWares);
                        this->tabControl1->Controls->Add(this->PageShip);
                        this->tabControl1->Controls->Add(this->PageRaw);
                        this->tabControl1->Controls->Add(this->PageShipComp);
                        this->tabControl1->Controls->Add(this->tabGlobals);
                        this->tabControl1->Dock = System::Windows::Forms::DockStyle::Top;
                        this->tabControl1->Location = System::Drawing::Point(5, 133);
                        this->tabControl1->Margin = System::Windows::Forms::Padding(6);
                        this->tabControl1->Multiline = true;
                        this->tabControl1->Name = L"tabControl1";
                        this->tabControl1->SelectedIndex = 0;
                        this->tabControl1->Size = System::Drawing::Size(756, 242);
                        this->tabControl1->TabIndex = 1;
                        // 
                        // tabPage1
                        // 
                        this->tabPage1->Controls->Add(this->groupBox2);
                        this->tabPage1->Controls->Add(this->panel13);
                        this->tabPage1->Controls->Add(this->panel12);
                        this->tabPage1->Controls->Add(this->panel11);
                        this->tabPage1->Controls->Add(this->LabelShipWarning);
                        this->tabPage1->Location = System::Drawing::Point(4, 40);
                        this->tabPage1->Name = L"tabPage1";
                        this->tabPage1->Padding = System::Windows::Forms::Padding(8);
                        this->tabPage1->Size = System::Drawing::Size(748, 198);
                        this->tabPage1->TabIndex = 0;
                        this->tabPage1->Text = L"Basic Settings";
                        this->tabPage1->UseVisualStyleBackColor = true;
                        // 
                        // groupBox2
                        // 
                        this->groupBox2->Controls->Add(this->TextDesc);
                        this->groupBox2->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->groupBox2->Location = System::Drawing::Point(8, 89);
                        this->groupBox2->Name = L"groupBox2";
                        this->groupBox2->Padding = System::Windows::Forms::Padding(5);
                        this->groupBox2->Size = System::Drawing::Size(732, 101);
                        this->groupBox2->TabIndex = 1;
                        this->groupBox2->TabStop = false;
                        this->groupBox2->Text = L"Description";
                        // 
                        // TextDesc
                        // 
                        this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextDesc->Location = System::Drawing::Point(5, 18);
                        this->TextDesc->Name = L"TextDesc";
                        this->TextDesc->Size = System::Drawing::Size(722, 78);
                        this->TextDesc->TabIndex = 0;
                        this->TextDesc->Text = L"";
                        this->TextDesc->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextDesc_TextChanged);
                        // 
                        // panel13
                        // 
                        this->panel13->Controls->Add(this->TextForum);
                        this->panel13->Controls->Add(this->label11);
                        this->panel13->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel13->Location = System::Drawing::Point(8, 67);
                        this->panel13->Name = L"panel13";
                        this->panel13->Size = System::Drawing::Size(732, 22);
                        this->panel13->TabIndex = 46;
                        // 
                        // TextForum
                        // 
                        this->TextForum->DetectUrls = false;
                        this->TextForum->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextForum->Location = System::Drawing::Point(125, 0);
                        this->TextForum->Name = L"TextForum";
                        this->TextForum->Size = System::Drawing::Size(607, 22);
                        this->TextForum->TabIndex = 43;
                        this->TextForum->Text = L"";
                        this->TextForum->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextForum_TextChanged);
                        // 
                        // label11
                        // 
                        this->label11->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label11->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->label11->Location = System::Drawing::Point(0, 0);
                        this->label11->Name = L"label11";
                        this->label11->Size = System::Drawing::Size(125, 22);
                        this->label11->TabIndex = 42;
                        this->label11->Text = L"Forum Link";
                        // 
                        // panel12
                        // 
                        this->panel12->Controls->Add(this->TextEmail);
                        this->panel12->Controls->Add(this->label10);
                        this->panel12->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel12->Location = System::Drawing::Point(8, 45);
                        this->panel12->Name = L"panel12";
                        this->panel12->Size = System::Drawing::Size(732, 22);
                        this->panel12->TabIndex = 45;
                        // 
                        // TextEmail
                        // 
                        this->TextEmail->DetectUrls = false;
                        this->TextEmail->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextEmail->Location = System::Drawing::Point(125, 0);
                        this->TextEmail->Name = L"TextEmail";
                        this->TextEmail->Size = System::Drawing::Size(607, 22);
                        this->TextEmail->TabIndex = 43;
                        this->TextEmail->Text = L"";
                        this->TextEmail->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextEmail_TextChanged);
                        // 
                        // label10
                        // 
                        this->label10->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label10->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->label10->Location = System::Drawing::Point(0, 0);
                        this->label10->Name = L"label10";
                        this->label10->Size = System::Drawing::Size(125, 22);
                        this->label10->TabIndex = 42;
                        this->label10->Text = L"Email Address";
                        // 
                        // panel11
                        // 
                        this->panel11->Controls->Add(this->TextWebsite);
                        this->panel11->Controls->Add(this->label9);
                        this->panel11->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel11->Location = System::Drawing::Point(8, 26);
                        this->panel11->Name = L"panel11";
                        this->panel11->Size = System::Drawing::Size(732, 19);
                        this->panel11->TabIndex = 44;
                        // 
                        // TextWebsite
                        // 
                        this->TextWebsite->DetectUrls = false;
                        this->TextWebsite->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextWebsite->Location = System::Drawing::Point(125, 0);
                        this->TextWebsite->Name = L"TextWebsite";
                        this->TextWebsite->Size = System::Drawing::Size(607, 19);
                        this->TextWebsite->TabIndex = 41;
                        this->TextWebsite->Text = L"";
                        this->TextWebsite->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextWebsite_TextChanged);
                        // 
                        // label9
                        // 
                        this->label9->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label9->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->label9->Location = System::Drawing::Point(0, 0);
                        this->label9->Name = L"label9";
                        this->label9->Size = System::Drawing::Size(125, 19);
                        this->label9->TabIndex = 40;
                        this->label9->Text = L"Web Site";
                        // 
                        // LabelShipWarning
                        // 
                        this->LabelShipWarning->Dock = System::Windows::Forms::DockStyle::Top;
                        this->LabelShipWarning->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->LabelShipWarning->ForeColor = System::Drawing::Color::Red;
                        this->LabelShipWarning->Location = System::Drawing::Point(8, 8);
                        this->LabelShipWarning->Name = L"LabelShipWarning";
                        this->LabelShipWarning->Size = System::Drawing::Size(732, 18);
                        this->LabelShipWarning->TabIndex = 47;
                        this->LabelShipWarning->Text = L"NOTE: Ship files are not valid for X2, and only work in later games";
                        this->LabelShipWarning->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
                        // 
                        // tabPage5
                        // 
                        this->tabPage5->Controls->Add(this->ListGames);
                        this->tabPage5->Controls->Add(this->groupBox8);
                        this->tabPage5->Location = System::Drawing::Point(4, 40);
                        this->tabPage5->Name = L"tabPage5";
                        this->tabPage5->Padding = System::Windows::Forms::Padding(3);
                        this->tabPage5->Size = System::Drawing::Size(748, 198);
                        this->tabPage5->TabIndex = 10;
                        this->tabPage5->Text = L"Game Compatability";
                        this->tabPage5->UseVisualStyleBackColor = true;
                        // 
                        // ListGames
                        // 
                        this->ListGames->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) { this->columnHeader26, this->columnHeader27 });
                        this->ListGames->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListGames->FullRowSelect = true;
                        this->ListGames->HideSelection = false;
                        this->ListGames->Location = System::Drawing::Point(3, 3);
                        this->ListGames->MultiSelect = false;
                        this->ListGames->Name = L"ListGames";
                        this->ListGames->Size = System::Drawing::Size(742, 122);
                        this->ListGames->TabIndex = 2;
                        this->ListGames->UseCompatibleStateImageBehavior = false;
                        this->ListGames->View = System::Windows::Forms::View::Details;
                        this->ListGames->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListGames_SelectedIndexChanged);
                        this->ListGames->DoubleClick += gcnew System::EventHandler(this, &PackageForm::ListGames_DoubleClick);
                        // 
                        // columnHeader26
                        // 
                        this->columnHeader26->Text = L"Game";
                        // 
                        // columnHeader27
                        // 
                        this->columnHeader27->Text = L"Version";
                        // 
                        // groupBox8
                        // 
                        this->groupBox8->Controls->Add(this->panel10);
                        this->groupBox8->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->groupBox8->Location = System::Drawing::Point(3, 125);
                        this->groupBox8->Name = L"groupBox8";
                        this->groupBox8->Size = System::Drawing::Size(742, 70);
                        this->groupBox8->TabIndex = 1;
                        this->groupBox8->TabStop = false;
                        this->groupBox8->Text = L"Add/Edit Game";
                        // 
                        // panel10
                        // 
                        this->panel10->Controls->Add(this->panel21);
                        this->panel10->Controls->Add(this->ButGame);
                        this->panel10->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel10->Location = System::Drawing::Point(3, 16);
                        this->panel10->Name = L"panel10";
                        this->panel10->Size = System::Drawing::Size(736, 43);
                        this->panel10->TabIndex = 44;
                        // 
                        // panel21
                        // 
                        this->panel21->Controls->Add(this->ComboVersion);
                        this->panel21->Controls->Add(this->TextExactVersion);
                        this->panel21->Controls->Add(this->ButGameAdd);
                        this->panel21->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel21->Location = System::Drawing::Point(218, 0);
                        this->panel21->Name = L"panel21";
                        this->panel21->Size = System::Drawing::Size(518, 43);
                        this->panel21->TabIndex = 44;
                        // 
                        // ComboVersion
                        // 
                        this->ComboVersion->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ComboVersion->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboVersion->Enabled = false;
                        this->ComboVersion->FormattingEnabled = true;
                        this->ComboVersion->Location = System::Drawing::Point(0, 0);
                        this->ComboVersion->Name = L"ComboVersion";
                        this->ComboVersion->Size = System::Drawing::Size(465, 21);
                        this->ComboVersion->TabIndex = 41;
                        this->ComboVersion->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboVersion_SelectedIndexChanged);
                        // 
                        // TextExactVersion
                        // 
                        this->TextExactVersion->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->TextExactVersion->Location = System::Drawing::Point(0, 23);
                        this->TextExactVersion->Name = L"TextExactVersion";
                        this->TextExactVersion->Size = System::Drawing::Size(465, 20);
                        this->TextExactVersion->TabIndex = 42;
                        // 
                        // ButGameAdd
                        // 
                        this->ButGameAdd->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ButGameAdd->ForeColor = System::Drawing::Color::Green;
                        this->ButGameAdd->Location = System::Drawing::Point(465, 0);
                        this->ButGameAdd->Name = L"ButGameAdd";
                        this->ButGameAdd->Size = System::Drawing::Size(53, 43);
                        this->ButGameAdd->TabIndex = 43;
                        this->ButGameAdd->Text = L"Save!";
                        this->ButGameAdd->UseVisualStyleBackColor = true;
                        this->ButGameAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButGameAdd_Click);
                        // 
                        // ButGame
                        // 
                        this->ButGame->ContextMenuStrip = this->ContextGames;
                        this->ButGame->Dock = System::Windows::Forms::DockStyle::Left;
                        this->ButGame->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->ButGame->Location = System::Drawing::Point(0, 0);
                        this->ButGame->Name = L"ButGame";
                        this->ButGame->Size = System::Drawing::Size(218, 43);
                        this->ButGame->TabIndex = 43;
                        this->ButGame->UseVisualStyleBackColor = true;
                        this->ButGame->Click += gcnew System::EventHandler(this, &PackageForm::ButGame_Click);
                        // 
                        // ContextGames
                        // 
                        this->ContextGames->ImageScalingSize = System::Drawing::Size(32, 32);
                        this->ContextGames->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) { this->testToolStripMenuItem });
                        this->ContextGames->Name = L"ContextGames";
                        this->ContextGames->Size = System::Drawing::Size(95, 26);
                        // 
                        // testToolStripMenuItem
                        // 
                        this->testToolStripMenuItem->Name = L"testToolStripMenuItem";
                        this->testToolStripMenuItem->Size = System::Drawing::Size(94, 22);
                        this->testToolStripMenuItem->Text = L"Test";
                        // 
                        // PagePackage
                        // 
                        this->PagePackage->Controls->Add(this->groupBox3);
                        this->PagePackage->Controls->Add(this->panel22);
                        this->PagePackage->Controls->Add(this->panel7);
                        this->PagePackage->Location = System::Drawing::Point(4, 40);
                        this->PagePackage->Name = L"PagePackage";
                        this->PagePackage->Padding = System::Windows::Forms::Padding(3);
                        this->PagePackage->Size = System::Drawing::Size(748, 198);
                        this->PagePackage->TabIndex = 2;
                        this->PagePackage->Text = L"Package Settings";
                        this->PagePackage->UseVisualStyleBackColor = true;
                        // 
                        // groupBox3
                        // 
                        this->groupBox3->Controls->Add(this->TextOtherName);
                        this->groupBox3->Controls->Add(this->label13);
                        this->groupBox3->Controls->Add(this->label12);
                        this->groupBox3->Controls->Add(this->CheckOther);
                        this->groupBox3->Controls->Add(this->TextOtherAuthor);
                        this->groupBox3->Controls->Add(this->ButFromFile);
                        this->groupBox3->Dock = System::Windows::Forms::DockStyle::Top;
                        this->groupBox3->Location = System::Drawing::Point(3, 95);
                        this->groupBox3->Margin = System::Windows::Forms::Padding(10);
                        this->groupBox3->Name = L"groupBox3";
                        this->groupBox3->Padding = System::Windows::Forms::Padding(10);
                        this->groupBox3->Size = System::Drawing::Size(742, 53);
                        this->groupBox3->TabIndex = 1;
                        this->groupBox3->TabStop = false;
                        this->groupBox3->Text = L"Requires Parent Mod/Package";
                        // 
                        // TextOtherName
                        // 
                        this->TextOtherName->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextOtherName->Location = System::Drawing::Point(107, 23);
                        this->TextOtherName->Name = L"TextOtherName";
                        this->TextOtherName->Size = System::Drawing::Size(334, 20);
                        this->TextOtherName->TabIndex = 1;
                        this->TextOtherName->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextOtherName_TextChanged);
                        // 
                        // label13
                        // 
                        this->label13->Dock = System::Windows::Forms::DockStyle::Right;
                        this->label13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->label13->Location = System::Drawing::Point(441, 23);
                        this->label13->Name = L"label13";
                        this->label13->Size = System::Drawing::Size(77, 20);
                        this->label13->TabIndex = 3;
                        this->label13->Text = L"Author";
                        this->label13->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
                        // 
                        // label12
                        // 
                        this->label12->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->label12->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
                        this->label12->Location = System::Drawing::Point(25, 23);
                        this->label12->Name = L"label12";
                        this->label12->RightToLeft = System::Windows::Forms::RightToLeft::No;
                        this->label12->Size = System::Drawing::Size(82, 20);
                        this->label12->TabIndex = 2;
                        this->label12->Text = L"Package";
                        this->label12->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
                        // 
                        // CheckOther
                        // 
                        this->CheckOther->AutoSize = true;
                        this->CheckOther->Dock = System::Windows::Forms::DockStyle::Left;
                        this->CheckOther->Location = System::Drawing::Point(10, 23);
                        this->CheckOther->Name = L"CheckOther";
                        this->CheckOther->Size = System::Drawing::Size(15, 20);
                        this->CheckOther->TabIndex = 0;
                        this->CheckOther->UseVisualStyleBackColor = true;
                        this->CheckOther->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckOther_CheckedChanged);
                        // 
                        // TextOtherAuthor
                        // 
                        this->TextOtherAuthor->Dock = System::Windows::Forms::DockStyle::Right;
                        this->TextOtherAuthor->Location = System::Drawing::Point(518, 23);
                        this->TextOtherAuthor->Name = L"TextOtherAuthor";
                        this->TextOtherAuthor->Size = System::Drawing::Size(139, 20);
                        this->TextOtherAuthor->TabIndex = 4;
                        this->TextOtherAuthor->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextOtherName_TextChanged);
                        // 
                        // ButFromFile
                        // 
                        this->ButFromFile->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ButFromFile->Location = System::Drawing::Point(657, 23);
                        this->ButFromFile->Name = L"ButFromFile";
                        this->ButFromFile->Size = System::Drawing::Size(75, 20);
                        this->ButFromFile->TabIndex = 5;
                        this->ButFromFile->Text = L"From File";
                        this->ButFromFile->UseVisualStyleBackColor = true;
                        this->ButFromFile->Click += gcnew System::EventHandler(this, &PackageForm::ButFromFile_Click);
                        // 
                        // panel22
                        // 
                        this->panel22->Controls->Add(this->ComboPluginType);
                        this->panel22->Controls->Add(this->label15);
                        this->panel22->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel22->Location = System::Drawing::Point(3, 63);
                        this->panel22->Name = L"panel22";
                        this->panel22->Size = System::Drawing::Size(742, 32);
                        this->panel22->TabIndex = 2;
                        // 
                        // ComboPluginType
                        // 
                        this->ComboPluginType->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ComboPluginType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboPluginType->FormattingEnabled = true;
                        this->ComboPluginType->Items->AddRange(gcnew cli::array< System::Object^  >(5) {
                                L"Normal", L"Stable", L"Experimental", L"Cheat",
                                        L"Mod"
                        });
                        this->ComboPluginType->Location = System::Drawing::Point(157, 0);
                        this->ComboPluginType->Name = L"ComboPluginType";
                        this->ComboPluginType->Size = System::Drawing::Size(585, 21);
                        this->ComboPluginType->TabIndex = 7;
                        this->ComboPluginType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboPluginType_SelectedIndexChanged);
                        // 
                        // label15
                        // 
                        this->label15->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label15->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->label15->Location = System::Drawing::Point(0, 0);
                        this->label15->Name = L"label15";
                        this->label15->Size = System::Drawing::Size(157, 32);
                        this->label15->TabIndex = 2;
                        this->label15->Text = L"Plugin Type";
                        // 
                        // panel7
                        // 
                        this->panel7->Controls->Add(this->panel8);
                        this->panel7->Controls->Add(this->label7);
                        this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel7->Location = System::Drawing::Point(3, 3);
                        this->panel7->Name = L"panel7";
                        this->panel7->Padding = System::Windows::Forms::Padding(5, 5, 5, 10);
                        this->panel7->Size = System::Drawing::Size(742, 60);
                        this->panel7->TabIndex = 0;
                        // 
                        // panel8
                        // 
                        this->panel8->Controls->Add(this->flowLayoutPanel1);
                        this->panel8->Controls->Add(this->panel9);
                        this->panel8->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel8->Location = System::Drawing::Point(162, 5);
                        this->panel8->Name = L"panel8";
                        this->panel8->Size = System::Drawing::Size(575, 45);
                        this->panel8->TabIndex = 2;
                        // 
                        // flowLayoutPanel1
                        // 
                        this->flowLayoutPanel1->Controls->Add(this->RadioTypeUpdate);
                        this->flowLayoutPanel1->Controls->Add(this->RadioTypeLibrary);
                        this->flowLayoutPanel1->Controls->Add(this->RadioTypeStart);
                        this->flowLayoutPanel1->Controls->Add(this->RadioTypePatch);
                        this->flowLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->flowLayoutPanel1->Location = System::Drawing::Point(0, 0);
                        this->flowLayoutPanel1->Name = L"flowLayoutPanel1";
                        this->flowLayoutPanel1->Size = System::Drawing::Size(575, 22);
                        this->flowLayoutPanel1->TabIndex = 4;
                        // 
                        // RadioTypeUpdate
                        // 
                        this->RadioTypeUpdate->AutoSize = true;
                        this->RadioTypeUpdate->Location = System::Drawing::Point(3, 3);
                        this->RadioTypeUpdate->Name = L"RadioTypeUpdate";
                        this->RadioTypeUpdate->Size = System::Drawing::Size(106, 17);
                        this->RadioTypeUpdate->TabIndex = 1;
                        this->RadioTypeUpdate->TabStop = true;
                        this->RadioTypeUpdate->Text = L"Update Package";
                        this->RadioTypeUpdate->UseVisualStyleBackColor = true;
                        this->RadioTypeUpdate->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeUpdate_CheckedChanged);
                        // 
                        // RadioTypeLibrary
                        // 
                        this->RadioTypeLibrary->AutoSize = true;
                        this->RadioTypeLibrary->Location = System::Drawing::Point(115, 3);
                        this->RadioTypeLibrary->Name = L"RadioTypeLibrary";
                        this->RadioTypeLibrary->Size = System::Drawing::Size(86, 17);
                        this->RadioTypeLibrary->TabIndex = 3;
                        this->RadioTypeLibrary->TabStop = true;
                        this->RadioTypeLibrary->Text = L"Script Library";
                        this->RadioTypeLibrary->UseVisualStyleBackColor = true;
                        this->RadioTypeLibrary->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeLibrary_CheckedChanged);
                        // 
                        // RadioTypeStart
                        // 
                        this->RadioTypeStart->AutoSize = true;
                        this->RadioTypeStart->Location = System::Drawing::Point(207, 3);
                        this->RadioTypeStart->Name = L"RadioTypeStart";
                        this->RadioTypeStart->Size = System::Drawing::Size(85, 17);
                        this->RadioTypeStart->TabIndex = 0;
                        this->RadioTypeStart->TabStop = true;
                        this->RadioTypeStart->Text = L"Custom Start";
                        this->RadioTypeStart->UseVisualStyleBackColor = true;
                        this->RadioTypeStart->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeStart_CheckedChanged);
                        // 
                        // RadioTypePatch
                        // 
                        this->RadioTypePatch->AutoSize = true;
                        this->RadioTypePatch->Location = System::Drawing::Point(298, 3);
                        this->RadioTypePatch->Name = L"RadioTypePatch";
                        this->RadioTypePatch->Size = System::Drawing::Size(77, 17);
                        this->RadioTypePatch->TabIndex = 2;
                        this->RadioTypePatch->TabStop = true;
                        this->RadioTypePatch->Text = L"Mod Patch";
                        this->RadioTypePatch->UseVisualStyleBackColor = true;
                        this->RadioTypePatch->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypePatch_CheckedChanged);
                        // 
                        // panel9
                        // 
                        this->panel9->Controls->Add(this->TextCustomType);
                        this->panel9->Controls->Add(this->ComboType);
                        this->panel9->Controls->Add(this->RadioTypeScript);
                        this->panel9->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel9->Location = System::Drawing::Point(0, 22);
                        this->panel9->Name = L"panel9";
                        this->panel9->Size = System::Drawing::Size(575, 23);
                        this->panel9->TabIndex = 6;
                        // 
                        // TextCustomType
                        // 
                        this->TextCustomType->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextCustomType->Location = System::Drawing::Point(146, 0);
                        this->TextCustomType->Name = L"TextCustomType";
                        this->TextCustomType->Size = System::Drawing::Size(429, 20);
                        this->TextCustomType->TabIndex = 7;
                        this->TextCustomType->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextCustomType_TextChanged);
                        // 
                        // ComboType
                        // 
                        this->ComboType->Dock = System::Windows::Forms::DockStyle::Left;
                        this->ComboType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboType->FormattingEnabled = true;
                        this->ComboType->Location = System::Drawing::Point(14, 0);
                        this->ComboType->Name = L"ComboType";
                        this->ComboType->Size = System::Drawing::Size(132, 21);
                        this->ComboType->TabIndex = 6;
                        this->ComboType->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboType_SelectedIndexChanged);
                        // 
                        // RadioTypeScript
                        // 
                        this->RadioTypeScript->AutoSize = true;
                        this->RadioTypeScript->Dock = System::Windows::Forms::DockStyle::Left;
                        this->RadioTypeScript->Location = System::Drawing::Point(0, 0);
                        this->RadioTypeScript->Name = L"RadioTypeScript";
                        this->RadioTypeScript->Size = System::Drawing::Size(14, 23);
                        this->RadioTypeScript->TabIndex = 5;
                        this->RadioTypeScript->TabStop = true;
                        this->RadioTypeScript->UseVisualStyleBackColor = true;
                        this->RadioTypeScript->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioTypeScript_CheckedChanged);
                        // 
                        // label7
                        // 
                        this->label7->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label7->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->label7->Location = System::Drawing::Point(5, 5);
                        this->label7->Name = L"label7";
                        this->label7->Size = System::Drawing::Size(157, 45);
                        this->label7->TabIndex = 1;
                        this->label7->Text = L"Package Type";
                        this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // tabPage3
                        // 
                        this->tabPage3->Controls->Add(this->groupBox7);
                        this->tabPage3->Controls->Add(this->groupBox6);
                        this->tabPage3->Controls->Add(this->groupBox5);
                        this->tabPage3->Controls->Add(this->panel15);
                        this->tabPage3->Location = System::Drawing::Point(4, 40);
                        this->tabPage3->Name = L"tabPage3";
                        this->tabPage3->Padding = System::Windows::Forms::Padding(3);
                        this->tabPage3->Size = System::Drawing::Size(748, 198);
                        this->tabPage3->TabIndex = 4;
                        this->tabPage3->Text = L"Display";
                        this->tabPage3->UseVisualStyleBackColor = true;
                        // 
                        // groupBox7
                        // 
                        this->groupBox7->Controls->Add(this->TextText);
                        this->groupBox7->Controls->Add(this->panel19);
                        this->groupBox7->Controls->Add(this->panel18);
                        this->groupBox7->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->groupBox7->Location = System::Drawing::Point(210, 66);
                        this->groupBox7->Name = L"groupBox7";
                        this->groupBox7->Padding = System::Windows::Forms::Padding(5, 0, 5, 5);
                        this->groupBox7->Size = System::Drawing::Size(535, 129);
                        this->groupBox7->TabIndex = 4;
                        this->groupBox7->TabStop = false;
                        this->groupBox7->Text = L"Text";
                        // 
                        // TextText
                        // 
                        this->TextText->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextText->Location = System::Drawing::Point(104, 40);
                        this->TextText->Name = L"TextText";
                        this->TextText->Size = System::Drawing::Size(426, 84);
                        this->TextText->TabIndex = 3;
                        this->TextText->Text = L"";
                        this->TextText->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextText_TextChanged);
                        // 
                        // panel19
                        // 
                        this->panel19->Controls->Add(this->ListLang);
                        this->panel19->Controls->Add(this->panel20);
                        this->panel19->Dock = System::Windows::Forms::DockStyle::Left;
                        this->panel19->Location = System::Drawing::Point(5, 40);
                        this->panel19->Name = L"panel19";
                        this->panel19->Size = System::Drawing::Size(99, 84);
                        this->panel19->TabIndex = 5;
                        // 
                        // ListLang
                        // 
                        this->ListLang->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListLang->FormattingEnabled = true;
                        this->ListLang->Items->AddRange(gcnew cli::array< System::Object^  >(1) { L"- Default -" });
                        this->ListLang->Location = System::Drawing::Point(0, 0);
                        this->ListLang->Name = L"ListLang";
                        this->ListLang->Size = System::Drawing::Size(99, 64);
                        this->ListLang->TabIndex = 4;
                        this->ListLang->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListLang_SelectedIndexChanged);
                        // 
                        // panel20
                        // 
                        this->panel20->Controls->Add(this->ButTextDel);
                        this->panel20->Controls->Add(this->ButTextAdd);
                        this->panel20->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel20->Location = System::Drawing::Point(0, 64);
                        this->panel20->Name = L"panel20";
                        this->panel20->Size = System::Drawing::Size(99, 20);
                        this->panel20->TabIndex = 7;
                        // 
                        // ButTextDel
                        // 
                        this->ButTextDel->Dock = System::Windows::Forms::DockStyle::Left;
                        this->ButTextDel->Location = System::Drawing::Point(51, 0);
                        this->ButTextDel->Name = L"ButTextDel";
                        this->ButTextDel->Size = System::Drawing::Size(46, 20);
                        this->ButTextDel->TabIndex = 5;
                        this->ButTextDel->Text = L"-";
                        this->ButTextDel->UseVisualStyleBackColor = true;
                        this->ButTextDel->Click += gcnew System::EventHandler(this, &PackageForm::ButTextDel_Click);
                        // 
                        // ButTextAdd
                        // 
                        this->ButTextAdd->Dock = System::Windows::Forms::DockStyle::Left;
                        this->ButTextAdd->Location = System::Drawing::Point(0, 0);
                        this->ButTextAdd->Name = L"ButTextAdd";
                        this->ButTextAdd->Size = System::Drawing::Size(51, 20);
                        this->ButTextAdd->TabIndex = 6;
                        this->ButTextAdd->Text = L"+";
                        this->ButTextAdd->UseVisualStyleBackColor = true;
                        this->ButTextAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButTextAdd_Click);
                        // 
                        // panel18
                        // 
                        this->panel18->Controls->Add(this->RadioUninstallAfter);
                        this->panel18->Controls->Add(this->RadioUninstallBefore);
                        this->panel18->Controls->Add(this->RadioInstallAfter);
                        this->panel18->Controls->Add(this->RadioInstallBefore);
                        this->panel18->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel18->Location = System::Drawing::Point(5, 13);
                        this->panel18->Name = L"panel18";
                        this->panel18->Size = System::Drawing::Size(525, 27);
                        this->panel18->TabIndex = 2;
                        // 
                        // RadioUninstallAfter
                        // 
                        this->RadioUninstallAfter->AutoSize = true;
                        this->RadioUninstallAfter->Dock = System::Windows::Forms::DockStyle::Left;
                        this->RadioUninstallAfter->Location = System::Drawing::Point(262, 0);
                        this->RadioUninstallAfter->Name = L"RadioUninstallAfter";
                        this->RadioUninstallAfter->Size = System::Drawing::Size(90, 27);
                        this->RadioUninstallAfter->TabIndex = 3;
                        this->RadioUninstallAfter->TabStop = true;
                        this->RadioUninstallAfter->Text = L"Uninstall After";
                        this->RadioUninstallAfter->UseVisualStyleBackColor = true;
                        this->RadioUninstallAfter->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioUninstallAfter_CheckedChanged);
                        // 
                        // RadioUninstallBefore
                        // 
                        this->RadioUninstallBefore->AutoSize = true;
                        this->RadioUninstallBefore->Dock = System::Windows::Forms::DockStyle::Left;
                        this->RadioUninstallBefore->Location = System::Drawing::Point(163, 0);
                        this->RadioUninstallBefore->Name = L"RadioUninstallBefore";
                        this->RadioUninstallBefore->Size = System::Drawing::Size(99, 27);
                        this->RadioUninstallBefore->TabIndex = 2;
                        this->RadioUninstallBefore->TabStop = true;
                        this->RadioUninstallBefore->Text = L"Uninstall Before";
                        this->RadioUninstallBefore->UseVisualStyleBackColor = true;
                        this->RadioUninstallBefore->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioUninstallBefore_CheckedChanged);
                        // 
                        // RadioInstallAfter
                        // 
                        this->RadioInstallAfter->AutoSize = true;
                        this->RadioInstallAfter->Dock = System::Windows::Forms::DockStyle::Left;
                        this->RadioInstallAfter->Location = System::Drawing::Point(86, 0);
                        this->RadioInstallAfter->Name = L"RadioInstallAfter";
                        this->RadioInstallAfter->Size = System::Drawing::Size(77, 27);
                        this->RadioInstallAfter->TabIndex = 1;
                        this->RadioInstallAfter->TabStop = true;
                        this->RadioInstallAfter->Text = L"Install After";
                        this->RadioInstallAfter->UseVisualStyleBackColor = true;
                        this->RadioInstallAfter->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioInstallAfter_CheckedChanged);
                        // 
                        // RadioInstallBefore
                        // 
                        this->RadioInstallBefore->AutoSize = true;
                        this->RadioInstallBefore->Dock = System::Windows::Forms::DockStyle::Left;
                        this->RadioInstallBefore->Location = System::Drawing::Point(0, 0);
                        this->RadioInstallBefore->Name = L"RadioInstallBefore";
                        this->RadioInstallBefore->Size = System::Drawing::Size(86, 27);
                        this->RadioInstallBefore->TabIndex = 0;
                        this->RadioInstallBefore->TabStop = true;
                        this->RadioInstallBefore->Text = L"Install Before";
                        this->RadioInstallBefore->UseVisualStyleBackColor = true;
                        this->RadioInstallBefore->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::RadioInstallBefore_CheckedChanged);
                        // 
                        // groupBox6
                        // 
                        this->groupBox6->Controls->Add(this->panel17);
                        this->groupBox6->Dock = System::Windows::Forms::DockStyle::Top;
                        this->groupBox6->Location = System::Drawing::Point(210, 3);
                        this->groupBox6->Name = L"groupBox6";
                        this->groupBox6->Size = System::Drawing::Size(535, 63);
                        this->groupBox6->TabIndex = 3;
                        this->groupBox6->TabStop = false;
                        this->groupBox6->Text = L"Ratings";
                        // 
                        // panel17
                        // 
                        this->panel17->Controls->Add(this->GroupChange);
                        this->panel17->Controls->Add(this->GroupRec);
                        this->panel17->Controls->Add(this->GroupEase);
                        this->panel17->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel17->Location = System::Drawing::Point(3, 16);
                        this->panel17->Name = L"panel17";
                        this->panel17->Size = System::Drawing::Size(529, 44);
                        this->panel17->TabIndex = 4;
                        // 
                        // GroupChange
                        // 
                        this->GroupChange->Controls->Add(this->PicChange5);
                        this->GroupChange->Controls->Add(this->PicChange4);
                        this->GroupChange->Controls->Add(this->PicChange3);
                        this->GroupChange->Controls->Add(this->PicChange2);
                        this->GroupChange->Controls->Add(this->PicChange1);
                        this->GroupChange->Dock = System::Windows::Forms::DockStyle::Left;
                        this->GroupChange->Location = System::Drawing::Point(251, 0);
                        this->GroupChange->Name = L"GroupChange";
                        this->GroupChange->Size = System::Drawing::Size(126, 44);
                        this->GroupChange->TabIndex = 2;
                        this->GroupChange->TabStop = false;
                        this->GroupChange->Text = L"Game Changing";
                        // 
                        // PicChange4
                        // 
                        this->PicChange4->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicChange4->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicChange4.Image")));
                        this->PicChange4->Location = System::Drawing::Point(75, 16);
                        this->PicChange4->Name = L"PicChange4";
                        this->PicChange4->Size = System::Drawing::Size(24, 25);
                        this->PicChange4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicChange4->TabIndex = 17;
                        this->PicChange4->TabStop = false;
                        this->PicChange4->Click += gcnew System::EventHandler(this, &PackageForm::PicChange4_Click);
                        // 
                        // PicChange3
                        // 
                        this->PicChange3->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicChange3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicChange3.Image")));
                        this->PicChange3->Location = System::Drawing::Point(51, 16);
                        this->PicChange3->Name = L"PicChange3";
                        this->PicChange3->Size = System::Drawing::Size(24, 25);
                        this->PicChange3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicChange3->TabIndex = 16;
                        this->PicChange3->TabStop = false;
                        this->PicChange3->Click += gcnew System::EventHandler(this, &PackageForm::PicChange3_Click);
                        // 
                        // PicChange2
                        // 
                        this->PicChange2->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicChange2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicChange2.Image")));
                        this->PicChange2->Location = System::Drawing::Point(27, 16);
                        this->PicChange2->Name = L"PicChange2";
                        this->PicChange2->Size = System::Drawing::Size(24, 25);
                        this->PicChange2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicChange2->TabIndex = 15;
                        this->PicChange2->TabStop = false;
                        this->PicChange2->Click += gcnew System::EventHandler(this, &PackageForm::PicChange2_Click);
                        // 
                        // GroupRec
                        // 
                        this->GroupRec->Controls->Add(this->PicRec5);
                        this->GroupRec->Controls->Add(this->PicRec4);
                        this->GroupRec->Controls->Add(this->PicRec3);
                        this->GroupRec->Controls->Add(this->PicRec2);
                        this->GroupRec->Controls->Add(this->PicRec1);
                        this->GroupRec->Dock = System::Windows::Forms::DockStyle::Left;
                        this->GroupRec->Location = System::Drawing::Point(126, 0);
                        this->GroupRec->Name = L"GroupRec";
                        this->GroupRec->Size = System::Drawing::Size(125, 44);
                        this->GroupRec->TabIndex = 3;
                        this->GroupRec->TabStop = false;
                        this->GroupRec->Text = L"Recommended";
                        // 
                        // PicRec4
                        // 
                        this->PicRec4->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicRec4->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicRec4.Image")));
                        this->PicRec4->Location = System::Drawing::Point(75, 16);
                        this->PicRec4->Name = L"PicRec4";
                        this->PicRec4->Size = System::Drawing::Size(24, 25);
                        this->PicRec4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicRec4->TabIndex = 17;
                        this->PicRec4->TabStop = false;
                        this->PicRec4->Click += gcnew System::EventHandler(this, &PackageForm::PicRec4_Click);
                        // 
                        // PicRec3
                        // 
                        this->PicRec3->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicRec3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicRec3.Image")));
                        this->PicRec3->Location = System::Drawing::Point(51, 16);
                        this->PicRec3->Name = L"PicRec3";
                        this->PicRec3->Size = System::Drawing::Size(24, 25);
                        this->PicRec3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicRec3->TabIndex = 16;
                        this->PicRec3->TabStop = false;
                        this->PicRec3->Click += gcnew System::EventHandler(this, &PackageForm::PicRec3_Click);
                        // 
                        // PicRec2
                        // 
                        this->PicRec2->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicRec2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicRec2.Image")));
                        this->PicRec2->Location = System::Drawing::Point(27, 16);
                        this->PicRec2->Name = L"PicRec2";
                        this->PicRec2->Size = System::Drawing::Size(24, 25);
                        this->PicRec2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicRec2->TabIndex = 15;
                        this->PicRec2->TabStop = false;
                        this->PicRec2->Click += gcnew System::EventHandler(this, &PackageForm::PicRec2_Click);
                        // 
                        // PicRec1
                        // 
                        this->PicRec1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicRec1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicRec1.Image")));
                        this->PicRec1->Location = System::Drawing::Point(3, 16);
                        this->PicRec1->Name = L"PicRec1";
                        this->PicRec1->Size = System::Drawing::Size(24, 25);
                        this->PicRec1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicRec1->TabIndex = 14;
                        this->PicRec1->TabStop = false;
                        this->PicRec1->Click += gcnew System::EventHandler(this, &PackageForm::PicRec1_Click);
                        // 
                        // GroupEase
                        // 
                        this->GroupEase->Controls->Add(this->PicEase5);
                        this->GroupEase->Controls->Add(this->PicEase4);
                        this->GroupEase->Controls->Add(this->PicEase3);
                        this->GroupEase->Controls->Add(this->PicEase2);
                        this->GroupEase->Controls->Add(this->PicEase1);
                        this->GroupEase->Dock = System::Windows::Forms::DockStyle::Left;
                        this->GroupEase->Location = System::Drawing::Point(0, 0);
                        this->GroupEase->Name = L"GroupEase";
                        this->GroupEase->Size = System::Drawing::Size(126, 44);
                        this->GroupEase->TabIndex = 1;
                        this->GroupEase->TabStop = false;
                        this->GroupEase->Text = L"Ease of Use";
                        // 
                        // PicEase5
                        // 
                        this->PicEase5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicEase5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicEase5.Image")));
                        this->PicEase5->Location = System::Drawing::Point(99, 16);
                        this->PicEase5->Name = L"PicEase5";
                        this->PicEase5->Size = System::Drawing::Size(24, 25);
                        this->PicEase5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicEase5->TabIndex = 17;
                        this->PicEase5->TabStop = false;
                        this->PicEase5->Click += gcnew System::EventHandler(this, &PackageForm::PicEase5_Click);
                        // 
                        // PicEase4
                        // 
                        this->PicEase4->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicEase4->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicEase4.Image")));
                        this->PicEase4->Location = System::Drawing::Point(75, 16);
                        this->PicEase4->Name = L"PicEase4";
                        this->PicEase4->Size = System::Drawing::Size(24, 25);
                        this->PicEase4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicEase4->TabIndex = 16;
                        this->PicEase4->TabStop = false;
                        this->PicEase4->Click += gcnew System::EventHandler(this, &PackageForm::PicEase4_Click);
                        // 
                        // PicEase3
                        // 
                        this->PicEase3->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicEase3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicEase3.Image")));
                        this->PicEase3->Location = System::Drawing::Point(51, 16);
                        this->PicEase3->Name = L"PicEase3";
                        this->PicEase3->Size = System::Drawing::Size(24, 25);
                        this->PicEase3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicEase3->TabIndex = 15;
                        this->PicEase3->TabStop = false;
                        this->PicEase3->Click += gcnew System::EventHandler(this, &PackageForm::PicEase3_Click);
                        // 
                        // PicEase2
                        // 
                        this->PicEase2->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicEase2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicEase2.Image")));
                        this->PicEase2->Location = System::Drawing::Point(27, 16);
                        this->PicEase2->Name = L"PicEase2";
                        this->PicEase2->Size = System::Drawing::Size(24, 25);
                        this->PicEase2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicEase2->TabIndex = 14;
                        this->PicEase2->TabStop = false;
                        this->PicEase2->Click += gcnew System::EventHandler(this, &PackageForm::PicEase2_Click);
                        // 
                        // PicEase1
                        // 
                        this->PicEase1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->PicEase1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PicEase1.Image")));
                        this->PicEase1->Location = System::Drawing::Point(3, 16);
                        this->PicEase1->Name = L"PicEase1";
                        this->PicEase1->Size = System::Drawing::Size(24, 25);
                        this->PicEase1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->PicEase1->TabIndex = 13;
                        this->PicEase1->TabStop = false;
                        this->PicEase1->Click += gcnew System::EventHandler(this, &PackageForm::PicEase1_Click);
                        // 
                        // groupBox5
                        // 
                        this->groupBox5->Controls->Add(this->ButIconDel);
                        this->groupBox5->Controls->Add(this->DisplayIcon);
                        this->groupBox5->Controls->Add(this->button4);
                        this->groupBox5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->groupBox5->Location = System::Drawing::Point(153, 3);
                        this->groupBox5->Name = L"groupBox5";
                        this->groupBox5->Size = System::Drawing::Size(57, 192);
                        this->groupBox5->TabIndex = 2;
                        this->groupBox5->TabStop = false;
                        this->groupBox5->Text = L"Icon";
                        // 
                        // ButIconDel
                        // 
                        this->ButIconDel->Dock = System::Windows::Forms::DockStyle::Top;
                        this->ButIconDel->Location = System::Drawing::Point(3, 85);
                        this->ButIconDel->Name = L"ButIconDel";
                        this->ButIconDel->Size = System::Drawing::Size(51, 23);
                        this->ButIconDel->TabIndex = 1;
                        this->ButIconDel->Text = L"Del";
                        this->ButIconDel->UseVisualStyleBackColor = true;
                        this->ButIconDel->Click += gcnew System::EventHandler(this, &PackageForm::ButIconDel_Click);
                        // 
                        // DisplayIcon
                        // 
                        this->DisplayIcon->Dock = System::Windows::Forms::DockStyle::Top;
                        this->DisplayIcon->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"DisplayIcon.Image")));
                        this->DisplayIcon->Location = System::Drawing::Point(3, 39);
                        this->DisplayIcon->Name = L"DisplayIcon";
                        this->DisplayIcon->Size = System::Drawing::Size(51, 46);
                        this->DisplayIcon->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->DisplayIcon->TabIndex = 0;
                        this->DisplayIcon->TabStop = false;
                        // 
                        // button4
                        // 
                        this->button4->Dock = System::Windows::Forms::DockStyle::Top;
                        this->button4->Location = System::Drawing::Point(3, 16);
                        this->button4->Name = L"button4";
                        this->button4->Size = System::Drawing::Size(51, 23);
                        this->button4->TabIndex = 2;
                        this->button4->Text = L"Set";
                        this->button4->UseVisualStyleBackColor = true;
                        this->button4->Click += gcnew System::EventHandler(this, &PackageForm::button4_Click);
                        // 
                        // panel15
                        // 
                        this->panel15->Controls->Add(this->DisplayPicture);
                        this->panel15->Controls->Add(this->panel16);
                        this->panel15->Dock = System::Windows::Forms::DockStyle::Left;
                        this->panel15->Location = System::Drawing::Point(3, 3);
                        this->panel15->Name = L"panel15";
                        this->panel15->Size = System::Drawing::Size(150, 192);
                        this->panel15->TabIndex = 1;
                        // 
                        // DisplayPicture
                        // 
                        this->DisplayPicture->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->DisplayPicture->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"DisplayPicture.Image")));
                        this->DisplayPicture->Location = System::Drawing::Point(0, 0);
                        this->DisplayPicture->Name = L"DisplayPicture";
                        this->DisplayPicture->Size = System::Drawing::Size(150, 163);
                        this->DisplayPicture->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
                        this->DisplayPicture->TabIndex = 0;
                        this->DisplayPicture->TabStop = false;
                        // 
                        // panel16
                        // 
                        this->panel16->Controls->Add(this->ButPicAdd);
                        this->panel16->Controls->Add(this->ButPicDel);
                        this->panel16->Controls->Add(this->ButPicNext);
                        this->panel16->Controls->Add(this->ButPicBack);
                        this->panel16->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel16->Location = System::Drawing::Point(0, 163);
                        this->panel16->Name = L"panel16";
                        this->panel16->Size = System::Drawing::Size(150, 29);
                        this->panel16->TabIndex = 2;
                        // 
                        // ButPicAdd
                        // 
                        this->ButPicAdd->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ButPicAdd->Location = System::Drawing::Point(32, 0);
                        this->ButPicAdd->Name = L"ButPicAdd";
                        this->ButPicAdd->Size = System::Drawing::Size(49, 29);
                        this->ButPicAdd->TabIndex = 4;
                        this->ButPicAdd->Text = L"Add";
                        this->ButPicAdd->UseVisualStyleBackColor = true;
                        this->ButPicAdd->Click += gcnew System::EventHandler(this, &PackageForm::ButPicAdd_Click);
                        // 
                        // ButPicDel
                        // 
                        this->ButPicDel->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ButPicDel->Enabled = false;
                        this->ButPicDel->Location = System::Drawing::Point(81, 0);
                        this->ButPicDel->Name = L"ButPicDel";
                        this->ButPicDel->Size = System::Drawing::Size(40, 29);
                        this->ButPicDel->TabIndex = 3;
                        this->ButPicDel->Text = L"Del";
                        this->ButPicDel->UseVisualStyleBackColor = true;
                        this->ButPicDel->Click += gcnew System::EventHandler(this, &PackageForm::ButPicDel_Click);
                        // 
                        // ButPicNext
                        // 
                        this->ButPicNext->Dock = System::Windows::Forms::DockStyle::Right;
                        this->ButPicNext->Enabled = false;
                        this->ButPicNext->Location = System::Drawing::Point(121, 0);
                        this->ButPicNext->Name = L"ButPicNext";
                        this->ButPicNext->Size = System::Drawing::Size(29, 29);
                        this->ButPicNext->TabIndex = 2;
                        this->ButPicNext->Text = L"->";
                        this->ButPicNext->UseVisualStyleBackColor = true;
                        this->ButPicNext->Click += gcnew System::EventHandler(this, &PackageForm::ButPicNext_Click);
                        // 
                        // ButPicBack
                        // 
                        this->ButPicBack->Dock = System::Windows::Forms::DockStyle::Left;
                        this->ButPicBack->Enabled = false;
                        this->ButPicBack->Location = System::Drawing::Point(0, 0);
                        this->ButPicBack->Name = L"ButPicBack";
                        this->ButPicBack->Size = System::Drawing::Size(32, 29);
                        this->ButPicBack->TabIndex = 1;
                        this->ButPicBack->Text = L"<-";
                        this->ButPicBack->UseVisualStyleBackColor = true;
                        this->ButPicBack->Click += gcnew System::EventHandler(this, &PackageForm::ButPicBack_Click);
                        // 
                        // tabPage2
                        // 
                        this->tabPage2->Controls->Add(this->ListNames);
                        this->tabPage2->Controls->Add(this->groupBox4);
                        this->tabPage2->Location = System::Drawing::Point(4, 40);
                        this->tabPage2->Name = L"tabPage2";
                        this->tabPage2->Padding = System::Windows::Forms::Padding(3);
                        this->tabPage2->Size = System::Drawing::Size(748, 198);
                        this->tabPage2->TabIndex = 3;
                        this->tabPage2->Text = L"Advanced";
                        this->tabPage2->UseVisualStyleBackColor = true;
                        // 
                        // ListNames
                        // 
                        this->ListNames->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) { this->columnHeader7, this->columnHeader8 });
                        this->ListNames->ContextMenuStrip = this->ContextLangName;
                        this->ListNames->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListNames->FullRowSelect = true;
                        this->ListNames->HideSelection = false;
                        this->ListNames->Location = System::Drawing::Point(3, 121);
                        this->ListNames->Name = L"ListNames";
                        this->ListNames->Size = System::Drawing::Size(742, 74);
                        this->ListNames->TabIndex = 1;
                        this->ListNames->UseCompatibleStateImageBehavior = false;
                        this->ListNames->View = System::Windows::Forms::View::Details;
                        this->ListNames->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListNames_MouseDoubleClick);
                        // 
                        // columnHeader7
                        // 
                        this->columnHeader7->Text = L"Language";
                        this->columnHeader7->Width = 80;
                        // 
                        // columnHeader8
                        // 
                        this->columnHeader8->Text = L"Package Name";
                        this->columnHeader8->Width = 300;
                        // 
                        // ContextLangName
                        // 
                        this->ContextLangName->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextLangName->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {
                                this->addToolStripMenuItem,
                                        this->toolStripSeparator2, this->ContextEditName, this->ContextRemoveName, this->ContextNameSep, this->clearAllToolStripMenuItem1
                        });
                        this->ContextLangName->Name = L"ContextLangName";
                        this->ContextLangName->Size = System::Drawing::Size(195, 168);
                        this->ContextLangName->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextLangName_Opening);
                        // 
                        // addToolStripMenuItem
                        // 
                        this->addToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addToolStripMenuItem.Image")));
                        this->addToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addToolStripMenuItem->Name = L"addToolStripMenuItem";
                        this->addToolStripMenuItem->Size = System::Drawing::Size(194, 38);
                        this->addToolStripMenuItem->Text = L"Add Package Name";
                        this->addToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator2
                        // 
                        this->toolStripSeparator2->Name = L"toolStripSeparator2";
                        this->toolStripSeparator2->Size = System::Drawing::Size(191, 6);
                        // 
                        // ContextEditName
                        // 
                        this->ContextEditName->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextEditName.Image")));
                        this->ContextEditName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextEditName->Name = L"ContextEditName";
                        this->ContextEditName->Size = System::Drawing::Size(194, 38);
                        this->ContextEditName->Text = L"Edit Name";
                        this->ContextEditName->Click += gcnew System::EventHandler(this, &PackageForm::ContextEditName_Click);
                        // 
                        // ContextRemoveName
                        // 
                        this->ContextRemoveName->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextRemoveName.Image")));
                        this->ContextRemoveName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextRemoveName->Name = L"ContextRemoveName";
                        this->ContextRemoveName->Size = System::Drawing::Size(194, 38);
                        this->ContextRemoveName->Text = L"Remove Selected";
                        this->ContextRemoveName->Click += gcnew System::EventHandler(this, &PackageForm::ContextRemoveName_Click);
                        // 
                        // ContextNameSep
                        // 
                        this->ContextNameSep->Name = L"ContextNameSep";
                        this->ContextNameSep->Size = System::Drawing::Size(191, 6);
                        // 
                        // clearAllToolStripMenuItem1
                        // 
                        this->clearAllToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"clearAllToolStripMenuItem1.Image")));
                        this->clearAllToolStripMenuItem1->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->clearAllToolStripMenuItem1->Name = L"clearAllToolStripMenuItem1";
                        this->clearAllToolStripMenuItem1->Size = System::Drawing::Size(194, 38);
                        this->clearAllToolStripMenuItem1->Text = L"Clear All";
                        this->clearAllToolStripMenuItem1->Click += gcnew System::EventHandler(this, &PackageForm::clearAllToolStripMenuItem1_Click);
                        // 
                        // groupBox4
                        // 
                        this->groupBox4->Controls->Add(this->ListMirrors);
                        this->groupBox4->Controls->Add(this->panel14);
                        this->groupBox4->Dock = System::Windows::Forms::DockStyle::Top;
                        this->groupBox4->Location = System::Drawing::Point(3, 3);
                        this->groupBox4->Name = L"groupBox4";
                        this->groupBox4->Size = System::Drawing::Size(742, 118);
                        this->groupBox4->TabIndex = 0;
                        this->groupBox4->TabStop = false;
                        this->groupBox4->Text = L"Automatic Update";
                        // 
                        // ListMirrors
                        // 
                        this->ListMirrors->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(1) { this->columnHeader6 });
                        this->ListMirrors->ContextMenuStrip = this->ContextMirror;
                        this->ListMirrors->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListMirrors->FullRowSelect = true;
                        this->ListMirrors->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
                        this->ListMirrors->HideSelection = false;
                        this->ListMirrors->LabelWrap = false;
                        this->ListMirrors->Location = System::Drawing::Point(3, 40);
                        this->ListMirrors->MultiSelect = false;
                        this->ListMirrors->Name = L"ListMirrors";
                        this->ListMirrors->ShowGroups = false;
                        this->ListMirrors->Size = System::Drawing::Size(736, 75);
                        this->ListMirrors->Sorting = System::Windows::Forms::SortOrder::Ascending;
                        this->ListMirrors->TabIndex = 1;
                        this->ListMirrors->UseCompatibleStateImageBehavior = false;
                        this->ListMirrors->View = System::Windows::Forms::View::Details;
                        this->ListMirrors->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListMirrors_MouseDoubleClick);
                        // 
                        // columnHeader6
                        // 
                        this->columnHeader6->Text = L"Mirror Address";
                        this->columnHeader6->Width = 121;
                        // 
                        // ContextMirror
                        // 
                        this->ContextMirror->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextMirror->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {
                                this->addMirrorToolStripMenuItem,
                                        this->toolStripSeparator1, this->ContextRemoveMirror, this->clearAllToolStripMenuItem
                        });
                        this->ContextMirror->Name = L"ContextMirror";
                        this->ContextMirror->Size = System::Drawing::Size(194, 124);
                        this->ContextMirror->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextMirror_Opening);
                        // 
                        // addMirrorToolStripMenuItem
                        // 
                        this->addMirrorToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addMirrorToolStripMenuItem.Image")));
                        this->addMirrorToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addMirrorToolStripMenuItem->Name = L"addMirrorToolStripMenuItem";
                        this->addMirrorToolStripMenuItem->Size = System::Drawing::Size(193, 38);
                        this->addMirrorToolStripMenuItem->Text = L"Add Mirror Address";
                        this->addMirrorToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addMirrorToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator1
                        // 
                        this->toolStripSeparator1->Name = L"toolStripSeparator1";
                        this->toolStripSeparator1->Size = System::Drawing::Size(190, 6);
                        // 
                        // ContextRemoveMirror
                        // 
                        this->ContextRemoveMirror->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextRemoveMirror.Image")));
                        this->ContextRemoveMirror->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextRemoveMirror->Name = L"ContextRemoveMirror";
                        this->ContextRemoveMirror->Size = System::Drawing::Size(193, 38);
                        this->ContextRemoveMirror->Text = L"Remove Selected";
                        this->ContextRemoveMirror->Click += gcnew System::EventHandler(this, &PackageForm::ContextRemoveMirror_Click);
                        // 
                        // clearAllToolStripMenuItem
                        // 
                        this->clearAllToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"clearAllToolStripMenuItem.Image")));
                        this->clearAllToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->clearAllToolStripMenuItem->Name = L"clearAllToolStripMenuItem";
                        this->clearAllToolStripMenuItem->Size = System::Drawing::Size(193, 38);
                        this->clearAllToolStripMenuItem->Text = L"Clear All";
                        this->clearAllToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::clearAllToolStripMenuItem_Click);
                        // 
                        // panel14
                        // 
                        this->panel14->Controls->Add(this->TextWebAddress);
                        this->panel14->Controls->Add(this->label14);
                        this->panel14->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel14->Location = System::Drawing::Point(3, 16);
                        this->panel14->Name = L"panel14";
                        this->panel14->Size = System::Drawing::Size(736, 24);
                        this->panel14->TabIndex = 2;
                        // 
                        // TextWebAddress
                        // 
                        this->TextWebAddress->DetectUrls = false;
                        this->TextWebAddress->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextWebAddress->Location = System::Drawing::Point(142, 0);
                        this->TextWebAddress->Name = L"TextWebAddress";
                        this->TextWebAddress->Size = System::Drawing::Size(594, 24);
                        this->TextWebAddress->TabIndex = 1;
                        this->TextWebAddress->Text = L"";
                        this->TextWebAddress->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextWebAddress_TextChanged_1);
                        // 
                        // label14
                        // 
                        this->label14->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label14->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->label14->Location = System::Drawing::Point(0, 0);
                        this->label14->Name = L"label14";
                        this->label14->Size = System::Drawing::Size(142, 24);
                        this->label14->TabIndex = 0;
                        this->label14->Text = L"Primary Address";
                        // 
                        // tabPage4
                        // 
                        this->tabPage4->Controls->Add(this->ListDep);
                        this->tabPage4->Location = System::Drawing::Point(4, 40);
                        this->tabPage4->Name = L"tabPage4";
                        this->tabPage4->Padding = System::Windows::Forms::Padding(15);
                        this->tabPage4->Size = System::Drawing::Size(748, 198);
                        this->tabPage4->TabIndex = 9;
                        this->tabPage4->Text = L"Dependacies";
                        this->tabPage4->UseVisualStyleBackColor = true;
                        // 
                        // ListDep
                        // 
                        this->ListDep->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {
                                this->columnHeader22, this->columnHeader23,
                                        this->columnHeader24
                        });
                        this->ListDep->ContextMenuStrip = this->ContextDep;
                        this->ListDep->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListDep->FullRowSelect = true;
                        this->ListDep->HideSelection = false;
                        this->ListDep->Location = System::Drawing::Point(15, 15);
                        this->ListDep->MultiSelect = false;
                        this->ListDep->Name = L"ListDep";
                        this->ListDep->Size = System::Drawing::Size(718, 168);
                        this->ListDep->TabIndex = 0;
                        this->ListDep->UseCompatibleStateImageBehavior = false;
                        this->ListDep->View = System::Windows::Forms::View::Details;
                        this->ListDep->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListDep_MouseDoubleClick);
                        // 
                        // columnHeader22
                        // 
                        this->columnHeader22->Text = L"Package Name";
                        // 
                        // columnHeader23
                        // 
                        this->columnHeader23->Text = L"Author";
                        // 
                        // columnHeader24
                        // 
                        this->columnHeader24->Text = L"Minimum Version";
                        // 
                        // ContextDep
                        // 
                        this->ContextDep->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextDep->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {
                                this->addToolStripMenuItem1,
                                        this->ContextDepSep1, this->editSelectedToolStripMenuItem, this->ContextDepRemove, this->ContextDepSep2, this->ContextDepClear
                        });
                        this->ContextDep->Name = L"ContextDep";
                        this->ContextDep->Size = System::Drawing::Size(181, 168);
                        this->ContextDep->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextDep_Opening);
                        // 
                        // addToolStripMenuItem1
                        // 
                        this->addToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {
                                this->manualToolStripMenuItem,
                                        this->fromPackageToolStripMenuItem
                        });
                        this->addToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addToolStripMenuItem1.Image")));
                        this->addToolStripMenuItem1->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addToolStripMenuItem1->Name = L"addToolStripMenuItem1";
                        this->addToolStripMenuItem1->Size = System::Drawing::Size(180, 38);
                        this->addToolStripMenuItem1->Text = L"Add";
                        // 
                        // manualToolStripMenuItem
                        // 
                        this->manualToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"manualToolStripMenuItem.Image")));
                        this->manualToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->manualToolStripMenuItem->Name = L"manualToolStripMenuItem";
                        this->manualToolStripMenuItem->Size = System::Drawing::Size(165, 38);
                        this->manualToolStripMenuItem->Text = L"Manual";
                        this->manualToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::manualToolStripMenuItem_Click);
                        // 
                        // fromPackageToolStripMenuItem
                        // 
                        this->fromPackageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"fromPackageToolStripMenuItem.Image")));
                        this->fromPackageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->fromPackageToolStripMenuItem->Name = L"fromPackageToolStripMenuItem";
                        this->fromPackageToolStripMenuItem->Size = System::Drawing::Size(165, 38);
                        this->fromPackageToolStripMenuItem->Text = L"From Package";
                        this->fromPackageToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromPackageToolStripMenuItem_Click);
                        // 
                        // ContextDepSep1
                        // 
                        this->ContextDepSep1->Name = L"ContextDepSep1";
                        this->ContextDepSep1->Size = System::Drawing::Size(177, 6);
                        // 
                        // editSelectedToolStripMenuItem
                        // 
                        this->editSelectedToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"editSelectedToolStripMenuItem.Image")));
                        this->editSelectedToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->editSelectedToolStripMenuItem->Name = L"editSelectedToolStripMenuItem";
                        this->editSelectedToolStripMenuItem->Size = System::Drawing::Size(180, 38);
                        this->editSelectedToolStripMenuItem->Text = L"Edit Selected";
                        this->editSelectedToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::editSelectedToolStripMenuItem_Click);
                        // 
                        // ContextDepRemove
                        // 
                        this->ContextDepRemove->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextDepRemove.Image")));
                        this->ContextDepRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextDepRemove->Name = L"ContextDepRemove";
                        this->ContextDepRemove->Size = System::Drawing::Size(180, 38);
                        this->ContextDepRemove->Text = L"Remove Selected";
                        this->ContextDepRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextDepRemove_Click);
                        // 
                        // ContextDepSep2
                        // 
                        this->ContextDepSep2->Name = L"ContextDepSep2";
                        this->ContextDepSep2->Size = System::Drawing::Size(177, 6);
                        // 
                        // ContextDepClear
                        // 
                        this->ContextDepClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextDepClear.Image")));
                        this->ContextDepClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextDepClear->Name = L"ContextDepClear";
                        this->ContextDepClear->Size = System::Drawing::Size(180, 38);
                        this->ContextDepClear->Text = L"Clear All";
                        this->ContextDepClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextDepClear_Click);
                        // 
                        // PageWares
                        // 
                        this->PageWares->Controls->Add(this->splitContainer1);
                        this->PageWares->Location = System::Drawing::Point(4, 40);
                        this->PageWares->Name = L"PageWares";
                        this->PageWares->Padding = System::Windows::Forms::Padding(3);
                        this->PageWares->Size = System::Drawing::Size(748, 198);
                        this->PageWares->TabIndex = 5;
                        this->PageWares->Text = L"Custom Wares";
                        this->PageWares->UseVisualStyleBackColor = true;
                        // 
                        // splitContainer1
                        // 
                        this->splitContainer1->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->splitContainer1->Location = System::Drawing::Point(3, 3);
                        this->splitContainer1->Name = L"splitContainer1";
                        this->splitContainer1->Orientation = System::Windows::Forms::Orientation::Horizontal;
                        // 
                        // splitContainer1.Panel1
                        // 
                        this->splitContainer1->Panel1->Controls->Add(this->ListWares);
                        // 
                        // splitContainer1.Panel2
                        // 
                        this->splitContainer1->Panel2->Controls->Add(this->ListWareText);
                        this->splitContainer1->Size = System::Drawing::Size(742, 192);
                        this->splitContainer1->SplitterDistance = 97;
                        this->splitContainer1->TabIndex = 0;
                        // 
                        // ListWares
                        // 
                        this->ListWares->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(7) {
                                this->columnHeader9, this->columnHeader10,
                                        this->columnHeader11, this->columnHeader12, this->columnHeader13, this->columnHeader14, this->columnHeader18
                        });
                        this->ListWares->ContextMenuStrip = this->ContextWare;
                        this->ListWares->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListWares->FullRowSelect = true;
                        this->ListWares->HideSelection = false;
                        this->ListWares->Location = System::Drawing::Point(0, 0);
                        this->ListWares->MultiSelect = false;
                        this->ListWares->Name = L"ListWares";
                        this->ListWares->Size = System::Drawing::Size(742, 97);
                        this->ListWares->TabIndex = 0;
                        this->ListWares->UseCompatibleStateImageBehavior = false;
                        this->ListWares->View = System::Windows::Forms::View::Details;
                        this->ListWares->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ListWares_SelectedIndexChanged);
                        this->ListWares->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListWares_MouseDoubleClick);
                        // 
                        // columnHeader9
                        // 
                        this->columnHeader9->Text = L"Ware ID";
                        // 
                        // columnHeader10
                        // 
                        this->columnHeader10->Text = L"Ware Type";
                        this->columnHeader10->Width = 77;
                        // 
                        // columnHeader11
                        // 
                        this->columnHeader11->Text = L"Price";
                        // 
                        // columnHeader12
                        // 
                        this->columnHeader12->Text = L"Size Class";
                        // 
                        // columnHeader13
                        // 
                        this->columnHeader13->Text = L"Volume";
                        // 
                        // columnHeader14
                        // 
                        this->columnHeader14->Text = L"Min. Noto";
                        // 
                        // columnHeader18
                        // 
                        this->columnHeader18->Text = L"Text ID";
                        // 
                        // ContextWare
                        // 
                        this->ContextWare->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextWare->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {
                                this->addWareToolStripMenuItem,
                                        this->ContextWareSep1, this->ContextWareEdit, this->ContextWareRemove, this->ContextWareSep2, this->ContextWareClear
                        });
                        this->ContextWare->Name = L"ContextWare";
                        this->ContextWare->Size = System::Drawing::Size(164, 168);
                        this->ContextWare->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextWare_Opening);
                        // 
                        // addWareToolStripMenuItem
                        // 
                        this->addWareToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addWareToolStripMenuItem.Image")));
                        this->addWareToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addWareToolStripMenuItem->Name = L"addWareToolStripMenuItem";
                        this->addWareToolStripMenuItem->Size = System::Drawing::Size(163, 38);
                        this->addWareToolStripMenuItem->Text = L"Add Ware";
                        this->addWareToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addWareToolStripMenuItem_Click);
                        // 
                        // ContextWareSep1
                        // 
                        this->ContextWareSep1->Name = L"ContextWareSep1";
                        this->ContextWareSep1->Size = System::Drawing::Size(160, 6);
                        // 
                        // ContextWareEdit
                        // 
                        this->ContextWareEdit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWareEdit.Image")));
                        this->ContextWareEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWareEdit->Name = L"ContextWareEdit";
                        this->ContextWareEdit->Size = System::Drawing::Size(163, 38);
                        this->ContextWareEdit->Text = L"Edit Ware";
                        this->ContextWareEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareEdit_Click);
                        // 
                        // ContextWareRemove
                        // 
                        this->ContextWareRemove->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWareRemove.Image")));
                        this->ContextWareRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWareRemove->Name = L"ContextWareRemove";
                        this->ContextWareRemove->Size = System::Drawing::Size(163, 38);
                        this->ContextWareRemove->Text = L"Remove Ware";
                        this->ContextWareRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareRemove_Click);
                        // 
                        // ContextWareSep2
                        // 
                        this->ContextWareSep2->Name = L"ContextWareSep2";
                        this->ContextWareSep2->Size = System::Drawing::Size(160, 6);
                        // 
                        // ContextWareClear
                        // 
                        this->ContextWareClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWareClear.Image")));
                        this->ContextWareClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWareClear->Name = L"ContextWareClear";
                        this->ContextWareClear->Size = System::Drawing::Size(163, 38);
                        this->ContextWareClear->Text = L"Clear All";
                        this->ContextWareClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextWareClear_Click);
                        // 
                        // ListWareText
                        // 
                        this->ListWareText->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {
                                this->columnHeader15,
                                        this->columnHeader16, this->columnHeader17
                        });
                        this->ListWareText->ContextMenuStrip = this->ContextWareText;
                        this->ListWareText->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListWareText->FullRowSelect = true;
                        this->ListWareText->HideSelection = false;
                        this->ListWareText->Location = System::Drawing::Point(0, 0);
                        this->ListWareText->MultiSelect = false;
                        this->ListWareText->Name = L"ListWareText";
                        this->ListWareText->Size = System::Drawing::Size(742, 91);
                        this->ListWareText->TabIndex = 0;
                        this->ListWareText->UseCompatibleStateImageBehavior = false;
                        this->ListWareText->View = System::Windows::Forms::View::Details;
                        this->ListWareText->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListWareText_MouseDoubleClick);
                        // 
                        // columnHeader15
                        // 
                        this->columnHeader15->Text = L"Lang ID";
                        // 
                        // columnHeader16
                        // 
                        this->columnHeader16->Text = L"Ware Name";
                        this->columnHeader16->Width = 88;
                        // 
                        // columnHeader17
                        // 
                        this->columnHeader17->Text = L"Ware Description";
                        this->columnHeader17->Width = 115;
                        // 
                        // ContextWareText
                        // 
                        this->ContextWareText->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextWareText->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {
                                this->addTextToolStripMenuItem,
                                        this->ContextWTSep1, this->ContextWTRemove, this->ContextWTEdit, this->ContextWTSep2, this->ContextWTClear
                        });
                        this->ContextWareText->Name = L"ContextWareText";
                        this->ContextWareText->Size = System::Drawing::Size(158, 168);
                        this->ContextWareText->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextWareText_Opening);
                        // 
                        // addTextToolStripMenuItem
                        // 
                        this->addTextToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addTextToolStripMenuItem.Image")));
                        this->addTextToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addTextToolStripMenuItem->Name = L"addTextToolStripMenuItem";
                        this->addTextToolStripMenuItem->Size = System::Drawing::Size(157, 38);
                        this->addTextToolStripMenuItem->Text = L"Add Text";
                        this->addTextToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addTextToolStripMenuItem_Click);
                        // 
                        // ContextWTSep1
                        // 
                        this->ContextWTSep1->Name = L"ContextWTSep1";
                        this->ContextWTSep1->Size = System::Drawing::Size(154, 6);
                        // 
                        // ContextWTRemove
                        // 
                        this->ContextWTRemove->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWTRemove.Image")));
                        this->ContextWTRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWTRemove->Name = L"ContextWTRemove";
                        this->ContextWTRemove->Size = System::Drawing::Size(157, 38);
                        this->ContextWTRemove->Text = L"Remove Text";
                        this->ContextWTRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTRemove_Click);
                        // 
                        // ContextWTEdit
                        // 
                        this->ContextWTEdit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWTEdit.Image")));
                        this->ContextWTEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWTEdit->Name = L"ContextWTEdit";
                        this->ContextWTEdit->Size = System::Drawing::Size(157, 38);
                        this->ContextWTEdit->Text = L"Edit Text";
                        this->ContextWTEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTEdit_Click);
                        // 
                        // ContextWTSep2
                        // 
                        this->ContextWTSep2->Name = L"ContextWTSep2";
                        this->ContextWTSep2->Size = System::Drawing::Size(154, 6);
                        // 
                        // ContextWTClear
                        // 
                        this->ContextWTClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextWTClear.Image")));
                        this->ContextWTClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextWTClear->Name = L"ContextWTClear";
                        this->ContextWTClear->Size = System::Drawing::Size(157, 38);
                        this->ContextWTClear->Text = L"Clear All";
                        this->ContextWTClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextWTClear_Click);
                        // 
                        // PageShip
                        // 
                        this->PageShip->Controls->Add(this->ListShipText);
                        this->PageShip->Controls->Add(this->PanelTextID);
                        this->PageShip->Controls->Add(this->flowLayoutPanel2);
                        this->PageShip->Location = System::Drawing::Point(4, 40);
                        this->PageShip->Name = L"PageShip";
                        this->PageShip->Padding = System::Windows::Forms::Padding(8);
                        this->PageShip->Size = System::Drawing::Size(748, 198);
                        this->PageShip->TabIndex = 6;
                        this->PageShip->Text = L"Ship Settings";
                        this->PageShip->UseVisualStyleBackColor = true;
                        // 
                        // ListShipText
                        // 
                        this->ListShipText->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {
                                this->columnHeader19,
                                        this->columnHeader20, this->columnHeader21
                        });
                        this->ListShipText->ContextMenuStrip = this->ContextShipText;
                        this->ListShipText->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListShipText->FullRowSelect = true;
                        this->ListShipText->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
                        this->ListShipText->HideSelection = false;
                        this->ListShipText->Location = System::Drawing::Point(8, 110);
                        this->ListShipText->Name = L"ListShipText";
                        this->ListShipText->Size = System::Drawing::Size(732, 80);
                        this->ListShipText->TabIndex = 8;
                        this->ListShipText->UseCompatibleStateImageBehavior = false;
                        this->ListShipText->View = System::Windows::Forms::View::Details;
                        this->ListShipText->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListShipText_MouseDoubleClick);
                        // 
                        // columnHeader19
                        // 
                        this->columnHeader19->Text = L"Language";
                        // 
                        // columnHeader20
                        // 
                        this->columnHeader20->Text = L"Ship Name";
                        // 
                        // columnHeader21
                        // 
                        this->columnHeader21->Text = L"Ship Description";
                        // 
                        // ContextShipText
                        // 
                        this->ContextShipText->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextShipText->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {
                                this->importTextToolStripMenuItem,
                                        this->addLanguageToolStripMenuItem, this->ContextShipTextSep1, this->ContextShipTextEdit, this->ContextShipTextRemove, this->ContextShipTextSep2,
                                        this->ContextShipTextClear
                        });
                        this->ContextShipText->Name = L"ContextShipText";
                        this->ContextShipText->Size = System::Drawing::Size(168, 206);
                        this->ContextShipText->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextShipText_Opening);
                        // 
                        // importTextToolStripMenuItem
                        // 
                        this->importTextToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {
                                this->fromFileToolStripMenuItem,
                                        this->fromDirectoryToolStripMenuItem, this->fromModToolStripMenuItem
                        });
                        this->importTextToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"importTextToolStripMenuItem.Image")));
                        this->importTextToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->importTextToolStripMenuItem->Name = L"importTextToolStripMenuItem";
                        this->importTextToolStripMenuItem->Size = System::Drawing::Size(167, 38);
                        this->importTextToolStripMenuItem->Text = L"Import Text";
                        // 
                        // fromFileToolStripMenuItem
                        // 
                        this->fromFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"fromFileToolStripMenuItem.Image")));
                        this->fromFileToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->fromFileToolStripMenuItem->Name = L"fromFileToolStripMenuItem";
                        this->fromFileToolStripMenuItem->Size = System::Drawing::Size(169, 38);
                        this->fromFileToolStripMenuItem->Text = L"From File";
                        this->fromFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromFileToolStripMenuItem_Click);
                        // 
                        // fromDirectoryToolStripMenuItem
                        // 
                        this->fromDirectoryToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"fromDirectoryToolStripMenuItem.Image")));
                        this->fromDirectoryToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->fromDirectoryToolStripMenuItem->Name = L"fromDirectoryToolStripMenuItem";
                        this->fromDirectoryToolStripMenuItem->Size = System::Drawing::Size(169, 38);
                        this->fromDirectoryToolStripMenuItem->Text = L"From Directory";
                        this->fromDirectoryToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromDirectoryToolStripMenuItem_Click);
                        // 
                        // fromModToolStripMenuItem
                        // 
                        this->fromModToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"fromModToolStripMenuItem.Image")));
                        this->fromModToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->fromModToolStripMenuItem->Name = L"fromModToolStripMenuItem";
                        this->fromModToolStripMenuItem->Size = System::Drawing::Size(169, 38);
                        this->fromModToolStripMenuItem->Text = L"From Mod";
                        this->fromModToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::fromModToolStripMenuItem_Click);
                        // 
                        // addLanguageToolStripMenuItem
                        // 
                        this->addLanguageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addLanguageToolStripMenuItem.Image")));
                        this->addLanguageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->addLanguageToolStripMenuItem->Name = L"addLanguageToolStripMenuItem";
                        this->addLanguageToolStripMenuItem->Size = System::Drawing::Size(167, 38);
                        this->addLanguageToolStripMenuItem->Text = L"Add Language";
                        this->addLanguageToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addLanguageToolStripMenuItem_Click);
                        // 
                        // ContextShipTextSep1
                        // 
                        this->ContextShipTextSep1->Name = L"ContextShipTextSep1";
                        this->ContextShipTextSep1->Size = System::Drawing::Size(164, 6);
                        // 
                        // ContextShipTextEdit
                        // 
                        this->ContextShipTextEdit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipTextEdit.Image")));
                        this->ContextShipTextEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipTextEdit->Name = L"ContextShipTextEdit";
                        this->ContextShipTextEdit->Size = System::Drawing::Size(167, 38);
                        this->ContextShipTextEdit->Text = L"Edit";
                        this->ContextShipTextEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextEdit_Click);
                        // 
                        // ContextShipTextRemove
                        // 
                        this->ContextShipTextRemove->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipTextRemove.Image")));
                        this->ContextShipTextRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipTextRemove->Name = L"ContextShipTextRemove";
                        this->ContextShipTextRemove->Size = System::Drawing::Size(167, 38);
                        this->ContextShipTextRemove->Text = L"Remove";
                        this->ContextShipTextRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextRemove_Click);
                        // 
                        // ContextShipTextSep2
                        // 
                        this->ContextShipTextSep2->Name = L"ContextShipTextSep2";
                        this->ContextShipTextSep2->Size = System::Drawing::Size(164, 6);
                        // 
                        // ContextShipTextClear
                        // 
                        this->ContextShipTextClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipTextClear.Image")));
                        this->ContextShipTextClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipTextClear->Name = L"ContextShipTextClear";
                        this->ContextShipTextClear->Size = System::Drawing::Size(167, 38);
                        this->ContextShipTextClear->Text = L"Clear All";
                        this->ContextShipTextClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipTextClear_Click);
                        // 
                        // PanelTextID
                        // 
                        this->PanelTextID->Controls->Add(this->NumTextID);
                        this->PanelTextID->Controls->Add(this->CheckExistingText);
                        this->PanelTextID->Dock = System::Windows::Forms::DockStyle::Top;
                        this->PanelTextID->Location = System::Drawing::Point(8, 90);
                        this->PanelTextID->Name = L"PanelTextID";
                        this->PanelTextID->Size = System::Drawing::Size(732, 20);
                        this->PanelTextID->TabIndex = 9;
                        // 
                        // NumTextID
                        // 
                        this->NumTextID->Dock = System::Windows::Forms::DockStyle::Left;
                        this->NumTextID->Location = System::Drawing::Point(122, 0);
                        this->NumTextID->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 90000000, 0, 0, 0 });
                        this->NumTextID->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
                        this->NumTextID->Name = L"NumTextID";
                        this->NumTextID->Size = System::Drawing::Size(103, 20);
                        this->NumTextID->TabIndex = 1;
                        this->NumTextID->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
                        this->NumTextID->ValueChanged += gcnew System::EventHandler(this, &PackageForm::NumTextID_ValueChanged);
                        this->NumTextID->Leave += gcnew System::EventHandler(this, &PackageForm::NumTextID_Leave);
                        // 
                        // CheckExistingText
                        // 
                        this->CheckExistingText->AutoSize = true;
                        this->CheckExistingText->Dock = System::Windows::Forms::DockStyle::Left;
                        this->CheckExistingText->Location = System::Drawing::Point(0, 0);
                        this->CheckExistingText->Name = L"CheckExistingText";
                        this->CheckExistingText->Size = System::Drawing::Size(122, 20);
                        this->CheckExistingText->TabIndex = 3;
                        this->CheckExistingText->Text = L"Use Existing Text ID";
                        this->CheckExistingText->UseVisualStyleBackColor = true;
                        this->CheckExistingText->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckExistingText_CheckedChanged);
                        // 
                        // flowLayoutPanel2
                        // 
                        this->flowLayoutPanel2->AutoSize = true;
                        this->flowLayoutPanel2->Controls->Add(this->label16);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYArgon);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYBoron);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYParanid);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYTeladi);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYSplit);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYPirate);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYFriend);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYXenon);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYTerran);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYATF);
                        this->flowLayoutPanel2->Controls->Add(this->CheckSYYaki);
                        this->flowLayoutPanel2->Dock = System::Windows::Forms::DockStyle::Top;
                        this->flowLayoutPanel2->Location = System::Drawing::Point(8, 8);
                        this->flowLayoutPanel2->Name = L"flowLayoutPanel2";
                        this->flowLayoutPanel2->Size = System::Drawing::Size(732, 82);
                        this->flowLayoutPanel2->TabIndex = 7;
                        // 
                        // label16
                        // 
                        this->label16->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->label16->Location = System::Drawing::Point(3, 0);
                        this->label16->Name = L"label16";
                        this->label16->Size = System::Drawing::Size(90, 38);
                        this->label16->TabIndex = 11;
                        this->label16->Text = L"Add To Shipyards:";
                        this->label16->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // CheckSYArgon
                        // 
                        this->CheckSYArgon->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->CheckSYArgon->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYArgon.Image")));
                        this->CheckSYArgon->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYArgon->Location = System::Drawing::Point(99, 3);
                        this->CheckSYArgon->Name = L"CheckSYArgon";
                        this->CheckSYArgon->Size = System::Drawing::Size(90, 35);
                        this->CheckSYArgon->TabIndex = 0;
                        this->CheckSYArgon->Text = L"Argon";
                        this->CheckSYArgon->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYArgon->UseVisualStyleBackColor = true;
                        this->CheckSYArgon->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYArgon_CheckedChanged);
                        // 
                        // CheckSYBoron
                        // 
                        this->CheckSYBoron->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYBoron.Image")));
                        this->CheckSYBoron->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYBoron->Location = System::Drawing::Point(195, 3);
                        this->CheckSYBoron->Name = L"CheckSYBoron";
                        this->CheckSYBoron->Size = System::Drawing::Size(90, 35);
                        this->CheckSYBoron->TabIndex = 1;
                        this->CheckSYBoron->Text = L"Boron";
                        this->CheckSYBoron->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYBoron->UseVisualStyleBackColor = true;
                        this->CheckSYBoron->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYBoron_CheckedChanged);
                        // 
                        // CheckSYParanid
                        // 
                        this->CheckSYParanid->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYParanid.Image")));
                        this->CheckSYParanid->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYParanid->Location = System::Drawing::Point(291, 3);
                        this->CheckSYParanid->Name = L"CheckSYParanid";
                        this->CheckSYParanid->Size = System::Drawing::Size(90, 35);
                        this->CheckSYParanid->TabIndex = 2;
                        this->CheckSYParanid->Text = L"Paranid";
                        this->CheckSYParanid->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYParanid->UseVisualStyleBackColor = true;
                        this->CheckSYParanid->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYParanid_CheckedChanged);
                        // 
                        // CheckSYTeladi
                        // 
                        this->CheckSYTeladi->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYTeladi.Image")));
                        this->CheckSYTeladi->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYTeladi->Location = System::Drawing::Point(387, 3);
                        this->CheckSYTeladi->Name = L"CheckSYTeladi";
                        this->CheckSYTeladi->Size = System::Drawing::Size(90, 35);
                        this->CheckSYTeladi->TabIndex = 3;
                        this->CheckSYTeladi->Text = L"Teladi";
                        this->CheckSYTeladi->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYTeladi->UseVisualStyleBackColor = true;
                        this->CheckSYTeladi->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYTeladi_CheckedChanged);
                        // 
                        // CheckSYSplit
                        // 
                        this->CheckSYSplit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYSplit.Image")));
                        this->CheckSYSplit->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYSplit->Location = System::Drawing::Point(483, 3);
                        this->CheckSYSplit->Name = L"CheckSYSplit";
                        this->CheckSYSplit->Size = System::Drawing::Size(90, 35);
                        this->CheckSYSplit->TabIndex = 4;
                        this->CheckSYSplit->Text = L"Split";
                        this->CheckSYSplit->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYSplit->UseVisualStyleBackColor = true;
                        this->CheckSYSplit->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYSplit_CheckedChanged);
                        // 
                        // CheckSYPirate
                        // 
                        this->CheckSYPirate->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYPirate.Image")));
                        this->CheckSYPirate->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYPirate->Location = System::Drawing::Point(579, 3);
                        this->CheckSYPirate->Name = L"CheckSYPirate";
                        this->CheckSYPirate->Size = System::Drawing::Size(90, 35);
                        this->CheckSYPirate->TabIndex = 5;
                        this->CheckSYPirate->Text = L"Pirate";
                        this->CheckSYPirate->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYPirate->UseVisualStyleBackColor = true;
                        this->CheckSYPirate->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYPirate_CheckedChanged);
                        // 
                        // CheckSYFriend
                        // 
                        this->CheckSYFriend->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYFriend.Image")));
                        this->CheckSYFriend->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYFriend->Location = System::Drawing::Point(3, 44);
                        this->CheckSYFriend->Name = L"CheckSYFriend";
                        this->CheckSYFriend->Size = System::Drawing::Size(90, 35);
                        this->CheckSYFriend->TabIndex = 6;
                        this->CheckSYFriend->Text = L"Friendly Race";
                        this->CheckSYFriend->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYFriend->UseVisualStyleBackColor = true;
                        this->CheckSYFriend->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYFriend_CheckedChanged);
                        // 
                        // CheckSYXenon
                        // 
                        this->CheckSYXenon->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYXenon.Image")));
                        this->CheckSYXenon->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYXenon->Location = System::Drawing::Point(99, 44);
                        this->CheckSYXenon->Name = L"CheckSYXenon";
                        this->CheckSYXenon->Size = System::Drawing::Size(90, 35);
                        this->CheckSYXenon->TabIndex = 7;
                        this->CheckSYXenon->Text = L"Xenon";
                        this->CheckSYXenon->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYXenon->UseVisualStyleBackColor = true;
                        this->CheckSYXenon->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYXenon_CheckedChanged);
                        // 
                        // CheckSYTerran
                        // 
                        this->CheckSYTerran->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYTerran.Image")));
                        this->CheckSYTerran->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYTerran->Location = System::Drawing::Point(195, 44);
                        this->CheckSYTerran->Name = L"CheckSYTerran";
                        this->CheckSYTerran->Size = System::Drawing::Size(90, 35);
                        this->CheckSYTerran->TabIndex = 8;
                        this->CheckSYTerran->Text = L"Terran";
                        this->CheckSYTerran->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYTerran->UseVisualStyleBackColor = true;
                        this->CheckSYTerran->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYTerran_CheckedChanged);
                        // 
                        // CheckSYATF
                        // 
                        this->CheckSYATF->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYATF.Image")));
                        this->CheckSYATF->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYATF->Location = System::Drawing::Point(291, 44);
                        this->CheckSYATF->Name = L"CheckSYATF";
                        this->CheckSYATF->Size = System::Drawing::Size(90, 35);
                        this->CheckSYATF->TabIndex = 9;
                        this->CheckSYATF->Text = L"ATF";
                        this->CheckSYATF->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYATF->UseVisualStyleBackColor = true;
                        this->CheckSYATF->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYATF_CheckedChanged);
                        // 
                        // CheckSYYaki
                        // 
                        this->CheckSYYaki->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"CheckSYYaki.Image")));
                        this->CheckSYYaki->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->CheckSYYaki->Location = System::Drawing::Point(387, 44);
                        this->CheckSYYaki->Name = L"CheckSYYaki";
                        this->CheckSYYaki->Size = System::Drawing::Size(90, 35);
                        this->CheckSYYaki->TabIndex = 10;
                        this->CheckSYYaki->Text = L"Yaki";
                        this->CheckSYYaki->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->CheckSYYaki->UseVisualStyleBackColor = true;
                        this->CheckSYYaki->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckSYYaki_CheckedChanged);
                        // 
                        // PageRaw
                        // 
                        this->PageRaw->Controls->Add(this->panel23);
                        this->PageRaw->Controls->Add(this->flowLayoutPanel3);
                        this->PageRaw->Location = System::Drawing::Point(4, 40);
                        this->PageRaw->Name = L"PageRaw";
                        this->PageRaw->Padding = System::Windows::Forms::Padding(3);
                        this->PageRaw->Size = System::Drawing::Size(748, 198);
                        this->PageRaw->TabIndex = 7;
                        this->PageRaw->Text = L"Ship Data";
                        this->PageRaw->UseVisualStyleBackColor = true;
                        // 
                        // panel23
                        // 
                        this->panel23->Controls->Add(this->TextShipData);
                        this->panel23->Controls->Add(this->panel24);
                        this->panel23->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel23->Location = System::Drawing::Point(3, 42);
                        this->panel23->Name = L"panel23";
                        this->panel23->Padding = System::Windows::Forms::Padding(10);
                        this->panel23->Size = System::Drawing::Size(742, 153);
                        this->panel23->TabIndex = 3;
                        // 
                        // TextShipData
                        // 
                        this->TextShipData->BackColor = System::Drawing::SystemColors::Control;
                        this->TextShipData->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextShipData->Location = System::Drawing::Point(10, 34);
                        this->TextShipData->Name = L"TextShipData";
                        this->TextShipData->ReadOnly = true;
                        this->TextShipData->Size = System::Drawing::Size(722, 109);
                        this->TextShipData->TabIndex = 0;
                        this->TextShipData->Text = L"";
                        this->TextShipData->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextShipData_TextChanged);
                        // 
                        // panel24
                        // 
                        this->panel24->Controls->Add(this->label17);
                        this->panel24->Controls->Add(this->checkBox1);
                        this->panel24->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel24->Location = System::Drawing::Point(10, 10);
                        this->panel24->Name = L"panel24";
                        this->panel24->Size = System::Drawing::Size(722, 24);
                        this->panel24->TabIndex = 2;
                        // 
                        // label17
                        // 
                        this->label17->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label17->Location = System::Drawing::Point(107, 0);
                        this->label17->Name = L"label17";
                        this->label17->Size = System::Drawing::Size(615, 24);
                        this->label17->TabIndex = 2;
                        this->label17->Text = L"(Warning: Making changes could break the ship if you dont know what your doing)";
                        this->label17->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // checkBox1
                        // 
                        this->checkBox1->AutoSize = true;
                        this->checkBox1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->checkBox1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
                                static_cast<System::Byte>(0)));
                        this->checkBox1->Location = System::Drawing::Point(0, 0);
                        this->checkBox1->Name = L"checkBox1";
                        this->checkBox1->Size = System::Drawing::Size(107, 24);
                        this->checkBox1->TabIndex = 1;
                        this->checkBox1->Text = L"Allow Edit";
                        this->checkBox1->UseVisualStyleBackColor = true;
                        this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::checkBox1_CheckedChanged);
                        // 
                        // flowLayoutPanel3
                        // 
                        this->flowLayoutPanel3->Controls->Add(this->button3);
                        this->flowLayoutPanel3->Controls->Add(this->button5);
                        this->flowLayoutPanel3->Dock = System::Windows::Forms::DockStyle::Top;
                        this->flowLayoutPanel3->Location = System::Drawing::Point(3, 3);
                        this->flowLayoutPanel3->Name = L"flowLayoutPanel3";
                        this->flowLayoutPanel3->Size = System::Drawing::Size(742, 39);
                        this->flowLayoutPanel3->TabIndex = 4;
                        // 
                        // button3
                        // 
                        this->button3->AutoSize = true;
                        this->button3->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
                        this->button3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button3.Image")));
                        this->button3->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        this->button3->Location = System::Drawing::Point(3, 3);
                        this->button3->Name = L"button3";
                        this->button3->Size = System::Drawing::Size(113, 28);
                        this->button3->TabIndex = 2;
                        this->button3->Text = L"Load Ship Data";
                        this->button3->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->button3->UseVisualStyleBackColor = true;
                        this->button3->Click += gcnew System::EventHandler(this, &PackageForm::button3_Click);
                        // 
                        // button5
                        // 
                        this->button5->AutoSize = true;
                        this->button5->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
                        this->button5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button5.Image")));
                        this->button5->Location = System::Drawing::Point(122, 3);
                        this->button5->Name = L"button5";
                        this->button5->Size = System::Drawing::Size(111, 28);
                        this->button5->TabIndex = 3;
                        this->button5->Text = L"Customise Ship";
                        this->button5->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->button5->UseVisualStyleBackColor = true;
                        this->button5->Click += gcnew System::EventHandler(this, &PackageForm::button5_Click);
                        // 
                        // PageShipComp
                        // 
                        this->PageShipComp->Controls->Add(this->panel26);
                        this->PageShipComp->Controls->Add(this->panel25);
                        this->PageShipComp->Location = System::Drawing::Point(4, 40);
                        this->PageShipComp->Name = L"PageShipComp";
                        this->PageShipComp->Padding = System::Windows::Forms::Padding(3);
                        this->PageShipComp->Size = System::Drawing::Size(748, 198);
                        this->PageShipComp->TabIndex = 8;
                        this->PageShipComp->Text = L"Ship Parts";
                        this->PageShipComp->UseVisualStyleBackColor = true;
                        // 
                        // panel26
                        // 
                        this->panel26->Controls->Add(this->ListShipPart);
                        this->panel26->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel26->Location = System::Drawing::Point(3, 35);
                        this->panel26->Name = L"panel26";
                        this->panel26->Padding = System::Windows::Forms::Padding(10);
                        this->panel26->Size = System::Drawing::Size(742, 160);
                        this->panel26->TabIndex = 4;
                        // 
                        // ListShipPart
                        // 
                        this->ListShipPart->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {
                                this->ColumnPart1, this->ColumnPart2,
                                        this->ColumnPart3
                        });
                        this->ListShipPart->ContextMenuStrip = this->ContextShipPart;
                        this->ListShipPart->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ListShipPart->FullRowSelect = true;
                        this->ListShipPart->HideSelection = false;
                        this->ListShipPart->Location = System::Drawing::Point(10, 10);
                        this->ListShipPart->Name = L"ListShipPart";
                        this->ListShipPart->Size = System::Drawing::Size(722, 140);
                        this->ListShipPart->TabIndex = 3;
                        this->ListShipPart->UseCompatibleStateImageBehavior = false;
                        this->ListShipPart->View = System::Windows::Forms::View::Details;
                        this->ListShipPart->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &PackageForm::ListShipPart_MouseDoubleClick);
                        // 
                        // ContextShipPart
                        // 
                        this->ContextShipPart->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->ContextShipPart->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {
                                this->importToolStripMenuItem,
                                        this->ContextShipPartAdd, this->ContextShipPartSep1, this->ContextShipPartRemove, this->ContextShipPartEdit, this->ContextShipPartSep2,
                                        this->ContextShipPartClear
                        });
                        this->ContextShipPart->Name = L"ContextShipPart";
                        this->ContextShipPart->Size = System::Drawing::Size(181, 206);
                        this->ContextShipPart->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::ContextShipPart_Opening);
                        // 
                        // importToolStripMenuItem
                        // 
                        this->importToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"importToolStripMenuItem.Image")));
                        this->importToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->importToolStripMenuItem->Name = L"importToolStripMenuItem";
                        this->importToolStripMenuItem->Size = System::Drawing::Size(180, 38);
                        this->importToolStripMenuItem->Text = L"Import";
                        this->importToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::importToolStripMenuItem_Click);
                        // 
                        // ContextShipPartAdd
                        // 
                        this->ContextShipPartAdd->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipPartAdd.Image")));
                        this->ContextShipPartAdd->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipPartAdd->Name = L"ContextShipPartAdd";
                        this->ContextShipPartAdd->Size = System::Drawing::Size(180, 38);
                        this->ContextShipPartAdd->Text = L"Add";
                        this->ContextShipPartAdd->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartAdd_Click);
                        // 
                        // ContextShipPartSep1
                        // 
                        this->ContextShipPartSep1->Name = L"ContextShipPartSep1";
                        this->ContextShipPartSep1->Size = System::Drawing::Size(177, 6);
                        // 
                        // ContextShipPartRemove
                        // 
                        this->ContextShipPartRemove->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipPartRemove.Image")));
                        this->ContextShipPartRemove->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipPartRemove->Name = L"ContextShipPartRemove";
                        this->ContextShipPartRemove->Size = System::Drawing::Size(180, 38);
                        this->ContextShipPartRemove->Text = L"Remove Selected";
                        this->ContextShipPartRemove->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartRemove_Click);
                        // 
                        // ContextShipPartEdit
                        // 
                        this->ContextShipPartEdit->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipPartEdit.Image")));
                        this->ContextShipPartEdit->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipPartEdit->Name = L"ContextShipPartEdit";
                        this->ContextShipPartEdit->Size = System::Drawing::Size(180, 38);
                        this->ContextShipPartEdit->Text = L"Edit Selected";
                        this->ContextShipPartEdit->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartEdit_Click);
                        // 
                        // ContextShipPartSep2
                        // 
                        this->ContextShipPartSep2->Name = L"ContextShipPartSep2";
                        this->ContextShipPartSep2->Size = System::Drawing::Size(177, 6);
                        // 
                        // ContextShipPartClear
                        // 
                        this->ContextShipPartClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextShipPartClear.Image")));
                        this->ContextShipPartClear->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
                        this->ContextShipPartClear->Name = L"ContextShipPartClear";
                        this->ContextShipPartClear->Size = System::Drawing::Size(180, 38);
                        this->ContextShipPartClear->Text = L"Clear All";
                        this->ContextShipPartClear->Click += gcnew System::EventHandler(this, &PackageForm::ContextShipPartClear_Click);
                        // 
                        // panel25
                        // 
                        this->panel25->Controls->Add(this->ComboShipPart);
                        this->panel25->Controls->Add(this->label18);
                        this->panel25->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel25->Location = System::Drawing::Point(3, 3);
                        this->panel25->Name = L"panel25";
                        this->panel25->Padding = System::Windows::Forms::Padding(5);
                        this->panel25->Size = System::Drawing::Size(742, 32);
                        this->panel25->TabIndex = 2;
                        // 
                        // ComboShipPart
                        // 
                        this->ComboShipPart->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->ComboShipPart->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
                        this->ComboShipPart->FormattingEnabled = true;
                        this->ComboShipPart->Items->AddRange(gcnew cli::array< System::Object^  >(6) {
                                L"Componants", L"Dummies", L"Cockpits", L"CutData",
                                        L"Bodies", L"Animations"
                        });
                        this->ComboShipPart->Location = System::Drawing::Point(105, 5);
                        this->ComboShipPart->Name = L"ComboShipPart";
                        this->ComboShipPart->Size = System::Drawing::Size(632, 21);
                        this->ComboShipPart->TabIndex = 0;
                        this->ComboShipPart->SelectedIndexChanged += gcnew System::EventHandler(this, &PackageForm::ComboShipPart_SelectedIndexChanged);
                        // 
                        // label18
                        // 
                        this->label18->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label18->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->label18->Location = System::Drawing::Point(5, 5);
                        this->label18->Name = L"label18";
                        this->label18->Size = System::Drawing::Size(100, 22);
                        this->label18->TabIndex = 1;
                        this->label18->Text = L"Part Type";
                        this->label18->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // tabGlobals
                        // 
                        this->tabGlobals->Controls->Add(this->butGlobalClear);
                        this->tabGlobals->Controls->Add(this->butAddGlobal);
                        this->tabGlobals->Controls->Add(this->listGlobals);
                        this->tabGlobals->Location = System::Drawing::Point(4, 40);
                        this->tabGlobals->Name = L"tabGlobals";
                        this->tabGlobals->Padding = System::Windows::Forms::Padding(3);
                        this->tabGlobals->Size = System::Drawing::Size(748, 198);
                        this->tabGlobals->TabIndex = 11;
                        this->tabGlobals->Text = L"Globals";
                        this->tabGlobals->UseVisualStyleBackColor = true;
                        // 
                        // butGlobalClear
                        // 
                        this->butGlobalClear->Dock = System::Windows::Forms::DockStyle::Right;
                        this->butGlobalClear->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"butGlobalClear.Image")));
                        this->butGlobalClear->Location = System::Drawing::Point(624, 156);
                        this->butGlobalClear->Name = L"butGlobalClear";
                        this->butGlobalClear->Size = System::Drawing::Size(121, 39);
                        this->butGlobalClear->TabIndex = 2;
                        this->butGlobalClear->Text = L"Clear All";
                        this->butGlobalClear->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->butGlobalClear->UseVisualStyleBackColor = true;
                        this->butGlobalClear->Click += gcnew System::EventHandler(this, &PackageForm::butGlobalClear_Click);
                        // 
                        // butAddGlobal
                        // 
                        this->butAddGlobal->Dock = System::Windows::Forms::DockStyle::Left;
                        this->butAddGlobal->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"butAddGlobal.Image")));
                        this->butAddGlobal->Location = System::Drawing::Point(3, 156);
                        this->butAddGlobal->Name = L"butAddGlobal";
                        this->butAddGlobal->Size = System::Drawing::Size(121, 39);
                        this->butAddGlobal->TabIndex = 1;
                        this->butAddGlobal->Text = L"Add New";
                        this->butAddGlobal->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
                        this->butAddGlobal->UseVisualStyleBackColor = true;
                        this->butAddGlobal->Click += gcnew System::EventHandler(this, &PackageForm::butAddGlobal_Click);
                        // 
                        // listGlobals
                        // 
                        this->listGlobals->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {
                                this->ColGlobalName,
                                        this->ColGlobalValue
                        });
                        this->listGlobals->ContextMenuStrip = this->contextGlobal;
                        this->listGlobals->Dock = System::Windows::Forms::DockStyle::Top;
                        this->listGlobals->FullRowSelect = true;
                        this->listGlobals->HideSelection = false;
                        this->listGlobals->Location = System::Drawing::Point(3, 3);
                        this->listGlobals->Margin = System::Windows::Forms::Padding(10);
                        this->listGlobals->MultiSelect = false;
                        this->listGlobals->Name = L"listGlobals";
                        this->listGlobals->Size = System::Drawing::Size(742, 153);
                        this->listGlobals->TabIndex = 0;
                        this->listGlobals->UseCompatibleStateImageBehavior = false;
                        this->listGlobals->View = System::Windows::Forms::View::Details;
                        // 
                        // ColGlobalName
                        // 
                        this->ColGlobalName->Text = L"Global";
                        // 
                        // ColGlobalValue
                        // 
                        this->ColGlobalValue->Text = L"Value";
                        // 
                        // contextGlobal
                        // 
                        this->contextGlobal->ImageScalingSize = System::Drawing::Size(20, 20);
                        this->contextGlobal->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {
                                this->addNewToolStripMenuItem,
                                        this->toolStripSeparator6, this->editSelectedToolStripMenuItem1, this->removeSelectedToolStripMenuItem, this->toolStripSeparator7,
                                        this->clearAllToolStripMenuItem2
                        });
                        this->contextGlobal->Name = L"contextGlobal";
                        this->contextGlobal->Size = System::Drawing::Size(185, 142);
                        this->contextGlobal->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &PackageForm::contextGlobal_Opening);
                        // 
                        // addNewToolStripMenuItem
                        // 
                        this->addNewToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"addNewToolStripMenuItem.Image")));
                        this->addNewToolStripMenuItem->Name = L"addNewToolStripMenuItem";
                        this->addNewToolStripMenuItem->Size = System::Drawing::Size(184, 26);
                        this->addNewToolStripMenuItem->Text = L"Add New";
                        this->addNewToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::addNewToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator6
                        // 
                        this->toolStripSeparator6->Name = L"toolStripSeparator6";
                        this->toolStripSeparator6->Size = System::Drawing::Size(181, 6);
                        // 
                        // editSelectedToolStripMenuItem1
                        // 
                        this->editSelectedToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"editSelectedToolStripMenuItem1.Image")));
                        this->editSelectedToolStripMenuItem1->Name = L"editSelectedToolStripMenuItem1";
                        this->editSelectedToolStripMenuItem1->Size = System::Drawing::Size(184, 26);
                        this->editSelectedToolStripMenuItem1->Text = L"Edit Selected";
                        this->editSelectedToolStripMenuItem1->Click += gcnew System::EventHandler(this, &PackageForm::editSelectedToolStripMenuItem1_Click);
                        // 
                        // removeSelectedToolStripMenuItem
                        // 
                        this->removeSelectedToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"removeSelectedToolStripMenuItem.Image")));
                        this->removeSelectedToolStripMenuItem->Name = L"removeSelectedToolStripMenuItem";
                        this->removeSelectedToolStripMenuItem->Size = System::Drawing::Size(184, 26);
                        this->removeSelectedToolStripMenuItem->Text = L"Remove Selected";
                        this->removeSelectedToolStripMenuItem->Click += gcnew System::EventHandler(this, &PackageForm::removeSelectedToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator7
                        // 
                        this->toolStripSeparator7->Name = L"toolStripSeparator7";
                        this->toolStripSeparator7->Size = System::Drawing::Size(181, 6);
                        // 
                        // clearAllToolStripMenuItem2
                        // 
                        this->clearAllToolStripMenuItem2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"clearAllToolStripMenuItem2.Image")));
                        this->clearAllToolStripMenuItem2->Name = L"clearAllToolStripMenuItem2";
                        this->clearAllToolStripMenuItem2->Size = System::Drawing::Size(184, 26);
                        this->clearAllToolStripMenuItem2->Text = L"Clear All";
                        this->clearAllToolStripMenuItem2->Click += gcnew System::EventHandler(this, &PackageForm::clearAllToolStripMenuItem2_Click);
                        // 
                        // CheckShipID
                        // 
                        this->CheckShipID->AutoSize = true;
                        this->CheckShipID->Dock = System::Windows::Forms::DockStyle::Left;
                        this->CheckShipID->Location = System::Drawing::Point(157, 0);
                        this->CheckShipID->Name = L"CheckShipID";
                        this->CheckShipID->Size = System::Drawing::Size(129, 20);
                        this->CheckShipID->TabIndex = 2;
                        this->CheckShipID->Text = L"Replace Existing Ship";
                        this->CheckShipID->UseVisualStyleBackColor = true;
                        this->CheckShipID->CheckedChanged += gcnew System::EventHandler(this, &PackageForm::CheckShipID_CheckedChanged);
                        // 
                        // panel1
                        // 
                        this->panel1->Controls->Add(this->TextName);
                        this->panel1->Controls->Add(this->label1);
                        this->panel1->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel1->Location = System::Drawing::Point(5, 36);
                        this->panel1->Name = L"panel1";
                        this->panel1->Size = System::Drawing::Size(756, 17);
                        this->panel1->TabIndex = 2;
                        // 
                        // TextName
                        // 
                        this->TextName->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextName->Location = System::Drawing::Point(157, 0);
                        this->TextName->Name = L"TextName";
                        this->TextName->Size = System::Drawing::Size(599, 20);
                        this->TextName->TabIndex = 1;
                        this->TextName->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextName_TextChanged);
                        // 
                        // label1
                        // 
                        this->label1->Dock = System::Windows::Forms::DockStyle::Left;
                        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(0, 0);
                        this->label1->Name = L"label1";
                        this->label1->Size = System::Drawing::Size(157, 17);
                        this->label1->TabIndex = 0;
                        this->label1->Text = L"Package Name";
                        this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // panel2
                        // 
                        this->panel2->Controls->Add(this->TextAuthor);
                        this->panel2->Controls->Add(this->label2);
                        this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel2->Location = System::Drawing::Point(5, 53);
                        this->panel2->Name = L"panel2";
                        this->panel2->Size = System::Drawing::Size(756, 20);
                        this->panel2->TabIndex = 3;
                        // 
                        // TextAuthor
                        // 
                        this->TextAuthor->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextAuthor->Location = System::Drawing::Point(157, 0);
                        this->TextAuthor->Name = L"TextAuthor";
                        this->TextAuthor->Size = System::Drawing::Size(599, 20);
                        this->TextAuthor->TabIndex = 1;
                        this->TextAuthor->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextAuthor_TextChanged);
                        // 
                        // label2
                        // 
                        this->label2->Dock = System::Windows::Forms::DockStyle::Left;
                        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(0, 0);
                        this->label2->Name = L"label2";
                        this->label2->Size = System::Drawing::Size(157, 20);
                        this->label2->TabIndex = 0;
                        this->label2->Text = L"Author";
                        this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // panel3
                        // 
                        this->panel3->Controls->Add(this->TextVersion);
                        this->panel3->Controls->Add(this->label3);
                        this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel3->Location = System::Drawing::Point(5, 73);
                        this->panel3->Name = L"panel3";
                        this->panel3->Size = System::Drawing::Size(756, 20);
                        this->panel3->TabIndex = 4;
                        // 
                        // TextVersion
                        // 
                        this->TextVersion->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextVersion->Location = System::Drawing::Point(157, 0);
                        this->TextVersion->Name = L"TextVersion";
                        this->TextVersion->Size = System::Drawing::Size(599, 20);
                        this->TextVersion->TabIndex = 1;
                        this->TextVersion->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextVersion_TextChanged);
                        // 
                        // label3
                        // 
                        this->label3->Dock = System::Windows::Forms::DockStyle::Left;
                        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(0, 0);
                        this->label3->Name = L"label3";
                        this->label3->Size = System::Drawing::Size(157, 20);
                        this->label3->TabIndex = 0;
                        this->label3->Text = L"Version";
                        this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // panel4
                        // 
                        this->panel4->Controls->Add(this->CreationDate);
                        this->panel4->Controls->Add(this->label4);
                        this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
                        this->panel4->Location = System::Drawing::Point(5, 93);
                        this->panel4->Name = L"panel4";
                        this->panel4->Size = System::Drawing::Size(756, 20);
                        this->panel4->TabIndex = 5;
                        // 
                        // CreationDate
                        // 
                        this->CreationDate->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->CreationDate->Location = System::Drawing::Point(157, 0);
                        this->CreationDate->Name = L"CreationDate";
                        this->CreationDate->RightToLeft = System::Windows::Forms::RightToLeft::No;
                        this->CreationDate->Size = System::Drawing::Size(599, 20);
                        this->CreationDate->TabIndex = 2;
                        this->CreationDate->Value = System::DateTime(2009, 12, 8, 19, 52, 0, 0);
                        this->CreationDate->ValueChanged += gcnew System::EventHandler(this, &PackageForm::CreationDate_ValueChanged);
                        // 
                        // label4
                        // 
                        this->label4->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label4->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->label4->Location = System::Drawing::Point(0, 0);
                        this->label4->Name = L"label4";
                        this->label4->Size = System::Drawing::Size(157, 20);
                        this->label4->TabIndex = 0;
                        this->label4->Text = L"Creation Date";
                        this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // label6
                        // 
                        this->label6->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label6->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->label6->Location = System::Drawing::Point(0, 0);
                        this->label6->Name = L"label6";
                        this->label6->Size = System::Drawing::Size(157, 20);
                        this->label6->TabIndex = 1;
                        this->label6->Text = L"Ship ID";
                        this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // PanelShip
                        // 
                        this->PanelShip->Controls->Add(this->TextShipID);
                        this->PanelShip->Controls->Add(this->CheckShipID);
                        this->PanelShip->Controls->Add(this->label6);
                        this->PanelShip->Dock = System::Windows::Forms::DockStyle::Top;
                        this->PanelShip->Location = System::Drawing::Point(5, 113);
                        this->PanelShip->Name = L"PanelShip";
                        this->PanelShip->Size = System::Drawing::Size(756, 20);
                        this->PanelShip->TabIndex = 6;
                        // 
                        // TextShipID
                        // 
                        this->TextShipID->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextShipID->Location = System::Drawing::Point(286, 0);
                        this->TextShipID->Name = L"TextShipID";
                        this->TextShipID->Size = System::Drawing::Size(470, 20);
                        this->TextShipID->TabIndex = 2;
                        this->TextShipID->TextChanged += gcnew System::EventHandler(this, &PackageForm::TextShipID_TextChanged);
                        // 
                        // toolStrip1
                        // 
                        this->toolStrip1->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
                        this->toolStrip1->ImageScalingSize = System::Drawing::Size(24, 24);
                        this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(8) {
                                this->toolStripButton2,
                                        this->toolStripButton3, this->toolStripButton5, this->toolStripSeparator3, this->toolStripButton1, this->toolStripButton4, this->toolStripSeparator4,
                                        this->ToolCustomise
                        });
                        this->toolStrip1->Location = System::Drawing::Point(5, 5);
                        this->toolStrip1->Name = L"toolStrip1";
                        this->toolStrip1->Size = System::Drawing::Size(756, 31);
                        this->toolStrip1->Stretch = true;
                        this->toolStrip1->TabIndex = 7;
                        this->toolStrip1->Text = L"toolStrip1";
                        // 
                        // toolStripButton2
                        // 
                        this->toolStripButton2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"toolStripButton2.Image")));
                        this->toolStripButton2->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->toolStripButton2->Name = L"toolStripButton2";
                        this->toolStripButton2->Size = System::Drawing::Size(59, 28);
                        this->toolStripButton2->Text = L"Save";
                        this->toolStripButton2->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton2_Click);
                        // 
                        // toolStripButton3
                        // 
                        this->toolStripButton3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"toolStripButton3.Image")));
                        this->toolStripButton3->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->toolStripButton3->Name = L"toolStripButton3";
                        this->toolStripButton3->Size = System::Drawing::Size(75, 28);
                        this->toolStripButton3->Text = L"Save As";
                        this->toolStripButton3->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton3_Click);
                        // 
                        // toolStripButton5
                        // 
                        this->toolStripButton5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"toolStripButton5.Image")));
                        this->toolStripButton5->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->toolStripButton5->Name = L"toolStripButton5";
                        this->toolStripButton5->Size = System::Drawing::Size(69, 28);
                        this->toolStripButton5->Text = L"Export";
                        this->toolStripButton5->ToolTipText = L"Exports the package to an archive";
                        this->toolStripButton5->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton5_Click);
                        // 
                        // toolStripSeparator3
                        // 
                        this->toolStripSeparator3->Name = L"toolStripSeparator3";
                        this->toolStripSeparator3->Size = System::Drawing::Size(6, 31);
                        // 
                        // toolStripButton1
                        // 
                        this->toolStripButton1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
                        this->toolStripButton1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"toolStripButton1.Image")));
                        this->toolStripButton1->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->toolStripButton1->Name = L"toolStripButton1";
                        this->toolStripButton1->Size = System::Drawing::Size(28, 28);
                        this->toolStripButton1->Text = L"Generate Script";
                        this->toolStripButton1->ToolTipText = L"Generate packager script";
                        this->toolStripButton1->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton1_Click);
                        // 
                        // toolStripButton4
                        // 
                        this->toolStripButton4->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
                        this->toolStripButton4->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"toolStripButton4.Image")));
                        this->toolStripButton4->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->toolStripButton4->Name = L"toolStripButton4";
                        this->toolStripButton4->Size = System::Drawing::Size(28, 28);
                        this->toolStripButton4->Text = L"toolStripButton4";
                        this->toolStripButton4->ToolTipText = L"Generate package update file to allow auto updates";
                        this->toolStripButton4->Click += gcnew System::EventHandler(this, &PackageForm::toolStripButton4_Click);
                        // 
                        // toolStripSeparator4
                        // 
                        this->toolStripSeparator4->Name = L"toolStripSeparator4";
                        this->toolStripSeparator4->Size = System::Drawing::Size(6, 31);
                        // 
                        // ToolCustomise
                        // 
                        this->ToolCustomise->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
                        this->ToolCustomise->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ToolCustomise.Image")));
                        this->ToolCustomise->ImageTransparentColor = System::Drawing::Color::Magenta;
                        this->ToolCustomise->Name = L"ToolCustomise";
                        this->ToolCustomise->Size = System::Drawing::Size(28, 28);
                        this->ToolCustomise->Text = L"toolStripButton5";
                        this->ToolCustomise->ToolTipText = L"Customise Ship, allows you to edit the ships data to adjust its stats";
                        this->ToolCustomise->Click += gcnew System::EventHandler(this, &PackageForm::ToolCustomise_Click);
                        // 
                        // toolTip1
                        // 
                        this->toolTip1->AutoPopDelay = 20000;
                        this->toolTip1->InitialDelay = 2000;
                        this->toolTip1->IsBalloon = true;
                        this->toolTip1->ReshowDelay = 200;
                        this->toolTip1->ShowAlways = true;
                        this->toolTip1->ToolTipIcon = System::Windows::Forms::ToolTipIcon::Info;
                        this->toolTip1->ToolTipTitle = L"Mod Patch";
                        this->toolTip1->Popup += gcnew System::Windows::Forms::PopupEventHandler(this, &PackageForm::toolTip1_Popup);
                        // 
                        // toolTip2
                        // 
                        this->toolTip2->AutoPopDelay = 20000;
                        this->toolTip2->InitialDelay = 2000;
                        this->toolTip2->IsBalloon = true;
                        this->toolTip2->ReshowDelay = 200;
                        this->toolTip2->ShowAlways = true;
                        this->toolTip2->ToolTipIcon = System::Windows::Forms::ToolTipIcon::Info;
                        this->toolTip2->ToolTipTitle = L"Mod Patch";
                        this->toolTip2->Popup += gcnew System::Windows::Forms::PopupEventHandler(this, &PackageForm::toolTip2_Popup);
                        // 
                        // PackageForm
                        // 
                        this->AllowDrop = true;
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                        this->ClientSize = System::Drawing::Size(766, 710);
                        this->Controls->Add(this->groupBox1);
                        this->Controls->Add(this->tabControl1);
                        this->Controls->Add(this->PanelShip);
                        this->Controls->Add(this->panel4);
                        this->Controls->Add(this->panel3);
                        this->Controls->Add(this->panel2);
                        this->Controls->Add(this->panel1);
                        this->Controls->Add(this->toolStrip1);
                        this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
                        this->Name = L"PackageForm";
                        this->Padding = System::Windows::Forms::Padding(5);
                        this->ShowIcon = false;
                        this->ShowInTaskbar = false;
                        this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
                        this->Text = L"Package";
                        this->Load += gcnew System::EventHandler(this, &PackageForm::PackageForm_Load);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicChange5))->EndInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicChange1))->EndInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PicRec5))->EndInit();
                        this->groupBox1->ResumeLayout(false);
                        this->ContextFiles->ResumeLayout(false);
                        this->panel6->ResumeLayout(false);
                        this->panel5->ResumeLayout(false);
                        this->tabControl1->ResumeLayout(false);
                        this->tabPage1->ResumeLayout(false);
                        this->groupBox2->ResumeLayout(false);
                        this->panel13->ResumeLayout(false);
                        this->panel12->ResumeLayout(false);
                        this->panel11->ResumeLayout(false);
                        this->tabPage5->ResumeLayout(false);
                        this->groupBox8->ResumeLayout(false);
                        this->panel10->ResumeLayout(false);
                        this->panel21->ResumeLayout(false);
                        this->panel21->PerformLayout();
                        this->ContextGames->ResumeLayout(false);
                        this->PagePackage->ResumeLayout(false);
                        this->groupBox3->ResumeLayout(false);
                        this->groupBox3->PerformLayout();
                        this->panel22->ResumeLayout(false);
                        this->panel7->ResumeLayout(false);
                        this->panel8->ResumeLayout(false);
                        this->flowLayoutPanel1->ResumeLayout(false);
                        this->flowLayoutPanel1->PerformLayout();
                        this->panel9->ResumeLayout(false);
                        this->panel9->PerformLayout();
                        this->tabPage3->ResumeLayout(false);
                        this->groupBox7->ResumeLayout(false);
                        this->panel19->ResumeLayout(false);
                        this->panel20->ResumeLayout(false);
                        this->panel18->ResumeLayout(false);
                        this->panel18->PerformLayout();
                        this->groupBox6->ResumeLayout(false);
                        this->panel17->ResumeLayout(false);
                        this->GroupChange->ResumeLayout(false);
                        (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();
                        this->GroupRec->ResumeLayout(false);
                        (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->PicRec1))->EndInit();
                        this->GroupEase->ResumeLayout(false);
                        (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->PicEase1))->EndInit();
                        this->groupBox5->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->DisplayIcon))->EndInit();
                        this->panel15->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->DisplayPicture))->EndInit();
                        this->panel16->ResumeLayout(false);
                        this->tabPage2->ResumeLayout(false);
                        this->ContextLangName->ResumeLayout(false);
                        this->groupBox4->ResumeLayout(false);
                        this->ContextMirror->ResumeLayout(false);
                        this->panel14->ResumeLayout(false);
                        this->tabPage4->ResumeLayout(false);
                        this->ContextDep->ResumeLayout(false);
                        this->PageWares->ResumeLayout(false);
                        this->splitContainer1->Panel1->ResumeLayout(false);
                        this->splitContainer1->Panel2->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->splitContainer1))->EndInit();
                        this->splitContainer1->ResumeLayout(false);
                        this->ContextWare->ResumeLayout(false);
                        this->ContextWareText->ResumeLayout(false);
                        this->PageShip->ResumeLayout(false);
                        this->PageShip->PerformLayout();
                        this->ContextShipText->ResumeLayout(false);
                        this->PanelTextID->ResumeLayout(false);
                        this->PanelTextID->PerformLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumTextID))->EndInit();
                        this->flowLayoutPanel2->ResumeLayout(false);
                        this->PageRaw->ResumeLayout(false);
                        this->panel23->ResumeLayout(false);
                        this->panel24->ResumeLayout(false);
                        this->panel24->PerformLayout();
                        this->flowLayoutPanel3->ResumeLayout(false);
                        this->flowLayoutPanel3->PerformLayout();
                        this->PageShipComp->ResumeLayout(false);
                        this->panel26->ResumeLayout(false);
                        this->ContextShipPart->ResumeLayout(false);
                        this->panel25->ResumeLayout(false);
                        this->tabGlobals->ResumeLayout(false);
                        this->contextGlobal->ResumeLayout(false);
                        this->panel1->ResumeLayout(false);
                        this->panel1->PerformLayout();
                        this->panel2->ResumeLayout(false);
                        this->panel2->PerformLayout();
                        this->panel3->ResumeLayout(false);
                        this->panel3->PerformLayout();
                        this->panel4->ResumeLayout(false);
                        this->PanelShip->ResumeLayout(false);
                        this->PanelShip->PerformLayout();
                        this->toolStrip1->ResumeLayout(false);
                        this->toolStrip1->PerformLayout();
                        this->ResumeLayout(false);
                        this->PerformLayout();

                }
#pragma endregion
private: System::Void PackageForm::PackageForm_Closing(System::Object^  sender, CancelEventArgs^  e);
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->AddNewFile();
                 }
private: System::Void ComboFileType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pPackage )
                                 return;

                         this->UpdateFileList();
                 }
private: System::Void TextName_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )     m_pPackage->setName(_WS(this->TextName->Text));
                         this->UpdateChanged();
                 }
private: System::Void TextAuthor_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading ) m_pPackage->setAuthor(_WS(this->TextAuthor->Text));
                         this->UpdateChanged();
                 }
private: System::Void TextVersion_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                 m_pPackage->setVersion(_WS(this->TextVersion->Text));
                         this->UpdateChanged();
                 }
private: System::Void CreationDate_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                         {
                                 System::DateTime ^time = DateTime(this->CreationDate->Value);
                                 
                                 String ^t = System::Convert::ToString(time->Day) + "/" + System::Convert::ToString(time->Month) + "/" + System::Convert::ToString(time->Year);
                                 m_pPackage->setCreationDate(_WS(t));
                         }
                         this->UpdateChanged();
                 }

private: System::Void SortList(System::Object ^Sender, ColumnClickEventArgs ^E)
        {
                if ( E->Column == m_iSortingCol )
                {
                        m_bSortingAsc = !m_bSortingAsc;
                        this->ListFiles->ListViewItemSorter = gcnew ListViewItemComparer(E->Column, !m_bSortingAsc);
                }
                else
                {
                        m_bSortingAsc = true;
                        this->ListFiles->ListViewItemSorter = gcnew ListViewItemComparer(E->Column, !m_bSortingAsc);
                }
                this->ListFiles->Sort();
                m_iSortingCol = E->Column;

        }

private: System::Void ButRemoveFile_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->RemoveSelectedFiles();
                }
private: System::Void Event_FileChecked(System::Object^  sender, ItemCheckedEventArgs^  e) {
                        int id = _WS(cli::safe_cast<System::String ^>(e->Item->Tag)).toInt();
                        C_File *file = m_pPackage->GetFileList()->Get(id);
                        if ( file->IsShared() != e->Item->Checked )
                        {
                                file->SetShared(e->Item->Checked);
                                m_pPackage->adjustChanged(true);
                                this->UpdateChanged();
                        }
                }
private: System::Void ListFiles_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                        if ( ListFiles->SelectedItems->Count )
                        {
                                this->ButRemoveFile->Enabled = true;

                                for ( int i = 0; i < ListFiles->SelectedItems->Count; i++ )
                                {
                                        int id = _WS(cli::safe_cast<System::String ^>(this->ListFiles->SelectedItems[i]->Tag)).toInt();
                                        C_File *file = m_pPackage->GetFileList()->Get(id);
                                        if ( file->IsShared() != this->ListFiles->SelectedItems[i]->Checked )
                                        {
                                                file->SetShared(this->ListFiles->SelectedItems[i]->Checked);
                                                m_pPackage->adjustChanged(true);
                                        }
                                }

                                this->UpdateChanged();
                        }
                        else
                        {
                                this->ButRemoveFile->Enabled = false;
                        }
                }
private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->removeAllFiles(static_cast<FileType>(this->ComboFileType->SelectedIndex - 1), this->ComboGameFilter->SelectedIndex - 1);
                         m_pDisplayFile = NULL;
                         this->UpdateDisplayPic();
                         this->ComboFileType->SelectedIndex = 0;
                         this->ComboGameFilter->SelectedIndex = 0;
                         this->UpdateFileList();
                         this->UpdateChanged();
                 }
private: System::Void RadioTypeScript_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( RadioTypeScript->Checked )
                         {
                                 this->RadioTypeUpdate->Checked = false;
                                 this->RadioTypePatch->Checked = false;
                                 this->RadioTypeLibrary->Checked = false;
                                 this->RadioTypePatch->Checked = false;
                                 this->ComboType->Enabled = true;
                                 if ( !m_bLoading )
                                 {
                                         ((CSpkFile *)m_pPackage)->setScriptType(this->ComboType->SelectedIndex);
                                         this->UpdateDependacies();
                                 }
                                 this->UpdateChanged();
                         }
                         else
                                 this->ComboType->Enabled = false;
                         this->UpdateDisplayIcon();
                 }
private: System::Void RadioTypeLibrary_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->RadioTypeLibrary->Checked )
                         {
                                 this->RadioTypeScript->Checked = false;
                                 if ( !m_bLoading )
                                 {
                                         ((CSpkFile *)m_pPackage)->SetLibrary();
                                         this->UpdateDependacies();
                                 }
                                 this->UpdateChanged();
                                 this->UpdateDisplayIcon();
                         }
                 }
private: System::Void RadioTypeUpdate_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->RadioTypeUpdate->Checked )
                         {
                                 this->RadioTypeScript->Checked = false;
                                 if ( !m_bLoading )
                                 {
                                        ((CSpkFile *)m_pPackage)->SetPackageUpdate();
                                        this->UpdateDependacies();
                                 }
                                 this->UpdateChanged();
                                 this->UpdateDisplayIcon();
                         }
                 }
private: System::Void RadioTypePatch_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->RadioTypePatch->Checked )
                         {
                                 this->RadioTypeScript->Checked = false;
                                 if ( !m_bLoading )
                                 {
                                         ((CSpkFile *)m_pPackage)->SetPatch();
                                         this->UpdateDependacies();
                                 }
                                 this->UpdateChanged();
                                 this->UpdateDisplayIcon();
                         }
                 }
private: System::Void RadioTypeStart_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->RadioTypeStart->Checked )
                         {
                                 this->RadioTypeScript->Checked = false;
                                 {
                                        ((CSpkFile *)m_pPackage)->SetCustomStart();
                                         this->UpdateDependacies();
                                 }
                                 this->UpdateChanged();
                                 this->UpdateDisplayIcon();
                         }
                 }
private: System::Void ComboType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                         {
                                 ((CSpkFile *)m_pPackage)->setScriptType(this->ComboType->SelectedIndex);
                                 this->UpdateDependacies();
                         }
                         this->UpdateScriptType();
                         this->UpdateChanged();
                 }
private: System::Void TextDesc_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                        if ( !m_bLoading )      m_pPackage->setDescription(_WS(this->TextDesc->Text).findReplace(L"\n", L"<br>"));
                        this->UpdateChanged();
                 }
private: System::Void ComboVersion_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->ComboVersion->SelectedIndex >= this->ComboVersion->Items->Count - 1 )
                         {
                                 this->TextExactVersion->Visible = true;
                                 this->TextExactVersion->Text = "1.00";
                         }
                         else
                         {
                                 this->TextExactVersion->Visible = false;
                         }
                 }
private: System::Void TextWebsite_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )      m_pPackage->setWebSite(_WS(this->TextWebsite->Text));
                         this->UpdateChanged();
                 }
private: System::Void TextEmail_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )      m_pPackage->setEmail(_WS(this->TextEmail->Text));
                         this->UpdateChanged();
                 }
private: System::Void TextForum_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )      m_pPackage->setForumLink(_WS(this->TextForum->Text));
                         this->UpdateChanged();
                 }
private: System::Void ButFromFile_Click(System::Object^  sender, System::EventArgs^  e) {
                        OpenFileDialog ^ofd = gcnew OpenFileDialog();
                        ofd->Filter = "Package Files (*.spk)|*.spk";
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->Title = "Select package to use as parent package";

                        if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                int error;
                                CBaseFile *p = m_pP->openPackage(_WS(ofd->FileName), &error, 0, SPKREAD_VALUES);
                                if ( p )
                                {
                                        this->TextOtherAuthor->Text = _US(p->author());
                                        this->TextOtherName->Text = _US(p->name());
                                        ((CSpkFile *)m_pPackage)->setAnotherMod(p->name(), p->author());
                                        delete p;
                                        this->UpdateChanged();
                                }
                        }
                 }
private: System::Void CheckOther_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->TextOtherAuthor->Enabled = this->CheckOther->Checked;
                         this->TextOtherName->Enabled = this->CheckOther->Checked;
                         this->ButFromFile->Enabled = this->CheckOther->Checked;

                         if ( !m_bLoading )
                         {
                                 if ( this->CheckOther->Checked )
                                         ((CSpkFile *)m_pPackage)->setAnotherMod(_WS(this->TextOtherName->Text), _WS(this->TextOtherAuthor->Text));
                                 else
                                         ((CSpkFile *)m_pPackage)->setAnotherMod(L"", L"");
                         }
                         this->UpdateChanged();
                 }
private: System::Void TextOtherName_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                        if ( !m_bLoading )
                                ((CSpkFile *)m_pPackage)->setAnotherMod(_WS(this->TextOtherName->Text), _WS(this->TextOtherAuthor->Text));
                        this->UpdateChanged();
                 }
private: System::Void ContextMirror_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                        Point ^mousePoint = this->ListMirrors->PointToClient(this->ContextMirror->MousePosition);
                        ListViewItem ^item = this->ListMirrors->GetItemAt(mousePoint->X, mousePoint->Y);
                        if ( item )
                        {
                                this->ContextRemoveMirror->Visible = true;
                                this->ContextRemoveMirror->Text = "Remove: " + item->Text;
                        }
                        else
                                this->ContextRemoveMirror->Visible = false;
                        m_pSelectedItem = item;
                         e->Cancel = false;
                 }
private: System::Void clearAllToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->clearWebMirrors();
                         this->UpdateMirrors();
                         this->UpdateChanged();
                 }
private: System::Void addMirrorToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         InputBox ^input = gcnew InputBox("Enter the web address to add", "http://");
                        if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                m_pPackage->addWebMirror(_WS(input->GetInput()));
                                this->UpdateChanged();
                                this->UpdateMirrors();
                        }
                 }
private: System::Void ContextRemoveMirror_Click(System::Object^  sender, System::EventArgs^  e) {
                        if ( m_pSelectedItem )
                        {
                                m_pPackage->removeWebMirror(_WS(m_pSelectedItem->Text));
                                this->UpdateMirrors();
                                this->UpdateChanged();
                        }
                 }
private: System::Void ContextLangName_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                         Point ^mousePoint = this->ListNames->PointToClient(this->ContextLangName->MousePosition);
                        ListViewItem ^item = this->ListNames->GetItemAt(mousePoint->X, mousePoint->Y);
                        if ( item )
                        {
                                this->ContextRemoveName->Visible = true;
                                this->ContextEditName->Visible = true;
                                this->ContextRemoveName->Text = "Remove: " + item->Text;
                                this->ContextNameSep->Visible = true;
                        }
                        else
                        {
                                this->ContextNameSep->Visible = false;
                                this->ContextRemoveName->Visible = false;
                                this->ContextEditName->Visible = false;
                        }
                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void clearAllToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->clearNames();
                         this->UpdatePackageNames();
                         this->UpdateChanged();
                 }
private: System::Void addToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         InputBox ^input = gcnew InputBox("Enter the language id (ie 44)", "");
                        if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                InputBox ^input2 = gcnew InputBox("Enter the package name (Language: " + input->GetInput() + ")", "");
                                if ( input2->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                {
                                        m_pPackage->addName(Convert::ToInt32(input->GetInput()), _WS(input2->GetInput()));
                                        this->UpdateChanged();
                                        this->UpdatePackageNames();
                                }
                        }
                 }
private: System::Void ContextRemoveName_Click(System::Object^  sender, System::EventArgs^  e) {
                        if ( m_pSelectedItem )
                        {
                                m_pPackage->removeName(Convert::ToInt32(m_pSelectedItem->Text));
                                this->UpdatePackageNames();
                                this->UpdateChanged();
                        }
                 }
private: System::Void ContextEditName_Click(System::Object^  sender, System::EventArgs^  e) {
                        InputBox ^input = gcnew InputBox("Enter the package name (Language: " + m_pSelectedItem->Text + ")", m_pSelectedItem->SubItems[1]->Text);
                        if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                m_pPackage->addName(Convert::ToInt32(m_pSelectedItem->Text), _WS(input->GetInput()));
                                m_pSelectedItem->SubItems[1]->Text = input->GetInput();
                                this->UpdateChanged();
                        }
                 }
private: System::Void ButPicAdd_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->AddDisplayPic();
                 }
private: System::Void ButPicDel_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( m_pDisplayFile )
                         {
                                 C_File *oldFile = m_pDisplayFile;
                                 m_pDisplayFile = m_pPackage->GetNextFile(m_pDisplayFile);

                                 m_pPackage->removeFile(oldFile);

                                 if ( !m_pDisplayFile )
                                         m_pDisplayFile = m_pPackage->GetFirstFile(FILETYPE_ADVERT);
                                 this->UpdateDisplayPic();
                                 this->UpdateFileList();
                                 this->UpdateChanged();
                         }
                 }
private: System::Void ButPicBack_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pDisplayFile = m_pPackage->GetPrevFile(m_pDisplayFile);
                         this->UpdateDisplayPic();
                 }
private: System::Void ButPicNext_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pDisplayFile = m_pPackage->GetNextFile(m_pDisplayFile);
                         this->UpdateDisplayPic();
                 }
private: System::Void ButIconDel_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setIcon(NULL, Utils::WString::Null());
                         this->UpdateDisplayIcon();
                         this->UpdateChanged();
                 }
private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->AddDisplayIcon();
                 }
private: System::Void PicEase1_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setEaseOfUse(1);
                         this->UpdateRatings();
                         this->UpdateChanged();
                 }
private: System::Void PicEase2_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setEaseOfUse(2);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicEase3_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setEaseOfUse(3);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicEase4_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setEaseOfUse(4);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicEase5_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setEaseOfUse(5);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicRec1_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setRecommended(1);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicRec2_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setRecommended(2);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicRec3_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setRecommended(3);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicRec4_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setRecommended(4);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicRec5_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setRecommended(5);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicChange1_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setGameChanging(1);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicChange2_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setGameChanging(2);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicChange3_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setGameChanging(3);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicChange4_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setGameChanging(4);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void PicChange5_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->setGameChanging(5);
                         this->UpdateChanged();
                         this->UpdateRatings();
                 }
private: System::Void RadioInstallBefore_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateText();
                 }
private: System::Void RadioInstallAfter_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateText();
                 }
private: System::Void RadioUninstallBefore_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateText();
                 }
private: System::Void RadioUninstallAfter_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateText();
                 }
private: System::Void ListLang_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateTextLang();
                 }
private: System::Void TextText_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( Convert::ToInt32(this->TextText->Tag) != 1 )
                                this->SaveText();
                 }
private: System::Void ButTextAdd_Click(System::Object^  sender, System::EventArgs^  e) {
                         InputBox ^input = gcnew InputBox("Enter the language id to add (ie 44)", "");
                        if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                int lang = System::Convert::ToInt32(input->GetInput());
                                if ( lang )
                                {
                                        Utils::WString t;
                                        if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
                                                t = m_pPackage->installText(lang, true);
                                        else
                                                t = m_pPackage->uninstallText(lang, false);

                                        if ( t.empty() )
                                        {
                                                if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
                                                        m_pPackage->addInstallText(lang, true, L"");
                                                else
                                                        m_pPackage->addUninstallText(lang, true, L"");
                                        }

                                        this->UpdateText();

                                        this->ListLang->Text = System::Convert::ToString(lang);

                                        this->UpdateTextLang();
                                        this->UpdateChanged();
                                }
                        }
                 }
private: System::Void ButTextDel_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->ListLang->SelectedIndex < 1 )
                                 return;
                         int lang = System::Convert::ToInt32(this->ListLang->Text);
                         if ( lang )
                         {
                                 if ( this->RadioInstallAfter->Checked || this->RadioInstallBefore->Checked )
                                        m_pPackage->removeInstallText(lang, true);
                                 else if ( this->RadioUninstallAfter->Checked || this->RadioUninstallBefore->Checked )
                                        m_pPackage->removeInstallText(lang, false);
                                 this->UpdateText();
                                this->UpdateChanged();
                         }
                 }
private: System::Void ContextWare_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                        Point ^mousePoint = this->ListWares->PointToClient(this->ContextWare->MousePosition);
                        ListViewItem ^item = this->ListWares->GetItemAt(mousePoint->X, mousePoint->Y);
                        if ( item )
                        {
                                this->ContextWareSep1->Visible = true;
                                this->ContextWareRemove->Visible = true;
                                this->ContextWareEdit->Visible = true;
                                this->ContextWareRemove->Text = "Remove: " + item->Text;
                                this->ContextWareEdit->Text = "Edit: " + item->Text;
                        }
                        else
                        {
                                this->ContextWareSep1->Visible = false;
                                this->ContextWareRemove->Visible = false;
                                this->ContextWareEdit->Visible = false;
                        }

                        if ( this->ListWares->Items->Count )
                        {
                                this->ContextWareSep2->Visible = true;
                                this->ContextWareClear->Visible = true;
                        }
                        else
                        {
                                this->ContextWareSep2->Visible = false;
                                this->ContextWareClear->Visible = false;
                        }

                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void ContextWareClear_Click(System::Object^  sender, System::EventArgs^  e) {
                         ((CSpkFile *)m_pPackage)->clearWares();
                         this->UpdateWares();
                 }
private: System::Void ContextWareRemove_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->ListWares->SelectedItems->Count )
                         {
                                 for ( int i = 0; i < this->ListWares->SelectedItems->Count; i++ )
                                         ((CSpkFile *)m_pPackage)->removeWare(_WS(this->ListWares->SelectedItems[i]->Text));
                                 this->UpdateWares();
                         }
                 }
private: System::Void addWareToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         AddWare ^aw = gcnew AddWare;
                         if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                         {
                                 if ( aw->GetID()->Length < 1 )
                                         MessageBox::Show(this, "Invalid ware ID, entry cant be empty", "Invalid Entry", MessageBoxButtons::OK, MessageBoxIcon::Warning);
                                 else
                                 {
                                         SWares *w = new SWares;
                                         w->iTextID = aw->GetTextID();
                                         w->iTextPage = aw->GetTextPage();
                                         w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
                                         w->iNotority = aw->GetMinNotoriety();
                                         w->iPrice = aw->GetPrice();
                                         w->iVolumn = aw->GetVolumn();
                                         w->iSize = aw->GetSize();
                                         w->sID = _WS(aw->GetID());
                                         ((CSpkFile *)m_pPackage)->addWare(w);
                                         this->UpdateWares();
                                 }
                         }
                 }
private: System::Void ContextWareEdit_Click(System::Object^  sender, System::EventArgs^  e) {
                         SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(m_pSelectedItem->Text));
                         if ( w )
                         {
                                 AddWare ^aw = gcnew AddWare;
                                 aw->SetEdit(_US(w->sID));
                                 aw->SetType(CPackages::ConvertWareType(w->cType));
                                 aw->SetSize(w->iSize);
                                 aw->SetPrice(w->iPrice);
                                 aw->SetMinNotoriety(w->iNotority);
                                 aw->SetVolumn(w->iVolumn);
                                 if ( w->iTextPage == 0 || w->iTextID <= 0 )
                                         aw->SetNoText();
                                 else
                                         aw->SetTextPage(w->iTextPage, w->iTextID);
                                 if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                 {
                                         w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
                                         w->iNotority = aw->GetMinNotoriety();
                                         w->iPrice = aw->GetPrice();
                                         w->iVolumn = aw->GetVolumn();
                                         w->iSize = aw->GetSize();
                                         w->iTextID = aw->GetTextID();
                                         w->iTextPage = aw->GetTextPage();
                                         this->UpdateWares();
                                 }
                         }
                 }
private: System::Void ListWares_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateWareText();
                 }
private: System::Void ContextWareText_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                        Point ^mousePoint = this->ListWareText->PointToClient(this->ContextWareText->MousePosition);
                        ListViewItem ^item = this->ListWareText->GetItemAt(mousePoint->X, mousePoint->Y);

                        this->ContextWTEdit->Visible = (item) ? true : false;
                        this->ContextWTSep1->Visible = (item) ? true : false;
                        this->ContextWTRemove->Visible = (item) ? true : false;

                        if ( this->ListWareText->Items->Count )
                        {
                                this->ContextWTClear->Visible = true;
                                this->ContextWTSep2->Visible = true;
                        }
                        else
                        {
                                this->ContextWTClear->Visible = false;
                                this->ContextWTSep2->Visible = false;
                        }

                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void ContextWTClear_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->ListWares->SelectedItems->Count )
                         {
                                 SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(this->ListWares->SelectedItems[0]->Text));
                                 if ( w )
                                 {
                                         w->lText.clear();
                                         this->UpdateWareText();
                                 }
                         }
                 }
private: System::Void addTextToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(this->ListWares->SelectedItems[0]->Text));
                         if ( w )
                         {
                                 AddWareText ^wt = gcnew AddWareText(_US(w->sID));
                                 if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                 {
                                         ((CSpkFile *)m_pPackage)->addWareText(w, wt->GetLang(), _WS(wt->GetName()), _WS(wt->GetDescription()));
                                         this->UpdateWareText();
                                 }
                         }
                 }

private: System::Void ContextWTEdit_Click(System::Object^  sender, System::EventArgs^  e) {
                         SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(this->ListWares->SelectedItems[0]->Text));
                         if ( w )
                         {
                                 AddWareText ^wt = gcnew AddWareText(_US(w->sID));
                                 wt->SetEdit(System::Convert::ToInt32(m_pSelectedItem->Text));
                                 wt->SetName(m_pSelectedItem->SubItems[1]->Text);
                                 wt->SetDesc(m_pSelectedItem->SubItems[2]->Text);
                                 if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                 {
                                         ((CSpkFile *)m_pPackage)->addWareText(w, wt->GetLang(), _WS(wt->GetName()), _WS(wt->GetDescription()));
                                         this->UpdateWareText();
                                 }
                         }
                 }
private: System::Void ContextWTRemove_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( this->ListWareText->SelectedItems->Count )
                         {
                                 for ( int i = 0; i < this->ListWareText->SelectedItems->Count; i++ )
                                         ((CSpkFile *)m_pPackage)->removeWareText(_WS(this->ListWares->SelectedItems[0]->Text), System::Convert::ToInt32(this->ListWareText->SelectedItems[i]->Text));
                                 this->UpdateWareText();
                         }
                 }
private: System::Void ContextFiles_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                        Point ^mousePoint = this->ListFiles->PointToClient(this->ContextFiles->MousePosition);
                        ListViewItem ^item = this->ListFiles->GetItemAt(mousePoint->X, mousePoint->Y);
                        
                        this->convertToAutoTextFileToolStripMenuItem->Visible = false;
                        this->convertToFakePatchToolStripMenuItem->Visible = false;
                        this->convertToNormalModToolStripMenuItem->Visible = false;
                        this->packFileToolStripMenuItem->Visible = false;
                        this->unpackFileToolStripMenuItem->Visible = false;
                        this->ContextFileEdit->Visible = false;
                        this->renameFileToolStripMenuItem->Visible = false;
                        this->ContextFileSep1->Visible = false;
                        if ( item )
                        {
                                int id = Convert::ToInt32(item->Tag);
                                C_File *f = m_pPackage->GetFileList()->Get(id);
                                if ( f )
                                {
                                        this->ContextFileSep1->Visible = true;
                                        this->renameFileToolStripMenuItem->Visible = true;
                                        this->ContextFileEdit->Visible = C_File::DoesTypeHaveExtraDir(f->GetFileType());
                                        if (f->checkFileExt(L"xml") || f->checkFileExt(L"bob") || f->checkFileExt(L"bod"))
                                                this->packFileToolStripMenuItem->Visible = true;
                                        else if (f->checkFileExt(L"pck") || f->checkFileExt(L"pbb") || f->checkFileExt(L"pbd"))
                                                this->unpackFileToolStripMenuItem->Visible = true;

                                        if ( f->GetFileType() == FILETYPE_MOD )
                                        {
                                                if ( f->IsFakePatch() )
                                                        this->convertToNormalModToolStripMenuItem->Visible = true;
                                                else
                                                        this->convertToFakePatchToolStripMenuItem->Visible = true;
                                        }
                                        else if ( f->fileType() == FILETYPE_TEXT && !f->isAutoTextFile() )
                                                this->convertToAutoTextFileToolStripMenuItem->Visible = true;
                                        if (_addGameItem)
                                        {
                                                bool any = false;
                                                for (int i = 0; i < _addGameItem->DropDownItems->Count; ++i)
                                                {
                                                        ToolStripItem ^toolItem = _addGameItem->DropDownItems[i];
                                                        int iGame = Convert::ToInt32(toolItem->Tag);
                                                        if (f->game() & 1 << iGame)
                                                                toolItem->Visible = false;
                                                        else
                                                        {
                                                                toolItem->Visible = true;
                                                                any = true;
                                                        }
                                                }
                                                _addGameItem->Enabled = any;
                                        }
                                        if (_removeGameItem)
                                        {
                                                bool any = false;
                                                for (int i = 0; i < _removeGameItem->DropDownItems->Count; ++i)
                                                {
                                                        ToolStripItem ^toolItem = _removeGameItem->DropDownItems[i];
                                                        int iGame = Convert::ToInt32(toolItem->Tag);
                                                        if (!(f->game() & 1 << iGame))
                                                                toolItem->Visible = false;
                                                        else
                                                        {
                                                                toolItem->Visible = true;
                                                                any = true;
                                                        }
                                                }
                                                _removeGameItem->Enabled = any;
                                        }
                                }
                        }
                        this->ContextFileDelete->Visible = (item) ? true : false;
                        this->ContextFileClear->Visible = (this->ListFiles->Items->Count) ? true : false;
                        this->ContextFileSep2->Visible = (this->ListFiles->Items->Count) ? true : false;


                        m_pSelectedItem = item;

                        e->Cancel = false;
                 }
private: System::Void ButGame_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->ContextGames->Show(this->ButGame, this->ButGame->PointToClient(this->ButGame->MousePosition));
                 }
private: System::Void ContextGame_Selected(System::Object^  sender, System::EventArgs^  e) {
                        System::Windows::Forms::ToolStripMenuItem ^item = cli::safe_cast<System::Windows::Forms::ToolStripMenuItem ^>(sender);

                        this->ButGame->ImageIndex = Convert::ToInt32(item->Tag) - 1;
                        this->ButGame->Text = item->Text;
                        this->ComboVersion->Enabled = true;
                        this->ButGameAdd->Enabled = true;
                        this->UpdateGameVersion();
                        this->ComboVersion->SelectedIndex = 0;
                 }
private: System::Void SetGame_Selected(System::Object^  sender, System::EventArgs^  e);
private: System::Void AddGame_Selected(System::Object^  sender, System::EventArgs^  e);
private: System::Void RemoveGame_Selected(System::Object^  sender, System::EventArgs^  e);
private: System::Void ComboPluginType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( m_pPackage->GetType() == TYPE_SPK )
                         {
                                 if ( !m_bLoading )
                                        ((CSpkFile *)m_pPackage)->setPluginType(this->ComboPluginType->SelectedIndex);
                                 this->UpdateChanged();
                         }
                 }
private: System::Void CheckExistingText_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->ListShipText->Visible = !this->CheckExistingText->Checked;
                         this->NumTextID->Visible = this->CheckExistingText->Checked;
                         if ( !m_bLoading )
                         {
                                 if ( this->CheckExistingText->Checked )
                                         ((CXspFile *)m_pPackage)->SetOriginalDescription(Convert::ToInt32(this->NumTextID->Value));
                                 else
                                         ((CXspFile *)m_pPackage)->SetOriginalDescription(0);
                         }
                         this->UpdateChanged();
                 }
private: System::Void CheckShipID_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( m_pPackage->GetType() == TYPE_XSP )
                         {
                                 if ( !m_bLoading )
                                        ((CXspFile *)m_pPackage)->SetExistingShip(true);
                                 this->UpdateChanged();
                         }

                 }
private: System::Void NumTextID_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                         {
                                 int i = Convert::ToInt32(this->NumTextID->Value);
                                 if ( i > 0 )
                                        ((CXspFile *)m_pPackage)->SetOriginalDescription(i);
                         }
                         this->UpdateChanged();
                 }
private: System::Void TextShipID_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                 ((CXspFile *)m_pPackage)->setShipID(_WS(this->TextShipID->Text));
                         this->UpdateChanged();
                 }
private: System::Void NumTextID_Leave(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                         {
                                 int i = Convert::ToInt32(this->NumTextID->Value);
                                 if ( i > 0 )
                                        ((CXspFile *)m_pPackage)->SetOriginalDescription(i);
                         }
                         this->UpdateChanged();
                 }
private: System::Void CheckSYArgon_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Argon, this->CheckSYArgon->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYBoron_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Boron, this->CheckSYBoron->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYParanid_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Paranid, this->CheckSYParanid->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYTeladi_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Teladi, this->CheckSYTeladi->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYSplit_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Split, this->CheckSYSplit->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYPirate_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Pirates, this->CheckSYPirate->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYFriend_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Friend, this->CheckSYFriend->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYXenon_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Xenon, this->CheckSYXenon->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYTerran_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Terran, this->CheckSYTerran->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYATF_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::ATF, this->CheckSYATF->Checked);
                         this->UpdateChanged();
                 }
private: System::Void CheckSYYaki_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                ((CXspFile *)m_pPackage)->setShipyard(ShipyardRace::Yaki, this->CheckSYYaki->Checked);
                         this->UpdateChanged();
                 }
private: System::Void ContextShipText_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                        Point ^mousePoint = this->ListShipText->PointToClient(this->ContextShipText->MousePosition);
                        ListViewItem ^item = this->ListShipText->GetItemAt(mousePoint->X, mousePoint->Y);

                        this->ContextShipTextSep2->Visible = ((CXspFile *)m_pPackage)->AnyTexts();
                        this->ContextShipTextClear->Visible = ((CXspFile *)m_pPackage)->AnyTexts();

                        this->ContextShipTextSep1->Visible = (item) ? true : false;
                        this->ContextShipTextEdit->Visible = (item) ? true : false;
                        this->ContextShipTextRemove->Visible = (item) ? true : false;

                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void addLanguageToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         AddShipText ^st = gcnew AddShipText();
                         if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                         {
                                 ((CXspFile *)m_pPackage)->addText(st->GetLanguage(), _WS(st->GetName()), _WS(st->GetDescription()));
                                 this->UpdateShipText();
                                 this->UpdateChanged();
                         }
                 }
private: System::Void ContextShipTextEdit_Click(System::Object^  sender, System::EventArgs^  e) {
                         AddShipText ^st = gcnew AddShipText();
                         st->SetEdit(Convert::ToInt32(m_pSelectedItem->Text));
                         st->SetLanguage(Convert::ToInt32(m_pSelectedItem->Text));
                         st->SetName(m_pSelectedItem->SubItems[1]->Text);
                         st->SetDescription(m_pSelectedItem->SubItems[2]->Text);
                         if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                         {
                                 ((CXspFile *)m_pPackage)->addText(st->GetLanguage(), _WS(st->GetName()), _WS(st->GetDescription()));
                                 this->UpdateShipText();
                                 this->UpdateChanged();
                         }
                 }
private: System::Void ContextShipTextRemove_Click(System::Object^  sender, System::EventArgs^  e) {
                        ((CXspFile *)m_pPackage)->RemoveText(Convert::ToInt32(m_pSelectedItem->Text));
                         this->UpdateShipText();
                         this->UpdateChanged();
                 }
private: System::Void ContextShipTextClear_Click(System::Object^  sender, System::EventArgs^  e) {
                        ((CXspFile *)m_pPackage)->ClearText();
                        this->UpdateShipText();
                        this->UpdateChanged();
                 }
private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                        this->TextShipData->ReadOnly = !this->checkBox1->Checked;
                        if ( this->TextShipData->ReadOnly )
                                this->TextShipData->BackColor = System::Drawing::SystemColors::Control;
                        else
                                this->TextShipData->BackColor = System::Drawing::SystemColors::Window;
                 }
private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->LoadShipData();
                 }
private: System::Void ComboShipPart_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateShipPartList();
                 }
private: System::Void ListFiles_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListFiles->SelectedItems->Count )
                         {
                                 ListViewItem ^item = this->ListFiles->SelectedItems[0];
                                 if ( item )
                                 {
                                         if ( C_File::DoesTypeHaveExtraDir(item->ImageIndex) )
                                         {
                                                 InputBox ^input = gcnew InputBox("Enter the directory to install into", (item->SubItems->Count >= 5) ? item->SubItems[4]->Text : "");
                                                 if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                                 {
                                                         if ( item->SubItems->Count >= 5 )
                                                                item->SubItems[4]->Text = input->GetInput();
                                                         else
                                                                 item->SubItems->Add(input->GetInput());
                                                         int id = _WS(cli::safe_cast<System::String ^>(item->Tag)).toInt();
                                                         C_File *file = m_pPackage->fileList().Get(id);
                                                         file->setDir(_WS(input->GetInput()));
                                                 }
                                         }
                                 }
                         }
                 }
private: System::Void ListShipText_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListShipText->Items->Count )
                         {
                                 ListViewItem ^item = this->ListShipText->SelectedItems[0];
                                 AddShipText ^st = gcnew AddShipText();
                                 st->SetEdit(Convert::ToInt32(item->Text));
                                 st->SetLanguage(Convert::ToInt32(item->Text));
                                 st->SetName(item->SubItems[1]->Text);
                                 st->SetDescription(item->SubItems[2]->Text);
                                 if ( st->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                 {
                                         ((CXspFile *)m_pPackage)->addText(st->GetLanguage(), _WS(st->GetName()), _WS(st->GetDescription()));
                                         item->SubItems[1]->Text = st->GetName();
                                         item->SubItems[2]->Text = st->GetDescription();
                                         this->UpdateChanged();
                                 }
                         }
                 }
private: System::Void ListNames_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListNames->Items->Count )
                         {
                                 ListViewItem ^item = this->ListNames->SelectedItems[0];
                                InputBox ^input = gcnew InputBox("Enter the package name (Language: " + item->Text + ")", item->SubItems[1]->Text);
                                if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                {
                                        m_pPackage->addName(Convert::ToInt32(item->Text), _WS(input->GetInput()));
                                        item->SubItems[1]->Text = input->GetInput();
                                        this->UpdateChanged();
                                }
                         }
                 }
private: System::Void ListMirrors_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListMirrors->Items->Count )
                         {
                                 ListViewItem ^item = this->ListMirrors->SelectedItems[0];
                                InputBox ^input = gcnew InputBox("Enter the web address for the mirror", item->Text);
                                if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                {
                                        m_pPackage->removeWebMirror(_WS(item->Text));
                                        m_pPackage->addWebMirror(_WS(input->GetInput()));
                                        item->Text = input->GetInput();
                                        this->UpdateChanged();
                                }
                         }
                 }
private: System::Void ListWares_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListWares->Items->Count )
                         {
                                 ListViewItem ^item = this->ListWares->SelectedItems[0];
                                 SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(item->Text));
                                 if ( w )
                                 {
                                         AddWare ^aw = gcnew AddWare;
                                         aw->SetEdit(_US(w->sID));
                                         aw->SetType(CPackages::ConvertWareType(w->cType));
                                         aw->SetSize(w->iSize);
                                         aw->SetPrice(w->iPrice);
                                         aw->SetMinNotoriety(w->iNotority);
                                         aw->SetVolumn(w->iVolumn);
                                         if ( w->iTextPage == 0 || w->iTextID <= 0 )
                                                 aw->SetNoText();
                                         else
                                                 aw->SetTextPage(w->iTextPage, w->iTextID);
                                         if ( aw->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                         {
                                                 w->cType = CPackages::ConvertWareTypeBack(aw->GetType());
                                                 w->iNotority = aw->GetMinNotoriety();
                                                 w->iPrice = aw->GetPrice();
                                                 w->iVolumn = aw->GetVolumn();
                                                 w->iSize = aw->GetSize();
                                                 w->iTextID = aw->GetTextID();
                                                 w->iTextPage = aw->GetTextPage();
                                                 this->UpdateWares();
                                                 this->UpdateChanged();
                                         }
                                 }
                         }
                 }
private: System::Void ListWareText_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListWareText->Items->Count )
                         {
                                 ListViewItem ^item = this->ListWareText->SelectedItems[0];
                                 SWares *w = ((CSpkFile *)m_pPackage)->findWare(_WS(this->ListWares->SelectedItems[0]->Text));
                                 if ( w )
                                 {
                                         AddWareText ^wt = gcnew AddWareText(_US(w->sID));
                                         wt->SetEdit(System::Convert::ToInt32(item->Text));
                                         wt->SetName(item->SubItems[1]->Text);
                                         wt->SetDesc(item->SubItems[2]->Text);
                                         if ( wt->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                         {
                                                 ((CSpkFile *)m_pPackage)->addWareText(w, wt->GetLang(), _WS(wt->GetName()), _WS(wt->GetDescription()));
                                                 item->SubItems[1]->Text = wt->GetName();
                                                 item->SubItems[2]->Text = wt->GetDescription();
                                                 this->UpdateChanged();
                                         }
                                 }
                         }
                 }
private: System::Void toolStripButton2_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->Save();
                 }
private: System::Void toolStripButton3_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->SaveAs();
                 }
private: System::Void toolStripButton1_Click(System::Object^  sender, System::EventArgs^  e) {
                         bool wildcard = false;
                         if ( MessageBox::Show(this, "Do you want to generate the script using wildcards for files?", "Generate Script - Wildcards", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == System::Windows::Forms::DialogResult::Yes )
                                 wildcard = true;
                         
                        Utils::WStringList list;                        
                        if ( !m_pP->generatePackagerScript(m_pPackage, wildcard, &list, 0) )
                                MessageBox::Show(this, "Unable to generated packager script", "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
                        else
                        {
                                SaveFileDialog ^ofd = gcnew SaveFileDialog();
                                ofd->Filter = "Package Script (*.sps)|*.sps";
                                ofd->Title = "Select file to save packager script to";
                                ofd->AddExtension = true;
                                ofd->FilterIndex = 1;
                                ofd->RestoreDirectory = true;
                                if ( ofd->ShowDialog() == System::Windows::Forms::DialogResult::OK )
                                {
                                        if ( CFileIO(_WS(ofd->FileName)).writeFile(&list) )
                                                MessageBox::Show(this, "Package script has been saved\n" + ofd->FileName, "Script Saved", MessageBoxButtons::OK, MessageBoxIcon::Information);
                                }
                        }
                }
private: System::Void ContextShipPart_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                         Point ^mousePoint = this->ListShipPart->PointToClient(this->ContextShipPart->MousePosition);
                        ListViewItem ^item = this->ListShipPart->GetItemAt(mousePoint->X, mousePoint->Y);

                        this->ContextShipPartEdit->Visible = (item) ? true : false;
                        this->ContextShipPartSep1->Visible = (item) ? true : false;
                        this->ContextShipPartRemove->Visible = (item) ? true : false;

                        this->ContextShipPartClear->Visible = (this->ListShipPart->Items->Count) ? true : false;
                        this->ContextShipPartSep2->Visible = (this->ListShipPart->Items->Count) ? true : false;

                        this->ContextShipPartAdd->Text = "Add: " + this->ComboShipPart->Text;
                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void ContextShipPartAdd_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->EditShipParts(false);
                 }
private: System::Void ContextShipPartClear_Click(System::Object^  sender, System::EventArgs^  e) {
                         CXspFile *xsp = (CXspFile *)m_pPackage;
                         switch ( this->ComboShipPart->SelectedIndex )
                         {
                                case 0:
                                        xsp->GetComponents()->MemoryClear();
                                        break;
                                case 1:
                                        xsp->GetDummies()->MemoryClear();
                                        break;
                                case 2:
                                        xsp->GetCockpits()->MemoryClear();
                                        break;
                                case 3:
                                        xsp->clearCutData();
                                        break;
                                case 4:
                                        xsp->clearBodies();
                                        break;
                                case 5:
                                        xsp->clearAnimations();
                                        break;
                         }

                         this->UpdateShipPartList();
                         this->UpdateChanged();
                 }
private: System::Void ContextShipPartRemove_Click(System::Object^  sender, System::EventArgs^  e) {
                         CXspFile *xsp = (CXspFile *)m_pPackage;
                         switch ( this->ComboShipPart->SelectedIndex )
                         {
                                case 0:
                                        if ( xsp->removeComponent(_WS(m_pSelectedItem->Text), _WS(m_pSelectedItem->SubItems[1]->Text), _WS(m_pSelectedItem->SubItems[2]->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                                case 1:
                                        if ( xsp->removeDummy(_WS(m_pSelectedItem->Text), _WS(m_pSelectedItem->SubItems[1]->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                                case 2:
                                        if ( xsp->removeCockpit(_WS(m_pSelectedItem->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                                case 3:
                                        if ( xsp->removeCutData(_WS(m_pSelectedItem->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                                case 4:
                                        if ( xsp->removeBodies(_WS(m_pSelectedItem->Text + L";" + m_pSelectedItem->SubItems[1]->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                                case 5:
                                        if ( xsp->removeAnimation(_WS(m_pSelectedItem->Text)) )
                                                this->UpdateShipPartList();
                                        break;
                         }              
                         this->UpdateChanged();
                 }
private: System::Void ContextShipPartEdit_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->EditShipParts(true);
                 }
private: System::Void ListShipPart_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListShipPart->SelectedItems->Count )
                         {
                                 m_pSelectedItem = this->ListShipPart->SelectedItems[0];
                                 this->EditShipParts(true);
                         }
                 }
private: System::Void ListFiles_DragDrop(System::Object^  sender, System::Windows::Forms::DragEventArgs^  e) {
                // dropping from outside
                if ( e->Data->GetDataPresent(DataFormats::FileDrop) )
                {
                        Utils::WStringList fileList;
                        cli::array<String ^> ^a = (cli::array<String ^> ^)e->Data->GetData(DataFormats::FileDrop, false);
                        int i;
                        for(i = 0; i < a->Length; i++)
                        {
                                if ( IO::DirectoryInfo(a[i]).Exists )
                                        this->DropGetDirectories(a[i], &fileList, false);
                                else
                                        fileList.pushBack(_WS(a[i]), Utils::WString::Number(SPK::GetAutomaticFiletype(_WS(a[i]), NULL, false)));
                        }

                        SPK::AssignAutomaticFiletypes(fileList);

                        if ( !fileList.empty() )
                        {
                                SpkExplorer::DropFileDialog ^dropType = gcnew SpkExplorer::DropFileDialog(&fileList);
                                if ( dropType->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                                {
                                        for(auto itr = fileList.begin(); itr != fileList.end(); itr++)
                                        {
                                                FileType type = static_cast<FileType>((*itr)->data.token(L" ", 1).toInt());
                                                if ( type == FileType::FILETYPE_UNKNOWN)
                                                        continue;

                                                FileType filetype = m_pP->adjustFileType((*itr)->str, type);
                                                Utils::WString dir = (filetype == FILETYPE_EXTRA) ? L"PluginManager/Extras/$scriptname" : L"";
                                                Utils::WString checkDir = CFileIO((*itr)->str).dir().token(L"/", -1);
                                                if ( checkDir.Compare(L"types") )
                                                        dir = checkDir;

                                                C_File *f = m_pPackage->addFile((*itr)->str, dir, filetype);
                                                if ( filetype == FILETYPE_MOD && CFileIO((*itr)->str).isFileExtension(L"cat"))
                                                        m_pPackage->addFile(CFileIO((*itr)->str).changeFileExtension(L"dat"), L"", filetype);
                                                else if ( filetype == FILETYPE_MOD && CFileIO((*itr)->str).isFileExtension(L"dat"))
                                                        m_pPackage->addFile(CFileIO((*itr)->str).changeFileExtension(L"cat"), L"", filetype);
                                        }
                                        this->UpdateFileList();
                                        this->UpdateDisplayPic();
                                        this->UpdateChanged();
                                }
                        }
                        return;
                }
                 }
private: System::Void ListFiles_DragOver(System::Object^  sender, System::Windows::Forms::DragEventArgs^  e) {
                        e->Effect = DragDropEffects::None;
                        if ( e->Data->GetDataPresent(DataFormats::FileDrop) )
                                e->Effect = DragDropEffects::Copy;
                 }
private: System::Void ContextDep_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
                         Point ^mousePoint = this->ListDep->PointToClient(this->ContextDep->MousePosition);
                        ListViewItem ^item = this->ListDep->GetItemAt(mousePoint->X, mousePoint->Y);

                        this->editSelectedToolStripMenuItem->Visible = (item) ? true : false;
                        this->ContextDepRemove->Visible = (item) ? true : false;
                        this->ContextDepSep1->Visible = (item) ? true : false;

                        bool clear = (this->ListDep->Items->Count) ? true : false;

                        if ( this->ListDep->Items->Count == 1 && String::Compare("<package>", this->ListDep->Items[0]->Text) == 0 && String::Compare("<author>", this->ListDep->Items[0]->SubItems[1]->Text) == 0)
                                clear = false;

                        this->ContextDepClear->Visible = clear;
                        this->ContextDepSep2->Visible = clear;

                        if ( item && String::Compare("<package>", item->Text) == 0 && String::Compare("<author>", item->SubItems[1]->Text) == 0 )
                                this->ContextDepRemove->Visible = false;
                        m_pSelectedItem = item;
                        e->Cancel = false;
                 }
private: System::Void ContextDepClear_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->ClearNeededPackages();
                         this->UpdateDependacies();
                         this->UpdateChanged();
                 }
private: System::Void ContextDepRemove_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( String::Compare("<package>", m_pSelectedItem->Text) == 0 && String::Compare("<author>", m_pSelectedItem->SubItems[1]->Text) == 0 )
                                 return;
                         m_pPackage->removePackageNeeded(_WS(m_pSelectedItem->Text), _WS(m_pSelectedItem->SubItems[1]->Text));
                         this->UpdateDependacies();
                         this->UpdateChanged();
                 }
private: System::Void manualToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         AddDepend ^depend = gcnew AddDepend();
                         if ( depend->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                         {
                                 m_pPackage->addNeededLibrary(_WS(depend->GetName()), _WS(depend->GetAuthor()), _WS(depend->GetVersion()));
                                 this->UpdateDependacies();
                                 this->UpdateChanged();
                         }
                 }
private: System::Void fromPackageToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                        OpenFileDialog ^ofd = gcnew OpenFileDialog();
                        ofd->Filter = "Package Files (*.spk)|*.spk";
                        ofd->Title = "Select the package to be used as a dependacy";
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->Multiselect = false;

                        if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                int error;
                                CBaseFile *p = m_pP->openPackage(_WS(ofd->FileName), &error, 0, SPKREAD_VALUES);
                                if ( p )
                                {
                                        m_pPackage->addNeededLibrary(p->name(), p->author(), p->version());
                                        this->UpdateDependacies();
                                         this->UpdateChanged();
                                }
                        }
                 }
private: System::Void editSelectedToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->EditDepend();
                 }
private: System::Void ListDep_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
                         if ( this->ListDep->SelectedItems->Count )
                         {
                                 m_pSelectedItem = this->ListDep->SelectedItems[0];
                                 this->EditDepend();
                         }
                 }
private: System::Void ContextFileClear_Click(System::Object^  sender, System::EventArgs^  e) {
                         m_pPackage->GetFileList()->MemoryClear();
                         m_pPackage->adjustChanged(true);
                         this->UpdateChanged();
                         this->UpdateFileList();
                         this->UpdateDisplayPic();
                 }
private: System::Void ContextFileDelete_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->RemoveSelectedFiles();
                 }
private: System::Void addFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->AddNewFile();
                 }
private: System::Void ContextFileEdit_Click(System::Object^  sender, System::EventArgs^  e) {
                         InputBox ^input = gcnew InputBox("Enter the directory to install into", m_pSelectedItem->SubItems[4]->Text);
                         if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                         {
                                 m_pSelectedItem->SubItems[4]->Text = input->GetInput();
                                 int id = Convert::ToInt32(m_pSelectedItem->Tag);
                                 C_File *file = m_pPackage->fileList().Get(id);
                                 file->setDir(_WS(input->GetInput()));
                         }
                 }
private: System::Void TextWebAddress_TextChanged_1(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )      m_pPackage->setWebAddress(_WS(this->TextWebAddress->Text));
                         this->UpdateChanged();
                 }
private: System::Void TextCustomType_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bLoading )
                                 ((CSpkFile *)m_pPackage)->setScriptType(_WS(this->TextCustomType->Text));
                         this->UpdateChanged();
                 }
private: System::Void fromFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                        OpenFileDialog ^ofd = gcnew OpenFileDialog();
                        ofd->Filter = "Text Files (*.xml *.pck)|*.xml;*.pck";
                        ofd->Title = "Select the text file(s) to load text from";
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->Multiselect = true;

                        if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                array<System::String ^> ^fileArray = ofd->FileNames;
                                for ( int i = 0; i < fileArray->Length; i++ )
                                {
                                        ((CXspFile *)m_pPackage)->addTextFromFile(_WS(fileArray[i]));
                                        m_pPackage->adjustChanged(true);
                                }
                                this->UpdateShipText();
                                this->UpdateChanged();
                        }
                 }
private: System::Void fromDirectoryToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                                FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
                                fbd->Description = "Select the path to load text files from";
                                if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                {
                                        bool added = false;
                                        array <System::String ^> ^Files = System::IO::Directory::GetFiles(fbd->SelectedPath, "*.xml");
                                        for ( int i = 0; i < Files->Length; i++ )
                                        {
                                                Utils::WString file = _WS(Files[i]);
                                                if ( m_pP->adjustFileType(file, FileType::FILETYPE_UNKNOWN) == FILETYPE_TEXT )
                                                {
                                                        if ( ((CXspFile *)m_pPackage)->addTextFromFile(file) )
                                                                added = true;
                                                }
                                        }
                                        Files = System::IO::Directory::GetFiles(fbd->SelectedPath, "*.pck");
                                        for ( int i = 0; i < Files->Length; i++ )
                                        {
                                                Utils::WString file = _WS(Files[i]);
                                                if ( m_pP->adjustFileType(file, FileType::FILETYPE_UNKNOWN) == FILETYPE_TEXT )
                                                {
                                                        if ( ((CXspFile *)m_pPackage)->addTextFromFile(file) )
                                                                added = true;
                                                }
                                        }

                                        if ( added )
                                        {
                                                this->UpdateShipText();
                                                this->UpdateChanged();
                                        }
                                }
                 }
private: System::Void fromModToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                        OpenFileDialog ^ofd = gcnew OpenFileDialog();
                        ofd->Filter = "X Mod Files (*.cat)|*.cat";
                        ofd->Title = "Select the mod files to extract texts from";
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->Multiselect = true;

                        if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                array<System::String ^> ^fileArray = ofd->FileNames;
                                for ( int i = 0; i < fileArray->Length; i++ )
                                {
                                        CCatFile cat;
                                        if ( cat.open(_WS(fileArray[i]), L"", CATREAD_CATDECRYPT, false) == CATERR_NONE )
                                                ((CXspFile *)m_pPackage)->ExtractTexts(&cat, NULL, -1);
                                }
                                this->UpdateShipText();
                                this->UpdateChanged();
                        }

                 }
private: System::Void importToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                        OpenFileDialog ^ofd = gcnew OpenFileDialog();
                        ofd->FilterIndex = 1;
                        ofd->RestoreDirectory = true;
                        ofd->Multiselect = false;
                        String ^type;

                        switch ( this->ComboShipPart->SelectedIndex )
                        {
                                case 0:
                                        type = "Components";
                                        break;
                                case 1:
                                        type = "Dummies";
                                        break;
                                case 2:
                                        type = "TCockpits";
                                        break;
                                case 3:
                                        type = "CutData";
                                        break;
                                case 4:
                                        type = "Bodies";
                                        break;
                                case 5:
                                        type = "Animations";
                                        break;
                        }
                        ofd->Filter = "All|" + type + ".pck;" + type + ".txt;*.cat|Mod Files|*.cat|" + type + "|" + type + ".pck;" + type + ".txt";
                        ofd->Title = "Select the " + type + "/mod file to import data from";

                        if ( ofd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                        {
                                String ^f = ExtractImport(ofd->FileName, type);

                                if ( !f->Length )
                                {
                                        MessageBox::Show(this, "No data to import from file\n" + ofd->FileName + "\nType = " + type, "Error Importing", MessageBoxButtons::OK, MessageBoxIcon::Error);
                                        return;
                                }

                                switch ( this->ComboShipPart->SelectedIndex )
                                {
                                        case 0:
                                        case 1:
                                        case 2:
                                        case 3:
                                        case 4:
                                                this->ImportData(f, this->ComboShipPart->SelectedIndex);
                                                break;
                                        case 5:
                                                this->ImportAnimations(f);
                                                break;
                                }

                                if ( IO::File::Exists(_US(CPackages::tempDirectory() + L"/tmp.dat")) )
                                        IO::File::Delete(_US(CPackages::tempDirectory() + L"/tmp.dat"));
                        }
                 }
private: System::Void TextShipData_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         ((CXspFile *)m_pPackage)->setShipData(_WS(this->TextShipData->Text));
                         this->UpdateChanged();
                 }
private: System::Void toolTip1_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
                         ToolTip ^tip = cli::safe_cast<ToolTip ^>(sender);
                         tip->ToolTipTitle = e->AssociatedControl->Text;
                 }
private: System::Void toolTip2_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
                         ToolTip ^tip = cli::safe_cast<ToolTip ^>(sender);
                         tip->ToolTipTitle = Convert::ToString(e->AssociatedControl->Tag);
                 }
private: System::Void packFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->GetFileList()->Get(id);

                         if ( f )
                         {
                                 if ( !f->PCKFile() )
                                         MessageBox::Show(this, "There was a problem trying to pack the file\n" + _US(f->filename()), "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
                                 else
                                 {
                                        if (f->checkFileExt(L"bob"))
                                                f->changeFileExt(L"pbb");
                                        else if (f->checkFileExt(L"bod"))
                                                f->changeFileExt(L"pbd");
                                        else
                                                f->changeFileExt(L"pck");
                                        m_pSelectedItem->SubItems[1]->Text = _US(L"<PACKAGE>/" + f->getNameDirectory(NULL));
                                        m_pSelectedItem->SubItems[2]->Text = _US(f->uncompressedSizeString());

                                        m_pPackage->adjustChanged(true);
                                        this->UpdateChanged();
                                 }
                         }
                 }
private: System::Void unpackFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->GetFileList()->Get(id);

                         if ( f )
                         {
                                 if ( !f->UnPCKFile() )
                                         MessageBox::Show(this, "There was a problem trying to unpack the file\n" + _US(f->filename()), "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
                                 else
                                 {
                                        if (f->checkFileExt(L"pbb"))
                                                f->changeFileExt(L"bob");
                                        else if (f->checkFileExt(L"pbd"))
                                                f->changeFileExt(L"bod");
                                        else
                                                f->changeFileExt(L"xml");
                                        m_pSelectedItem->SubItems[1]->Text = _US(L"<PACKAGE>/" + f->getNameDirectory(NULL));
                                        m_pSelectedItem->SubItems[2]->Text = _US(f->uncompressedSizeString());

                                        m_pPackage->adjustChanged(true);
                                        this->UpdateChanged();
                                 }
                         }
                 }
private: System::Void convertToFakePatchToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->GetFileList()->Get(id);

                         if ( f )
                         {
                                 m_pPackage->convertFakePatch(f);
                                 this->UpdateFileList();
                         }
                 }
private: System::Void convertToNormalModToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->fileList().Get(id);

                         if ( f )
                         {
                                 InputBox ^input = gcnew InputBox("Enter the name you want the mod to be called");
                                 if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                                 {
                                         if ( input->GetInput()->Length )
                                         {
                                                 m_pPackage->convertNormalMod(f, _WS(input->GetInput()));
                                                 this->UpdateFileList();
                                         }
                                 }
                         }
                 }
private: System::Void renameFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->GetFileList()->Get(id);

                         if ( f )
                         {
                                 InputBox ^input = gcnew InputBox("Enter the new file name to change to", _US(f->baseName()));
                                 if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                                 {
                                         if ( input->GetInput()->Length )
                                         {
                                                 m_pPackage->renameFile(f, _WS(input->GetInput()));
                                                 this->UpdateFileList();
                                         }
                                 }
                         }
                 }
private: System::Void toolStripButton4_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( m_pPackage->webAddress().empty() )
                                 MessageBox::Show(this, "You dont have a primary web address set, you need an address for automatic updates to work", "No Web Address", MessageBoxButtons::OK, MessageBoxIcon::Asterisk);
                         else
                         {
                                FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
                                fbd->Description = "Select the path to save the update file to";
                                fbd->SelectedPath = _US(CFileIO(m_pPackage->filename()).dir().findReplace(L"/", L"\\"));
                                if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
                                {
                                        Utils::WString file = m_pPackage->createUpdateFile(_WS(fbd->SelectedPath));
                                        if ( !file.empty() )
                                                MessageBox::Show(this, "Update file has been created\n" + _US(file) + "\n\nRemember to upload it your web server so its accessable\n" + _US(m_pPackage->webAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
                                }
                        }
                 }
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
                         CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());
                         if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                                 this->UpdateView();
                 }
private: System::Void ToolCustomise_Click(System::Object^  sender, System::EventArgs^  e) {
                         CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());
                         if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
                                 this->UpdateView();
                 }
private: System::Void PackageForm_Load(System::Object^  sender, System::EventArgs^  e) {
                        this->UpdateView();
                 }
private: System::Void toolStripButton5_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->Export();
                 }
private: System::Void convertToAutoTextFileToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_pSelectedItem ) return;
                        
                         int id = Convert::ToInt32(m_pSelectedItem->Tag);
                         C_File *f = m_pPackage->GetFileList()->Get(id);

                         if ( f )
                         {
                                 m_pPackage->convertAutoText(f);
                                 this->UpdateFileList();
                         }
                 }
private: System::Void ButGameAdd_Click(System::Object^  sender, System::EventArgs^  e) {
                         if ( ButGame->ImageIndex < 0 )
                                 return;

                         if ( this->TextExactVersion->Visible )
                                m_pPackage->AddGameCompatability(ButGame->ImageIndex + 1, _WS(this->TextExactVersion->Text));
                         else
                                m_pPackage->AddGameCompatability(ButGame->ImageIndex + 1, (long)this->ComboVersion->SelectedIndex);

                         this->UpdateGamesList();
                         ButGame->Text = "- Select Game -";
                         this->TextExactVersion->Text = "";
                         this->TextExactVersion->Visible = false;
                         this->ComboVersion->Items->Clear();
                         this->ComboVersion->Enabled = false;
                         ButGame->ImageIndex = -1;
                         this->ButGameAdd->Enabled = false;
                         this->UpdateChanged();
                 }
private: System::Void ListGames_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                        
                        if ( !this->ListGames->SelectedItems->Count )
                                 return;

                        System::Windows::Forms::ListViewItem ^item = this->ListGames->SelectedItems[0];
                        if ( item ) {
                                int game = Convert::ToInt32(item->Tag);
                                if ( game ) {
                                        SGameCompat *g = m_pPackage->GetGameCompatability(game);
                                        if ( g ) {
                                                SGameExe *exe = m_pP->GetGameExe()->game(game - 1);
                                                if ( exe ) {
                                                        this->ButGame->ImageIndex = game - 1;
                                                        this->ButGame->Text = _US(exe->sName);
                                                        this->ComboVersion->Enabled = true;
                                                        this->ButGameAdd->Enabled = true;
                                                        this->UpdateGameVersion();
                                                        if ( !g->sVersion.empty() ) {
                                                                this->ComboVersion->SelectedIndex = this->ComboVersion->Items->Count - 1;
                                                                this->TextExactVersion->Visible = true;
                                                                this->TextExactVersion->Text = _US(g->sVersion);
                                                        }
                                                        else {
                                                                this->ComboVersion->SelectedIndex = g->iVersion;
                                                                this->TextExactVersion->Visible = false;
                                                        }
                                                        this->UpdateChanged();
                                                }
                                        }
                                }
                        }
                 }
private: System::Void ListGames_DoubleClick(System::Object^  sender, System::EventArgs^  e) {
                        if ( !this->ListGames->SelectedItems->Count )
                                 return;

                        System::Windows::Forms::ListViewItem ^item = this->ListGames->SelectedItems[0];
                        if ( !item ) return;

                        int game = Convert::ToInt32(item->Tag);
                        if ( !game ) return;    

                        m_pPackage->RemoveGameCompatability(game);
                        this->UpdateGamesList();
                        this->UpdateChanged();
                 }
private: System::Void ComboGameFilter_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->UpdateFileList();
                 }
private: System::Void butAddGlobal_Click(System::Object^ sender, System::EventArgs^ e) {
                        this->AddNewGlobal();
                }
private: System::Void butGlobalClear_Click(System::Object^ sender, System::EventArgs^ e) {
                        m_pPackage->clearGlobals();
                        this->UpdateGlobals();
                        this->UpdateChanged();
                }
private: System::Void addNewToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
                        this->AddNewGlobal();
                }
private: System::Void editSelectedToolStripMenuItem1_Click(System::Object^ sender, System::EventArgs^ e) {
                        this->EditGlobal();
                }
private: System::Void removeSelectedToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
                        m_pPackage->removeGlobal(_WS(m_pSelectedItem->Text));
                        this->UpdateGlobals();
                        this->UpdateChanged();
                }
private: System::Void clearAllToolStripMenuItem2_Click(System::Object^ sender, System::EventArgs^ e) {
                        m_pPackage->clearGlobals();
                        this->UpdateGlobals();
                        this->UpdateChanged();
                }
private: System::Void contextGlobal_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
                        Point^ mousePoint = this->listGlobals->PointToClient(this->contextGlobal->MousePosition);
                        ListViewItem^ item = this->listGlobals->GetItemAt(mousePoint->X, mousePoint->Y);

                        this->editSelectedToolStripMenuItem1->Visible = (item) ? true : false;
                        this->removeSelectedToolStripMenuItem->Visible = (item) ? true : false;
                        this->toolStripSeparator6->Visible = (item) ? true : false;

                        bool clear = (this->listGlobals->Items->Count) ? true : false;

                        this->clearAllToolStripMenuItem2->Visible = clear;
                        this->toolStripSeparator7->Visible = clear;

                        m_pSelectedItem = item;
                        e->Cancel = false;
                }
};
}