Subversion Repositories spk

Rev

Rev 94 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#pragma once
2
 
3
using namespace System;
4
using namespace System::ComponentModel;
5
using namespace System::Collections;
6
using namespace System::Windows::Forms;
7
using namespace System::Data;
8
using namespace System::Drawing;
9
 
10
 
11
namespace Creator {
12
 
13
	/// <summary>
14
	/// Summary for CustomiseInfo
15
	/// </summary>
16
	public ref class CustomiseInfo : public System::Windows::Forms::UserControl
17
	{
18
	public:
19
		CustomiseInfo(Windows::Forms::Form ^parent, CShipData *shipData)
20
		{
21
			InitializeComponent();
22
 
23
			m_pParent = parent;
24
			m_pShipData = shipData;
25
			m_bUpdateing = false;
26
 
27
			this->Dock = System::Windows::Forms::DockStyle::Fill;
28
		}
29
 
30
		void UpdateDisplay();
31
		void UpdateInfo();
32
 
33
		void UpdateNotority();
34
		int GetNotoAmount(int preset);
35
		int GetNotoPage(int race);
36
		String ^GetCargoClass(int i);
37
 
38
	protected:
39
		/// <summary>
40
		/// Clean up any resources being used.
41
		/// </summary>
42
		~CustomiseInfo()
43
		{
44
			if (components)
45
			{
46
				delete components;
47
			}
48
		}
49
	private: System::Windows::Forms::GroupBox^  groupBox3;
50
	protected: 
51
	private: System::Windows::Forms::Panel^  panel9;
52
	private: System::Windows::Forms::NumericUpDown^  NumNoto;
53
	private: System::Windows::Forms::Label^  label14;
54
	private: System::Windows::Forms::Panel^  panel8;
55
	private: System::Windows::Forms::ComboBox^  ComboNoto;
56
	private: System::Windows::Forms::Label^  label13;
57
	private: System::Windows::Forms::GroupBox^  groupBox2;
58
	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel2;
59
	private: System::Windows::Forms::NumericUpDown^  TextPriceNPC;
60
	private: System::Windows::Forms::NumericUpDown^  TextPricePlayer;
61
	private: System::Windows::Forms::Label^  label12;
62
	private: System::Windows::Forms::Label^  label10;
63
	private: System::Windows::Forms::NumericUpDown^  NumPriceNPC;
64
	private: System::Windows::Forms::NumericUpDown^  NumPricePlayer;
65
	private: System::Windows::Forms::Label^  label11;
66
	private: System::Windows::Forms::Label^  label9;
67
	private: System::Windows::Forms::GroupBox^  groupBox1;
68
	private: System::Windows::Forms::Panel^  panel7;
69
	private: System::Windows::Forms::ComboBox^  ComboCargo;
70
	private: System::Windows::Forms::Label^  label8;
71
	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel1;
72
	private: System::Windows::Forms::Label^  label7;
73
	private: System::Windows::Forms::Label^  label6;
74
	private: System::Windows::Forms::NumericUpDown^  NumCargoMin;
75
	private: System::Windows::Forms::NumericUpDown^  NumCargoMax;
76
	private: System::Windows::Forms::Panel^  panel6;
77
	private: System::Windows::Forms::NumericUpDown^  NumDock;
78
	private: System::Windows::Forms::Label^  label5;
79
	private: System::Windows::Forms::Panel^  panel4;
80
	private: System::Windows::Forms::ComboBox^  ComboVariation;
81
	private: System::Windows::Forms::Label^  label3;
82
	private: System::Windows::Forms::Panel^  panel10;
83
	private: System::Windows::Forms::ComboBox^  ComboSubType;
84
	private: System::Windows::Forms::Label^  label15;
85
	private: System::Windows::Forms::Panel^  panel5;
86
	private: System::Windows::Forms::ComboBox^  ComboClass;
87
	private: System::Windows::Forms::Label^  label4;
88
	private: System::Windows::Forms::Panel^  panel3;
89
	private: System::Windows::Forms::ComboBox^  ComboRace;
90
	private: System::Windows::Forms::Label^  label2;
91
 
92
	private:
93
		Windows::Forms::Form	^m_pParent;
94
		CShipData				*m_pShipData;
95
		bool					 m_bUpdateing;
96
		/// <summary>
97
		/// Required designer variable.
98
		/// </summary>
99
		System::ComponentModel::Container ^components;
100
 
101
#pragma region Windows Form Designer generated code
102
		/// <summary>
103
		/// Required method for Designer support - do not modify
104
		/// the contents of this method with the code editor.
105
		/// </summary>
106
		void InitializeComponent(void)
107
		{
108
			this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
109
			this->panel9 = (gcnew System::Windows::Forms::Panel());
110
			this->NumNoto = (gcnew System::Windows::Forms::NumericUpDown());
111
			this->label14 = (gcnew System::Windows::Forms::Label());
112
			this->panel8 = (gcnew System::Windows::Forms::Panel());
113
			this->ComboNoto = (gcnew System::Windows::Forms::ComboBox());
114
			this->label13 = (gcnew System::Windows::Forms::Label());
115
			this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
116
			this->tableLayoutPanel2 = (gcnew System::Windows::Forms::TableLayoutPanel());
117
			this->TextPriceNPC = (gcnew System::Windows::Forms::NumericUpDown());
118
			this->TextPricePlayer = (gcnew System::Windows::Forms::NumericUpDown());
119
			this->label12 = (gcnew System::Windows::Forms::Label());
120
			this->label10 = (gcnew System::Windows::Forms::Label());
121
			this->NumPriceNPC = (gcnew System::Windows::Forms::NumericUpDown());
122
			this->NumPricePlayer = (gcnew System::Windows::Forms::NumericUpDown());
123
			this->label11 = (gcnew System::Windows::Forms::Label());
124
			this->label9 = (gcnew System::Windows::Forms::Label());
125
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
126
			this->panel7 = (gcnew System::Windows::Forms::Panel());
127
			this->ComboCargo = (gcnew System::Windows::Forms::ComboBox());
128
			this->label8 = (gcnew System::Windows::Forms::Label());
129
			this->tableLayoutPanel1 = (gcnew System::Windows::Forms::TableLayoutPanel());
130
			this->label7 = (gcnew System::Windows::Forms::Label());
131
			this->label6 = (gcnew System::Windows::Forms::Label());
132
			this->NumCargoMin = (gcnew System::Windows::Forms::NumericUpDown());
133
			this->NumCargoMax = (gcnew System::Windows::Forms::NumericUpDown());
134
			this->panel6 = (gcnew System::Windows::Forms::Panel());
135
			this->NumDock = (gcnew System::Windows::Forms::NumericUpDown());
136
			this->label5 = (gcnew System::Windows::Forms::Label());
137
			this->panel4 = (gcnew System::Windows::Forms::Panel());
138
			this->ComboVariation = (gcnew System::Windows::Forms::ComboBox());
139
			this->label3 = (gcnew System::Windows::Forms::Label());
140
			this->panel10 = (gcnew System::Windows::Forms::Panel());
141
			this->ComboSubType = (gcnew System::Windows::Forms::ComboBox());
142
			this->label15 = (gcnew System::Windows::Forms::Label());
143
			this->panel5 = (gcnew System::Windows::Forms::Panel());
144
			this->ComboClass = (gcnew System::Windows::Forms::ComboBox());
145
			this->label4 = (gcnew System::Windows::Forms::Label());
146
			this->panel3 = (gcnew System::Windows::Forms::Panel());
147
			this->ComboRace = (gcnew System::Windows::Forms::ComboBox());
148
			this->label2 = (gcnew System::Windows::Forms::Label());
149
			this->groupBox3->SuspendLayout();
150
			this->panel9->SuspendLayout();
238 cycrow 151
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumNoto))->BeginInit();
1 cycrow 152
			this->panel8->SuspendLayout();
153
			this->groupBox2->SuspendLayout();
154
			this->tableLayoutPanel2->SuspendLayout();
238 cycrow 155
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->TextPriceNPC))->BeginInit();
156
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->TextPricePlayer))->BeginInit();
157
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumPriceNPC))->BeginInit();
158
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumPricePlayer))->BeginInit();
1 cycrow 159
			this->groupBox1->SuspendLayout();
160
			this->panel7->SuspendLayout();
161
			this->tableLayoutPanel1->SuspendLayout();
238 cycrow 162
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumCargoMin))->BeginInit();
163
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumCargoMax))->BeginInit();
1 cycrow 164
			this->panel6->SuspendLayout();
238 cycrow 165
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumDock))->BeginInit();
1 cycrow 166
			this->panel4->SuspendLayout();
167
			this->panel10->SuspendLayout();
168
			this->panel5->SuspendLayout();
169
			this->panel3->SuspendLayout();
170
			this->SuspendLayout();
171
			// 
172
			// groupBox3
173
			// 
174
			this->groupBox3->Controls->Add(this->panel9);
175
			this->groupBox3->Controls->Add(this->panel8);
176
			this->groupBox3->Dock = System::Windows::Forms::DockStyle::Top;
177
			this->groupBox3->Location = System::Drawing::Point(0, 360);
178
			this->groupBox3->Name = L"groupBox3";
179
			this->groupBox3->Size = System::Drawing::Size(687, 88);
180
			this->groupBox3->TabIndex = 7;
181
			this->groupBox3->TabStop = false;
182
			this->groupBox3->Text = L"Notority Required";
183
			// 
184
			// panel9
185
			// 
186
			this->panel9->Controls->Add(this->NumNoto);
187
			this->panel9->Controls->Add(this->label14);
188
			this->panel9->Dock = System::Windows::Forms::DockStyle::Top;
189
			this->panel9->Location = System::Drawing::Point(3, 48);
190
			this->panel9->Name = L"panel9";
191
			this->panel9->Padding = System::Windows::Forms::Padding(5);
192
			this->panel9->Size = System::Drawing::Size(681, 32);
193
			this->panel9->TabIndex = 5;
194
			// 
195
			// NumNoto
196
			// 
197
			this->NumNoto->Dock = System::Windows::Forms::DockStyle::Left;
198
			this->NumNoto->Location = System::Drawing::Point(155, 5);
238 cycrow 199
			this->NumNoto->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1000000, 0, 0, 0 });
200
			this->NumNoto->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1000000, 0, 0, System::Int32::MinValue });
1 cycrow 201
			this->NumNoto->Name = L"NumNoto";
202
			this->NumNoto->Size = System::Drawing::Size(120, 20);
203
			this->NumNoto->TabIndex = 1;
204
			this->NumNoto->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumNoto_ValueChanged);
205
			// 
206
			// label14
207
			// 
208
			this->label14->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 209
			this->label14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 210
				static_cast<System::Byte>(0)));
211
			this->label14->Location = System::Drawing::Point(5, 5);
212
			this->label14->Name = L"label14";
213
			this->label14->Size = System::Drawing::Size(150, 22);
214
			this->label14->TabIndex = 0;
215
			this->label14->Text = L"Minimum";
216
			this->label14->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
217
			// 
218
			// panel8
219
			// 
220
			this->panel8->Controls->Add(this->ComboNoto);
221
			this->panel8->Controls->Add(this->label13);
222
			this->panel8->Dock = System::Windows::Forms::DockStyle::Top;
223
			this->panel8->Location = System::Drawing::Point(3, 16);
224
			this->panel8->Name = L"panel8";
225
			this->panel8->Padding = System::Windows::Forms::Padding(5);
226
			this->panel8->Size = System::Drawing::Size(681, 32);
227
			this->panel8->TabIndex = 4;
228
			// 
229
			// ComboNoto
230
			// 
231
			this->ComboNoto->Dock = System::Windows::Forms::DockStyle::Fill;
232
			this->ComboNoto->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
233
			this->ComboNoto->FormattingEnabled = true;
234
			this->ComboNoto->Location = System::Drawing::Point(155, 5);
235
			this->ComboNoto->Name = L"ComboNoto";
236
			this->ComboNoto->Size = System::Drawing::Size(521, 21);
237
			this->ComboNoto->TabIndex = 1;
238
			this->ComboNoto->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboNoto_SelectedIndexChanged);
239
			// 
240
			// label13
241
			// 
242
			this->label13->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 243
			this->label13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 244
				static_cast<System::Byte>(0)));
245
			this->label13->Location = System::Drawing::Point(5, 5);
246
			this->label13->Name = L"label13";
247
			this->label13->Size = System::Drawing::Size(150, 22);
248
			this->label13->TabIndex = 0;
249
			this->label13->Text = L"Set To Preset";
250
			this->label13->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
251
			// 
252
			// groupBox2
253
			// 
254
			this->groupBox2->Controls->Add(this->tableLayoutPanel2);
255
			this->groupBox2->Dock = System::Windows::Forms::DockStyle::Top;
256
			this->groupBox2->Location = System::Drawing::Point(0, 272);
257
			this->groupBox2->Name = L"groupBox2";
258
			this->groupBox2->Size = System::Drawing::Size(687, 88);
259
			this->groupBox2->TabIndex = 6;
260
			this->groupBox2->TabStop = false;
261
			this->groupBox2->Text = L"Price";
262
			// 
263
			// tableLayoutPanel2
264
			// 
265
			this->tableLayoutPanel2->ColumnCount = 3;
238 cycrow 266
			this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
1 cycrow 267
				33.50785F)));
238 cycrow 268
			this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
1 cycrow 269
				66.49215F)));
238 cycrow 270
			this->tableLayoutPanel2->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Absolute,
271
				377)));
1 cycrow 272
			this->tableLayoutPanel2->Controls->Add(this->TextPriceNPC, 2, 2);
273
			this->tableLayoutPanel2->Controls->Add(this->TextPricePlayer, 2, 1);
274
			this->tableLayoutPanel2->Controls->Add(this->label12, 2, 0);
275
			this->tableLayoutPanel2->Controls->Add(this->label10, 1, 0);
276
			this->tableLayoutPanel2->Controls->Add(this->NumPriceNPC, 1, 2);
277
			this->tableLayoutPanel2->Controls->Add(this->NumPricePlayer, 1, 1);
278
			this->tableLayoutPanel2->Controls->Add(this->label11, 0, 2);
279
			this->tableLayoutPanel2->Controls->Add(this->label9, 0, 1);
280
			this->tableLayoutPanel2->Dock = System::Windows::Forms::DockStyle::Fill;
281
			this->tableLayoutPanel2->Location = System::Drawing::Point(3, 16);
282
			this->tableLayoutPanel2->Name = L"tableLayoutPanel2";
283
			this->tableLayoutPanel2->RowCount = 3;
284
			this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 45.76271F)));
285
			this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 54.23729F)));
286
			this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Absolute, 24)));
287
			this->tableLayoutPanel2->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Absolute, 20)));
288
			this->tableLayoutPanel2->Size = System::Drawing::Size(681, 69);
289
			this->tableLayoutPanel2->TabIndex = 7;
290
			// 
291
			// TextPriceNPC
292
			// 
293
			this->TextPriceNPC->Dock = System::Windows::Forms::DockStyle::Fill;
294
			this->TextPriceNPC->Enabled = false;
295
			this->TextPriceNPC->InterceptArrowKeys = false;
238 cycrow 296
			this->TextPriceNPC->Location = System::Drawing::Point(306, 47);
297
			this->TextPriceNPC->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { -1894967296, 0, 0, 0 });
1 cycrow 298
			this->TextPriceNPC->Name = L"TextPriceNPC";
299
			this->TextPriceNPC->ReadOnly = true;
238 cycrow 300
			this->TextPriceNPC->Size = System::Drawing::Size(372, 20);
1 cycrow 301
			this->TextPriceNPC->TabIndex = 10;
302
			this->TextPriceNPC->TabStop = false;
303
			this->TextPriceNPC->ThousandsSeparator = true;
238 cycrow 304
			this->TextPriceNPC->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 305
			// 
306
			// TextPricePlayer
307
			// 
308
			this->TextPricePlayer->Dock = System::Windows::Forms::DockStyle::Fill;
309
			this->TextPricePlayer->Enabled = false;
310
			this->TextPricePlayer->InterceptArrowKeys = false;
238 cycrow 311
			this->TextPricePlayer->Location = System::Drawing::Point(306, 23);
312
			this->TextPricePlayer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { -1894967296, 0, 0, 0 });
1 cycrow 313
			this->TextPricePlayer->Name = L"TextPricePlayer";
314
			this->TextPricePlayer->ReadOnly = true;
238 cycrow 315
			this->TextPricePlayer->Size = System::Drawing::Size(372, 20);
1 cycrow 316
			this->TextPricePlayer->TabIndex = 9;
317
			this->TextPricePlayer->TabStop = false;
318
			this->TextPricePlayer->ThousandsSeparator = true;
238 cycrow 319
			this->TextPricePlayer->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 320
			// 
321
			// label12
322
			// 
323
			this->label12->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 324
			this->label12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 325
				static_cast<System::Byte>(0)));
238 cycrow 326
			this->label12->Location = System::Drawing::Point(306, 0);
1 cycrow 327
			this->label12->Name = L"label12";
238 cycrow 328
			this->label12->Size = System::Drawing::Size(372, 20);
1 cycrow 329
			this->label12->TabIndex = 6;
330
			this->label12->Text = L"Rough Price";
331
			this->label12->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
332
			// 
333
			// label10
334
			// 
335
			this->label10->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 336
			this->label10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 337
				static_cast<System::Byte>(0)));
238 cycrow 338
			this->label10->Location = System::Drawing::Point(104, 0);
1 cycrow 339
			this->label10->Name = L"label10";
65 cycrow 340
			this->label10->Size = System::Drawing::Size(196, 20);
1 cycrow 341
			this->label10->TabIndex = 5;
342
			this->label10->Text = L"Relval";
343
			this->label10->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
344
			// 
345
			// NumPriceNPC
346
			// 
347
			this->NumPriceNPC->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 348
			this->NumPriceNPC->Location = System::Drawing::Point(104, 47);
349
			this->NumPriceNPC->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 25000000, 0, 0, 0 });
1 cycrow 350
			this->NumPriceNPC->Name = L"NumPriceNPC";
65 cycrow 351
			this->NumPriceNPC->Size = System::Drawing::Size(196, 20);
1 cycrow 352
			this->NumPriceNPC->TabIndex = 4;
353
			this->NumPriceNPC->ThousandsSeparator = true;
354
			this->NumPriceNPC->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
238 cycrow 355
			this->NumPriceNPC->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 356
			this->NumPriceNPC->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumPriceNPC_ValueChanged);
357
			// 
358
			// NumPricePlayer
359
			// 
360
			this->NumPricePlayer->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 361
			this->NumPricePlayer->Location = System::Drawing::Point(104, 23);
362
			this->NumPricePlayer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 25000000, 0, 0, 0 });
1 cycrow 363
			this->NumPricePlayer->Name = L"NumPricePlayer";
65 cycrow 364
			this->NumPricePlayer->Size = System::Drawing::Size(196, 20);
1 cycrow 365
			this->NumPricePlayer->TabIndex = 3;
366
			this->NumPricePlayer->ThousandsSeparator = true;
367
			this->NumPricePlayer->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
238 cycrow 368
			this->NumPricePlayer->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 369
			this->NumPricePlayer->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumPricePlayer_ValueChanged);
370
			// 
371
			// label11
372
			// 
373
			this->label11->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 374
			this->label11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 375
				static_cast<System::Byte>(0)));
376
			this->label11->Location = System::Drawing::Point(3, 44);
377
			this->label11->Name = L"label11";
238 cycrow 378
			this->label11->Size = System::Drawing::Size(95, 25);
1 cycrow 379
			this->label11->TabIndex = 2;
380
			this->label11->Text = L"NPC";
381
			this->label11->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
382
			// 
383
			// label9
384
			// 
385
			this->label9->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 386
			this->label9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 387
				static_cast<System::Byte>(0)));
388
			this->label9->Location = System::Drawing::Point(3, 20);
389
			this->label9->Name = L"label9";
238 cycrow 390
			this->label9->Size = System::Drawing::Size(95, 24);
1 cycrow 391
			this->label9->TabIndex = 1;
392
			this->label9->Text = L"Player";
393
			this->label9->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
394
			// 
395
			// groupBox1
396
			// 
397
			this->groupBox1->Controls->Add(this->panel7);
398
			this->groupBox1->Controls->Add(this->tableLayoutPanel1);
399
			this->groupBox1->Dock = System::Windows::Forms::DockStyle::Top;
400
			this->groupBox1->Location = System::Drawing::Point(0, 160);
401
			this->groupBox1->Name = L"groupBox1";
402
			this->groupBox1->Padding = System::Windows::Forms::Padding(10);
403
			this->groupBox1->Size = System::Drawing::Size(687, 112);
404
			this->groupBox1->TabIndex = 5;
405
			this->groupBox1->TabStop = false;
406
			this->groupBox1->Text = L"Cargo Space";
407
			// 
408
			// panel7
409
			// 
410
			this->panel7->Controls->Add(this->ComboCargo);
411
			this->panel7->Controls->Add(this->label8);
412
			this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
413
			this->panel7->Location = System::Drawing::Point(10, 71);
414
			this->panel7->Name = L"panel7";
415
			this->panel7->Padding = System::Windows::Forms::Padding(5);
416
			this->panel7->Size = System::Drawing::Size(667, 29);
417
			this->panel7->TabIndex = 3;
418
			// 
419
			// ComboCargo
420
			// 
421
			this->ComboCargo->Dock = System::Windows::Forms::DockStyle::Fill;
422
			this->ComboCargo->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
423
			this->ComboCargo->FormattingEnabled = true;
424
			this->ComboCargo->Location = System::Drawing::Point(155, 5);
425
			this->ComboCargo->Name = L"ComboCargo";
426
			this->ComboCargo->Size = System::Drawing::Size(507, 21);
427
			this->ComboCargo->TabIndex = 1;
428
			this->ComboCargo->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboCargo_SelectedIndexChanged);
429
			// 
430
			// label8
431
			// 
432
			this->label8->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 433
			this->label8->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 434
				static_cast<System::Byte>(0)));
435
			this->label8->Location = System::Drawing::Point(5, 5);
436
			this->label8->Name = L"label8";
437
			this->label8->Size = System::Drawing::Size(150, 19);
438
			this->label8->TabIndex = 0;
439
			this->label8->Text = L"Cargo Class";
440
			this->label8->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
441
			// 
442
			// tableLayoutPanel1
443
			// 
444
			this->tableLayoutPanel1->ColumnCount = 2;
238 cycrow 445
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
1 cycrow 446
				50)));
238 cycrow 447
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent,
1 cycrow 448
				50)));
449
			this->tableLayoutPanel1->Controls->Add(this->label7, 1, 0);
450
			this->tableLayoutPanel1->Controls->Add(this->label6, 0, 0);
451
			this->tableLayoutPanel1->Controls->Add(this->NumCargoMin, 0, 1);
452
			this->tableLayoutPanel1->Controls->Add(this->NumCargoMax, 1, 1);
453
			this->tableLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Top;
454
			this->tableLayoutPanel1->Location = System::Drawing::Point(10, 23);
455
			this->tableLayoutPanel1->Name = L"tableLayoutPanel1";
456
			this->tableLayoutPanel1->RowCount = 2;
457
			this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
458
			this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
459
			this->tableLayoutPanel1->Size = System::Drawing::Size(667, 48);
460
			this->tableLayoutPanel1->TabIndex = 0;
461
			// 
462
			// label7
463
			// 
464
			this->label7->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 465
			this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 466
				static_cast<System::Byte>(0)));
467
			this->label7->Location = System::Drawing::Point(336, 0);
468
			this->label7->Name = L"label7";
469
			this->label7->Size = System::Drawing::Size(328, 24);
470
			this->label7->TabIndex = 1;
471
			this->label7->Text = L"Maximum";
472
			this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
473
			// 
474
			// label6
475
			// 
476
			this->label6->Dock = System::Windows::Forms::DockStyle::Fill;
238 cycrow 477
			this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 478
				static_cast<System::Byte>(0)));
479
			this->label6->Location = System::Drawing::Point(3, 0);
480
			this->label6->Name = L"label6";
481
			this->label6->Size = System::Drawing::Size(327, 24);
482
			this->label6->TabIndex = 0;
483
			this->label6->Text = L"Minimum";
484
			this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
485
			// 
486
			// NumCargoMin
487
			// 
488
			this->NumCargoMin->Dock = System::Windows::Forms::DockStyle::Fill;
489
			this->NumCargoMin->Location = System::Drawing::Point(3, 27);
238 cycrow 490
			this->NumCargoMin->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 10000000, 0, 0, 0 });
1 cycrow 491
			this->NumCargoMin->Name = L"NumCargoMin";
492
			this->NumCargoMin->Size = System::Drawing::Size(327, 20);
493
			this->NumCargoMin->TabIndex = 2;
494
			this->NumCargoMin->ThousandsSeparator = true;
238 cycrow 495
			this->NumCargoMin->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 496
			this->NumCargoMin->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumCargoMin_ValueChanged);
497
			// 
498
			// NumCargoMax
499
			// 
500
			this->NumCargoMax->Dock = System::Windows::Forms::DockStyle::Fill;
501
			this->NumCargoMax->Location = System::Drawing::Point(336, 27);
238 cycrow 502
			this->NumCargoMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 10000000, 0, 0, 0 });
1 cycrow 503
			this->NumCargoMax->Name = L"NumCargoMax";
504
			this->NumCargoMax->Size = System::Drawing::Size(328, 20);
505
			this->NumCargoMax->TabIndex = 3;
506
			this->NumCargoMax->ThousandsSeparator = true;
238 cycrow 507
			this->NumCargoMax->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
1 cycrow 508
			this->NumCargoMax->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumCargoMax_ValueChanged);
509
			// 
510
			// panel6
511
			// 
512
			this->panel6->Controls->Add(this->NumDock);
513
			this->panel6->Controls->Add(this->label5);
514
			this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
515
			this->panel6->Location = System::Drawing::Point(0, 128);
516
			this->panel6->Name = L"panel6";
517
			this->panel6->Padding = System::Windows::Forms::Padding(5);
518
			this->panel6->Size = System::Drawing::Size(687, 32);
519
			this->panel6->TabIndex = 4;
520
			// 
521
			// NumDock
522
			// 
523
			this->NumDock->Dock = System::Windows::Forms::DockStyle::Left;
524
			this->NumDock->Location = System::Drawing::Point(155, 5);
238 cycrow 525
			this->NumDock->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1000, 0, 0, 0 });
1 cycrow 526
			this->NumDock->Name = L"NumDock";
527
			this->NumDock->Size = System::Drawing::Size(90, 20);
528
			this->NumDock->TabIndex = 1;
529
			this->NumDock->UpDownAlign = System::Windows::Forms::LeftRightAlignment::Left;
530
			this->NumDock->ValueChanged += gcnew System::EventHandler(this, &CustomiseInfo::NumDock_ValueChanged);
531
			// 
532
			// label5
533
			// 
534
			this->label5->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 535
			this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 536
				static_cast<System::Byte>(0)));
537
			this->label5->Location = System::Drawing::Point(5, 5);
538
			this->label5->Name = L"label5";
539
			this->label5->Size = System::Drawing::Size(150, 22);
540
			this->label5->TabIndex = 0;
541
			this->label5->Text = L"Docking Slots";
542
			this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
543
			// 
544
			// panel4
545
			// 
546
			this->panel4->Controls->Add(this->ComboVariation);
547
			this->panel4->Controls->Add(this->label3);
548
			this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
549
			this->panel4->Location = System::Drawing::Point(0, 96);
550
			this->panel4->Name = L"panel4";
551
			this->panel4->Padding = System::Windows::Forms::Padding(5);
552
			this->panel4->Size = System::Drawing::Size(687, 32);
553
			this->panel4->TabIndex = 2;
554
			// 
555
			// ComboVariation
556
			// 
557
			this->ComboVariation->Dock = System::Windows::Forms::DockStyle::Fill;
558
			this->ComboVariation->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
559
			this->ComboVariation->FormattingEnabled = true;
560
			this->ComboVariation->Location = System::Drawing::Point(155, 5);
561
			this->ComboVariation->Name = L"ComboVariation";
562
			this->ComboVariation->Size = System::Drawing::Size(527, 21);
563
			this->ComboVariation->TabIndex = 1;
564
			this->ComboVariation->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboVariation_SelectedIndexChanged);
565
			// 
566
			// label3
567
			// 
568
			this->label3->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 569
			this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 570
				static_cast<System::Byte>(0)));
571
			this->label3->Location = System::Drawing::Point(5, 5);
572
			this->label3->Name = L"label3";
573
			this->label3->Size = System::Drawing::Size(150, 22);
574
			this->label3->TabIndex = 0;
575
			this->label3->Text = L"Ship Variation";
576
			this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
577
			// 
578
			// panel10
579
			// 
580
			this->panel10->Controls->Add(this->ComboSubType);
581
			this->panel10->Controls->Add(this->label15);
582
			this->panel10->Dock = System::Windows::Forms::DockStyle::Top;
583
			this->panel10->Location = System::Drawing::Point(0, 64);
584
			this->panel10->Name = L"panel10";
585
			this->panel10->Padding = System::Windows::Forms::Padding(5);
586
			this->panel10->Size = System::Drawing::Size(687, 32);
587
			this->panel10->TabIndex = 8;
588
			// 
589
			// ComboSubType
590
			// 
591
			this->ComboSubType->Dock = System::Windows::Forms::DockStyle::Fill;
592
			this->ComboSubType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
593
			this->ComboSubType->FormattingEnabled = true;
594
			this->ComboSubType->Location = System::Drawing::Point(155, 5);
595
			this->ComboSubType->Name = L"ComboSubType";
596
			this->ComboSubType->Size = System::Drawing::Size(527, 21);
597
			this->ComboSubType->TabIndex = 1;
598
			this->ComboSubType->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboSubType_SelectedIndexChanged);
599
			// 
600
			// label15
601
			// 
602
			this->label15->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 603
			this->label15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 604
				static_cast<System::Byte>(0)));
605
			this->label15->Location = System::Drawing::Point(5, 5);
606
			this->label15->Name = L"label15";
607
			this->label15->Size = System::Drawing::Size(150, 22);
608
			this->label15->TabIndex = 0;
609
			this->label15->Text = L"Sub Type";
610
			this->label15->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
611
			// 
612
			// panel5
613
			// 
614
			this->panel5->Controls->Add(this->ComboClass);
615
			this->panel5->Controls->Add(this->label4);
616
			this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
617
			this->panel5->Location = System::Drawing::Point(0, 32);
618
			this->panel5->Name = L"panel5";
619
			this->panel5->Padding = System::Windows::Forms::Padding(5);
620
			this->panel5->Size = System::Drawing::Size(687, 32);
621
			this->panel5->TabIndex = 3;
622
			// 
623
			// ComboClass
624
			// 
625
			this->ComboClass->Dock = System::Windows::Forms::DockStyle::Fill;
626
			this->ComboClass->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
627
			this->ComboClass->FormattingEnabled = true;
628
			this->ComboClass->Location = System::Drawing::Point(155, 5);
629
			this->ComboClass->Name = L"ComboClass";
630
			this->ComboClass->Size = System::Drawing::Size(527, 21);
631
			this->ComboClass->TabIndex = 1;
632
			this->ComboClass->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboClass_SelectedIndexChanged);
633
			// 
634
			// label4
635
			// 
636
			this->label4->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 637
			this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 638
				static_cast<System::Byte>(0)));
639
			this->label4->Location = System::Drawing::Point(5, 5);
640
			this->label4->Name = L"label4";
641
			this->label4->Size = System::Drawing::Size(150, 22);
642
			this->label4->TabIndex = 0;
643
			this->label4->Text = L"Ship Class";
644
			this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
645
			// 
646
			// panel3
647
			// 
648
			this->panel3->Controls->Add(this->ComboRace);
649
			this->panel3->Controls->Add(this->label2);
650
			this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
651
			this->panel3->Location = System::Drawing::Point(0, 0);
652
			this->panel3->Name = L"panel3";
653
			this->panel3->Padding = System::Windows::Forms::Padding(5);
654
			this->panel3->Size = System::Drawing::Size(687, 32);
655
			this->panel3->TabIndex = 1;
656
			// 
657
			// ComboRace
658
			// 
659
			this->ComboRace->Dock = System::Windows::Forms::DockStyle::Fill;
660
			this->ComboRace->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
661
			this->ComboRace->FormattingEnabled = true;
662
			this->ComboRace->Location = System::Drawing::Point(155, 5);
663
			this->ComboRace->Name = L"ComboRace";
664
			this->ComboRace->Size = System::Drawing::Size(527, 21);
665
			this->ComboRace->TabIndex = 1;
666
			this->ComboRace->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseInfo::ComboRace_SelectedIndexChanged);
667
			// 
668
			// label2
669
			// 
670
			this->label2->Dock = System::Windows::Forms::DockStyle::Left;
238 cycrow 671
			this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
1 cycrow 672
				static_cast<System::Byte>(0)));
673
			this->label2->Location = System::Drawing::Point(5, 5);
674
			this->label2->Name = L"label2";
675
			this->label2->Size = System::Drawing::Size(150, 22);
676
			this->label2->TabIndex = 0;
677
			this->label2->Text = L"Owner Race";
678
			this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
679
			// 
680
			// CustomiseInfo
681
			// 
682
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
683
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
684
			this->Controls->Add(this->groupBox3);
685
			this->Controls->Add(this->groupBox2);
686
			this->Controls->Add(this->groupBox1);
687
			this->Controls->Add(this->panel6);
688
			this->Controls->Add(this->panel4);
689
			this->Controls->Add(this->panel10);
690
			this->Controls->Add(this->panel5);
691
			this->Controls->Add(this->panel3);
692
			this->Name = L"CustomiseInfo";
693
			this->Size = System::Drawing::Size(687, 644);
694
			this->groupBox3->ResumeLayout(false);
695
			this->panel9->ResumeLayout(false);
238 cycrow 696
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumNoto))->EndInit();
1 cycrow 697
			this->panel8->ResumeLayout(false);
698
			this->groupBox2->ResumeLayout(false);
699
			this->tableLayoutPanel2->ResumeLayout(false);
238 cycrow 700
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->TextPriceNPC))->EndInit();
701
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->TextPricePlayer))->EndInit();
702
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumPriceNPC))->EndInit();
703
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumPricePlayer))->EndInit();
1 cycrow 704
			this->groupBox1->ResumeLayout(false);
705
			this->panel7->ResumeLayout(false);
706
			this->tableLayoutPanel1->ResumeLayout(false);
238 cycrow 707
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumCargoMin))->EndInit();
708
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumCargoMax))->EndInit();
1 cycrow 709
			this->panel6->ResumeLayout(false);
238 cycrow 710
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->NumDock))->EndInit();
1 cycrow 711
			this->panel4->ResumeLayout(false);
712
			this->panel10->ResumeLayout(false);
713
			this->panel5->ResumeLayout(false);
714
			this->panel3->ResumeLayout(false);
715
			this->ResumeLayout(false);
716
 
717
		}
718
#pragma endregion
719
private: System::Void NumPriceNPC_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
720
			 double price = Convert::ToDouble(this->NumPriceNPC->Value);
721
			 if ( m_pShipData->iClass == 14 )
722
				 price *= 65.555784f;
723
			 else
724
				price *= 80.72126f;
725
			 this->TextPriceNPC->Value = Convert::ToInt32(price);
726
			 if ( !m_bUpdateing )
727
				 m_pShipData->iRelVal = Convert::ToInt32(this->NumPriceNPC->Value);
728
		 }
729
private: System::Void ComboNoto_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
730
			 if ( m_bUpdateing ) return;
731
			 if ( this->ComboNoto->SelectedIndex > 0 )
732
				 this->NumNoto->Value = this->GetNotoAmount(this->ComboNoto->SelectedIndex);
733
		 }
734
private: System::Void ComboRace_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
735
			 if ( m_bUpdateing ) return;
736
			 m_pShipData->iRace = this->ComboRace->SelectedIndex + 1;
737
			 this->UpdateNotority();
738
		 }
739
private: System::Void ComboClass_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
740
			 if ( m_bUpdateing ) return;
741
			 m_pShipData->iClass = CShipData::GetShipClassFromNum(this->ComboClass->SelectedIndex);
742
		 }
743
private: System::Void ComboSubType_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
744
			 if ( m_bUpdateing ) return;
745
			 m_pShipData->iSubType = this->ComboSubType->SelectedIndex;
746
		 }
747
private: System::Void ComboVariation_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
748
			 if ( m_bUpdateing ) return;
749
			 m_pShipData->iVariation = this->ComboVariation->SelectedIndex;
750
		 }
751
private: System::Void NumDock_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
752
			 if ( m_bUpdateing ) return;
753
			 m_pShipData->iDocking = Convert::ToInt32(this->NumDock->Value);
754
		 }
755
private: System::Void NumCargoMin_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
756
			 if ( m_bUpdateing ) return;
757
			 m_pShipData->iCargoMin = Convert::ToInt32(this->NumCargoMin->Value);
758
			 if ( Convert::ToInt32(this->NumCargoMax->Value) < Convert::ToInt32(this->NumCargoMin->Value) )
759
				 this->NumCargoMax->Value = this->NumCargoMin->Value;
760
		 }
761
private: System::Void NumCargoMax_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
762
			 if ( m_bUpdateing ) return;
763
			 m_pShipData->iCargoMax = Convert::ToInt32(this->NumCargoMax->Value);
764
			 if ( Convert::ToInt32(this->NumCargoMax->Value) < Convert::ToInt32(this->NumCargoMin->Value) )
765
				 this->NumCargoMin->Value = this->NumCargoMax->Value;
766
		 }
767
private: System::Void ComboCargo_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
768
			 if ( m_bUpdateing ) return;
769
			 m_pShipData->iCargoClass = this->ComboCargo->SelectedIndex;
770
		 }
771
private: System::Void NumNoto_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
772
			 if ( m_bUpdateing ) return;
773
			 m_pShipData->iMinNoto = Convert::ToInt32(this->NumNoto->Value);
774
		 }
775
private: System::Void NumPricePlayer_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
776
			 double price = Convert::ToDouble(this->NumPricePlayer->Value);
777
			 if ( m_pShipData->iClass == 14 )
778
				 price *= 65.555784f;
779
			 else
780
				price *= 80.72126f;
781
			this->TextPricePlayer->Value = Convert::ToInt32(price);
782
			 if ( !m_bUpdateing )
783
				 m_pShipData->iRelValPlayer = Convert::ToInt32(this->NumPricePlayer->Value);
784
		 }
785
};
786
}