Subversion Repositories spk

Rev

Rev 88 | Go to most recent revision | 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;

enum {MENUEVENT_REMOVEDIR, MENUEVENT_EXIT, MENUEVENT_PACKAGEUPDATE, MENUEVENT_FAKEPATCHCONTROL, MENUEVENT_FAKEPATCHCOMPAT, MENUEVENT_EDITGLOBAL, MENUEVENT_EDITWARES, MENUEVENT_ABOUT, 
                MENUEVENT_FILELOG, MENUEVENT_FINDPACKAGE, MENUEVENT_SAVEGAMEMANAGER, MENUEVENT_INSTALLARCHIVE, MENUEVENT_EXPORTPACKAGE, MENUEVENT_VERIFYFILES, MENUEVENT_COMMANDSLOTS};

namespace PluginManager {

        /// <summary>
        /// Summary for MenuBar
        /// </summary>
        public ref class MenuBar : public System::Windows::Forms::UserControl
        {
        public:
                MenuBar(Windows::Forms::Form ^parent, bool advanced)
                {
                        InitializeComponent();

                        this->Parent = parent;
                        this->Dock = System::Windows::Forms::DockStyle::Top;

                        parent->Controls->Add(this);

                        this->SetupEvents();

                        if ( !advanced )
                                this->advancedToolStripMenuItem->Visible = false;
                }

                void Vanilla()
                {
                        this->vanillaToolStripMenuItem->Checked = true;
                        this->modifiedToolStripMenuItem->Checked = false;
                }

                void Modified()
                {
                        this->vanillaToolStripMenuItem->Checked = false;
                        this->modifiedToolStripMenuItem->Checked = true;
                }

                MenuStrip ^GetMenu() { return this->menuStrip1; }
                void SetSaveGameManager(bool b) { this->enabledToolStripMenuItem->Checked = b; }

        protected:
                /// <summary>
                /// Clean up any resources being used.
                /// </summary>
                ~MenuBar()
                {
                        if (components)
                        {
                                delete components;
                        }
                }
        private: System::Windows::Forms::MenuStrip^  menuStrip1;
        protected: 
        private: System::Windows::Forms::ToolStripMenuItem^  fileToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  installPackageToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;
        private: System::Windows::Forms::ToolStripMenuItem^  settingsToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  modeToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  vanillaToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  modifiedToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator2;
        private: System::Windows::Forms::ToolStripMenuItem^  addDirectoryToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  removeDirectoryToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  packagesToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  modSelectorToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  packageBrowserToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator3;
        private: System::Windows::Forms::ToolStripMenuItem^  checkForUpdatesToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  advancedToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  fakePatchControlToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  checkFakePatchCompatabilityToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  viewFakePatchAssignmentToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
        private: System::Windows::Forms::ToolStripMenuItem^  editGlobalsToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  helpToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  aboutToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
        private: System::Windows::Forms::ToolStripMenuItem^  viewFileLogToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  findPackagesOnlineToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  saveGameManagerToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  enabledToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  installArchiveToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  exportPackageListToolStripMenuItem;
        private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator6;
        private: System::Windows::Forms::ToolStripMenuItem^  veryInstalledFilesToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  viewUsedWaresToolStripMenuItem;
        private: System::Windows::Forms::ToolStripMenuItem^  viewCommandSlotsToolStripMenuItem;

        private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem;

        private:
                void ViewFakePatchs();
                void SendEvent(int menuevent);
                void SetupEvents();

                /// <summary>
                /// Required designer variable.
                /// </summary>
                System::ComponentModel::Container ^components;

#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)
                {
                        System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(MenuBar::typeid));
                        this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
                        this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->installPackageToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->installArchiveToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->settingsToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->modeToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->vanillaToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->modifiedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->saveGameManagerToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->enabledToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->addDirectoryToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->removeDirectoryToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->packagesToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->modSelectorToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->packageBrowserToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->checkForUpdatesToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->findPackagesOnlineToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->advancedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->fakePatchControlToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->checkFakePatchCompatabilityToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->viewFakePatchAssignmentToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->editGlobalsToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->viewUsedWaresToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->veryInstalledFilesToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->helpToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->aboutToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
                        this->viewFileLogToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->exportPackageListToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->viewCommandSlotsToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
                        this->menuStrip1->SuspendLayout();
                        this->SuspendLayout();
                        // 
                        // menuStrip1
                        // 
                        this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(5) {this->fileToolStripMenuItem, 
                                this->settingsToolStripMenuItem, this->packagesToolStripMenuItem, this->advancedToolStripMenuItem, this->helpToolStripMenuItem});
                        this->menuStrip1->Location = System::Drawing::Point(0, 0);
                        this->menuStrip1->Name = L"menuStrip1";
                        this->menuStrip1->Size = System::Drawing::Size(520, 24);
                        this->menuStrip1->TabIndex = 0;
                        this->menuStrip1->Text = L"menuStrip1";
                        // 
                        // fileToolStripMenuItem
                        // 
                        this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->installPackageToolStripMenuItem, 
                                this->installArchiveToolStripMenuItem, this->toolStripSeparator1, this->exitToolStripMenuItem});
                        this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
                        this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
                        this->fileToolStripMenuItem->Text = L"File";
                        // 
                        // installPackageToolStripMenuItem
                        // 
                        this->installPackageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"installPackageToolStripMenuItem.Image")));
                        this->installPackageToolStripMenuItem->Name = L"installPackageToolStripMenuItem";
                        this->installPackageToolStripMenuItem->Size = System::Drawing::Size(152, 22);
                        this->installPackageToolStripMenuItem->Text = L"Install Package";
                        // 
                        // installArchiveToolStripMenuItem
                        // 
                        this->installArchiveToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"installArchiveToolStripMenuItem.Image")));
                        this->installArchiveToolStripMenuItem->Name = L"installArchiveToolStripMenuItem";
                        this->installArchiveToolStripMenuItem->Size = System::Drawing::Size(152, 22);
                        this->installArchiveToolStripMenuItem->Text = L"Install Archive";
                        this->installArchiveToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::installArchiveToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator1
                        // 
                        this->toolStripSeparator1->Name = L"toolStripSeparator1";
                        this->toolStripSeparator1->Size = System::Drawing::Size(149, 6);
                        // 
                        // exitToolStripMenuItem
                        // 
                        this->exitToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"exitToolStripMenuItem.Image")));
                        this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
                        this->exitToolStripMenuItem->Size = System::Drawing::Size(152, 22);
                        this->exitToolStripMenuItem->Text = L"Exit";
                        this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::exitToolStripMenuItem_Click);
                        // 
                        // settingsToolStripMenuItem
                        // 
                        this->settingsToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(5) {this->modeToolStripMenuItem, 
                                this->saveGameManagerToolStripMenuItem, this->toolStripSeparator2, this->addDirectoryToolStripMenuItem, this->removeDirectoryToolStripMenuItem});
                        this->settingsToolStripMenuItem->Name = L"settingsToolStripMenuItem";
                        this->settingsToolStripMenuItem->Size = System::Drawing::Size(61, 20);
                        this->settingsToolStripMenuItem->Text = L"Settings";
                        // 
                        // modeToolStripMenuItem
                        // 
                        this->modeToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->vanillaToolStripMenuItem, 
                                this->modifiedToolStripMenuItem});
                        this->modeToolStripMenuItem->Name = L"modeToolStripMenuItem";
                        this->modeToolStripMenuItem->Size = System::Drawing::Size(182, 22);
                        this->modeToolStripMenuItem->Text = L"Mode";
                        // 
                        // vanillaToolStripMenuItem
                        // 
                        this->vanillaToolStripMenuItem->Checked = true;
                        this->vanillaToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
                        this->vanillaToolStripMenuItem->Name = L"vanillaToolStripMenuItem";
                        this->vanillaToolStripMenuItem->Size = System::Drawing::Size(122, 22);
                        this->vanillaToolStripMenuItem->Text = L"Vanilla";
                        // 
                        // modifiedToolStripMenuItem
                        // 
                        this->modifiedToolStripMenuItem->Name = L"modifiedToolStripMenuItem";
                        this->modifiedToolStripMenuItem->Size = System::Drawing::Size(122, 22);
                        this->modifiedToolStripMenuItem->Text = L"Modified";
                        // 
                        // saveGameManagerToolStripMenuItem
                        // 
                        this->saveGameManagerToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->enabledToolStripMenuItem});
                        this->saveGameManagerToolStripMenuItem->Name = L"saveGameManagerToolStripMenuItem";
                        this->saveGameManagerToolStripMenuItem->Size = System::Drawing::Size(182, 22);
                        this->saveGameManagerToolStripMenuItem->Text = L"Save Game Manager";
                        // 
                        // enabledToolStripMenuItem
                        // 
                        this->enabledToolStripMenuItem->CheckOnClick = true;
                        this->enabledToolStripMenuItem->Name = L"enabledToolStripMenuItem";
                        this->enabledToolStripMenuItem->Size = System::Drawing::Size(116, 22);
                        this->enabledToolStripMenuItem->Text = L"Enabled";
                        this->enabledToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::enabledToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator2
                        // 
                        this->toolStripSeparator2->Name = L"toolStripSeparator2";
                        this->toolStripSeparator2->Size = System::Drawing::Size(179, 6);
                        // 
                        // addDirectoryToolStripMenuItem
                        // 
                        this->addDirectoryToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addDirectoryToolStripMenuItem.Image")));
                        this->addDirectoryToolStripMenuItem->Name = L"addDirectoryToolStripMenuItem";
                        this->addDirectoryToolStripMenuItem->Size = System::Drawing::Size(182, 22);
                        this->addDirectoryToolStripMenuItem->Text = L"Add Directory";
                        // 
                        // removeDirectoryToolStripMenuItem
                        // 
                        this->removeDirectoryToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"removeDirectoryToolStripMenuItem.Image")));
                        this->removeDirectoryToolStripMenuItem->Name = L"removeDirectoryToolStripMenuItem";
                        this->removeDirectoryToolStripMenuItem->Size = System::Drawing::Size(182, 22);
                        this->removeDirectoryToolStripMenuItem->Text = L"Remove Directory";
                        this->removeDirectoryToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::removeDirectoryToolStripMenuItem_Click);
                        // 
                        // packagesToolStripMenuItem
                        // 
                        this->packagesToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(5) {this->modSelectorToolStripMenuItem, 
                                this->packageBrowserToolStripMenuItem, this->toolStripSeparator3, this->checkForUpdatesToolStripMenuItem, this->findPackagesOnlineToolStripMenuItem});
                        this->packagesToolStripMenuItem->Name = L"packagesToolStripMenuItem";
                        this->packagesToolStripMenuItem->Size = System::Drawing::Size(68, 20);
                        this->packagesToolStripMenuItem->Text = L"Packages";
                        // 
                        // modSelectorToolStripMenuItem
                        // 
                        this->modSelectorToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"modSelectorToolStripMenuItem.Image")));
                        this->modSelectorToolStripMenuItem->Name = L"modSelectorToolStripMenuItem";
                        this->modSelectorToolStripMenuItem->Size = System::Drawing::Size(187, 22);
                        this->modSelectorToolStripMenuItem->Text = L"Mod Selector";
                        // 
                        // packageBrowserToolStripMenuItem
                        // 
                        this->packageBrowserToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"packageBrowserToolStripMenuItem.Image")));
                        this->packageBrowserToolStripMenuItem->Name = L"packageBrowserToolStripMenuItem";
                        this->packageBrowserToolStripMenuItem->Size = System::Drawing::Size(187, 22);
                        this->packageBrowserToolStripMenuItem->Text = L"Package Browser";
                        // 
                        // toolStripSeparator3
                        // 
                        this->toolStripSeparator3->Name = L"toolStripSeparator3";
                        this->toolStripSeparator3->Size = System::Drawing::Size(184, 6);
                        // 
                        // checkForUpdatesToolStripMenuItem
                        // 
                        this->checkForUpdatesToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"checkForUpdatesToolStripMenuItem.Image")));
                        this->checkForUpdatesToolStripMenuItem->Name = L"checkForUpdatesToolStripMenuItem";
                        this->checkForUpdatesToolStripMenuItem->Size = System::Drawing::Size(187, 22);
                        this->checkForUpdatesToolStripMenuItem->Text = L"Check For Updates";
                        this->checkForUpdatesToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::checkForUpdatesToolStripMenuItem_Click);
                        // 
                        // findPackagesOnlineToolStripMenuItem
                        // 
                        this->findPackagesOnlineToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"findPackagesOnlineToolStripMenuItem.Image")));
                        this->findPackagesOnlineToolStripMenuItem->Name = L"findPackagesOnlineToolStripMenuItem";
                        this->findPackagesOnlineToolStripMenuItem->Size = System::Drawing::Size(187, 22);
                        this->findPackagesOnlineToolStripMenuItem->Text = L"Find Packages Online";
                        this->findPackagesOnlineToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::findPackagesOnlineToolStripMenuItem_Click);
                        // 
                        // advancedToolStripMenuItem
                        // 
                        this->advancedToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(9) {this->fakePatchControlToolStripMenuItem, 
                                this->checkFakePatchCompatabilityToolStripMenuItem, this->viewFakePatchAssignmentToolStripMenuItem, this->toolStripSeparator4, 
                                this->editGlobalsToolStripMenuItem, this->viewUsedWaresToolStripMenuItem, this->viewCommandSlotsToolStripMenuItem, this->toolStripSeparator6, 
                                this->veryInstalledFilesToolStripMenuItem});
                        this->advancedToolStripMenuItem->Name = L"advancedToolStripMenuItem";
                        this->advancedToolStripMenuItem->Size = System::Drawing::Size(72, 20);
                        this->advancedToolStripMenuItem->Text = L"Advanced";
                        // 
                        // fakePatchControlToolStripMenuItem
                        // 
                        this->fakePatchControlToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"fakePatchControlToolStripMenuItem.Image")));
                        this->fakePatchControlToolStripMenuItem->Name = L"fakePatchControlToolStripMenuItem";
                        this->fakePatchControlToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->fakePatchControlToolStripMenuItem->Text = L"Fake Patch Control";
                        this->fakePatchControlToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::fakePatchControlToolStripMenuItem_Click);
                        // 
                        // checkFakePatchCompatabilityToolStripMenuItem
                        // 
                        this->checkFakePatchCompatabilityToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"checkFakePatchCompatabilityToolStripMenuItem.Image")));
                        this->checkFakePatchCompatabilityToolStripMenuItem->Name = L"checkFakePatchCompatabilityToolStripMenuItem";
                        this->checkFakePatchCompatabilityToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->checkFakePatchCompatabilityToolStripMenuItem->Text = L"Check Fake Patch Compatability";
                        this->checkFakePatchCompatabilityToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::checkFakePatchCompatabilityToolStripMenuItem_Click);
                        // 
                        // viewFakePatchAssignmentToolStripMenuItem
                        // 
                        this->viewFakePatchAssignmentToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"viewFakePatchAssignmentToolStripMenuItem.Image")));
                        this->viewFakePatchAssignmentToolStripMenuItem->Name = L"viewFakePatchAssignmentToolStripMenuItem";
                        this->viewFakePatchAssignmentToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->viewFakePatchAssignmentToolStripMenuItem->Text = L"View Fake Patch Assignment";
                        this->viewFakePatchAssignmentToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::viewFakePatchAssignmentToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator4
                        // 
                        this->toolStripSeparator4->Name = L"toolStripSeparator4";
                        this->toolStripSeparator4->Size = System::Drawing::Size(242, 6);
                        // 
                        // editGlobalsToolStripMenuItem
                        // 
                        this->editGlobalsToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"editGlobalsToolStripMenuItem.Image")));
                        this->editGlobalsToolStripMenuItem->Name = L"editGlobalsToolStripMenuItem";
                        this->editGlobalsToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->editGlobalsToolStripMenuItem->Text = L"Edit Game Globals";
                        this->editGlobalsToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::editGlobalsToolStripMenuItem_Click);
                        // 
                        // viewUsedWaresToolStripMenuItem
                        // 
                        this->viewUsedWaresToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"viewUsedWaresToolStripMenuItem.Image")));
                        this->viewUsedWaresToolStripMenuItem->Name = L"viewUsedWaresToolStripMenuItem";
                        this->viewUsedWaresToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->viewUsedWaresToolStripMenuItem->Text = L"View Used Wares";
                        this->viewUsedWaresToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::viewUsedWaresToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator6
                        // 
                        this->toolStripSeparator6->Name = L"toolStripSeparator6";
                        this->toolStripSeparator6->Size = System::Drawing::Size(242, 6);
                        // 
                        // veryInstalledFilesToolStripMenuItem
                        // 
                        this->veryInstalledFilesToolStripMenuItem->Name = L"veryInstalledFilesToolStripMenuItem";
                        this->veryInstalledFilesToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->veryInstalledFilesToolStripMenuItem->Text = L"Verify Installed Files";
                        this->veryInstalledFilesToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::veryInstalledFilesToolStripMenuItem_Click);
                        // 
                        // helpToolStripMenuItem
                        // 
                        this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->aboutToolStripMenuItem, 
                                this->toolStripSeparator5, this->viewFileLogToolStripMenuItem, this->exportPackageListToolStripMenuItem});
                        this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";
                        this->helpToolStripMenuItem->Size = System::Drawing::Size(44, 20);
                        this->helpToolStripMenuItem->Text = L"Help";
                        // 
                        // aboutToolStripMenuItem
                        // 
                        this->aboutToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"aboutToolStripMenuItem.Image")));
                        this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
                        this->aboutToolStripMenuItem->Size = System::Drawing::Size(175, 22);
                        this->aboutToolStripMenuItem->Text = L"About";
                        this->aboutToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::aboutToolStripMenuItem_Click);
                        // 
                        // toolStripSeparator5
                        // 
                        this->toolStripSeparator5->Name = L"toolStripSeparator5";
                        this->toolStripSeparator5->Size = System::Drawing::Size(172, 6);
                        // 
                        // viewFileLogToolStripMenuItem
                        // 
                        this->viewFileLogToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"viewFileLogToolStripMenuItem.Image")));
                        this->viewFileLogToolStripMenuItem->Name = L"viewFileLogToolStripMenuItem";
                        this->viewFileLogToolStripMenuItem->Size = System::Drawing::Size(175, 22);
                        this->viewFileLogToolStripMenuItem->Text = L"View File Log";
                        this->viewFileLogToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::viewFileLogToolStripMenuItem_Click);
                        // 
                        // exportPackageListToolStripMenuItem
                        // 
                        this->exportPackageListToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"exportPackageListToolStripMenuItem.Image")));
                        this->exportPackageListToolStripMenuItem->Name = L"exportPackageListToolStripMenuItem";
                        this->exportPackageListToolStripMenuItem->Size = System::Drawing::Size(175, 22);
                        this->exportPackageListToolStripMenuItem->Text = L"Export Package List";
                        this->exportPackageListToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::exportPackageListToolStripMenuItem_Click);
                        // 
                        // viewCommandSlotsToolStripMenuItem
                        // 
                        this->viewCommandSlotsToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"viewCommandSlotsToolStripMenuItem.Image")));
                        this->viewCommandSlotsToolStripMenuItem->Name = L"viewCommandSlotsToolStripMenuItem";
                        this->viewCommandSlotsToolStripMenuItem->Size = System::Drawing::Size(245, 22);
                        this->viewCommandSlotsToolStripMenuItem->Text = L"View Command Slots";
                        this->viewCommandSlotsToolStripMenuItem->Click += gcnew System::EventHandler(this, &MenuBar::viewCommandSlotsToolStripMenuItem_Click);
                        // 
                        // MenuBar
                        // 
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                        this->Controls->Add(this->menuStrip1);
                        this->Name = L"MenuBar";
                        this->Size = System::Drawing::Size(520, 27);
                        this->menuStrip1->ResumeLayout(false);
                        this->menuStrip1->PerformLayout();
                        this->ResumeLayout(false);
                        this->PerformLayout();

                }
#pragma endregion
private: System::Void exitToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_EXIT);
                 }
private: System::Void removeDirectoryToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_REMOVEDIR);
                 }
private: System::Void checkForUpdatesToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_PACKAGEUPDATE);
                 }
private: System::Void fakePatchControlToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_FAKEPATCHCONTROL);
                 }
private: System::Void checkFakePatchCompatabilityToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_FAKEPATCHCOMPAT);
                 }
private: System::Void editGlobalsToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_EDITGLOBAL);
                 }
private: System::Void viewFakePatchAssignmentToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         this->ViewFakePatchs();
                 }
private: System::Void aboutToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_ABOUT);
                 }
private: System::Void viewFileLogToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_FILELOG);
                 }
private: System::Void findPackagesOnlineToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_FINDPACKAGE);
                 }
private: System::Void enabledToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_SAVEGAMEMANAGER);
                 }
private: System::Void installArchiveToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_INSTALLARCHIVE);
                 }
private: System::Void exportPackageListToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_EXPORTPACKAGE);
                 }
private: System::Void veryInstalledFilesToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_VERIFYFILES);
                 }
private: System::Void viewUsedWaresToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_EDITWARES);
                 }
private: System::Void viewCommandSlotsToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
                         SendEvent(MENUEVENT_COMMANDSLOTS);
                 }
};
}