| 1 | cycrow | 1 | #pragma once
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | using namespace System;
 | 
        
           |  |  | 4 | using namespace System::ComponentModel;
 | 
        
           |  |  | 5 | using namespace System::Collections;
 | 
        
           |  |  | 6 | using namespace System::Windows::Forms;
 | 
        
           |  |  | 7 | using namespace System::Data;
 | 
        
           |  |  | 8 | using namespace System::Drawing;
 | 
        
           |  |  | 9 |   | 
        
           |  |  | 10 |   | 
        
           |  |  | 11 | namespace Creator {
 | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | 	/// <summary>
 | 
        
           |  |  | 14 | 	/// Summary for CustomiseGuns
 | 
        
           |  |  | 15 | 	/// </summary>
 | 
        
           |  |  | 16 | 	public ref class CustomiseGuns : public System::Windows::Forms::UserControl
 | 
        
           |  |  | 17 | 	{
 | 
        
           |  |  | 18 | 	public:
 | 
        
           |  |  | 19 | 		CustomiseGuns(Windows::Forms::Form ^parent, ImageList ^imagesSmall, ImageList ^imagesLarge, CShipData *shipData, CyStringList *models)
 | 
        
           |  |  | 20 | 		{
 | 
        
           |  |  | 21 | 			InitializeComponent();
 | 
        
           |  |  | 22 |   | 
        
           |  |  | 23 | 			m_bUpdatingGunLists = false;
 | 
        
           |  |  | 24 | 			m_pParent = parent;
 | 
        
           |  |  | 25 | 			m_pShipData = shipData;
 | 
        
           |  |  | 26 | 			m_pModels = models;
 | 
        
           |  |  | 27 |   | 
        
           |  |  | 28 | 			this->ListTurrets->SmallImageList = imagesSmall;
 | 
        
           |  |  | 29 | 			this->ListGuns->SmallImageList = imagesSmall;
 | 
        
           |  |  | 30 | 			this->ListTurrets->LargeImageList = imagesLarge;
 | 
        
           |  |  | 31 | 			this->ListGuns->LargeImageList = imagesLarge;
 | 
        
           |  |  | 32 |   | 
        
           |  |  | 33 | 			this->SetupControls();
 | 
        
           |  |  | 34 | 		}
 | 
        
           |  |  | 35 |   | 
        
           |  |  | 36 | 		String ^GetPosition(int dir);
 | 
        
           |  |  | 37 | 		void UpdateDisplay();
 | 
        
           |  |  | 38 | 		void SetupControls();
 | 
        
           |  |  | 39 | 		void ChangeGunValues();
 | 
        
           |  |  | 40 | 		void UpdateGunEntrys();
 | 
        
           |  |  | 41 | 		void UpdateGunsList();
 | 
        
           |  |  | 42 | 		void UpdateGunTurrets();
 | 
        
           |  |  | 43 |   | 
        
           |  |  | 44 | 	protected:
 | 
        
           |  |  | 45 | 		Windows::Forms::Form	^m_pParent;
 | 
        
           |  |  | 46 | 		CShipData				*m_pShipData;
 | 
        
           |  |  | 47 | 		bool					 m_bUpdatingGunLists;
 | 
        
           |  |  | 48 | 		CyStringList			*m_pModels;
 | 
        
           |  |  | 49 | 		/// <summary>
 | 
        
           |  |  | 50 | 		/// Clean up any resources being used.
 | 
        
           |  |  | 51 | 		/// </summary>
 | 
        
           |  |  | 52 | 		~CustomiseGuns()
 | 
        
           |  |  | 53 | 		{
 | 
        
           |  |  | 54 | 			if (components)
 | 
        
           |  |  | 55 | 			{
 | 
        
           |  |  | 56 | 				delete components;
 | 
        
           |  |  | 57 | 			}
 | 
        
           |  |  | 58 | 		}
 | 
        
           |  |  | 59 |   | 
        
           |  |  | 60 |   | 
        
           |  |  | 61 | 	private: System::Windows::Forms::ListView^  ListGuns;
 | 
        
           |  |  | 62 | 	private: System::Windows::Forms::ContextMenuStrip^  contextMenuStrip2;
 | 
        
           |  |  | 63 | 	private: System::Windows::Forms::ToolStripMenuItem^  addGunToolStripMenuItem;
 | 
        
           |  |  | 64 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator7;
 | 
        
           |  |  | 65 | 	private: System::Windows::Forms::ToolStripMenuItem^  removeGunToolStripMenuItem;
 | 
        
           |  |  | 66 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator8;
 | 
        
           |  |  | 67 | 	private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem1;
 | 
        
           |  |  | 68 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader14;
 | 
        
           |  |  | 69 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader18;
 | 
        
           |  |  | 70 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader15;
 | 
        
           |  |  | 71 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader16;
 | 
        
           |  |  | 72 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader17;
 | 
        
           |  |  | 73 | 	private: System::Windows::Forms::TabControl^  tabControl2;
 | 
        
           |  |  | 74 | 	private: System::Windows::Forms::TabPage^  PageAuto;
 | 
        
           |  |  | 75 | 	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel8;
 | 
        
           |  |  | 76 | 	private: System::Windows::Forms::ComboBox^  ComboAutoSecondary;
 | 
        
           |  |  | 77 | 	private: System::Windows::Forms::Label^  label56;
 | 
        
           |  |  | 78 | 	private: System::Windows::Forms::Label^  label55;
 | 
        
           |  |  | 79 | 	private: System::Windows::Forms::ComboBox^  ComboAutoPrimary;
 | 
        
           |  |  | 80 | 	private: System::Windows::Forms::TabPage^  tabPage9;
 | 
        
           |  |  | 81 | 	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel9;
 | 
        
           |  |  | 82 | 	private: System::Windows::Forms::CheckBox^  CheckManualSecondary;
 | 
        
           |  |  | 83 | 	private: System::Windows::Forms::Label^  label58;
 | 
        
           |  |  | 84 | 	private: System::Windows::Forms::Label^  label57;
 | 
        
           |  |  | 85 | 	private: System::Windows::Forms::Button^  button14;
 | 
        
           |  |  | 86 | 	private: System::Windows::Forms::TextBox^  TextManualPrimary;
 | 
        
           |  |  | 87 | 	private: System::Windows::Forms::TextBox^  TextManualSecondary;
 | 
        
           |  |  | 88 | 	private: System::Windows::Forms::NumericUpDown^  NumManualPrimary;
 | 
        
           |  |  | 89 | 	private: System::Windows::Forms::NumericUpDown^  NumManualSecondary;
 | 
        
           |  |  | 90 | 	private: System::Windows::Forms::CheckBox^  CheckManualPrimary;
 | 
        
           |  |  | 91 | 	private: System::Windows::Forms::ListView^  ListTurrets;
 | 
        
           |  |  | 92 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader9;
 | 
        
           |  |  | 93 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader10;
 | 
        
           |  |  | 94 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader11;
 | 
        
           |  |  | 95 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader12;
 | 
        
           |  |  | 96 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader13;
 | 
        
           |  |  | 97 | 	private: System::ComponentModel::IContainer^  components;
 | 
        
           |  |  | 98 |   | 
        
           |  |  | 99 | 	private:
 | 
        
           |  |  | 100 | 		/// <summary>
 | 
        
           |  |  | 101 | 		/// Required designer variable.
 | 
        
           |  |  | 102 | 		/// </summary>
 | 
        
           |  |  | 103 |   | 
        
           |  |  | 104 |   | 
        
           |  |  | 105 | #pragma region Windows Form Designer generated code
 | 
        
           |  |  | 106 | 		/// <summary>
 | 
        
           |  |  | 107 | 		/// Required method for Designer support - do not modify
 | 
        
           |  |  | 108 | 		/// the contents of this method with the code editor.
 | 
        
           |  |  | 109 | 		/// </summary>
 | 
        
           |  |  | 110 | 		void InitializeComponent(void)
 | 
        
           |  |  | 111 | 		{
 | 
        
           |  |  | 112 | 			this->components = (gcnew System::ComponentModel::Container());
 | 
        
           |  |  | 113 | 			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(CustomiseGuns::typeid));
 | 
        
           |  |  | 114 | 			this->ListGuns = (gcnew System::Windows::Forms::ListView());
 | 
        
           |  |  | 115 | 			this->columnHeader14 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 116 | 			this->columnHeader18 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 117 | 			this->columnHeader15 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 118 | 			this->columnHeader16 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 119 | 			this->columnHeader17 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 120 | 			this->contextMenuStrip2 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
 | 
        
           |  |  | 121 | 			this->addGunToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 122 | 			this->toolStripSeparator7 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 123 | 			this->removeGunToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 124 | 			this->toolStripSeparator8 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 125 | 			this->clearAllToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 126 | 			this->tabControl2 = (gcnew System::Windows::Forms::TabControl());
 | 
        
           |  |  | 127 | 			this->PageAuto = (gcnew System::Windows::Forms::TabPage());
 | 
        
           |  |  | 128 | 			this->tableLayoutPanel8 = (gcnew System::Windows::Forms::TableLayoutPanel());
 | 
        
           |  |  | 129 | 			this->ComboAutoSecondary = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 130 | 			this->label56 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 131 | 			this->label55 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 132 | 			this->ComboAutoPrimary = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 133 | 			this->tabPage9 = (gcnew System::Windows::Forms::TabPage());
 | 
        
           |  |  | 134 | 			this->tableLayoutPanel9 = (gcnew System::Windows::Forms::TableLayoutPanel());
 | 
        
           |  |  | 135 | 			this->CheckManualSecondary = (gcnew System::Windows::Forms::CheckBox());
 | 
        
           |  |  | 136 | 			this->label58 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 137 | 			this->label57 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 138 | 			this->button14 = (gcnew System::Windows::Forms::Button());
 | 
        
           |  |  | 139 | 			this->TextManualPrimary = (gcnew System::Windows::Forms::TextBox());
 | 
        
           |  |  | 140 | 			this->TextManualSecondary = (gcnew System::Windows::Forms::TextBox());
 | 
        
           |  |  | 141 | 			this->NumManualPrimary = (gcnew System::Windows::Forms::NumericUpDown());
 | 
        
           |  |  | 142 | 			this->NumManualSecondary = (gcnew System::Windows::Forms::NumericUpDown());
 | 
        
           |  |  | 143 | 			this->CheckManualPrimary = (gcnew System::Windows::Forms::CheckBox());
 | 
        
           |  |  | 144 | 			this->ListTurrets = (gcnew System::Windows::Forms::ListView());
 | 
        
           |  |  | 145 | 			this->columnHeader9 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 146 | 			this->columnHeader10 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 147 | 			this->columnHeader11 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 148 | 			this->columnHeader12 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 149 | 			this->columnHeader13 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 150 | 			this->contextMenuStrip2->SuspendLayout();
 | 
        
           |  |  | 151 | 			this->tabControl2->SuspendLayout();
 | 
        
           |  |  | 152 | 			this->PageAuto->SuspendLayout();
 | 
        
           |  |  | 153 | 			this->tableLayoutPanel8->SuspendLayout();
 | 
        
           |  |  | 154 | 			this->tabPage9->SuspendLayout();
 | 
        
           |  |  | 155 | 			this->tableLayoutPanel9->SuspendLayout();
 | 
        
           |  |  | 156 | 			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumManualPrimary))->BeginInit();
 | 
        
           |  |  | 157 | 			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumManualSecondary))->BeginInit();
 | 
        
           |  |  | 158 | 			this->SuspendLayout();
 | 
        
           |  |  | 159 | 			// 
 | 
        
           |  |  | 160 | 			// ListGuns
 | 
        
           |  |  | 161 | 			// 
 | 
        
           |  |  | 162 | 			this->ListGuns->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(5) {this->columnHeader14, this->columnHeader18, 
 | 
        
           |  |  | 163 | 				this->columnHeader15, this->columnHeader16, this->columnHeader17});
 | 
        
           |  |  | 164 | 			this->ListGuns->ContextMenuStrip = this->contextMenuStrip2;
 | 
        
           |  |  | 165 | 			this->ListGuns->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 166 | 			this->ListGuns->FullRowSelect = true;
 | 
        
           |  |  | 167 | 			this->ListGuns->HideSelection = false;
 | 
        
           |  |  | 168 | 			this->ListGuns->Location = System::Drawing::Point(0, 147);
 | 
        
           |  |  | 169 | 			this->ListGuns->MultiSelect = false;
 | 
        
           |  |  | 170 | 			this->ListGuns->Name = L"ListGuns";
 | 
        
           |  |  | 171 | 			this->ListGuns->Size = System::Drawing::Size(427, 283);
 | 
        
           |  |  | 172 | 			this->ListGuns->TabIndex = 1;
 | 
        
           |  |  | 173 | 			this->ListGuns->UseCompatibleStateImageBehavior = false;
 | 
        
           |  |  | 174 | 			this->ListGuns->View = System::Windows::Forms::View::Details;
 | 
        
           |  |  | 175 | 			this->ListGuns->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseGuns::ListGuns_SelectedIndexChanged);
 | 
        
           |  |  | 176 | 			// 
 | 
        
           |  |  | 177 | 			// columnHeader14
 | 
        
           |  |  | 178 | 			// 
 | 
        
           |  |  | 179 | 			this->columnHeader14->Text = L"#";
 | 
        
           |  |  | 180 | 			// 
 | 
        
           |  |  | 181 | 			// columnHeader18
 | 
        
           |  |  | 182 | 			// 
 | 
        
           |  |  | 183 | 			this->columnHeader18->Text = L"Index";
 | 
        
           |  |  | 184 | 			// 
 | 
        
           |  |  | 185 | 			// columnHeader15
 | 
        
           |  |  | 186 | 			// 
 | 
        
           |  |  | 187 | 			this->columnHeader15->Text = L"Count";
 | 
        
           |  |  | 188 | 			// 
 | 
        
           |  |  | 189 | 			// columnHeader16
 | 
        
           |  |  | 190 | 			// 
 | 
        
           |  |  | 191 | 			this->columnHeader16->Text = L"Primary Body";
 | 
        
           |  |  | 192 | 			// 
 | 
        
           |  |  | 193 | 			// columnHeader17
 | 
        
           |  |  | 194 | 			// 
 | 
        
           |  |  | 195 | 			this->columnHeader17->Text = L"Secondary Body";
 | 
        
           |  |  | 196 | 			// 
 | 
        
           |  |  | 197 | 			// contextMenuStrip2
 | 
        
           |  |  | 198 | 			// 
 | 
        
           |  |  | 199 | 			this->contextMenuStrip2->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(5) {this->addGunToolStripMenuItem, 
 | 
        
           |  |  | 200 | 				this->toolStripSeparator7, this->removeGunToolStripMenuItem, this->toolStripSeparator8, this->clearAllToolStripMenuItem1});
 | 
        
           |  |  | 201 | 			this->contextMenuStrip2->Name = L"contextMenuStrip2";
 | 
        
           |  |  | 202 | 			this->contextMenuStrip2->Size = System::Drawing::Size(159, 130);
 | 
        
           |  |  | 203 | 			this->contextMenuStrip2->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &CustomiseGuns::contextMenuStrip2_Opening);
 | 
        
           |  |  | 204 | 			// 
 | 
        
           |  |  | 205 | 			// addGunToolStripMenuItem
 | 
        
           |  |  | 206 | 			// 
 | 
        
           |  |  | 207 | 			this->addGunToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"addGunToolStripMenuItem.Image")));
 | 
        
           |  |  | 208 | 			this->addGunToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 209 | 			this->addGunToolStripMenuItem->Name = L"addGunToolStripMenuItem";
 | 
        
           |  |  | 210 | 			this->addGunToolStripMenuItem->Size = System::Drawing::Size(158, 38);
 | 
        
           |  |  | 211 | 			this->addGunToolStripMenuItem->Text = L"Add Gun";
 | 
        
           |  |  | 212 | 			this->addGunToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseGuns::addGunToolStripMenuItem_Click);
 | 
        
           |  |  | 213 | 			// 
 | 
        
           |  |  | 214 | 			// toolStripSeparator7
 | 
        
           |  |  | 215 | 			// 
 | 
        
           |  |  | 216 | 			this->toolStripSeparator7->Name = L"toolStripSeparator7";
 | 
        
           |  |  | 217 | 			this->toolStripSeparator7->Size = System::Drawing::Size(155, 6);
 | 
        
           |  |  | 218 | 			// 
 | 
        
           |  |  | 219 | 			// removeGunToolStripMenuItem
 | 
        
           |  |  | 220 | 			// 
 | 
        
           |  |  | 221 | 			this->removeGunToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"removeGunToolStripMenuItem.Image")));
 | 
        
           |  |  | 222 | 			this->removeGunToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 223 | 			this->removeGunToolStripMenuItem->Name = L"removeGunToolStripMenuItem";
 | 
        
           |  |  | 224 | 			this->removeGunToolStripMenuItem->Size = System::Drawing::Size(158, 38);
 | 
        
           |  |  | 225 | 			this->removeGunToolStripMenuItem->Text = L"Remove Gun";
 | 
        
           |  |  | 226 | 			this->removeGunToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseGuns::removeGunToolStripMenuItem_Click);
 | 
        
           |  |  | 227 | 			// 
 | 
        
           |  |  | 228 | 			// toolStripSeparator8
 | 
        
           |  |  | 229 | 			// 
 | 
        
           |  |  | 230 | 			this->toolStripSeparator8->Name = L"toolStripSeparator8";
 | 
        
           |  |  | 231 | 			this->toolStripSeparator8->Size = System::Drawing::Size(155, 6);
 | 
        
           |  |  | 232 | 			// 
 | 
        
           |  |  | 233 | 			// clearAllToolStripMenuItem1
 | 
        
           |  |  | 234 | 			// 
 | 
        
           |  |  | 235 | 			this->clearAllToolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"clearAllToolStripMenuItem1.Image")));
 | 
        
           |  |  | 236 | 			this->clearAllToolStripMenuItem1->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 237 | 			this->clearAllToolStripMenuItem1->Name = L"clearAllToolStripMenuItem1";
 | 
        
           |  |  | 238 | 			this->clearAllToolStripMenuItem1->Size = System::Drawing::Size(158, 38);
 | 
        
           |  |  | 239 | 			this->clearAllToolStripMenuItem1->Text = L"Clear All";
 | 
        
           |  |  | 240 | 			this->clearAllToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseGuns::clearAllToolStripMenuItem1_Click);
 | 
        
           |  |  | 241 | 			// 
 | 
        
           |  |  | 242 | 			// tabControl2
 | 
        
           |  |  | 243 | 			// 
 | 
        
           |  |  | 244 | 			this->tabControl2->Controls->Add(this->PageAuto);
 | 
        
           |  |  | 245 | 			this->tabControl2->Controls->Add(this->tabPage9);
 | 
        
           |  |  | 246 | 			this->tabControl2->Dock = System::Windows::Forms::DockStyle::Bottom;
 | 
        
           |  |  | 247 | 			this->tabControl2->Enabled = false;
 | 
        
           |  |  | 248 | 			this->tabControl2->Location = System::Drawing::Point(0, 430);
 | 
        
           |  |  | 249 | 			this->tabControl2->Name = L"tabControl2";
 | 
        
           |  |  | 250 | 			this->tabControl2->SelectedIndex = 0;
 | 
        
           |  |  | 251 | 			this->tabControl2->Size = System::Drawing::Size(427, 103);
 | 
        
           |  |  | 252 | 			this->tabControl2->TabIndex = 2;
 | 
        
           |  |  | 253 | 			// 
 | 
        
           |  |  | 254 | 			// PageAuto
 | 
        
           |  |  | 255 | 			// 
 | 
        
           |  |  | 256 | 			this->PageAuto->Controls->Add(this->tableLayoutPanel8);
 | 
        
           |  |  | 257 | 			this->PageAuto->Location = System::Drawing::Point(4, 22);
 | 
        
           |  |  | 258 | 			this->PageAuto->Name = L"PageAuto";
 | 
        
           |  |  | 259 | 			this->PageAuto->Padding = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 260 | 			this->PageAuto->Size = System::Drawing::Size(419, 77);
 | 
        
           |  |  | 261 | 			this->PageAuto->TabIndex = 0;
 | 
        
           |  |  | 262 | 			this->PageAuto->Text = L"Automatic Entry";
 | 
        
           |  |  | 263 | 			this->PageAuto->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 264 | 			// 
 | 
        
           |  |  | 265 | 			// tableLayoutPanel8
 | 
        
           |  |  | 266 | 			// 
 | 
        
           |  |  | 267 | 			this->tableLayoutPanel8->ColumnCount = 2;
 | 
        
           |  |  | 268 | 			this->tableLayoutPanel8->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute, 
 | 
        
           |  |  | 269 | 				180)));
 | 
        
           |  |  | 270 | 			this->tableLayoutPanel8->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
 | 
        
           |  |  | 271 | 				100)));
 | 
        
           |  |  | 272 | 			this->tableLayoutPanel8->Controls->Add(this->ComboAutoSecondary, 1, 1);
 | 
        
           |  |  | 273 | 			this->tableLayoutPanel8->Controls->Add(this->label56, 0, 1);
 | 
        
           |  |  | 274 | 			this->tableLayoutPanel8->Controls->Add(this->label55, 0, 0);
 | 
        
           |  |  | 275 | 			this->tableLayoutPanel8->Controls->Add(this->ComboAutoPrimary, 1, 0);
 | 
        
           |  |  | 276 | 			this->tableLayoutPanel8->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 277 | 			this->tableLayoutPanel8->Location = System::Drawing::Point(10, 10);
 | 
        
           |  |  | 278 | 			this->tableLayoutPanel8->Name = L"tableLayoutPanel8";
 | 
        
           |  |  | 279 | 			this->tableLayoutPanel8->RowCount = 2;
 | 
        
           |  |  | 280 | 			this->tableLayoutPanel8->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
 | 
        
           |  |  | 281 | 			this->tableLayoutPanel8->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
 | 
        
           |  |  | 282 | 			this->tableLayoutPanel8->Size = System::Drawing::Size(399, 57);
 | 
        
           |  |  | 283 | 			this->tableLayoutPanel8->TabIndex = 0;
 | 
        
           |  |  | 284 | 			// 
 | 
        
           |  |  | 285 | 			// ComboAutoSecondary
 | 
        
           |  |  | 286 | 			// 
 | 
        
           |  |  | 287 | 			this->ComboAutoSecondary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 288 | 			this->ComboAutoSecondary->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 289 | 			this->ComboAutoSecondary->FormattingEnabled = true;
 | 
        
           |  |  | 290 | 			this->ComboAutoSecondary->Location = System::Drawing::Point(183, 31);
 | 
        
           |  |  | 291 | 			this->ComboAutoSecondary->Name = L"ComboAutoSecondary";
 | 
        
           |  |  | 292 | 			this->ComboAutoSecondary->Size = System::Drawing::Size(213, 21);
 | 
        
           |  |  | 293 | 			this->ComboAutoSecondary->TabIndex = 3;
 | 
        
           |  |  | 294 | 			this->ComboAutoSecondary->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseGuns::ComboAutoSecondary_SelectedIndexChanged);
 | 
        
           |  |  | 295 | 			// 
 | 
        
           |  |  | 296 | 			// label56
 | 
        
           |  |  | 297 | 			// 
 | 
        
           |  |  | 298 | 			this->label56->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 299 | 			this->label56->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 300 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 301 | 			this->label56->Location = System::Drawing::Point(3, 28);
 | 
        
           |  |  | 302 | 			this->label56->Name = L"label56";
 | 
        
           |  |  | 303 | 			this->label56->Size = System::Drawing::Size(174, 29);
 | 
        
           |  |  | 304 | 			this->label56->TabIndex = 1;
 | 
        
           |  |  | 305 | 			this->label56->Text = L"Secondary Body";
 | 
        
           |  |  | 306 | 			this->label56->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 307 | 			// 
 | 
        
           |  |  | 308 | 			// label55
 | 
        
           |  |  | 309 | 			// 
 | 
        
           |  |  | 310 | 			this->label55->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 311 | 			this->label55->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 312 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 313 | 			this->label55->Location = System::Drawing::Point(3, 0);
 | 
        
           |  |  | 314 | 			this->label55->Name = L"label55";
 | 
        
           |  |  | 315 | 			this->label55->Size = System::Drawing::Size(174, 28);
 | 
        
           |  |  | 316 | 			this->label55->TabIndex = 0;
 | 
        
           |  |  | 317 | 			this->label55->Text = L"Primary Body";
 | 
        
           |  |  | 318 | 			this->label55->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 319 | 			// 
 | 
        
           |  |  | 320 | 			// ComboAutoPrimary
 | 
        
           |  |  | 321 | 			// 
 | 
        
           |  |  | 322 | 			this->ComboAutoPrimary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 323 | 			this->ComboAutoPrimary->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 324 | 			this->ComboAutoPrimary->FormattingEnabled = true;
 | 
        
           |  |  | 325 | 			this->ComboAutoPrimary->Location = System::Drawing::Point(183, 3);
 | 
        
           |  |  | 326 | 			this->ComboAutoPrimary->Name = L"ComboAutoPrimary";
 | 
        
           |  |  | 327 | 			this->ComboAutoPrimary->Size = System::Drawing::Size(213, 21);
 | 
        
           |  |  | 328 | 			this->ComboAutoPrimary->TabIndex = 2;
 | 
        
           |  |  | 329 | 			this->ComboAutoPrimary->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseGuns::ComboAutoPrimary_SelectedIndexChanged);
 | 
        
           |  |  | 330 | 			// 
 | 
        
           |  |  | 331 | 			// tabPage9
 | 
        
           |  |  | 332 | 			// 
 | 
        
           |  |  | 333 | 			this->tabPage9->Controls->Add(this->tableLayoutPanel9);
 | 
        
           |  |  | 334 | 			this->tabPage9->Location = System::Drawing::Point(4, 22);
 | 
        
           |  |  | 335 | 			this->tabPage9->Name = L"tabPage9";
 | 
        
           |  |  | 336 | 			this->tabPage9->Padding = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 337 | 			this->tabPage9->Size = System::Drawing::Size(419, 77);
 | 
        
           |  |  | 338 | 			this->tabPage9->TabIndex = 1;
 | 
        
           |  |  | 339 | 			this->tabPage9->Text = L"Manual Entry";
 | 
        
           |  |  | 340 | 			this->tabPage9->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 341 | 			// 
 | 
        
           |  |  | 342 | 			// tableLayoutPanel9
 | 
        
           |  |  | 343 | 			// 
 | 
        
           |  |  | 344 | 			this->tableLayoutPanel9->ColumnCount = 5;
 | 
        
           |  |  | 345 | 			this->tableLayoutPanel9->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute, 
 | 
        
           |  |  | 346 | 				180)));
 | 
        
           |  |  | 347 | 			this->tableLayoutPanel9->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute, 
 | 
        
           |  |  | 348 | 				20)));
 | 
        
           |  |  | 349 | 			this->tableLayoutPanel9->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
 | 
        
           |  |  | 350 | 				100)));
 | 
        
           |  |  | 351 | 			this->tableLayoutPanel9->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute, 
 | 
        
           |  |  | 352 | 				60)));
 | 
        
           |  |  | 353 | 			this->tableLayoutPanel9->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute, 
 | 
        
           |  |  | 354 | 				80)));
 | 
        
           |  |  | 355 | 			this->tableLayoutPanel9->Controls->Add(this->CheckManualSecondary, 1, 1);
 | 
        
           |  |  | 356 | 			this->tableLayoutPanel9->Controls->Add(this->label58, 0, 1);
 | 
        
           |  |  | 357 | 			this->tableLayoutPanel9->Controls->Add(this->label57, 0, 0);
 | 
        
           |  |  | 358 | 			this->tableLayoutPanel9->Controls->Add(this->button14, 4, 0);
 | 
        
           |  |  | 359 | 			this->tableLayoutPanel9->Controls->Add(this->TextManualPrimary, 2, 0);
 | 
        
           |  |  | 360 | 			this->tableLayoutPanel9->Controls->Add(this->TextManualSecondary, 2, 1);
 | 
        
           |  |  | 361 | 			this->tableLayoutPanel9->Controls->Add(this->NumManualPrimary, 3, 0);
 | 
        
           |  |  | 362 | 			this->tableLayoutPanel9->Controls->Add(this->NumManualSecondary, 3, 1);
 | 
        
           |  |  | 363 | 			this->tableLayoutPanel9->Controls->Add(this->CheckManualPrimary, 1, 0);
 | 
        
           |  |  | 364 | 			this->tableLayoutPanel9->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 365 | 			this->tableLayoutPanel9->Location = System::Drawing::Point(10, 10);
 | 
        
           |  |  | 366 | 			this->tableLayoutPanel9->Name = L"tableLayoutPanel9";
 | 
        
           |  |  | 367 | 			this->tableLayoutPanel9->RowCount = 2;
 | 
        
           |  |  | 368 | 			this->tableLayoutPanel9->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
 | 
        
           |  |  | 369 | 			this->tableLayoutPanel9->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
 | 
        
           |  |  | 370 | 			this->tableLayoutPanel9->Size = System::Drawing::Size(399, 57);
 | 
        
           |  |  | 371 | 			this->tableLayoutPanel9->TabIndex = 0;
 | 
        
           |  |  | 372 | 			// 
 | 
        
           |  |  | 373 | 			// CheckManualSecondary
 | 
        
           |  |  | 374 | 			// 
 | 
        
           |  |  | 375 | 			this->CheckManualSecondary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 376 | 			this->CheckManualSecondary->Location = System::Drawing::Point(183, 31);
 | 
        
           |  |  | 377 | 			this->CheckManualSecondary->Name = L"CheckManualSecondary";
 | 
        
           |  |  | 378 | 			this->CheckManualSecondary->Size = System::Drawing::Size(14, 23);
 | 
        
           |  |  | 379 | 			this->CheckManualSecondary->TabIndex = 9;
 | 
        
           |  |  | 380 | 			this->CheckManualSecondary->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 381 | 			this->CheckManualSecondary->CheckedChanged += gcnew System::EventHandler(this, &CustomiseGuns::CheckManualSecondary_CheckedChanged);
 | 
        
           |  |  | 382 | 			// 
 | 
        
           |  |  | 383 | 			// label58
 | 
        
           |  |  | 384 | 			// 
 | 
        
           |  |  | 385 | 			this->label58->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 386 | 			this->label58->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 387 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 388 | 			this->label58->Location = System::Drawing::Point(3, 28);
 | 
        
           |  |  | 389 | 			this->label58->Name = L"label58";
 | 
        
           |  |  | 390 | 			this->label58->Size = System::Drawing::Size(174, 29);
 | 
        
           |  |  | 391 | 			this->label58->TabIndex = 2;
 | 
        
           |  |  | 392 | 			this->label58->Text = L"Secondary Body";
 | 
        
           |  |  | 393 | 			this->label58->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 394 | 			// 
 | 
        
           |  |  | 395 | 			// label57
 | 
        
           |  |  | 396 | 			// 
 | 
        
           |  |  | 397 | 			this->label57->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 398 | 			this->label57->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 399 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 400 | 			this->label57->Location = System::Drawing::Point(3, 0);
 | 
        
           |  |  | 401 | 			this->label57->Name = L"label57";
 | 
        
           |  |  | 402 | 			this->label57->Size = System::Drawing::Size(174, 28);
 | 
        
           |  |  | 403 | 			this->label57->TabIndex = 1;
 | 
        
           |  |  | 404 | 			this->label57->Text = L"Primary Body";
 | 
        
           |  |  | 405 | 			this->label57->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 406 | 			// 
 | 
        
           |  |  | 407 | 			// button14
 | 
        
           |  |  | 408 | 			// 
 | 
        
           |  |  | 409 | 			this->button14->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 410 | 			this->button14->Location = System::Drawing::Point(322, 3);
 | 
        
           |  |  | 411 | 			this->button14->Name = L"button14";
 | 
        
           |  |  | 412 | 			this->tableLayoutPanel9->SetRowSpan(this->button14, 2);
 | 
        
           |  |  | 413 | 			this->button14->Size = System::Drawing::Size(74, 51);
 | 
        
           |  |  | 414 | 			this->button14->TabIndex = 3;
 | 
        
           |  |  | 415 | 			this->button14->Text = L"Update";
 | 
        
           |  |  | 416 | 			this->button14->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 417 | 			this->button14->Click += gcnew System::EventHandler(this, &CustomiseGuns::button14_Click);
 | 
        
           |  |  | 418 | 			// 
 | 
        
           |  |  | 419 | 			// TextManualPrimary
 | 
        
           |  |  | 420 | 			// 
 | 
        
           |  |  | 421 | 			this->TextManualPrimary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 422 | 			this->TextManualPrimary->Location = System::Drawing::Point(203, 3);
 | 
        
           |  |  | 423 | 			this->TextManualPrimary->Name = L"TextManualPrimary";
 | 
        
           |  |  | 424 | 			this->TextManualPrimary->Size = System::Drawing::Size(53, 20);
 | 
        
           |  |  | 425 | 			this->TextManualPrimary->TabIndex = 4;
 | 
        
           |  |  | 426 | 			// 
 | 
        
           |  |  | 427 | 			// TextManualSecondary
 | 
        
           |  |  | 428 | 			// 
 | 
        
           |  |  | 429 | 			this->TextManualSecondary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 430 | 			this->TextManualSecondary->Location = System::Drawing::Point(203, 31);
 | 
        
           |  |  | 431 | 			this->TextManualSecondary->Name = L"TextManualSecondary";
 | 
        
           |  |  | 432 | 			this->TextManualSecondary->Size = System::Drawing::Size(53, 20);
 | 
        
           |  |  | 433 | 			this->TextManualSecondary->TabIndex = 5;
 | 
        
           |  |  | 434 | 			// 
 | 
        
           |  |  | 435 | 			// NumManualPrimary
 | 
        
           |  |  | 436 | 			// 
 | 
        
           |  |  | 437 | 			this->NumManualPrimary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 438 | 			this->NumManualPrimary->Location = System::Drawing::Point(262, 3);
 | 
        
           |  |  | 439 | 			this->NumManualPrimary->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
 | 
        
           |  |  | 440 | 			this->NumManualPrimary->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, System::Int32::MinValue});
 | 
        
           |  |  | 441 | 			this->NumManualPrimary->Name = L"NumManualPrimary";
 | 
        
           |  |  | 442 | 			this->NumManualPrimary->Size = System::Drawing::Size(54, 20);
 | 
        
           |  |  | 443 | 			this->NumManualPrimary->TabIndex = 6;
 | 
        
           |  |  | 444 | 			// 
 | 
        
           |  |  | 445 | 			// NumManualSecondary
 | 
        
           |  |  | 446 | 			// 
 | 
        
           |  |  | 447 | 			this->NumManualSecondary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 448 | 			this->NumManualSecondary->Location = System::Drawing::Point(262, 31);
 | 
        
           |  |  | 449 | 			this->NumManualSecondary->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
 | 
        
           |  |  | 450 | 			this->NumManualSecondary->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, System::Int32::MinValue});
 | 
        
           |  |  | 451 | 			this->NumManualSecondary->Name = L"NumManualSecondary";
 | 
        
           |  |  | 452 | 			this->NumManualSecondary->Size = System::Drawing::Size(54, 20);
 | 
        
           |  |  | 453 | 			this->NumManualSecondary->TabIndex = 7;
 | 
        
           |  |  | 454 | 			// 
 | 
        
           |  |  | 455 | 			// CheckManualPrimary
 | 
        
           |  |  | 456 | 			// 
 | 
        
           |  |  | 457 | 			this->CheckManualPrimary->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 458 | 			this->CheckManualPrimary->Location = System::Drawing::Point(183, 3);
 | 
        
           |  |  | 459 | 			this->CheckManualPrimary->Name = L"CheckManualPrimary";
 | 
        
           |  |  | 460 | 			this->CheckManualPrimary->Size = System::Drawing::Size(14, 22);
 | 
        
           |  |  | 461 | 			this->CheckManualPrimary->TabIndex = 8;
 | 
        
           |  |  | 462 | 			this->CheckManualPrimary->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 463 | 			this->CheckManualPrimary->CheckedChanged += gcnew System::EventHandler(this, &CustomiseGuns::CheckManualPrimary_CheckedChanged);
 | 
        
           |  |  | 464 | 			// 
 | 
        
           |  |  | 465 | 			// ListTurrets
 | 
        
           |  |  | 466 | 			// 
 | 
        
           |  |  | 467 | 			this->ListTurrets->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(5) {this->columnHeader9, 
 | 
        
           |  |  | 468 | 				this->columnHeader10, this->columnHeader11, this->columnHeader12, this->columnHeader13});
 | 
        
           |  |  | 469 | 			this->ListTurrets->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 470 | 			this->ListTurrets->FullRowSelect = true;
 | 
        
           |  |  | 471 | 			this->ListTurrets->HideSelection = false;
 | 
        
           |  |  | 472 | 			this->ListTurrets->Location = System::Drawing::Point(0, 0);
 | 
        
           |  |  | 473 | 			this->ListTurrets->MultiSelect = false;
 | 
        
           |  |  | 474 | 			this->ListTurrets->Name = L"ListTurrets";
 | 
        
           |  |  | 475 | 			this->ListTurrets->Size = System::Drawing::Size(427, 147);
 | 
        
           |  |  | 476 | 			this->ListTurrets->TabIndex = 0;
 | 
        
           |  |  | 477 | 			this->ListTurrets->UseCompatibleStateImageBehavior = false;
 | 
        
           |  |  | 478 | 			this->ListTurrets->View = System::Windows::Forms::View::Details;
 | 
        
           |  |  | 479 | 			this->ListTurrets->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseGuns::ListTurrets_SelectedIndexChanged);
 | 
        
           |  |  | 480 | 			// 
 | 
        
           |  |  | 481 | 			// columnHeader9
 | 
        
           |  |  | 482 | 			// 
 | 
        
           |  |  | 483 | 			this->columnHeader9->Text = L"#";
 | 
        
           |  |  | 484 | 			this->columnHeader9->Width = 30;
 | 
        
           |  |  | 485 | 			// 
 | 
        
           |  |  | 486 | 			// columnHeader10
 | 
        
           |  |  | 487 | 			// 
 | 
        
           |  |  | 488 | 			this->columnHeader10->Text = L"Pos";
 | 
        
           |  |  | 489 | 			// 
 | 
        
           |  |  | 490 | 			// columnHeader11
 | 
        
           |  |  | 491 | 			// 
 | 
        
           |  |  | 492 | 			this->columnHeader11->Text = L"Guns";
 | 
        
           |  |  | 493 | 			// 
 | 
        
           |  |  | 494 | 			// columnHeader12
 | 
        
           |  |  | 495 | 			// 
 | 
        
           |  |  | 496 | 			this->columnHeader12->Text = L"Entries";
 | 
        
           |  |  | 497 | 			// 
 | 
        
           |  |  | 498 | 			// columnHeader13
 | 
        
           |  |  | 499 | 			// 
 | 
        
           |  |  | 500 | 			this->columnHeader13->Text = L"Position";
 | 
        
           |  |  | 501 | 			// 
 | 
        
           |  |  | 502 | 			// CustomiseGuns
 | 
        
           |  |  | 503 | 			// 
 | 
        
           |  |  | 504 | 			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
 | 
        
           |  |  | 505 | 			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
 | 
        
           |  |  | 506 | 			this->Controls->Add(this->ListGuns);
 | 
        
           |  |  | 507 | 			this->Controls->Add(this->tabControl2);
 | 
        
           |  |  | 508 | 			this->Controls->Add(this->ListTurrets);
 | 
        
           |  |  | 509 | 			this->Name = L"CustomiseGuns";
 | 
        
           |  |  | 510 | 			this->Size = System::Drawing::Size(427, 533);
 | 
        
           |  |  | 511 | 			this->contextMenuStrip2->ResumeLayout(false);
 | 
        
           |  |  | 512 | 			this->tabControl2->ResumeLayout(false);
 | 
        
           |  |  | 513 | 			this->PageAuto->ResumeLayout(false);
 | 
        
           |  |  | 514 | 			this->tableLayoutPanel8->ResumeLayout(false);
 | 
        
           |  |  | 515 | 			this->tabPage9->ResumeLayout(false);
 | 
        
           |  |  | 516 | 			this->tableLayoutPanel9->ResumeLayout(false);
 | 
        
           |  |  | 517 | 			this->tableLayoutPanel9->PerformLayout();
 | 
        
           |  |  | 518 | 			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumManualPrimary))->EndInit();
 | 
        
           |  |  | 519 | 			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumManualSecondary))->EndInit();
 | 
        
           |  |  | 520 | 			this->ResumeLayout(false);
 | 
        
           |  |  | 521 |   | 
        
           |  |  | 522 | 		}
 | 
        
           |  |  | 523 | #pragma endregion
 | 
        
           |  |  | 524 | 	private: System::Void ListGuns_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 525 | 				this->tabControl2->Enabled = (this->ListGuns->SelectedItems->Count) ? true : false;
 | 
        
           |  |  | 526 | 				this->UpdateGunEntrys();
 | 
        
           |  |  | 527 | 			 }
 | 
        
           |  |  | 528 | private: System::Void ListTurrets_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 529 | 			 this->UpdateGunsList();
 | 
        
           |  |  | 530 | 			 if ( this->ListGuns->SelectedItems->Count )
 | 
        
           |  |  | 531 | 				 this->ListGuns->SelectedItems[0]->Selected = false;
 | 
        
           |  |  | 532 | 		 }
 | 
        
           |  |  | 533 | private: System::Void ComboAutoPrimary_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 534 | 			 this->ComboAutoSecondary->Enabled = (this->ComboAutoPrimary->SelectedIndex == 0) ? false : true;
 | 
        
           |  |  | 535 | 			 if ( m_bUpdatingGunLists ) return;
 | 
        
           |  |  | 536 |   | 
        
           |  |  | 537 | 			 if ( !this->ListTurrets->SelectedItems->Count || !this->ListGuns->SelectedItems->Count )
 | 
        
           |  |  | 538 | 				return;
 | 
        
           |  |  | 539 |   | 
        
           |  |  | 540 | 			 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 541 | 			 SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
 | 
        
           |  |  | 542 |   | 
        
           |  |  | 543 | 			 if ( this->ComboAutoPrimary->SelectedIndex == 0 )
 | 
        
           |  |  | 544 | 			 {
 | 
        
           |  |  | 545 | 				 w->iNode1 = 0;
 | 
        
           |  |  | 546 | 				 w->sModel1 = "0";
 | 
        
           |  |  | 547 | 			 }
 | 
        
           |  |  | 548 | 			 else
 | 
        
           |  |  | 549 | 			 {
 | 
        
           |  |  | 550 | 				 w->iNode1 = this->ComboAutoPrimary->SelectedIndex - 1;
 | 
        
           |  |  | 551 | 				 w->sModel1 = m_pModels->GetAt(w->iNode1)->str;
 | 
        
           |  |  | 552 | 			 }
 | 
        
           |  |  | 553 |   | 
        
           |  |  | 554 | 			 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 555 | 			 this->ChangeGunValues();
 | 
        
           |  |  | 556 | 		 }
 | 
        
           |  |  | 557 | private: System::Void ComboAutoSecondary_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 558 | 			 if ( m_bUpdatingGunLists ) return;
 | 
        
           |  |  | 559 | 			 if ( !this->ListTurrets->SelectedItems->Count || !this->ListGuns->SelectedItems->Count )
 | 
        
           |  |  | 560 | 				return;
 | 
        
           |  |  | 561 |   | 
        
           |  |  | 562 | 			 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 563 | 			 SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
 | 
        
           |  |  | 564 |   | 
        
           |  |  | 565 | 			 if ( this->ComboAutoSecondary->SelectedIndex == 0 )
 | 
        
           |  |  | 566 | 			 {
 | 
        
           |  |  | 567 | 				 w->iNode2 = -1;
 | 
        
           |  |  | 568 | 				 w->sModel2 = "";
 | 
        
           |  |  | 569 | 			 }
 | 
        
           |  |  | 570 | 			 else
 | 
        
           |  |  | 571 | 			 {
 | 
        
           |  |  | 572 | 				 w->iNode2 = this->ComboAutoSecondary->SelectedIndex - 1;
 | 
        
           |  |  | 573 | 				 w->sModel2 = m_pModels->GetAt(w->iNode2)->str;
 | 
        
           |  |  | 574 | 			 }
 | 
        
           |  |  | 575 |   | 
        
           |  |  | 576 | 			 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 577 | 			 this->ChangeGunValues();
 | 
        
           |  |  | 578 | 		 }
 | 
        
           |  |  | 579 | private: System::Void contextMenuStrip2_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
 | 
        
           |  |  | 580 | 			 Point ^mousePoint = this->ListGuns->PointToClient(this->contextMenuStrip2->MousePosition);
 | 
        
           |  |  | 581 | 			 ListViewItem ^item = this->ListGuns->GetItemAt(mousePoint->X, mousePoint->Y);
 | 
        
           |  |  | 582 |   | 
        
           |  |  | 583 | 			 this->removeGunToolStripMenuItem->Enabled = (item) ? true : false;
 | 
        
           |  |  | 584 | 			 this->clearAllToolStripMenuItem1->Enabled = (this->ListGuns->Items->Count) ? true : false;
 | 
        
           |  |  | 585 | 			 e->Cancel = false;
 | 
        
           |  |  | 586 | 		 }
 | 
        
           |  |  | 587 | private: System::Void addGunToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 588 | 			 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 589 | 			 SWeaponGroup *w = new SWeaponGroup;
 | 
        
           |  |  | 590 | 			 w->iNode1 = 0;
 | 
        
           |  |  | 591 | 			 w->sModel1 = "0";
 | 
        
           |  |  | 592 | 			 w->iNode2 = -1;
 | 
        
           |  |  | 593 | 			 g->lWeapons.push_back(w);
 | 
        
           |  |  | 594 |   | 
        
           |  |  | 595 | 			 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 596 | 			 this->ChangeGunValues();
 | 
        
           |  |  | 597 |   | 
        
           |  |  | 598 | 			 if ( this->ListGuns->Items->Count )
 | 
        
           |  |  | 599 | 				this->ListGuns->Items[this->ListGuns->Items->Count - 1]->Selected = true;
 | 
        
           |  |  | 600 | 		 }
 | 
        
           |  |  | 601 | private: System::Void removeGunToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 602 | 			 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 603 |  			 SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
 | 
        
           |  |  | 604 | 			 g->lWeapons.remove(w);
 | 
        
           |  |  | 605 |   | 
        
           |  |  | 606 | 			 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 607 | 			 this->ChangeGunValues();
 | 
        
           |  |  | 608 | 		 }
 | 
        
           |  |  | 609 | private: System::Void clearAllToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 610 | 			 if ( MessageBox::Show(this, "Are you sure you want to remove all the gun entries?", "Clear Entrys", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == Windows::Forms::DialogResult::Yes )
 | 
        
           |  |  | 611 | 			 {
 | 
        
           |  |  | 612 | 				 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 613 | 				 g->lWeapons.MemoryClear();
 | 
        
           |  |  | 614 | 				 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 615 | 				 this->ChangeGunValues();
 | 
        
           |  |  | 616 | 			 }
 | 
        
           |  |  | 617 | 		 }
 | 
        
           |  |  | 618 | private: System::Void button14_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 619 | 			 if ( !this->ListTurrets->SelectedItems->Count || !this->ListGuns->SelectedItems->Count )
 | 
        
           |  |  | 620 | 				return;
 | 
        
           |  |  | 621 | 			 SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
 | 
        
           |  |  | 622 | 			 SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
 | 
        
           |  |  | 623 |   | 
        
           |  |  | 624 | 			 if ( this->CheckManualPrimary->Checked )
 | 
        
           |  |  | 625 | 			 {
 | 
        
           |  |  | 626 | 				 w->iNode1 = Convert::ToInt32(this->NumManualPrimary->Value);
 | 
        
           |  |  | 627 | 				 w->sModel1 = CyStringFromSystemString(this->TextManualPrimary->Text);
 | 
        
           |  |  | 628 | 			 }
 | 
        
           |  |  | 629 | 			 else
 | 
        
           |  |  | 630 | 			 {
 | 
        
           |  |  | 631 | 				 w->iNode1 = 0;
 | 
        
           |  |  | 632 | 				 w->sModel1 = "0";
 | 
        
           |  |  | 633 | 			 }
 | 
        
           |  |  | 634 | 			 if ( this->CheckManualSecondary->Checked )
 | 
        
           |  |  | 635 | 			 {
 | 
        
           |  |  | 636 | 				 w->iNode2 = Convert::ToInt32(this->NumManualSecondary->Value);
 | 
        
           |  |  | 637 | 				 w->sModel2 = CyStringFromSystemString(this->TextManualSecondary->Text);
 | 
        
           |  |  | 638 | 			 }
 | 
        
           |  |  | 639 | 			 else
 | 
        
           |  |  | 640 | 			 {
 | 
        
           |  |  | 641 | 				 w->iNode2 = -1;
 | 
        
           |  |  | 642 | 				 w->sModel2 = "";
 | 
        
           |  |  | 643 | 			 }
 | 
        
           |  |  | 644 | 			 m_pShipData->UpdateGunEntries();
 | 
        
           |  |  | 645 | 			 this->ChangeGunValues();
 | 
        
           |  |  | 646 | 		 }
 | 
        
           |  |  | 647 | private: System::Void CheckManualPrimary_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 648 | 			 this->TextManualPrimary->Enabled = this->CheckManualPrimary->Checked;
 | 
        
           |  |  | 649 | 			 this->NumManualPrimary->Enabled = this->CheckManualPrimary->Checked;
 | 
        
           |  |  | 650 | 		 }
 | 
        
           |  |  | 651 | private: System::Void CheckManualSecondary_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 652 | 			 this->TextManualSecondary->Enabled = this->CheckManualSecondary->Checked;
 | 
        
           |  |  | 653 | 			 this->NumManualSecondary->Enabled = this->CheckManualSecondary->Checked;
 | 
        
           |  |  | 654 | 		 }
 | 
        
           |  |  | 655 | };
 | 
        
           |  |  | 656 | }
 |