Rev 65 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace Creator {
/// <summary>
/// Summary for CustomiseInfo
/// </summary>
public ref class CustomiseInfo : public System::Windows::Forms::UserControl
{
public:
CustomiseInfo(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 UpdateInfo();
void UpdateNotority();
int GetNotoAmount(int preset);
int GetNotoPage(int race);
String ^GetCargoClass(int i);
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~CustomiseInfo()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::GroupBox^ groupBox3;
protected:
private: System::Windows::Forms::Panel^ panel9;
private: System::Windows::Forms::NumericUpDown^ NumNoto;
private: System::Windows::Forms::Label^ label14;
private: System::Windows::Forms::Panel^ panel8;
private: System::Windows::Forms::ComboBox^ ComboNoto;
private: System::Windows::Forms::Label^ label13;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::TableLayoutPanel^ tableLayoutPanel2;
private: System::Windows::Forms::NumericUpDown^ TextPriceNPC;
private: System::Windows::Forms::NumericUpDown^ TextPricePlayer;
private: System::Windows::Forms::Label^ label12;
private: System::Windows::Forms::Label^ label10;
private: System::Windows::Forms::NumericUpDown^ NumPriceNPC;
private: System::Windows::Forms::NumericUpDown^ NumPricePlayer;
private: System::Windows::Forms::Label^ label11;
private: System::Windows::Forms::Label^ label9;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::Panel^ panel7;
private: System::Windows::Forms::ComboBox^ ComboCargo;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::TableLayoutPanel^ tableLayoutPanel1;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::NumericUpDown^ NumCargoMin;
private: System::Windows::Forms::NumericUpDown^ NumCargoMax;
private: System::Windows::Forms::Panel^ panel6;
private: System::Windows::Forms::NumericUpDown^ NumDock;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Panel^ panel4;
private: System::Windows::Forms::ComboBox^ ComboVariation;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Panel^ panel10;
private: System::Windows::Forms::ComboBox^ ComboSubType;
private: System::Windows::Forms::Label^ label15;
private: System::Windows::Forms::Panel^ panel5;
private: System::Windows::Forms::ComboBox^ ComboClass;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Panel^ panel3;
private: System::Windows::Forms::ComboBox^ ComboRace;
private: System::Windows::Forms::Label^ label2;
private:
Windows::Forms::Form ^m_pParent;
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->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
this->panel9 = (gcnew System::Windows::Forms::Panel());
this->NumNoto = (gcnew System::Windows::Forms::NumericUpDown());
this->label14 = (gcnew System::Windows::Forms::Label());
this->panel8 = (gcnew System::Windows::Forms::Panel());
this->ComboNoto = (gcnew System::Windows::Forms::ComboBox());
this->label13 = (gcnew System::Windows::Forms::Label());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->tableLayoutPanel2 = (gcnew System::Windows::Forms::TableLayoutPanel());
this->TextPriceNPC = (gcnew System::Windows::Forms::NumericUpDown());
this->TextPricePlayer = (gcnew System::Windows::Forms::NumericUpDown());
this->label12 = (gcnew System::Windows::Forms::Label());
this->label10 = (gcnew System::Windows::Forms::Label());
this->NumPriceNPC = (gcnew System::Windows::Forms::NumericUpDown());
this->NumPricePlayer = (gcnew System::Windows::Forms::NumericUpDown());
this->label11 = (gcnew System::Windows::Forms::Label());
this->label9 = (gcnew System::Windows::Forms::Label());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->panel7 = (gcnew System::Windows::Forms::Panel());
this->ComboCargo = (gcnew System::Windows::Forms::ComboBox());
this->label8 = (gcnew System::Windows::Forms::Label());
this->tableLayoutPanel1 = (gcnew System::Windows::Forms::TableLayoutPanel());
this->label7 = (gcnew System::Windows::Forms::Label());
this->label6 = (gcnew System::Windows::Forms::Label());
this->NumCargoMin = (gcnew System::Windows::Forms::NumericUpDown());
this->NumCargoMax = (gcnew System::Windows::Forms::NumericUpDown());
this->panel6 = (gcnew System::Windows::Forms::Panel());
this->NumDock = (gcnew System::Windows::Forms::NumericUpDown());
this->label5 = (gcnew System::Windows::Forms::Label());
this->panel4 = (gcnew System::Windows::Forms::Panel());
this->ComboVariation = (gcnew System::Windows::Forms::ComboBox());
this->label3 = (gcnew System::Windows::Forms::Label());
this->panel10 = (gcnew System::Windows::Forms::Panel());
this->ComboSubType = (gcnew System::Windows::Forms::ComboBox());
this->label15 = (gcnew System::Windows::Forms::Label());
this->panel5 = (gcnew System::Windows::Forms::Panel());
this->ComboClass = (gcnew System::Windows::Forms::ComboBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->panel3 = (gcnew System::Windows::Forms::Panel());
this->ComboRace = (gcnew System::Windows::Forms::ComboBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->groupBox3->SuspendLayout();
this->panel9->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumNoto))->BeginInit();
this->panel8->SuspendLayout();
this->groupBox2->SuspendLayout();
this->tableLayoutPanel2->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->TextPriceNPC))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->TextPricePlayer))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPriceNPC))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPricePlayer))->BeginInit();
this->groupBox1->SuspendLayout();
this->panel7->SuspendLayout();
this->tableLayoutPanel1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumCargoMin))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumCargoMax))->BeginInit();
this->panel6->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumDock))->BeginInit();
this->panel4->SuspendLayout();
this->panel10->SuspendLayout();
this->panel5->SuspendLayout();
this->panel3->SuspendLayout();
this->SuspendLayout();
//
// groupBox3
//
this->groupBox3->Controls->Add(this->panel9);
this->groupBox3->Controls->Add(this->panel8);
this->groupBox3->Dock = System::Windows::Forms::DockStyle::Top;
this->groupBox3->Location = System::Drawing::Point(0, 360);
this->groupBox3->Name = L"groupBox3";
this->groupBox3->Size = System::Drawing::Size(687, 88);
this->groupBox3->TabIndex = 7;
this->groupBox3->TabStop = false;
this->groupBox3->Text = L"Notority Required";
//
// panel9
//
this->panel9->Controls->Add(this->NumNoto);
this->panel9->Controls->Add(this->label14);
this->panel9->Dock = System::Windows::Forms::DockStyle::Top;
this->panel9->Location = System::Drawing::Point(3, 48);
this->panel9->Name = L"panel9";
this->panel9->Padding = System::Windows::Forms::Padding(5);
this->panel9->Size = System::Drawing::Size(681, 32);
this->panel9->TabIndex = 5;
//
// NumNoto
//
this->NumNoto->Dock = System::Windows::Forms::DockStyle::Left;
this->NumNoto->Location = System::Drawing::Point(155, 5);
this->NumNoto->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000000, 0, 0, 0});
this->NumNoto->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000000, 0, 0, System::Int32::MinValue});
this->NumNoto->Name = L"NumNoto";
this->NumNoto->Size = System::Drawing::Size(120, 20);
this->NumNoto->TabIndex = 1;
this->NumNoto->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumNoto_ValueChanged);
//
// label14
//
this->label14->Dock = System::Windows::Forms::DockStyle::Left;
this->label14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label14->Location = System::Drawing::Point(5, 5);
this->label14->Name = L"label14";
this->label14->Size = System::Drawing::Size(150, 22);
this->label14->TabIndex = 0;
this->label14->Text = L"Minimum";
this->label14->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel8
//
this->panel8->Controls->Add(this->ComboNoto);
this->panel8->Controls->Add(this->label13);
this->panel8->Dock = System::Windows::Forms::DockStyle::Top;
this->panel8->Location = System::Drawing::Point(3, 16);
this->panel8->Name = L"panel8";
this->panel8->Padding = System::Windows::Forms::Padding(5);
this->panel8->Size = System::Drawing::Size(681, 32);
this->panel8->TabIndex = 4;
//
// ComboNoto
//
this->ComboNoto->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboNoto->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboNoto->FormattingEnabled = true;
this->ComboNoto->Location = System::Drawing::Point(155, 5);
this->ComboNoto->Name = L"ComboNoto";
this->ComboNoto->Size = System::Drawing::Size(521, 21);
this->ComboNoto->TabIndex = 1;
this->ComboNoto->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboNoto_SelectedIndexChanged);
//
// label13
//
this->label13->Dock = System::Windows::Forms::DockStyle::Left;
this->label13->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->label13->Location = System::Drawing::Point(5, 5);
this->label13->Name = L"label13";
this->label13->Size = System::Drawing::Size(150, 22);
this->label13->TabIndex = 0;
this->label13->Text = L"Set To Preset";
this->label13->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// groupBox2
//
this->groupBox2->Controls->Add(this->tableLayoutPanel2);
this->groupBox2->Dock = System::Windows::Forms::DockStyle::Top;
this->groupBox2->Location = System::Drawing::Point(0, 272);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(687, 88);
this->groupBox2->TabIndex = 6;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"Price";
//
// tableLayoutPanel2
//
this->tableLayoutPanel2->ColumnCount = 3;
this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
33.50785F)));
this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
66.49215F)));
this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute,
376)));
this->tableLayoutPanel2->Controls->Add(this->TextPriceNPC, 2, 2);
this->tableLayoutPanel2->Controls->Add(this->TextPricePlayer, 2, 1);
this->tableLayoutPanel2->Controls->Add(this->label12, 2, 0);
this->tableLayoutPanel2->Controls->Add(this->label10, 1, 0);
this->tableLayoutPanel2->Controls->Add(this->NumPriceNPC, 1, 2);
this->tableLayoutPanel2->Controls->Add(this->NumPricePlayer, 1, 1);
this->tableLayoutPanel2->Controls->Add(this->label11, 0, 2);
this->tableLayoutPanel2->Controls->Add(this->label9, 0, 1);
this->tableLayoutPanel2->Dock = System::Windows::Forms::DockStyle::Fill;
this->tableLayoutPanel2->Location = System::Drawing::Point(3, 16);
this->tableLayoutPanel2->Name = L"tableLayoutPanel2";
this->tableLayoutPanel2->RowCount = 3;
this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 45.76271F)));
this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 54.23729F)));
this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Absolute, 24)));
this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Absolute, 20)));
this->tableLayoutPanel2->Size = System::Drawing::Size(681, 69);
this->tableLayoutPanel2->TabIndex = 7;
//
// TextPriceNPC
//
this->TextPriceNPC->Dock = System::Windows::Forms::DockStyle::Fill;
this->TextPriceNPC->Enabled = false;
this->TextPriceNPC->InterceptArrowKeys = false;
this->TextPriceNPC->Location = System::Drawing::Point(307, 47);
this->TextPriceNPC->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {-1894967296, 0, 0, 0});
this->TextPriceNPC->Name = L"TextPriceNPC";
this->TextPriceNPC->ReadOnly = true;
this->TextPriceNPC->Size = System::Drawing::Size(371, 20);
this->TextPriceNPC->TabIndex = 10;
this->TextPriceNPC->TabStop = false;
this->TextPriceNPC->ThousandsSeparator = true;
this->TextPriceNPC->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// TextPricePlayer
//
this->TextPricePlayer->Dock = System::Windows::Forms::DockStyle::Fill;
this->TextPricePlayer->Enabled = false;
this->TextPricePlayer->InterceptArrowKeys = false;
this->TextPricePlayer->Location = System::Drawing::Point(307, 23);
this->TextPricePlayer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {-1894967296, 0, 0, 0});
this->TextPricePlayer->Name = L"TextPricePlayer";
this->TextPricePlayer->ReadOnly = true;
this->TextPricePlayer->Size = System::Drawing::Size(371, 20);
this->TextPricePlayer->TabIndex = 9;
this->TextPricePlayer->TabStop = false;
this->TextPricePlayer->ThousandsSeparator = true;
this->TextPricePlayer->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// label12
//
this->label12->Dock = System::Windows::Forms::DockStyle::Fill;
this->label12->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->label12->Location = System::Drawing::Point(307, 0);
this->label12->Name = L"label12";
this->label12->Size = System::Drawing::Size(371, 20);
this->label12->TabIndex = 6;
this->label12->Text = L"Rough Price";
this->label12->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// label10
//
this->label10->Dock = System::Windows::Forms::DockStyle::Fill;
this->label10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label10->Location = System::Drawing::Point(105, 0);
this->label10->Name = L"label10";
this->label10->Size = System::Drawing::Size(196, 20);
this->label10->TabIndex = 5;
this->label10->Text = L"Relval";
this->label10->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// NumPriceNPC
//
this->NumPriceNPC->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumPriceNPC->Location = System::Drawing::Point(105, 47);
this->NumPriceNPC->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {25000000, 0, 0, 0});
this->NumPriceNPC->Name = L"NumPriceNPC";
this->NumPriceNPC->Size = System::Drawing::Size(196, 20);
this->NumPriceNPC->TabIndex = 4;
this->NumPriceNPC->ThousandsSeparator = true;
this->NumPriceNPC->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
this->NumPriceNPC->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumPriceNPC->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumPriceNPC_ValueChanged);
//
// NumPricePlayer
//
this->NumPricePlayer->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumPricePlayer->Location = System::Drawing::Point(105, 23);
this->NumPricePlayer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {25000000, 0, 0, 0});
this->NumPricePlayer->Name = L"NumPricePlayer";
this->NumPricePlayer->Size = System::Drawing::Size(196, 20);
this->NumPricePlayer->TabIndex = 3;
this->NumPricePlayer->ThousandsSeparator = true;
this->NumPricePlayer->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
this->NumPricePlayer->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumPricePlayer->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumPricePlayer_ValueChanged);
//
// label11
//
this->label11->Dock = System::Windows::Forms::DockStyle::Fill;
this->label11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label11->Location = System::Drawing::Point(3, 44);
this->label11->Name = L"label11";
this->label11->Size = System::Drawing::Size(96, 25);
this->label11->TabIndex = 2;
this->label11->Text = L"NPC";
this->label11->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// label9
//
this->label9->Dock = System::Windows::Forms::DockStyle::Fill;
this->label9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label9->Location = System::Drawing::Point(3, 20);
this->label9->Name = L"label9";
this->label9->Size = System::Drawing::Size(96, 24);
this->label9->TabIndex = 1;
this->label9->Text = L"Player";
this->label9->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// groupBox1
//
this->groupBox1->Controls->Add(this->panel7);
this->groupBox1->Controls->Add(this->tableLayoutPanel1);
this->groupBox1->Dock = System::Windows::Forms::DockStyle::Top;
this->groupBox1->Location = System::Drawing::Point(0, 160);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Padding = System::Windows::Forms::Padding(10);
this->groupBox1->Size = System::Drawing::Size(687, 112);
this->groupBox1->TabIndex = 5;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Cargo Space";
//
// panel7
//
this->panel7->Controls->Add(this->ComboCargo);
this->panel7->Controls->Add(this->label8);
this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
this->panel7->Location = System::Drawing::Point(10, 71);
this->panel7->Name = L"panel7";
this->panel7->Padding = System::Windows::Forms::Padding(5);
this->panel7->Size = System::Drawing::Size(667, 29);
this->panel7->TabIndex = 3;
//
// ComboCargo
//
this->ComboCargo->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboCargo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboCargo->FormattingEnabled = true;
this->ComboCargo->Location = System::Drawing::Point(155, 5);
this->ComboCargo->Name = L"ComboCargo";
this->ComboCargo->Size = System::Drawing::Size(507, 21);
this->ComboCargo->TabIndex = 1;
this->ComboCargo->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboCargo_SelectedIndexChanged);
//
// label8
//
this->label8->Dock = System::Windows::Forms::DockStyle::Left;
this->label8->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->label8->Location = System::Drawing::Point(5, 5);
this->label8->Name = L"label8";
this->label8->Size = System::Drawing::Size(150, 19);
this->label8->TabIndex = 0;
this->label8->Text = L"Cargo Class";
this->label8->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// tableLayoutPanel1
//
this->tableLayoutPanel1->ColumnCount = 2;
this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
50)));
this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
50)));
this->tableLayoutPanel1->Controls->Add(this->label7, 1, 0);
this->tableLayoutPanel1->Controls->Add(this->label6, 0, 0);
this->tableLayoutPanel1->Controls->Add(this->NumCargoMin, 0, 1);
this->tableLayoutPanel1->Controls->Add(this->NumCargoMax, 1, 1);
this->tableLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Top;
this->tableLayoutPanel1->Location = System::Drawing::Point(10, 23);
this->tableLayoutPanel1->Name = L"tableLayoutPanel1";
this->tableLayoutPanel1->RowCount = 2;
this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
this->tableLayoutPanel1->Size = System::Drawing::Size(667, 48);
this->tableLayoutPanel1->TabIndex = 0;
//
// label7
//
this->label7->Dock = System::Windows::Forms::DockStyle::Fill;
this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label7->Location = System::Drawing::Point(336, 0);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(328, 24);
this->label7->TabIndex = 1;
this->label7->Text = L"Maximum";
this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// label6
//
this->label6->Dock = System::Windows::Forms::DockStyle::Fill;
this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label6->Location = System::Drawing::Point(3, 0);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(327, 24);
this->label6->TabIndex = 0;
this->label6->Text = L"Minimum";
this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// NumCargoMin
//
this->NumCargoMin->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumCargoMin->Location = System::Drawing::Point(3, 27);
this->NumCargoMin->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000000, 0, 0, 0});
this->NumCargoMin->Name = L"NumCargoMin";
this->NumCargoMin->Size = System::Drawing::Size(327, 20);
this->NumCargoMin->TabIndex = 2;
this->NumCargoMin->ThousandsSeparator = true;
this->NumCargoMin->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumCargoMin->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumCargoMin_ValueChanged);
//
// NumCargoMax
//
this->NumCargoMax->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumCargoMax->Location = System::Drawing::Point(336, 27);
this->NumCargoMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000000, 0, 0, 0});
this->NumCargoMax->Name = L"NumCargoMax";
this->NumCargoMax->Size = System::Drawing::Size(328, 20);
this->NumCargoMax->TabIndex = 3;
this->NumCargoMax->ThousandsSeparator = true;
this->NumCargoMax->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumCargoMax->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumCargoMax_ValueChanged);
//
// panel6
//
this->panel6->Controls->Add(this->NumDock);
this->panel6->Controls->Add(this->label5);
this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
this->panel6->Location = System::Drawing::Point(0, 128);
this->panel6->Name = L"panel6";
this->panel6->Padding = System::Windows::Forms::Padding(5);
this->panel6->Size = System::Drawing::Size(687, 32);
this->panel6->TabIndex = 4;
//
// NumDock
//
this->NumDock->Dock = System::Windows::Forms::DockStyle::Left;
this->NumDock->Location = System::Drawing::Point(155, 5);
this->NumDock->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
this->NumDock->Name = L"NumDock";
this->NumDock->Size = System::Drawing::Size(90, 20);
this->NumDock->TabIndex = 1;
this->NumDock->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
this->NumDock->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumDock_ValueChanged);
//
// label5
//
this->label5->Dock = System::Windows::Forms::DockStyle::Left;
this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label5->Location = System::Drawing::Point(5, 5);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(150, 22);
this->label5->TabIndex = 0;
this->label5->Text = L"Docking Slots";
this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel4
//
this->panel4->Controls->Add(this->ComboVariation);
this->panel4->Controls->Add(this->label3);
this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
this->panel4->Location = System::Drawing::Point(0, 96);
this->panel4->Name = L"panel4";
this->panel4->Padding = System::Windows::Forms::Padding(5);
this->panel4->Size = System::Drawing::Size(687, 32);
this->panel4->TabIndex = 2;
//
// ComboVariation
//
this->ComboVariation->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboVariation->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboVariation->FormattingEnabled = true;
this->ComboVariation->Location = System::Drawing::Point(155, 5);
this->ComboVariation->Name = L"ComboVariation";
this->ComboVariation->Size = System::Drawing::Size(527, 21);
this->ComboVariation->TabIndex = 1;
this->ComboVariation->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboVariation_SelectedIndexChanged);
//
// label3
//
this->label3->Dock = System::Windows::Forms::DockStyle::Left;
this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label3->Location = System::Drawing::Point(5, 5);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(150, 22);
this->label3->TabIndex = 0;
this->label3->Text = L"Ship Variation";
this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel10
//
this->panel10->Controls->Add(this->ComboSubType);
this->panel10->Controls->Add(this->label15);
this->panel10->Dock = System::Windows::Forms::DockStyle::Top;
this->panel10->Location = System::Drawing::Point(0, 64);
this->panel10->Name = L"panel10";
this->panel10->Padding = System::Windows::Forms::Padding(5);
this->panel10->Size = System::Drawing::Size(687, 32);
this->panel10->TabIndex = 8;
//
// ComboSubType
//
this->ComboSubType->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboSubType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboSubType->FormattingEnabled = true;
this->ComboSubType->Location = System::Drawing::Point(155, 5);
this->ComboSubType->Name = L"ComboSubType";
this->ComboSubType->Size = System::Drawing::Size(527, 21);
this->ComboSubType->TabIndex = 1;
this->ComboSubType->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboSubType_SelectedIndexChanged);
//
// label15
//
this->label15->Dock = System::Windows::Forms::DockStyle::Left;
this->label15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label15->Location = System::Drawing::Point(5, 5);
this->label15->Name = L"label15";
this->label15->Size = System::Drawing::Size(150, 22);
this->label15->TabIndex = 0;
this->label15->Text = L"Sub Type";
this->label15->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel5
//
this->panel5->Controls->Add(this->ComboClass);
this->panel5->Controls->Add(this->label4);
this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
this->panel5->Location = System::Drawing::Point(0, 32);
this->panel5->Name = L"panel5";
this->panel5->Padding = System::Windows::Forms::Padding(5);
this->panel5->Size = System::Drawing::Size(687, 32);
this->panel5->TabIndex = 3;
//
// ComboClass
//
this->ComboClass->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboClass->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboClass->FormattingEnabled = true;
this->ComboClass->Location = System::Drawing::Point(155, 5);
this->ComboClass->Name = L"ComboClass";
this->ComboClass->Size = System::Drawing::Size(527, 21);
this->ComboClass->TabIndex = 1;
this->ComboClass->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboClass_SelectedIndexChanged);
//
// label4
//
this->label4->Dock = System::Windows::Forms::DockStyle::Left;
this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label4->Location = System::Drawing::Point(5, 5);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(150, 22);
this->label4->TabIndex = 0;
this->label4->Text = L"Ship Class";
this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel3
//
this->panel3->Controls->Add(this->ComboRace);
this->panel3->Controls->Add(this->label2);
this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
this->panel3->Location = System::Drawing::Point(0, 0);
this->panel3->Name = L"panel3";
this->panel3->Padding = System::Windows::Forms::Padding(5);
this->panel3->Size = System::Drawing::Size(687, 32);
this->panel3->TabIndex = 1;
//
// ComboRace
//
this->ComboRace->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboRace->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboRace->FormattingEnabled = true;
this->ComboRace->Location = System::Drawing::Point(155, 5);
this->ComboRace->Name = L"ComboRace";
this->ComboRace->Size = System::Drawing::Size(527, 21);
this->ComboRace->TabIndex = 1;
this->ComboRace->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboRace_SelectedIndexChanged);
//
// label2
//
this->label2->Dock = System::Windows::Forms::DockStyle::Left;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->Location = System::Drawing::Point(5, 5);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(150, 22);
this->label2->TabIndex = 0;
this->label2->Text = L"Owner Race";
this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// CustomiseInfo
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->Controls->Add(this->groupBox3);
this->Controls->Add(this->groupBox2);
this->Controls->Add(this->groupBox1);
this->Controls->Add(this->panel6);
this->Controls->Add(this->panel4);
this->Controls->Add(this->panel10);
this->Controls->Add(this->panel5);
this->Controls->Add(this->panel3);
this->Name = L"CustomiseInfo";
this->Size = System::Drawing::Size(687, 644);
this->groupBox3->ResumeLayout(false);
this->panel9->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumNoto))->EndInit();
this->panel8->ResumeLayout(false);
this->groupBox2->ResumeLayout(false);
this->tableLayoutPanel2->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->TextPriceNPC))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->TextPricePlayer))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPriceNPC))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPricePlayer))->EndInit();
this->groupBox1->ResumeLayout(false);
this->panel7->ResumeLayout(false);
this->tableLayoutPanel1->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumCargoMin))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumCargoMax))->EndInit();
this->panel6->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumDock))->EndInit();
this->panel4->ResumeLayout(false);
this->panel10->ResumeLayout(false);
this->panel5->ResumeLayout(false);
this->panel3->ResumeLayout(false);
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void NumPriceNPC_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
double price = Convert::ToDouble(this->NumPriceNPC->Value);
if ( m_pShipData->iClass == 14 )
price *= 65.555784f;
else
price *= 80.72126f;
this->TextPriceNPC->Value = Convert::ToInt32(price);
if ( !m_bUpdateing )
m_pShipData->iRelVal = Convert::ToInt32(this->NumPriceNPC->Value);
}
private: System::Void ComboNoto_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
if ( this->ComboNoto->SelectedIndex > 0 )
this->NumNoto->Value = this->GetNotoAmount(this->ComboNoto->SelectedIndex);
}
private: System::Void ComboRace_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iRace = this->ComboRace->SelectedIndex + 1;
this->UpdateNotority();
}
private: System::Void ComboClass_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iClass = CShipData::GetShipClassFromNum(this->ComboClass->SelectedIndex);
}
private: System::Void ComboSubType_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iSubType = this->ComboSubType->SelectedIndex;
}
private: System::Void ComboVariation_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iVariation = this->ComboVariation->SelectedIndex;
}
private: System::Void NumDock_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iDocking = Convert::ToInt32(this->NumDock->Value);
}
private: System::Void NumCargoMin_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iCargoMin = Convert::ToInt32(this->NumCargoMin->Value);
if ( Convert::ToInt32(this->NumCargoMax->Value) < Convert::ToInt32(this->NumCargoMin->Value) )
this->NumCargoMax->Value = this->NumCargoMin->Value;
}
private: System::Void NumCargoMax_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iCargoMax = Convert::ToInt32(this->NumCargoMax->Value);
if ( Convert::ToInt32(this->NumCargoMax->Value) < Convert::ToInt32(this->NumCargoMin->Value) )
this->NumCargoMin->Value = this->NumCargoMax->Value;
}
private: System::Void ComboCargo_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iCargoClass = this->ComboCargo->SelectedIndex;
}
private: System::Void NumNoto_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
if ( m_bUpdateing ) return;
m_pShipData->iMinNoto = Convert::ToInt32(this->NumNoto->Value);
}
private: System::Void NumPricePlayer_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
double price = Convert::ToDouble(this->NumPricePlayer->Value);
if ( m_pShipData->iClass == 14 )
price *= 65.555784f;
else
price *= 80.72126f;
this->TextPricePlayer->Value = Convert::ToInt32(price);
if ( !m_bUpdateing )
m_pShipData->iRelValPlayer = Convert::ToInt32(this->NumPricePlayer->Value);
}
};
}