Subversion Repositories spk

Rev

Rev 191 | 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;


namespace Creator {

        /// <summary>
        /// Summary for CustomisePerformance
        /// </summary>
        public ref class CustomisePerformance : public System::Windows::Forms::UserControl
        {
        public:
                CustomisePerformance(CShipData *shipData)
                {
                        InitializeComponent();

                        m_pShipData = shipData;
                        m_bUpdateing = false;
                        m_bChangeSpeed = false;

                        this->Dock = System::Windows::Forms::DockStyle::Fill;
                }

                void UpdateDisplay()
                {
                        m_bUpdateing = true;
                        this->NumSpeedMin->Value = m_pShipData->iSpeed;
                        this->NumSpeedExt->Value = m_pShipData->iSpeedExtension;
                        this->NumSpeedAccel->Value = m_pShipData->iAccel;
                        this->NumRudder->Value = m_pShipData->iSteeringExtension;
                        this->NumYaw->Value = Convert::ToDecimal(m_pShipData->fRotX) * Decimal(60);
                        this->NumPitch->Value = Convert::ToDecimal(m_pShipData->fRotY) * Decimal(60);
                        this->NumRoll->Value = Convert::ToDecimal(m_pShipData->fRotZ) * Decimal(60);
                        this->NumRotAccel->Value = m_pShipData->iRotationAccel;
                        m_bUpdateing = false;
                }

        protected:
                /// <summary>
                /// Clean up any resources being used.
                /// </summary>
                ~CustomisePerformance()
                {
                        if (components)
                        {
                                delete components;
                        }
                }
        private: System::Windows::Forms::GroupBox^  groupBox5;
        protected: 
        private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel4;
        private: System::Windows::Forms::Panel^  panel20;
        private: System::Windows::Forms::Button^  button12;
        private: System::Windows::Forms::Button^  button13;
        private: System::Windows::Forms::Panel^  panel19;
        private: System::Windows::Forms::Button^  button10;
        private: System::Windows::Forms::Button^  button11;
        private: System::Windows::Forms::NumericUpDown^  NumRoll;
        private: System::Windows::Forms::Panel^  panel18;
        private: System::Windows::Forms::Button^  button8;
        private: System::Windows::Forms::Button^  button9;
        private: System::Windows::Forms::Panel^  panel17;
        private: System::Windows::Forms::Button^  button6;
        private: System::Windows::Forms::Button^  button7;
        private: System::Windows::Forms::NumericUpDown^  NumPitch;
        private: System::Windows::Forms::Panel^  panel16;
        private: System::Windows::Forms::Button^  button4;
        private: System::Windows::Forms::Button^  button5;
        private: System::Windows::Forms::Panel^  panel15;
        private: System::Windows::Forms::Button^  button3;
        private: System::Windows::Forms::Button^  button1;
        private: System::Windows::Forms::TextBox^  TextRoll;
        private: System::Windows::Forms::TextBox^  TextPitch;
        private: System::Windows::Forms::Label^  label26;
        private: System::Windows::Forms::Label^  label25;
        private: System::Windows::Forms::Label^  label24;
        private: System::Windows::Forms::TextBox^  TextYaw;
        private: System::Windows::Forms::NumericUpDown^  NumYaw;
        private: System::Windows::Forms::Panel^  panel14;
        private: System::Windows::Forms::NumericUpDown^  NumRudder;
        private: System::Windows::Forms::Label^  label23;
        private: System::Windows::Forms::Panel^  panel32;
        private: System::Windows::Forms::NumericUpDown^  NumRotAccel;
        private: System::Windows::Forms::Label^  label44;
        private: System::Windows::Forms::GroupBox^  groupBox4;
        private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel3;
        private: System::Windows::Forms::NumericUpDown^  NumSpeedMax;
        private: System::Windows::Forms::Label^  label22;
        private: System::Windows::Forms::Label^  label21;
        private: System::Windows::Forms::Label^  label20;
        private: System::Windows::Forms::NumericUpDown^  NumSpeedAccel;
        private: System::Windows::Forms::NumericUpDown^  NumSpeedExt;
        private: System::Windows::Forms::Panel^  panel13;
        private: System::Windows::Forms::TextBox^  TextSpeedAccel;
        private: System::Windows::Forms::Label^  label18;
        private: System::Windows::Forms::Panel^  panel12;
        private: System::Windows::Forms::TextBox^  TextSpeedMax;
        private: System::Windows::Forms::Label^  label17;
        private: System::Windows::Forms::Panel^  panel11;
        private: System::Windows::Forms::TextBox^  TextSpeedMin;
        private: System::Windows::Forms::Label^  label16;
        private: System::Windows::Forms::NumericUpDown^  NumSpeedMin;
        private: System::Windows::Forms::Label^  label19;

        private:
                bool                    m_bChangeSpeed;
                CShipData               *m_pShipData;
                bool                     m_bUpdateing;
                /// <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)
                {
                        this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
                        this->tableLayoutPanel4 = (gcnew System::Windows::Forms::TableLayoutPanel());
                        this->panel20 = (gcnew System::Windows::Forms::Panel());
                        this->button12 = (gcnew System::Windows::Forms::Button());
                        this->button13 = (gcnew System::Windows::Forms::Button());
                        this->panel19 = (gcnew System::Windows::Forms::Panel());
                        this->button10 = (gcnew System::Windows::Forms::Button());
                        this->button11 = (gcnew System::Windows::Forms::Button());
                        this->NumRoll = (gcnew System::Windows::Forms::NumericUpDown());
                        this->panel18 = (gcnew System::Windows::Forms::Panel());
                        this->button8 = (gcnew System::Windows::Forms::Button());
                        this->button9 = (gcnew System::Windows::Forms::Button());
                        this->panel17 = (gcnew System::Windows::Forms::Panel());
                        this->button6 = (gcnew System::Windows::Forms::Button());
                        this->button7 = (gcnew System::Windows::Forms::Button());
                        this->NumPitch = (gcnew System::Windows::Forms::NumericUpDown());
                        this->panel16 = (gcnew System::Windows::Forms::Panel());
                        this->button4 = (gcnew System::Windows::Forms::Button());
                        this->button5 = (gcnew System::Windows::Forms::Button());
                        this->panel15 = (gcnew System::Windows::Forms::Panel());
                        this->button3 = (gcnew System::Windows::Forms::Button());
                        this->button1 = (gcnew System::Windows::Forms::Button());
                        this->TextRoll = (gcnew System::Windows::Forms::TextBox());
                        this->TextPitch = (gcnew System::Windows::Forms::TextBox());
                        this->label26 = (gcnew System::Windows::Forms::Label());
                        this->label25 = (gcnew System::Windows::Forms::Label());
                        this->label24 = (gcnew System::Windows::Forms::Label());
                        this->TextYaw = (gcnew System::Windows::Forms::TextBox());
                        this->NumYaw = (gcnew System::Windows::Forms::NumericUpDown());
                        this->panel14 = (gcnew System::Windows::Forms::Panel());
                        this->NumRudder = (gcnew System::Windows::Forms::NumericUpDown());
                        this->label23 = (gcnew System::Windows::Forms::Label());
                        this->panel32 = (gcnew System::Windows::Forms::Panel());
                        this->NumRotAccel = (gcnew System::Windows::Forms::NumericUpDown());
                        this->label44 = (gcnew System::Windows::Forms::Label());
                        this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
                        this->tableLayoutPanel3 = (gcnew System::Windows::Forms::TableLayoutPanel());
                        this->NumSpeedMax = (gcnew System::Windows::Forms::NumericUpDown());
                        this->label22 = (gcnew System::Windows::Forms::Label());
                        this->label21 = (gcnew System::Windows::Forms::Label());
                        this->label20 = (gcnew System::Windows::Forms::Label());
                        this->NumSpeedAccel = (gcnew System::Windows::Forms::NumericUpDown());
                        this->NumSpeedExt = (gcnew System::Windows::Forms::NumericUpDown());
                        this->panel13 = (gcnew System::Windows::Forms::Panel());
                        this->TextSpeedAccel = (gcnew System::Windows::Forms::TextBox());
                        this->label18 = (gcnew System::Windows::Forms::Label());
                        this->panel12 = (gcnew System::Windows::Forms::Panel());
                        this->TextSpeedMax = (gcnew System::Windows::Forms::TextBox());
                        this->label17 = (gcnew System::Windows::Forms::Label());
                        this->panel11 = (gcnew System::Windows::Forms::Panel());
                        this->TextSpeedMin = (gcnew System::Windows::Forms::TextBox());
                        this->label16 = (gcnew System::Windows::Forms::Label());
                        this->NumSpeedMin = (gcnew System::Windows::Forms::NumericUpDown());
                        this->label19 = (gcnew System::Windows::Forms::Label());
                        this->groupBox5->SuspendLayout();
                        this->tableLayoutPanel4->SuspendLayout();
                        this->panel20->SuspendLayout();
                        this->panel19->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRoll))->BeginInit();
                        this->panel18->SuspendLayout();
                        this->panel17->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPitch))->BeginInit();
                        this->panel16->SuspendLayout();
                        this->panel15->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumYaw))->BeginInit();
                        this->panel14->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRudder))->BeginInit();
                        this->panel32->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRotAccel))->BeginInit();
                        this->groupBox4->SuspendLayout();
                        this->tableLayoutPanel3->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedMax))->BeginInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedAccel))->BeginInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedExt))->BeginInit();
                        this->panel13->SuspendLayout();
                        this->panel12->SuspendLayout();
                        this->panel11->SuspendLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedMin))->BeginInit();
                        this->SuspendLayout();
                        // 
                        // groupBox5
                        // 
                        this->groupBox5->Controls->Add(this->tableLayoutPanel4);
                        this->groupBox5->Controls->Add(this->panel14);
                        this->groupBox5->Controls->Add(this->panel32);
                        this->groupBox5->Dock = System::Windows::Forms::DockStyle::Top;
                        this->groupBox5->Location = System::Drawing::Point(0, 154);
                        this->groupBox5->Name = L"groupBox5";
                        this->groupBox5->Size = System::Drawing::Size(549, 210);
                        this->groupBox5->TabIndex = 3;
                        this->groupBox5->TabStop = false;
                        this->groupBox5->Text = L"Ship Handling";
                        // 
                        // tableLayoutPanel4
                        // 
                        this->tableLayoutPanel4->ColumnCount = 3;
                        this->tableLayoutPanel4->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33333F)));
                        this->tableLayoutPanel4->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33333F)));
                        this->tableLayoutPanel4->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33333F)));
                        this->tableLayoutPanel4->Controls->Add(this->panel20, 2, 5);
                        this->tableLayoutPanel4->Controls->Add(this->panel19, 2, 4);
                        this->tableLayoutPanel4->Controls->Add(this->NumRoll, 1, 4);
                        this->tableLayoutPanel4->Controls->Add(this->panel18, 2, 3);
                        this->tableLayoutPanel4->Controls->Add(this->panel17, 2, 2);
                        this->tableLayoutPanel4->Controls->Add(this->NumPitch, 1, 2);
                        this->tableLayoutPanel4->Controls->Add(this->panel16, 2, 1);
                        this->tableLayoutPanel4->Controls->Add(this->panel15, 2, 0);
                        this->tableLayoutPanel4->Controls->Add(this->TextRoll, 1, 5);
                        this->tableLayoutPanel4->Controls->Add(this->TextPitch, 1, 3);
                        this->tableLayoutPanel4->Controls->Add(this->label26, 0, 4);
                        this->tableLayoutPanel4->Controls->Add(this->label25, 0, 2);
                        this->tableLayoutPanel4->Controls->Add(this->label24, 0, 0);
                        this->tableLayoutPanel4->Controls->Add(this->TextYaw, 1, 1);
                        this->tableLayoutPanel4->Controls->Add(this->NumYaw, 1, 0);
                        this->tableLayoutPanel4->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->tableLayoutPanel4->Location = System::Drawing::Point(3, 16);
                        this->tableLayoutPanel4->Name = L"tableLayoutPanel4";
                        this->tableLayoutPanel4->RowCount = 6;
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 16.66667F)));
                        this->tableLayoutPanel4->Size = System::Drawing::Size(543, 128);
                        this->tableLayoutPanel4->TabIndex = 0;
                        // 
                        // panel20
                        // 
                        this->panel20->Controls->Add(this->button12);
                        this->panel20->Controls->Add(this->button13);
                        this->panel20->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel20->Location = System::Drawing::Point(363, 106);
                        this->panel20->Margin = System::Windows::Forms::Padding(1);
                        this->panel20->Name = L"panel20";
                        this->panel20->Size = System::Drawing::Size(179, 21);
                        this->panel20->TabIndex = 13;
                        // 
                        // button12
                        // 
                        this->button12->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button12->Location = System::Drawing::Point(59, 0);
                        this->button12->Name = L"button12";
                        this->button12->Size = System::Drawing::Size(59, 21);
                        this->button12->TabIndex = 1;
                        this->button12->Text = L"-10.0";
                        this->button12->UseVisualStyleBackColor = true;
                        this->button12->Click += gcnew System::EventHandler(this, &CustomisePerformance::button12_Click);
                        // 
                        // button13
                        // 
                        this->button13->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button13->Location = System::Drawing::Point(0, 0);
                        this->button13->Name = L"button13";
                        this->button13->Size = System::Drawing::Size(59, 21);
                        this->button13->TabIndex = 0;
                        this->button13->Text = L"-1.0";
                        this->button13->UseVisualStyleBackColor = true;
                        this->button13->Click += gcnew System::EventHandler(this, &CustomisePerformance::button13_Click);
                        // 
                        // panel19
                        // 
                        this->panel19->Controls->Add(this->button10);
                        this->panel19->Controls->Add(this->button11);
                        this->panel19->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel19->Location = System::Drawing::Point(363, 85);
                        this->panel19->Margin = System::Windows::Forms::Padding(1);
                        this->panel19->Name = L"panel19";
                        this->panel19->Size = System::Drawing::Size(179, 19);
                        this->panel19->TabIndex = 12;
                        // 
                        // button10
                        // 
                        this->button10->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button10->Location = System::Drawing::Point(59, 0);
                        this->button10->Name = L"button10";
                        this->button10->Size = System::Drawing::Size(59, 19);
                        this->button10->TabIndex = 1;
                        this->button10->Text = L"+10.0";
                        this->button10->UseVisualStyleBackColor = true;
                        this->button10->Click += gcnew System::EventHandler(this, &CustomisePerformance::button10_Click);
                        // 
                        // button11
                        // 
                        this->button11->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button11->Location = System::Drawing::Point(0, 0);
                        this->button11->Name = L"button11";
                        this->button11->Size = System::Drawing::Size(59, 19);
                        this->button11->TabIndex = 0;
                        this->button11->Text = L"+1.0";
                        this->button11->UseVisualStyleBackColor = true;
                        this->button11->Click += gcnew System::EventHandler(this, &CustomisePerformance::button11_Click);
                        // 
                        // NumRoll
                        // 
                        this->NumRoll->DecimalPlaces = 1;
                        this->NumRoll->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumRoll->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
                        this->NumRoll->Location = System::Drawing::Point(184, 87);
                        this->NumRoll->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {120, 0, 0, 0});
                        this->NumRoll->Name = L"NumRoll";
                        this->NumRoll->Size = System::Drawing::Size(175, 20);
                        this->NumRoll->TabIndex = 11;
                        this->NumRoll->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumRoll_ValueChanged);
                        // 
                        // panel18
                        // 
                        this->panel18->Controls->Add(this->button8);
                        this->panel18->Controls->Add(this->button9);
                        this->panel18->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel18->Location = System::Drawing::Point(363, 64);
                        this->panel18->Margin = System::Windows::Forms::Padding(1);
                        this->panel18->Name = L"panel18";
                        this->panel18->Size = System::Drawing::Size(179, 19);
                        this->panel18->TabIndex = 10;
                        // 
                        // button8
                        // 
                        this->button8->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button8->Location = System::Drawing::Point(59, 0);
                        this->button8->Name = L"button8";
                        this->button8->Size = System::Drawing::Size(59, 19);
                        this->button8->TabIndex = 1;
                        this->button8->Text = L"-10.0";
                        this->button8->UseVisualStyleBackColor = true;
                        this->button8->Click += gcnew System::EventHandler(this, &CustomisePerformance::button8_Click);
                        // 
                        // button9
                        // 
                        this->button9->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button9->Location = System::Drawing::Point(0, 0);
                        this->button9->Name = L"button9";
                        this->button9->Size = System::Drawing::Size(59, 19);
                        this->button9->TabIndex = 0;
                        this->button9->Text = L"-1.0";
                        this->button9->UseVisualStyleBackColor = true;
                        this->button9->Click += gcnew System::EventHandler(this, &CustomisePerformance::button9_Click);
                        // 
                        // panel17
                        // 
                        this->panel17->Controls->Add(this->button6);
                        this->panel17->Controls->Add(this->button7);
                        this->panel17->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel17->Location = System::Drawing::Point(363, 43);
                        this->panel17->Margin = System::Windows::Forms::Padding(1);
                        this->panel17->Name = L"panel17";
                        this->panel17->Size = System::Drawing::Size(179, 19);
                        this->panel17->TabIndex = 9;
                        // 
                        // button6
                        // 
                        this->button6->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button6->Location = System::Drawing::Point(59, 0);
                        this->button6->Name = L"button6";
                        this->button6->Size = System::Drawing::Size(59, 19);
                        this->button6->TabIndex = 1;
                        this->button6->Text = L"+10.0";
                        this->button6->UseVisualStyleBackColor = true;
                        this->button6->Click += gcnew System::EventHandler(this, &CustomisePerformance::button6_Click);
                        // 
                        // button7
                        // 
                        this->button7->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button7->Location = System::Drawing::Point(0, 0);
                        this->button7->Name = L"button7";
                        this->button7->Size = System::Drawing::Size(59, 19);
                        this->button7->TabIndex = 0;
                        this->button7->Text = L"+1.0";
                        this->button7->UseVisualStyleBackColor = true;
                        this->button7->Click += gcnew System::EventHandler(this, &CustomisePerformance::button7_Click);
                        // 
                        // NumPitch
                        // 
                        this->NumPitch->DecimalPlaces = 1;
                        this->NumPitch->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumPitch->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
                        this->NumPitch->Location = System::Drawing::Point(184, 45);
                        this->NumPitch->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {120, 0, 0, 0});
                        this->NumPitch->Name = L"NumPitch";
                        this->NumPitch->Size = System::Drawing::Size(175, 20);
                        this->NumPitch->TabIndex = 8;
                        this->NumPitch->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumPitch_ValueChanged);
                        // 
                        // panel16
                        // 
                        this->panel16->Controls->Add(this->button4);
                        this->panel16->Controls->Add(this->button5);
                        this->panel16->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel16->Location = System::Drawing::Point(363, 22);
                        this->panel16->Margin = System::Windows::Forms::Padding(1);
                        this->panel16->Name = L"panel16";
                        this->panel16->Size = System::Drawing::Size(179, 19);
                        this->panel16->TabIndex = 7;
                        // 
                        // button4
                        // 
                        this->button4->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button4->Location = System::Drawing::Point(59, 0);
                        this->button4->Name = L"button4";
                        this->button4->Size = System::Drawing::Size(59, 19);
                        this->button4->TabIndex = 1;
                        this->button4->Text = L"-10.0";
                        this->button4->UseVisualStyleBackColor = true;
                        this->button4->Click += gcnew System::EventHandler(this, &CustomisePerformance::button4_Click);
                        // 
                        // button5
                        // 
                        this->button5->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button5->Location = System::Drawing::Point(0, 0);
                        this->button5->Name = L"button5";
                        this->button5->Size = System::Drawing::Size(59, 19);
                        this->button5->TabIndex = 0;
                        this->button5->Text = L"-1.0";
                        this->button5->UseVisualStyleBackColor = true;
                        this->button5->Click += gcnew System::EventHandler(this, &CustomisePerformance::button5_Click);
                        // 
                        // panel15
                        // 
                        this->panel15->Controls->Add(this->button3);
                        this->panel15->Controls->Add(this->button1);
                        this->panel15->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel15->Location = System::Drawing::Point(363, 1);
                        this->panel15->Margin = System::Windows::Forms::Padding(1);
                        this->panel15->Name = L"panel15";
                        this->panel15->Size = System::Drawing::Size(179, 19);
                        this->panel15->TabIndex = 2;
                        // 
                        // button3
                        // 
                        this->button3->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button3->Location = System::Drawing::Point(59, 0);
                        this->button3->Name = L"button3";
                        this->button3->Size = System::Drawing::Size(59, 19);
                        this->button3->TabIndex = 1;
                        this->button3->Text = L"+10.0";
                        this->button3->UseVisualStyleBackColor = true;
                        this->button3->Click += gcnew System::EventHandler(this, &CustomisePerformance::button3_Click);
                        // 
                        // button1
                        // 
                        this->button1->Dock = System::Windows::Forms::DockStyle::Left;
                        this->button1->Location = System::Drawing::Point(0, 0);
                        this->button1->Name = L"button1";
                        this->button1->Size = System::Drawing::Size(59, 19);
                        this->button1->TabIndex = 0;
                        this->button1->Text = L"+1.0";
                        this->button1->UseVisualStyleBackColor = true;
                        this->button1->Click += gcnew System::EventHandler(this, &CustomisePerformance::button1_Click);
                        // 
                        // TextRoll
                        // 
                        this->TextRoll->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextRoll->Location = System::Drawing::Point(184, 108);
                        this->TextRoll->Name = L"TextRoll";
                        this->TextRoll->ReadOnly = true;
                        this->TextRoll->Size = System::Drawing::Size(175, 20);
                        this->TextRoll->TabIndex = 5;
                        this->TextRoll->TextChanged += gcnew System::EventHandler(this, &CustomisePerformance::TextRoll_TextChanged);
                        // 
                        // TextPitch
                        // 
                        this->TextPitch->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextPitch->Location = System::Drawing::Point(184, 66);
                        this->TextPitch->Name = L"TextPitch";
                        this->TextPitch->ReadOnly = true;
                        this->TextPitch->Size = System::Drawing::Size(175, 20);
                        this->TextPitch->TabIndex = 4;
                        this->TextPitch->TextChanged += gcnew System::EventHandler(this, &CustomisePerformance::TextPitch_TextChanged);
                        // 
                        // label26
                        // 
                        this->label26->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label26->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label26->Location = System::Drawing::Point(3, 84);
                        this->label26->Name = L"label26";
                        this->tableLayoutPanel4->SetRowSpan(this->label26, 2);
                        this->label26->Size = System::Drawing::Size(175, 44);
                        this->label26->TabIndex = 2;
                        this->label26->Text = L"Roll";
                        this->label26->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // label25
                        // 
                        this->label25->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label25->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label25->Location = System::Drawing::Point(3, 42);
                        this->label25->Name = L"label25";
                        this->tableLayoutPanel4->SetRowSpan(this->label25, 2);
                        this->label25->Size = System::Drawing::Size(175, 42);
                        this->label25->TabIndex = 1;
                        this->label25->Text = L"Pitch";
                        this->label25->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // label24
                        // 
                        this->label24->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label24->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label24->Location = System::Drawing::Point(3, 0);
                        this->label24->Name = L"label24";
                        this->tableLayoutPanel4->SetRowSpan(this->label24, 2);
                        this->label24->Size = System::Drawing::Size(175, 42);
                        this->label24->TabIndex = 0;
                        this->label24->Text = L"Yaw";
                        this->label24->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // TextYaw
                        // 
                        this->TextYaw->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextYaw->Location = System::Drawing::Point(184, 24);
                        this->TextYaw->Name = L"TextYaw";
                        this->TextYaw->ReadOnly = true;
                        this->TextYaw->Size = System::Drawing::Size(175, 20);
                        this->TextYaw->TabIndex = 3;
                        this->TextYaw->TextChanged += gcnew System::EventHandler(this, &CustomisePerformance::TextYaw_TextChanged);
                        // 
                        // NumYaw
                        // 
                        this->NumYaw->DecimalPlaces = 1;
                        this->NumYaw->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumYaw->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
                        this->NumYaw->Location = System::Drawing::Point(184, 3);
                        this->NumYaw->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {120, 0, 0, 0});
                        this->NumYaw->Name = L"NumYaw";
                        this->NumYaw->Size = System::Drawing::Size(175, 20);
                        this->NumYaw->TabIndex = 6;
                        this->NumYaw->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumYaw_ValueChanged);
                        // 
                        // panel14
                        // 
                        this->panel14->Controls->Add(this->NumRudder);
                        this->panel14->Controls->Add(this->label23);
                        this->panel14->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel14->Location = System::Drawing::Point(3, 144);
                        this->panel14->Name = L"panel14";
                        this->panel14->Padding = System::Windows::Forms::Padding(5);
                        this->panel14->Size = System::Drawing::Size(543, 31);
                        this->panel14->TabIndex = 1;
                        // 
                        // NumRudder
                        // 
                        this->NumRudder->Dock = System::Windows::Forms::DockStyle::Left;
                        this->NumRudder->Location = System::Drawing::Point(180, 5);
                        this->NumRudder->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
                        this->NumRudder->Name = L"NumRudder";
                        this->NumRudder->Size = System::Drawing::Size(120, 20);
                        this->NumRudder->TabIndex = 1;
                        this->NumRudder->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumRudder_ValueChanged);
                        // 
                        // label23
                        // 
                        this->label23->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label23->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label23->Location = System::Drawing::Point(5, 5);
                        this->label23->Name = L"label23";
                        this->label23->Size = System::Drawing::Size(175, 21);
                        this->label23->TabIndex = 0;
                        this->label23->Text = L"Rudder Extensions";
                        this->label23->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // panel32
                        // 
                        this->panel32->Controls->Add(this->NumRotAccel);
                        this->panel32->Controls->Add(this->label44);
                        this->panel32->Dock = System::Windows::Forms::DockStyle::Bottom;
                        this->panel32->Location = System::Drawing::Point(3, 175);
                        this->panel32->Name = L"panel32";
                        this->panel32->Padding = System::Windows::Forms::Padding(5);
                        this->panel32->Size = System::Drawing::Size(543, 32);
                        this->panel32->TabIndex = 10;
                        // 
                        // NumRotAccel
                        // 
                        this->NumRotAccel->Dock = System::Windows::Forms::DockStyle::Left;
                        this->NumRotAccel->Location = System::Drawing::Point(180, 5);
                        this->NumRotAccel->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
                        this->NumRotAccel->Name = L"NumRotAccel";
                        this->NumRotAccel->Size = System::Drawing::Size(118, 20);
                        this->NumRotAccel->TabIndex = 1;
                        this->NumRotAccel->ThousandsSeparator = true;
                        this->NumRotAccel->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumRotAccel_ValueChanged);
                        // 
                        // label44
                        // 
                        this->label44->Dock = System::Windows::Forms::DockStyle::Left;
                        this->label44->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label44->Location = System::Drawing::Point(5, 5);
                        this->label44->Name = L"label44";
                        this->label44->Size = System::Drawing::Size(175, 22);
                        this->label44->TabIndex = 0;
                        this->label44->Text = L"Rotation Acceleration";
                        this->label44->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // groupBox4
                        // 
                        this->groupBox4->Controls->Add(this->tableLayoutPanel3);
                        this->groupBox4->Dock = System::Windows::Forms::DockStyle::Top;
                        this->groupBox4->Location = System::Drawing::Point(0, 0);
                        this->groupBox4->Name = L"groupBox4";
                        this->groupBox4->Size = System::Drawing::Size(549, 154);
                        this->groupBox4->TabIndex = 2;
                        this->groupBox4->TabStop = false;
                        this->groupBox4->Text = L"Speed";
                        // 
                        // tableLayoutPanel3
                        // 
                        this->tableLayoutPanel3->ColumnCount = 3;
                        this->tableLayoutPanel3->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33333F)));
                        this->tableLayoutPanel3->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33334F)));
                        this->tableLayoutPanel3->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
                                33.33334F)));
                        this->tableLayoutPanel3->Controls->Add(this->NumSpeedMax, 1, 2);
                        this->tableLayoutPanel3->Controls->Add(this->label22, 0, 2);
                        this->tableLayoutPanel3->Controls->Add(this->label21, 0, 3);
                        this->tableLayoutPanel3->Controls->Add(this->label20, 0, 1);
                        this->tableLayoutPanel3->Controls->Add(this->NumSpeedAccel, 1, 3);
                        this->tableLayoutPanel3->Controls->Add(this->NumSpeedExt, 1, 1);
                        this->tableLayoutPanel3->Controls->Add(this->panel13, 2, 3);
                        this->tableLayoutPanel3->Controls->Add(this->panel12, 2, 2);
                        this->tableLayoutPanel3->Controls->Add(this->panel11, 2, 0);
                        this->tableLayoutPanel3->Controls->Add(this->NumSpeedMin, 1, 0);
                        this->tableLayoutPanel3->Controls->Add(this->label19, 0, 0);
                        this->tableLayoutPanel3->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->tableLayoutPanel3->Location = System::Drawing::Point(3, 16);
                        this->tableLayoutPanel3->Name = L"tableLayoutPanel3";
                        this->tableLayoutPanel3->RowCount = 4;
                        this->tableLayoutPanel3->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 25)));
                        this->tableLayoutPanel3->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 25)));
                        this->tableLayoutPanel3->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 25)));
                        this->tableLayoutPanel3->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 25)));
                        this->tableLayoutPanel3->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Absolute, 20)));
                        this->tableLayoutPanel3->Size = System::Drawing::Size(543, 135);
                        this->tableLayoutPanel3->TabIndex = 0;
                        // 
                        // NumSpeedMax
                        // 
                        this->NumSpeedMax->AutoSize = true;
                        this->NumSpeedMax->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumSpeedMax->Enabled = false;
                        this->NumSpeedMax->Location = System::Drawing::Point(183, 69);
                        this->NumSpeedMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000000, 0, 0, 0});
                        this->NumSpeedMax->Name = L"NumSpeedMax";
                        this->NumSpeedMax->ReadOnly = true;
                        this->NumSpeedMax->Size = System::Drawing::Size(175, 20);
                        this->NumSpeedMax->TabIndex = 12;
                        this->NumSpeedMax->TabStop = false;
                        this->NumSpeedMax->ThousandsSeparator = true;
                        this->NumSpeedMax->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
                        this->NumSpeedMax->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumSpeedMax_ValueChanged);
                        // 
                        // label22
                        // 
                        this->label22->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label22->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label22->Location = System::Drawing::Point(3, 66);
                        this->label22->Name = L"label22";
                        this->label22->Size = System::Drawing::Size(174, 33);
                        this->label22->TabIndex = 11;
                        this->label22->Text = L"Maximum";
                        this->label22->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // label21
                        // 
                        this->label21->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label21->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label21->Location = System::Drawing::Point(3, 99);
                        this->label21->Name = L"label21";
                        this->label21->Size = System::Drawing::Size(174, 36);
                        this->label21->TabIndex = 10;
                        this->label21->Text = L"Acceleration";
                        this->label21->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // label20
                        // 
                        this->label20->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label20->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label20->Location = System::Drawing::Point(3, 33);
                        this->label20->Name = L"label20";
                        this->label20->Size = System::Drawing::Size(174, 33);
                        this->label20->TabIndex = 9;
                        this->label20->Text = L"Speed Extensions";
                        this->label20->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // NumSpeedAccel
                        // 
                        this->NumSpeedAccel->AutoSize = true;
                        this->NumSpeedAccel->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumSpeedAccel->Location = System::Drawing::Point(183, 102);
                        this->NumSpeedAccel->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000000, 0, 0, 0});
                        this->NumSpeedAccel->Name = L"NumSpeedAccel";
                        this->NumSpeedAccel->Size = System::Drawing::Size(175, 20);
                        this->NumSpeedAccel->TabIndex = 6;
                        this->NumSpeedAccel->ThousandsSeparator = true;
                        this->NumSpeedAccel->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
                        this->NumSpeedAccel->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumSpeedAccel_ValueChanged);
                        // 
                        // NumSpeedExt
                        // 
                        this->NumSpeedExt->AutoSize = true;
                        this->NumSpeedExt->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumSpeedExt->Location = System::Drawing::Point(183, 36);
                        this->NumSpeedExt->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000, 0, 0, 0});
                        this->NumSpeedExt->Name = L"NumSpeedExt";
                        this->NumSpeedExt->Size = System::Drawing::Size(175, 20);
                        this->NumSpeedExt->TabIndex = 5;
                        this->NumSpeedExt->ThousandsSeparator = true;
                        this->NumSpeedExt->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
                        this->NumSpeedExt->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumSpeedExt_ValueChanged);
                        // 
                        // panel13
                        // 
                        this->panel13->AutoSize = true;
                        this->panel13->Controls->Add(this->TextSpeedAccel);
                        this->panel13->Controls->Add(this->label18);
                        this->panel13->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel13->Location = System::Drawing::Point(364, 102);
                        this->panel13->Name = L"panel13";
                        this->panel13->Size = System::Drawing::Size(176, 30);
                        this->panel13->TabIndex = 3;
                        // 
                        // TextSpeedAccel
                        // 
                        this->TextSpeedAccel->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextSpeedAccel->Location = System::Drawing::Point(0, 0);
                        this->TextSpeedAccel->Name = L"TextSpeedAccel";
                        this->TextSpeedAccel->ReadOnly = true;
                        this->TextSpeedAccel->Size = System::Drawing::Size(151, 20);
                        this->TextSpeedAccel->TabIndex = 1;
                        // 
                        // label18
                        // 
                        this->label18->Dock = System::Windows::Forms::DockStyle::Right;
                        this->label18->Location = System::Drawing::Point(151, 0);
                        this->label18->Name = L"label18";
                        this->label18->Size = System::Drawing::Size(25, 30);
                        this->label18->TabIndex = 0;
                        this->label18->Text = L"m/s";
                        this->label18->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
                        // 
                        // panel12
                        // 
                        this->panel12->AutoSize = true;
                        this->panel12->Controls->Add(this->TextSpeedMax);
                        this->panel12->Controls->Add(this->label17);
                        this->panel12->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel12->Location = System::Drawing::Point(364, 69);
                        this->panel12->Name = L"panel12";
                        this->panel12->Size = System::Drawing::Size(176, 27);
                        this->panel12->TabIndex = 2;
                        // 
                        // TextSpeedMax
                        // 
                        this->TextSpeedMax->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextSpeedMax->Location = System::Drawing::Point(0, 0);
                        this->TextSpeedMax->Name = L"TextSpeedMax";
                        this->TextSpeedMax->ReadOnly = true;
                        this->TextSpeedMax->Size = System::Drawing::Size(151, 20);
                        this->TextSpeedMax->TabIndex = 1;
                        // 
                        // label17
                        // 
                        this->label17->Dock = System::Windows::Forms::DockStyle::Right;
                        this->label17->Location = System::Drawing::Point(151, 0);
                        this->label17->Name = L"label17";
                        this->label17->Size = System::Drawing::Size(25, 27);
                        this->label17->TabIndex = 0;
                        this->label17->Text = L"m/s";
                        this->label17->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
                        // 
                        // panel11
                        // 
                        this->panel11->AutoSize = true;
                        this->panel11->Controls->Add(this->TextSpeedMin);
                        this->panel11->Controls->Add(this->label16);
                        this->panel11->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->panel11->Location = System::Drawing::Point(364, 3);
                        this->panel11->Name = L"panel11";
                        this->panel11->Size = System::Drawing::Size(176, 27);
                        this->panel11->TabIndex = 1;
                        // 
                        // TextSpeedMin
                        // 
                        this->TextSpeedMin->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->TextSpeedMin->Location = System::Drawing::Point(0, 0);
                        this->TextSpeedMin->Name = L"TextSpeedMin";
                        this->TextSpeedMin->Size = System::Drawing::Size(151, 20);
                        this->TextSpeedMin->TabIndex = 1;
                        this->TextSpeedMin->TextChanged += gcnew System::EventHandler(this, &CustomisePerformance::TextSpeedMin_TextChanged);
                        // 
                        // label16
                        // 
                        this->label16->Dock = System::Windows::Forms::DockStyle::Right;
                        this->label16->Location = System::Drawing::Point(151, 0);
                        this->label16->Name = L"label16";
                        this->label16->Size = System::Drawing::Size(25, 27);
                        this->label16->TabIndex = 0;
                        this->label16->Text = L"m/s";
                        this->label16->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
                        // 
                        // NumSpeedMin
                        // 
                        this->NumSpeedMin->AutoSize = true;
                        this->NumSpeedMin->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->NumSpeedMin->Location = System::Drawing::Point(183, 3);
                        this->NumSpeedMin->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000000, 0, 0, 0});
                        this->NumSpeedMin->Name = L"NumSpeedMin";
                        this->NumSpeedMin->Size = System::Drawing::Size(175, 20);
                        this->NumSpeedMin->TabIndex = 4;
                        this->NumSpeedMin->ThousandsSeparator = true;
                        this->NumSpeedMin->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
                        this->NumSpeedMin->ValueChanged += gcnew System::EventHandler(this, &CustomisePerformance::NumSpeedMin_ValueChanged);
                        // 
                        // label19
                        // 
                        this->label19->Dock = System::Windows::Forms::DockStyle::Fill;
                        this->label19->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                                static_cast<System::Byte>(0)));
                        this->label19->Location = System::Drawing::Point(3, 0);
                        this->label19->Name = L"label19";
                        this->label19->Size = System::Drawing::Size(174, 33);
                        this->label19->TabIndex = 8;
                        this->label19->Text = L"Minimum";
                        this->label19->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
                        // 
                        // CustomisePerformance
                        // 
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                        this->Controls->Add(this->groupBox5);
                        this->Controls->Add(this->groupBox4);
                        this->Name = L"CustomisePerformance";
                        this->Size = System::Drawing::Size(549, 587);
                        this->groupBox5->ResumeLayout(false);
                        this->tableLayoutPanel4->ResumeLayout(false);
                        this->tableLayoutPanel4->PerformLayout();
                        this->panel20->ResumeLayout(false);
                        this->panel19->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRoll))->EndInit();
                        this->panel18->ResumeLayout(false);
                        this->panel17->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPitch))->EndInit();
                        this->panel16->ResumeLayout(false);
                        this->panel15->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumYaw))->EndInit();
                        this->panel14->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRudder))->EndInit();
                        this->panel32->ResumeLayout(false);
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRotAccel))->EndInit();
                        this->groupBox4->ResumeLayout(false);
                        this->tableLayoutPanel3->ResumeLayout(false);
                        this->tableLayoutPanel3->PerformLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedMax))->EndInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedAccel))->EndInit();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedExt))->EndInit();
                        this->panel13->ResumeLayout(false);
                        this->panel13->PerformLayout();
                        this->panel12->ResumeLayout(false);
                        this->panel12->PerformLayout();
                        this->panel11->ResumeLayout(false);
                        this->panel11->PerformLayout();
                        (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSpeedMin))->EndInit();
                        this->ResumeLayout(false);

                }
#pragma endregion
private: System::Void NumSpeedMin_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bChangeSpeed ) 
                                this->TextSpeedMin->Text = _US(Utils::WString::FromFloat((float)Convert::ToDouble(this->NumSpeedMin->Value) / 500.0f, 3));
                         this->NumSpeedMax->Value = Convert::ToInt32(this->NumSpeedMin->Value) + Convert::ToInt32((Convert::ToDouble(this->NumSpeedMin->Value) * 0.1f) * Convert::ToInt32(this->NumSpeedExt->Value));
                         if ( !m_bUpdateing )
                                 m_pShipData->iSpeed = Convert::ToInt32(this->NumSpeedMin->Value);
                 }
private: System::Void NumSpeedMax_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->TextSpeedMax->Text = _US(Utils::WString::FromFloat((float)Convert::ToDouble(this->NumSpeedMax->Value) / 500.0f, 3));
                 }
private: System::Void NumSpeedAccel_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->TextSpeedAccel->Text = _US(Utils::WString::FromFloat((float)Convert::ToDouble(this->NumSpeedAccel->Value) / 500.0f, 3));
                         if ( !m_bUpdateing )
                                m_pShipData->iAccel = Convert::ToInt32(this->NumSpeedAccel->Value);
                 }
private: System::Void NumSpeedExt_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         this->NumSpeedMax->Value = Convert::ToInt32(this->NumSpeedMin->Value) + Convert::ToInt32((Convert::ToDouble(this->NumSpeedMin->Value) * 0.1f) * Convert::ToInt32(this->NumSpeedExt->Value));
                         if ( !m_bUpdateing )
                                m_pShipData->iSpeedExtension = Convert::ToInt32(this->NumSpeedExt->Value);
                 }
private: System::Void NumRudder_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                                m_pShipData->iSteeringExtension = Convert::ToInt32(this->NumRudder->Value);
                 }
private: System::Void NumYaw_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( Convert::ToDouble(this->NumYaw->Value) <= 0.1f )
                                 this->TextYaw->Text = "0";
                         else
                                 this->TextYaw->Text = Convert::ToString(Convert::ToDouble(this->NumYaw->Value) / 60.0);
                 }
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumYaw->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumYaw->Value = 60;
                         else
                                 this->NumYaw->Value = dec;
                 }
private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumYaw->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumYaw->Value = 60;
                         else
                                 this->NumYaw->Value = dec;
                 }
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumYaw->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumYaw->Value = 0;
                         else
                                 this->NumYaw->Value = dec;
                 }
private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumYaw->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumYaw->Value = 0;
                         else
                                 this->NumYaw->Value = dec;
                 }
private: System::Void NumPitch_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( Convert::ToDouble(this->NumPitch->Value) <= 0.1f )
                                 this->TextPitch->Text = "0";
                         else
                                 this->TextPitch->Text = Convert::ToString(Convert::ToDouble(this->NumPitch->Value) / 60.0);
                 }
private: System::Void button7_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumPitch->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumPitch->Value = 60;
                         else
                                 this->NumPitch->Value = dec;
                 }
private: System::Void button6_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumPitch->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumPitch->Value = 60;
                         else
                                 this->NumPitch->Value = dec;
                 }
private: System::Void button9_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumPitch->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumPitch->Value = 0;
                         else
                                 this->NumPitch->Value = dec;
                 }
private: System::Void button8_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumPitch->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumPitch->Value = 0;
                         else
                                 this->NumPitch->Value = dec;
                 }
private: System::Void TextYaw_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                                m_pShipData->fRotX = (float)Convert::ToDouble(this->TextYaw->Text);
                 }
private: System::Void TextPitch_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                                m_pShipData->fRotY = (float)Convert::ToDouble(this->TextPitch->Text);
                 }
private: System::Void NumRoll_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( Convert::ToDouble(this->NumRoll->Value) <= 0.1f )
                                 this->TextRoll->Text = "0";
                         else
                                 this->TextRoll->Text = Convert::ToString(Convert::ToDouble(this->NumRoll->Value) / 60.0);
                 }
private: System::Void TextRoll_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                                m_pShipData->fRotZ = (float)Convert::ToDouble(this->TextRoll->Text);
                 }
private: System::Void button11_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumRoll->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumRoll->Value = 60;
                         else
                                 this->NumRoll->Value = dec;
                 }
private: System::Void button10_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Add(Convert::ToDecimal(this->NumRoll->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(60)) >= 0 )
                                this->NumRoll->Value = 60;
                         else
                                 this->NumRoll->Value = dec;
                 }
private: System::Void button13_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumRoll->Value), Decimal(1.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumRoll->Value = 0;
                         else
                                 this->NumRoll->Value = dec;
                 }
private: System::Void button12_Click(System::Object^  sender, System::EventArgs^  e) {
                         Decimal dec = Decimal::Subtract(Convert::ToDecimal(this->NumRoll->Value), Decimal(10.0));
                         if ( Decimal::Compare(dec, Decimal(0)) <= 0 )
                                this->NumRoll->Value = 0;
                         else
                                 this->NumRoll->Value = dec;
                 }
private: System::Void NumRotAccel_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                                m_pShipData->iRotationAccel = Convert::ToInt32(this->NumRotAccel->Value);
                 }
private: System::Void TextSpeedMin_TextChanged(System::Object^  sender, System::EventArgs^  e) {
                         if ( !m_bUpdateing )
                         {
                                 m_bChangeSpeed = true;
                                 if ( this->TextSpeedMin->Text->Length && _WS(this->TextSpeedMin->Text).isNumber() )
                                        this->NumSpeedMin->Value = Decimal::Multiply(Convert::ToDecimal(this->TextSpeedMin->Text), Decimal(500));
                                 m_bChangeSpeed = false;
                         }
                 }
};
}