Rev 94 | 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 CustomiseWeapons1
/// </summary>
public ref class CustomiseWeapons1 : public System::Windows::Forms::UserControl
{
public:
CustomiseWeapons1(Windows::Forms::Form ^parent, CShipData *shipData)
{
InitializeComponent();
m_pParent = parent;
m_pShipData = shipData;
m_bUpdateing = false;
this->Dock = System::Windows::Forms::DockStyle::Fill;
}
void UpdateDisplay();
void UpdateShields();
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~CustomiseWeapons1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::GroupBox^ groupBox6;
protected:
private: System::Windows::Forms::Panel^ panel23;
private: System::Windows::Forms::NumericUpDown^ NumHull;
private: System::Windows::Forms::Label^ label29;
private: System::Windows::Forms::Panel^ panel22;
private: System::Windows::Forms::NumericUpDown^ NumShieldMax;
private: System::Windows::Forms::Label^ label28;
private: System::Windows::Forms::Panel^ panel21;
private: System::Windows::Forms::ComboBox^ ComboShield;
private: System::Windows::Forms::Label^ label27;
private: System::Windows::Forms::GroupBox^ groupBox7;
private: System::Windows::Forms::Panel^ panel28;
private: System::Windows::Forms::NumericUpDown^ NumReaction;
private: System::Windows::Forms::Label^ label37;
private: System::Windows::Forms::Panel^ panel27;
private: System::Windows::Forms::NumericUpDown^ NumMissiles;
private: System::Windows::Forms::Label^ label36;
private: System::Windows::Forms::Panel^ panel26;
private: System::Windows::Forms::TextBox^ TextRecharge;
private: System::Windows::Forms::Label^ label34;
private: System::Windows::Forms::NumericUpDown^ NumRecharge;
private: System::Windows::Forms::Label^ label35;
private: System::Windows::Forms::Panel^ panel25;
private: System::Windows::Forms::Label^ label32;
private: System::Windows::Forms::NumericUpDown^ NumWeaponEnergy;
private: System::Windows::Forms::Label^ label33;
private: System::Windows::Forms::Panel^ panel24;
private: System::Windows::Forms::Label^ label31;
private: System::Windows::Forms::NumericUpDown^ NumReactor;
private: System::Windows::Forms::Label^ label30;
private:
CShipData *m_pShipData;
bool m_bUpdateing;
Windows::Forms::Form ^m_pParent;
/// <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->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
this->panel23 = (gcnew System::Windows::Forms::Panel());
this->NumHull = (gcnew System::Windows::Forms::NumericUpDown());
this->label29 = (gcnew System::Windows::Forms::Label());
this->panel22 = (gcnew System::Windows::Forms::Panel());
this->NumShieldMax = (gcnew System::Windows::Forms::NumericUpDown());
this->label28 = (gcnew System::Windows::Forms::Label());
this->panel21 = (gcnew System::Windows::Forms::Panel());
this->ComboShield = (gcnew System::Windows::Forms::ComboBox());
this->label27 = (gcnew System::Windows::Forms::Label());
this->groupBox7 = (gcnew System::Windows::Forms::GroupBox());
this->panel28 = (gcnew System::Windows::Forms::Panel());
this->NumReaction = (gcnew System::Windows::Forms::NumericUpDown());
this->label37 = (gcnew System::Windows::Forms::Label());
this->panel27 = (gcnew System::Windows::Forms::Panel());
this->NumMissiles = (gcnew System::Windows::Forms::NumericUpDown());
this->label36 = (gcnew System::Windows::Forms::Label());
this->panel26 = (gcnew System::Windows::Forms::Panel());
this->TextRecharge = (gcnew System::Windows::Forms::TextBox());
this->label34 = (gcnew System::Windows::Forms::Label());
this->NumRecharge = (gcnew System::Windows::Forms::NumericUpDown());
this->label35 = (gcnew System::Windows::Forms::Label());
this->panel25 = (gcnew System::Windows::Forms::Panel());
this->label32 = (gcnew System::Windows::Forms::Label());
this->NumWeaponEnergy = (gcnew System::Windows::Forms::NumericUpDown());
this->label33 = (gcnew System::Windows::Forms::Label());
this->panel24 = (gcnew System::Windows::Forms::Panel());
this->label31 = (gcnew System::Windows::Forms::Label());
this->NumReactor = (gcnew System::Windows::Forms::NumericUpDown());
this->label30 = (gcnew System::Windows::Forms::Label());
this->groupBox6->SuspendLayout();
this->panel23->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumHull))->BeginInit();
this->panel22->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumShieldMax))->BeginInit();
this->panel21->SuspendLayout();
this->groupBox7->SuspendLayout();
this->panel28->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumReaction))->BeginInit();
this->panel27->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumMissiles))->BeginInit();
this->panel26->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumRecharge))->BeginInit();
this->panel25->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumWeaponEnergy))->BeginInit();
this->panel24->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumReactor))->BeginInit();
this->SuspendLayout();
//
// groupBox6
//
this->groupBox6->Controls->Add(this->panel23);
this->groupBox6->Controls->Add(this->panel22);
this->groupBox6->Controls->Add(this->panel21);
this->groupBox6->Dock = System::Windows::Forms::DockStyle::Top;
this->groupBox6->Location = System::Drawing::Point(0, 0);
this->groupBox6->Name = L"groupBox6";
this->groupBox6->Size = System::Drawing::Size(439, 125);
this->groupBox6->TabIndex = 1;
this->groupBox6->TabStop = false;
this->groupBox6->Text = L"Shields";
//
// panel23
//
this->panel23->Controls->Add(this->NumHull);
this->panel23->Controls->Add(this->label29);
this->panel23->Dock = System::Windows::Forms::DockStyle::Top;
this->panel23->Location = System::Drawing::Point(3, 80);
this->panel23->Name = L"panel23";
this->panel23->Padding = System::Windows::Forms::Padding(5);
this->panel23->Size = System::Drawing::Size(433, 32);
this->panel23->TabIndex = 6;
//
// NumHull
//
this->NumHull->Dock = System::Windows::Forms::DockStyle::Left;
this->NumHull->Location = System::Drawing::Point(195, 5);
this->NumHull->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumHull->Name = L"NumHull";
this->NumHull->Size = System::Drawing::Size(118, 20);
this->NumHull->TabIndex = 1;
this->NumHull->ThousandsSeparator = true;
this->NumHull->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumHull_ValueChanged);
//
// label29
//
this->label29->Dock = System::Windows::Forms::DockStyle::Left;
this->label29->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->label29->Location = System::Drawing::Point(5, 5);
this->label29->Name = L"label29";
this->label29->Size = System::Drawing::Size(190, 22);
this->label29->TabIndex = 0;
this->label29->Text = L"Hull Stength";
this->label29->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel22
//
this->panel22->Controls->Add(this->NumShieldMax);
this->panel22->Controls->Add(this->label28);
this->panel22->Dock = System::Windows::Forms::DockStyle::Top;
this->panel22->Location = System::Drawing::Point(3, 48);
this->panel22->Name = L"panel22";
this->panel22->Padding = System::Windows::Forms::Padding(5);
this->panel22->Size = System::Drawing::Size(433, 32);
this->panel22->TabIndex = 5;
//
// NumShieldMax
//
this->NumShieldMax->Dock = System::Windows::Forms::DockStyle::Left;
this->NumShieldMax->Location = System::Drawing::Point(195, 5);
this->NumShieldMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
this->NumShieldMax->Name = L"NumShieldMax";
this->NumShieldMax->Size = System::Drawing::Size(118, 20);
this->NumShieldMax->TabIndex = 1;
this->NumShieldMax->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumShieldMax_ValueChanged);
//
// label28
//
this->label28->Dock = System::Windows::Forms::DockStyle::Left;
this->label28->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->label28->Location = System::Drawing::Point(5, 5);
this->label28->Name = L"label28";
this->label28->Size = System::Drawing::Size(190, 22);
this->label28->TabIndex = 0;
this->label28->Text = L"Maximum Shield Count";
this->label28->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel21
//
this->panel21->Controls->Add(this->ComboShield);
this->panel21->Controls->Add(this->label27);
this->panel21->Dock = System::Windows::Forms::DockStyle::Top;
this->panel21->Location = System::Drawing::Point(3, 16);
this->panel21->Name = L"panel21";
this->panel21->Padding = System::Windows::Forms::Padding(5);
this->panel21->Size = System::Drawing::Size(433, 32);
this->panel21->TabIndex = 2;
//
// ComboShield
//
this->ComboShield->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboShield->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboShield->FormattingEnabled = true;
this->ComboShield->Location = System::Drawing::Point(195, 5);
this->ComboShield->Name = L"ComboShield";
this->ComboShield->Size = System::Drawing::Size(233, 21);
this->ComboShield->TabIndex = 1;
this->ComboShield->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::ComboShield_SelectedIndexChanged);
//
// label27
//
this->label27->Dock = System::Windows::Forms::DockStyle::Left;
this->label27->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->label27->Location = System::Drawing::Point(5, 5);
this->label27->Name = L"label27";
this->label27->Size = System::Drawing::Size(190, 22);
this->label27->TabIndex = 0;
this->label27->Text = L"Shield Type";
this->label27->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// groupBox7
//
this->groupBox7->Controls->Add(this->panel28);
this->groupBox7->Controls->Add(this->panel27);
this->groupBox7->Controls->Add(this->panel26);
this->groupBox7->Controls->Add(this->panel25);
this->groupBox7->Controls->Add(this->panel24);
this->groupBox7->Dock = System::Windows::Forms::DockStyle::Top;
this->groupBox7->Location = System::Drawing::Point(0, 125);
this->groupBox7->Name = L"groupBox7";
this->groupBox7->Size = System::Drawing::Size(439, 185);
this->groupBox7->TabIndex = 2;
this->groupBox7->TabStop = false;
this->groupBox7->Text = L"Reactor Output";
//
// panel28
//
this->panel28->Controls->Add(this->NumReaction);
this->panel28->Controls->Add(this->label37);
this->panel28->Dock = System::Windows::Forms::DockStyle::Top;
this->panel28->Location = System::Drawing::Point(3, 144);
this->panel28->Name = L"panel28";
this->panel28->Padding = System::Windows::Forms::Padding(5);
this->panel28->Size = System::Drawing::Size(433, 32);
this->panel28->TabIndex = 11;
//
// NumReaction
//
this->NumReaction->Dock = System::Windows::Forms::DockStyle::Left;
this->NumReaction->Location = System::Drawing::Point(240, 5);
this->NumReaction->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumReaction->Name = L"NumReaction";
this->NumReaction->Size = System::Drawing::Size(118, 20);
this->NumReaction->TabIndex = 1;
this->NumReaction->ThousandsSeparator = true;
this->NumReaction->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumReaction_ValueChanged);
//
// label37
//
this->label37->Dock = System::Windows::Forms::DockStyle::Left;
this->label37->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->label37->Location = System::Drawing::Point(5, 5);
this->label37->Name = L"label37";
this->label37->Size = System::Drawing::Size(235, 22);
this->label37->TabIndex = 0;
this->label37->Text = L"Average Reaction Delay";
this->label37->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel27
//
this->panel27->Controls->Add(this->NumMissiles);
this->panel27->Controls->Add(this->label36);
this->panel27->Dock = System::Windows::Forms::DockStyle::Top;
this->panel27->Location = System::Drawing::Point(3, 112);
this->panel27->Name = L"panel27";
this->panel27->Padding = System::Windows::Forms::Padding(5);
this->panel27->Size = System::Drawing::Size(433, 32);
this->panel27->TabIndex = 10;
//
// NumMissiles
//
this->NumMissiles->Dock = System::Windows::Forms::DockStyle::Left;
this->NumMissiles->Location = System::Drawing::Point(240, 5);
this->NumMissiles->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
this->NumMissiles->Name = L"NumMissiles";
this->NumMissiles->Size = System::Drawing::Size(118, 20);
this->NumMissiles->TabIndex = 1;
this->NumMissiles->ThousandsSeparator = true;
this->NumMissiles->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumMissiles_ValueChanged);
//
// label36
//
this->label36->Dock = System::Windows::Forms::DockStyle::Left;
this->label36->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->label36->Location = System::Drawing::Point(5, 5);
this->label36->Name = L"label36";
this->label36->Size = System::Drawing::Size(235, 22);
this->label36->TabIndex = 0;
this->label36->Text = L"Number of Missiles (NPC)";
this->label36->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel26
//
this->panel26->Controls->Add(this->TextRecharge);
this->panel26->Controls->Add(this->label34);
this->panel26->Controls->Add(this->NumRecharge);
this->panel26->Controls->Add(this->label35);
this->panel26->Dock = System::Windows::Forms::DockStyle::Top;
this->panel26->Location = System::Drawing::Point(3, 80);
this->panel26->Name = L"panel26";
this->panel26->Padding = System::Windows::Forms::Padding(5);
this->panel26->Size = System::Drawing::Size(433, 32);
this->panel26->TabIndex = 9;
//
// TextRecharge
//
this->TextRecharge->Dock = System::Windows::Forms::DockStyle::Fill;
this->TextRecharge->Location = System::Drawing::Point(354, 5);
this->TextRecharge->Name = L"TextRecharge";
this->TextRecharge->Size = System::Drawing::Size(74, 20);
this->TextRecharge->TabIndex = 3;
this->TextRecharge->TextChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::TextRecharge_TextChanged);
//
// label34
//
this->label34->Dock = System::Windows::Forms::DockStyle::Left;
this->label34->Location = System::Drawing::Point(313, 5);
this->label34->Name = L"label34";
this->label34->Size = System::Drawing::Size(41, 22);
this->label34->TabIndex = 2;
this->label34->Text = L"Kw/s";
this->label34->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// NumRecharge
//
this->NumRecharge->DecimalPlaces = 3;
this->NumRecharge->Dock = System::Windows::Forms::DockStyle::Left;
this->NumRecharge->Location = System::Drawing::Point(195, 5);
this->NumRecharge->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumRecharge->Name = L"NumRecharge";
this->NumRecharge->Size = System::Drawing::Size(118, 20);
this->NumRecharge->TabIndex = 1;
this->NumRecharge->ThousandsSeparator = true;
this->NumRecharge->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumRecharge_ValueChanged);
//
// label35
//
this->label35->Dock = System::Windows::Forms::DockStyle::Left;
this->label35->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->label35->Location = System::Drawing::Point(5, 5);
this->label35->Name = L"label35";
this->label35->Size = System::Drawing::Size(190, 22);
this->label35->TabIndex = 0;
this->label35->Text = L"Recharge Rate";
this->label35->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel25
//
this->panel25->Controls->Add(this->label32);
this->panel25->Controls->Add(this->NumWeaponEnergy);
this->panel25->Controls->Add(this->label33);
this->panel25->Dock = System::Windows::Forms::DockStyle::Top;
this->panel25->Location = System::Drawing::Point(3, 48);
this->panel25->Name = L"panel25";
this->panel25->Padding = System::Windows::Forms::Padding(5);
this->panel25->Size = System::Drawing::Size(433, 32);
this->panel25->TabIndex = 8;
//
// label32
//
this->label32->Dock = System::Windows::Forms::DockStyle::Left;
this->label32->Location = System::Drawing::Point(313, 5);
this->label32->Name = L"label32";
this->label32->Size = System::Drawing::Size(41, 22);
this->label32->TabIndex = 2;
this->label32->Text = L"Kw";
this->label32->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// NumWeaponEnergy
//
this->NumWeaponEnergy->Dock = System::Windows::Forms::DockStyle::Left;
this->NumWeaponEnergy->Location = System::Drawing::Point(195, 5);
this->NumWeaponEnergy->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumWeaponEnergy->Name = L"NumWeaponEnergy";
this->NumWeaponEnergy->Size = System::Drawing::Size(118, 20);
this->NumWeaponEnergy->TabIndex = 1;
this->NumWeaponEnergy->ThousandsSeparator = true;
this->NumWeaponEnergy->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumWeaponEnergy_ValueChanged);
//
// label33
//
this->label33->Dock = System::Windows::Forms::DockStyle::Left;
this->label33->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->label33->Location = System::Drawing::Point(5, 5);
this->label33->Name = L"label33";
this->label33->Size = System::Drawing::Size(190, 22);
this->label33->TabIndex = 0;
this->label33->Text = L"Weapons Energy";
this->label33->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel24
//
this->panel24->Controls->Add(this->label31);
this->panel24->Controls->Add(this->NumReactor);
this->panel24->Controls->Add(this->label30);
this->panel24->Dock = System::Windows::Forms::DockStyle::Top;
this->panel24->Location = System::Drawing::Point(3, 16);
this->panel24->Name = L"panel24";
this->panel24->Padding = System::Windows::Forms::Padding(5);
this->panel24->Size = System::Drawing::Size(433, 32);
this->panel24->TabIndex = 7;
//
// label31
//
this->label31->Dock = System::Windows::Forms::DockStyle::Left;
this->label31->Location = System::Drawing::Point(313, 5);
this->label31->Name = L"label31";
this->label31->Size = System::Drawing::Size(41, 22);
this->label31->TabIndex = 2;
this->label31->Text = L"MW";
this->label31->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// NumReactor
//
this->NumReactor->Dock = System::Windows::Forms::DockStyle::Left;
this->NumReactor->Location = System::Drawing::Point(195, 5);
this->NumReactor->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumReactor->Name = L"NumReactor";
this->NumReactor->Size = System::Drawing::Size(118, 20);
this->NumReactor->TabIndex = 1;
this->NumReactor->ThousandsSeparator = true;
this->NumReactor->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumReactor_ValueChanged);
//
// label30
//
this->label30->Dock = System::Windows::Forms::DockStyle::Left;
this->label30->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->label30->Location = System::Drawing::Point(5, 5);
this->label30->Name = L"label30";
this->label30->Size = System::Drawing::Size(190, 22);
this->label30->TabIndex = 0;
this->label30->Text = L"Reactor Output";
this->label30->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// CustomiseWeapons1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->Controls->Add(this->groupBox7);
this->Controls->Add(this->groupBox6);
this->Name = L"CustomiseWeapons1";
this->Size = System::Drawing::Size(439, 452);
this->groupBox6->ResumeLayout(false);
this->panel23->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumHull))->EndInit();
this->panel22->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumShieldMax))->EndInit();
this->panel21->ResumeLayout(false);
this->groupBox7->ResumeLayout(false);
this->panel28->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumReaction))->EndInit();
this->panel27->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumMissiles))->EndInit();
this->panel26->ResumeLayout(false);
this->panel26->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumRecharge))->EndInit();
this->panel25->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumWeaponEnergy))->EndInit();
this->panel24->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumReactor))->EndInit();
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void ComboShield_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
m_pShipData->iShieldType = this->ComboShield->SelectedIndex;
}
private: System::Void NumShieldMax_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
m_pShipData->iMaxShields = Convert::ToInt32(this->NumShieldMax->Value);
}
private: System::Void NumHull_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bUpdateing )
m_pShipData->iHull = Convert::ToInt32(this->NumHull->Value);
}
private: System::Void NumReactor_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bUpdateing )
m_pShipData->iPower = Convert::ToInt32(this->NumReactor->Value);
}
private: System::Void NumWeaponEnergy_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bUpdateing )
m_pShipData->iLaserEnergy = Convert::ToInt32(this->NumWeaponEnergy->Value);
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
}
private: System::Void TextRecharge_TextChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !this->TextRecharge->Text || !this->TextRecharge->Text->Length )
return;
if ( !_WS(this->TextRecharge->Text).isNumber() )
return;
if ( !m_bUpdateing )
m_pShipData->fLaserRecharge = (float)Convert::ToDouble(this->TextRecharge->Text);
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
}
private: System::Void NumRecharge_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
this->TextRecharge->Text = Convert::ToString(Convert::ToDouble(this->NumRecharge->Value) / Convert::ToDouble(this->NumWeaponEnergy->Value));
}
private: System::Void NumMissiles_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bUpdateing )
m_pShipData->iMissileCount = Convert::ToInt32(this->NumMissiles->Value);
}
private: System::Void NumReaction_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bUpdateing )
m_pShipData->iReactionDelay = Convert::ToInt32(this->NumReaction->Value);
}
};
}