Subversion Repositories spk

Rev

Details | 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 AddWare
15
	///
16
	/// WARNING: If you change the name of this class, you will need to change the
17
	///          'Resource File Name' property for the managed resource compiler tool
18
	///          associated with all .resx files this class depends on.  Otherwise,
19
	///          the designers will not be able to interact properly with localized
20
	///          resources associated with this form.
21
	/// </summary>
22
	public ref class AddWare : public System::Windows::Forms::Form
23
	{
24
	public:
25
		AddWare(void)
26
		{
27
			InitializeComponent();
28
 
29
			this->ComboSize->SelectedIndex = 0;
30
			this->ComboType->SelectedIndex = 0;
31
 
32
			this->TextWare->Focus();
33
		}
34
 
35
		void SetEdit(System::String ^sID)
36
		{
37
			this->Text = "Edit Ware: " + sID;
38
			this->TextWare->Enabled = false;
39
		}
40
 
41
		void SetType(int i) { this->ComboType->SelectedIndex = i; }
42
		void SetSize(int i) { this->ComboSize->SelectedIndex = i; }
43
		void SetPrice(int i) { this->NumPrice->Value = i; }
44
		void SetVolumn(int i) { this->NumVolumn->Value = i; }
45
		void SetMinNotoriety(int i) { this->NumNoto->Value = i; }
46
		void SetTextPage(int page, int id) { 
47
			this->checkBox1->Checked = true;
48
			this->NumTextPage->Value = page;
49
			this->NumTextID->Value = id;
50
		}
51
		void SetNoText() { this->checkBox1->Checked = false; }
52
 
53
		System::String ^GetID() { return m_sID; }
54
		int GetType() { return m_iType; }
55
		int GetPrice() { return m_iPrice; }
56
		int GetSize() { return m_iSize; }
57
		int GetVolumn() { return m_iVolumn; }
58
		int GetMinNotoriety() { return m_iNoto; }
59
		int GetTextPage() { return m_iTextPage; }
60
		int GetTextID() { return m_iTextID; }
61
 
62
	protected:
63
		/// <summary>
64
		/// Clean up any resources being used.
65
		/// </summary>
66
		~AddWare()
67
		{
68
			if (components)
69
			{
70
				delete components;
71
			}
72
		}
73
 
74
		System::String ^m_sID;
75
		int m_iType;
76
		int m_iPrice;
77
		int m_iSize;
78
		int m_iVolumn;
79
		int m_iNoto;
80
		int m_iTextPage;
81
		int m_iTextID;
82
 
83
	private: System::Windows::Forms::Button^  button1;
84
	protected: 
85
	private: System::Windows::Forms::Button^  button2;
86
	private: System::Windows::Forms::Panel^  panel1;
87
	private: System::Windows::Forms::Label^  label1;
88
	private: System::Windows::Forms::Panel^  panel2;
89
	public: System::Windows::Forms::TextBox^  TextWare;
90
	private: 
91
 
92
 
93
	private: System::Windows::Forms::Panel^  panel3;
94
	public: System::Windows::Forms::ComboBox^  ComboType;
95
	private: 
96
 
97
 
98
	private: System::Windows::Forms::Label^  label2;
99
	private: System::Windows::Forms::Panel^  panel4;
100
	public: System::Windows::Forms::NumericUpDown^  NumPrice;
101
	private: 
102
 
103
 
104
	private: System::Windows::Forms::Label^  label3;
105
	private: System::Windows::Forms::Panel^  panel5;
106
	public: System::Windows::Forms::ComboBox^  ComboSize;
107
	private: 
108
 
109
 
110
	private: System::Windows::Forms::Label^  label4;
111
	private: System::Windows::Forms::Panel^  panel6;
112
	public: System::Windows::Forms::NumericUpDown^  NumVolumn;
113
	private: 
114
 
115
 
116
	private: System::Windows::Forms::Label^  label5;
117
	private: System::Windows::Forms::Panel^  panel7;
118
	public: System::Windows::Forms::NumericUpDown^  NumNoto;
119
	private: 
120
 
121
 
122
 
123
	private: System::Windows::Forms::Label^  label6;
124
	private: System::Windows::Forms::Panel^  panel8;
125
	public: System::Windows::Forms::NumericUpDown^  NumTextID;
126
	private: 
127
 
128
	public: System::Windows::Forms::NumericUpDown^  NumTextPage;
129
	private: 
130
 
131
	private: System::Windows::Forms::CheckBox^  checkBox1;
132
	public: 
133
	private: System::Windows::Forms::Label^  label7;
134
 
135
	private:
136
		/// <summary>
137
		/// Required designer variable.
138
		/// </summary>
139
		System::ComponentModel::Container ^components;
140
 
141
#pragma region Windows Form Designer generated code
142
		/// <summary>
143
		/// Required method for Designer support - do not modify
144
		/// the contents of this method with the code editor.
145
		/// </summary>
146
		void InitializeComponent(void)
147
		{
148
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(AddWare::typeid));
149
			this->button1 = (gcnew System::Windows::Forms::Button());
150
			this->button2 = (gcnew System::Windows::Forms::Button());
151
			this->panel1 = (gcnew System::Windows::Forms::Panel());
152
			this->label1 = (gcnew System::Windows::Forms::Label());
153
			this->panel2 = (gcnew System::Windows::Forms::Panel());
154
			this->TextWare = (gcnew System::Windows::Forms::TextBox());
155
			this->panel3 = (gcnew System::Windows::Forms::Panel());
156
			this->ComboType = (gcnew System::Windows::Forms::ComboBox());
157
			this->label2 = (gcnew System::Windows::Forms::Label());
158
			this->panel4 = (gcnew System::Windows::Forms::Panel());
159
			this->NumPrice = (gcnew System::Windows::Forms::NumericUpDown());
160
			this->label3 = (gcnew System::Windows::Forms::Label());
161
			this->panel5 = (gcnew System::Windows::Forms::Panel());
162
			this->ComboSize = (gcnew System::Windows::Forms::ComboBox());
163
			this->label4 = (gcnew System::Windows::Forms::Label());
164
			this->panel6 = (gcnew System::Windows::Forms::Panel());
165
			this->NumVolumn = (gcnew System::Windows::Forms::NumericUpDown());
166
			this->label5 = (gcnew System::Windows::Forms::Label());
167
			this->panel7 = (gcnew System::Windows::Forms::Panel());
168
			this->NumNoto = (gcnew System::Windows::Forms::NumericUpDown());
169
			this->label6 = (gcnew System::Windows::Forms::Label());
170
			this->panel8 = (gcnew System::Windows::Forms::Panel());
171
			this->NumTextID = (gcnew System::Windows::Forms::NumericUpDown());
172
			this->NumTextPage = (gcnew System::Windows::Forms::NumericUpDown());
173
			this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
174
			this->label7 = (gcnew System::Windows::Forms::Label());
175
			this->panel1->SuspendLayout();
176
			this->panel2->SuspendLayout();
177
			this->panel3->SuspendLayout();
178
			this->panel4->SuspendLayout();
179
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPrice))->BeginInit();
180
			this->panel5->SuspendLayout();
181
			this->panel6->SuspendLayout();
182
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumVolumn))->BeginInit();
183
			this->panel7->SuspendLayout();
184
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumNoto))->BeginInit();
185
			this->panel8->SuspendLayout();
186
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextID))->BeginInit();
187
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextPage))->BeginInit();
188
			this->SuspendLayout();
189
			// 
190
			// button1
191
			// 
192
			this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
193
			this->button1->Dock = System::Windows::Forms::DockStyle::Right;
194
			this->button1->Location = System::Drawing::Point(435, 3);
195
			this->button1->Name = L"button1";
196
			this->button1->Size = System::Drawing::Size(110, 29);
197
			this->button1->TabIndex = 0;
198
			this->button1->TabStop = false;
199
			this->button1->Text = L"OK";
200
			this->button1->UseVisualStyleBackColor = true;
201
			this->button1->Click += gcnew System::EventHandler(this, &AddWare::button1_Click);
202
			// 
203
			// button2
204
			// 
205
			this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
206
			this->button2->Dock = System::Windows::Forms::DockStyle::Right;
207
			this->button2->Location = System::Drawing::Point(325, 3);
208
			this->button2->Name = L"button2";
209
			this->button2->Size = System::Drawing::Size(110, 29);
210
			this->button2->TabIndex = 1;
211
			this->button2->TabStop = false;
212
			this->button2->Text = L"Cancel";
213
			this->button2->UseVisualStyleBackColor = true;
214
			// 
215
			// panel1
216
			// 
217
			this->panel1->Controls->Add(this->button2);
218
			this->panel1->Controls->Add(this->button1);
219
			this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
220
			this->panel1->Location = System::Drawing::Point(10, 323);
221
			this->panel1->Name = L"panel1";
222
			this->panel1->Padding = System::Windows::Forms::Padding(3);
223
			this->panel1->Size = System::Drawing::Size(548, 35);
224
			this->panel1->TabIndex = 2;
225
			// 
226
			// label1
227
			// 
228
			this->label1->Dock = System::Windows::Forms::DockStyle::Left;
229
			this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
230
				static_cast<System::Byte>(0)));
231
			this->label1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label1.Image")));
232
			this->label1->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
233
			this->label1->Location = System::Drawing::Point(5, 5);
234
			this->label1->Name = L"label1";
235
			this->label1->Size = System::Drawing::Size(156, 29);
236
			this->label1->TabIndex = 3;
237
			this->label1->Text = L"Ware ID";
238
			this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
239
			// 
240
			// panel2
241
			// 
242
			this->panel2->Controls->Add(this->TextWare);
243
			this->panel2->Controls->Add(this->label1);
244
			this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
245
			this->panel2->Location = System::Drawing::Point(10, 10);
246
			this->panel2->Name = L"panel2";
247
			this->panel2->Padding = System::Windows::Forms::Padding(5);
248
			this->panel2->Size = System::Drawing::Size(548, 39);
249
			this->panel2->TabIndex = 4;
250
			// 
251
			// TextWare
252
			// 
253
			this->TextWare->Dock = System::Windows::Forms::DockStyle::Fill;
254
			this->TextWare->Location = System::Drawing::Point(161, 5);
255
			this->TextWare->Name = L"TextWare";
256
			this->TextWare->Size = System::Drawing::Size(382, 20);
257
			this->TextWare->TabIndex = 4;
258
			this->TextWare->Text = L"SS_WARE_";
259
			// 
260
			// panel3
261
			// 
262
			this->panel3->Controls->Add(this->ComboType);
263
			this->panel3->Controls->Add(this->label2);
264
			this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
265
			this->panel3->Location = System::Drawing::Point(10, 49);
266
			this->panel3->Name = L"panel3";
267
			this->panel3->Padding = System::Windows::Forms::Padding(5);
268
			this->panel3->Size = System::Drawing::Size(548, 41);
269
			this->panel3->TabIndex = 5;
270
			// 
271
			// ComboType
272
			// 
273
			this->ComboType->Dock = System::Windows::Forms::DockStyle::Fill;
274
			this->ComboType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
275
			this->ComboType->FormattingEnabled = true;
276
			this->ComboType->Items->AddRange(gcnew cli::array< System::Object^  >(6) {L"Bio", L"Energy", L"Food", L"Mineral", L"Tech", 
277
				L"Other"});
278
			this->ComboType->Location = System::Drawing::Point(161, 5);
279
			this->ComboType->Name = L"ComboType";
280
			this->ComboType->Size = System::Drawing::Size(382, 21);
281
			this->ComboType->TabIndex = 4;
282
			// 
283
			// label2
284
			// 
285
			this->label2->Dock = System::Windows::Forms::DockStyle::Left;
286
			this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
287
				static_cast<System::Byte>(0)));
288
			this->label2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label2.Image")));
289
			this->label2->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
290
			this->label2->Location = System::Drawing::Point(5, 5);
291
			this->label2->Name = L"label2";
292
			this->label2->Size = System::Drawing::Size(156, 31);
293
			this->label2->TabIndex = 3;
294
			this->label2->Text = L"Ware Type";
295
			this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
296
			// 
297
			// panel4
298
			// 
299
			this->panel4->Controls->Add(this->NumPrice);
300
			this->panel4->Controls->Add(this->label3);
301
			this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
302
			this->panel4->Location = System::Drawing::Point(10, 90);
303
			this->panel4->Name = L"panel4";
304
			this->panel4->Padding = System::Windows::Forms::Padding(5);
305
			this->panel4->Size = System::Drawing::Size(548, 45);
306
			this->panel4->TabIndex = 6;
307
			// 
308
			// NumPrice
309
			// 
310
			this->NumPrice->Dock = System::Windows::Forms::DockStyle::Fill;
311
			this->NumPrice->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
312
			this->NumPrice->Location = System::Drawing::Point(161, 5);
313
			this->NumPrice->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
314
			this->NumPrice->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
315
			this->NumPrice->Name = L"NumPrice";
316
			this->NumPrice->Size = System::Drawing::Size(382, 20);
317
			this->NumPrice->TabIndex = 4;
318
			this->NumPrice->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
319
			// 
320
			// label3
321
			// 
322
			this->label3->Dock = System::Windows::Forms::DockStyle::Left;
323
			this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
324
				static_cast<System::Byte>(0)));
325
			this->label3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label3.Image")));
326
			this->label3->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
327
			this->label3->Location = System::Drawing::Point(5, 5);
328
			this->label3->Name = L"label3";
329
			this->label3->Size = System::Drawing::Size(156, 35);
330
			this->label3->TabIndex = 3;
331
			this->label3->Text = L"Price";
332
			this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
333
			// 
334
			// panel5
335
			// 
336
			this->panel5->Controls->Add(this->ComboSize);
337
			this->panel5->Controls->Add(this->label4);
338
			this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
339
			this->panel5->Location = System::Drawing::Point(10, 135);
340
			this->panel5->Name = L"panel5";
341
			this->panel5->Padding = System::Windows::Forms::Padding(5);
342
			this->panel5->Size = System::Drawing::Size(548, 41);
343
			this->panel5->TabIndex = 7;
344
			// 
345
			// ComboSize
346
			// 
347
			this->ComboSize->Dock = System::Windows::Forms::DockStyle::Fill;
348
			this->ComboSize->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
349
			this->ComboSize->FormattingEnabled = true;
350
			this->ComboSize->Items->AddRange(gcnew cli::array< System::Object^  >(6) {L"Tiny Containers", L"Small Containers (S)", L"Medium Containers (M)", 
351
				L"Large Containers (L)", L"Extra Large Containers (XL)", L"Station Containers (ST)"});
352
			this->ComboSize->Location = System::Drawing::Point(161, 5);
353
			this->ComboSize->Name = L"ComboSize";
354
			this->ComboSize->Size = System::Drawing::Size(382, 21);
355
			this->ComboSize->TabIndex = 5;
356
			// 
357
			// label4
358
			// 
359
			this->label4->Dock = System::Windows::Forms::DockStyle::Left;
360
			this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
361
				static_cast<System::Byte>(0)));
362
			this->label4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label4.Image")));
363
			this->label4->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
364
			this->label4->Location = System::Drawing::Point(5, 5);
365
			this->label4->Name = L"label4";
366
			this->label4->Size = System::Drawing::Size(156, 31);
367
			this->label4->TabIndex = 3;
368
			this->label4->Text = L"Size Class";
369
			this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
370
			// 
371
			// panel6
372
			// 
373
			this->panel6->Controls->Add(this->NumVolumn);
374
			this->panel6->Controls->Add(this->label5);
375
			this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
376
			this->panel6->Location = System::Drawing::Point(10, 176);
377
			this->panel6->Name = L"panel6";
378
			this->panel6->Padding = System::Windows::Forms::Padding(5);
379
			this->panel6->Size = System::Drawing::Size(548, 44);
380
			this->panel6->TabIndex = 8;
381
			// 
382
			// NumVolumn
383
			// 
384
			this->NumVolumn->Dock = System::Windows::Forms::DockStyle::Fill;
385
			this->NumVolumn->Location = System::Drawing::Point(161, 5);
386
			this->NumVolumn->Name = L"NumVolumn";
387
			this->NumVolumn->Size = System::Drawing::Size(382, 20);
388
			this->NumVolumn->TabIndex = 5;
389
			this->NumVolumn->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
390
			// 
391
			// label5
392
			// 
393
			this->label5->Dock = System::Windows::Forms::DockStyle::Left;
394
			this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
395
				static_cast<System::Byte>(0)));
396
			this->label5->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label5.Image")));
397
			this->label5->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
398
			this->label5->Location = System::Drawing::Point(5, 5);
399
			this->label5->Name = L"label5";
400
			this->label5->Size = System::Drawing::Size(156, 34);
401
			this->label5->TabIndex = 3;
402
			this->label5->Text = L"Volumn";
403
			this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
404
			// 
405
			// panel7
406
			// 
407
			this->panel7->Controls->Add(this->NumNoto);
408
			this->panel7->Controls->Add(this->label6);
409
			this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
410
			this->panel7->Location = System::Drawing::Point(10, 220);
411
			this->panel7->Name = L"panel7";
412
			this->panel7->Padding = System::Windows::Forms::Padding(5);
413
			this->panel7->Size = System::Drawing::Size(548, 39);
414
			this->panel7->TabIndex = 9;
415
			// 
416
			// NumNoto
417
			// 
418
			this->NumNoto->Dock = System::Windows::Forms::DockStyle::Fill;
419
			this->NumNoto->Location = System::Drawing::Point(161, 5);
420
			this->NumNoto->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000000, 0, 0, 0});
421
			this->NumNoto->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000000, 0, 0, System::Int32::MinValue});
422
			this->NumNoto->Name = L"NumNoto";
423
			this->NumNoto->Size = System::Drawing::Size(382, 20);
424
			this->NumNoto->TabIndex = 5;
425
			// 
426
			// label6
427
			// 
428
			this->label6->Dock = System::Windows::Forms::DockStyle::Left;
429
			this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
430
				static_cast<System::Byte>(0)));
431
			this->label6->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label6.Image")));
432
			this->label6->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
433
			this->label6->Location = System::Drawing::Point(5, 5);
434
			this->label6->Name = L"label6";
435
			this->label6->Size = System::Drawing::Size(156, 29);
436
			this->label6->TabIndex = 3;
437
			this->label6->Text = L"Min. Notoriety";
438
			this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
439
			// 
440
			// panel8
441
			// 
442
			this->panel8->Controls->Add(this->NumTextID);
443
			this->panel8->Controls->Add(this->NumTextPage);
444
			this->panel8->Controls->Add(this->checkBox1);
445
			this->panel8->Controls->Add(this->label7);
446
			this->panel8->Dock = System::Windows::Forms::DockStyle::Top;
447
			this->panel8->Location = System::Drawing::Point(10, 259);
448
			this->panel8->Name = L"panel8";
449
			this->panel8->Padding = System::Windows::Forms::Padding(5);
450
			this->panel8->Size = System::Drawing::Size(548, 39);
451
			this->panel8->TabIndex = 10;
452
			// 
453
			// NumTextID
454
			// 
455
			this->NumTextID->Dock = System::Windows::Forms::DockStyle::Fill;
456
			this->NumTextID->Enabled = false;
457
			this->NumTextID->Location = System::Drawing::Point(273, 5);
458
			this->NumTextID->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000000, 0, 0, 0});
459
			this->NumTextID->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
460
			this->NumTextID->Name = L"NumTextID";
461
			this->NumTextID->Size = System::Drawing::Size(270, 20);
462
			this->NumTextID->TabIndex = 7;
463
			this->NumTextID->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
464
			// 
465
			// NumTextPage
466
			// 
467
			this->NumTextPage->Dock = System::Windows::Forms::DockStyle::Left;
468
			this->NumTextPage->Enabled = false;
469
			this->NumTextPage->Location = System::Drawing::Point(176, 5);
470
			this->NumTextPage->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {9999, 0, 0, 0});
471
			this->NumTextPage->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
472
			this->NumTextPage->Name = L"NumTextPage";
473
			this->NumTextPage->Size = System::Drawing::Size(97, 20);
474
			this->NumTextPage->TabIndex = 7;
475
			this->NumTextPage->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
476
			// 
477
			// checkBox1
478
			// 
479
			this->checkBox1->AutoSize = true;
480
			this->checkBox1->Dock = System::Windows::Forms::DockStyle::Left;
481
			this->checkBox1->Location = System::Drawing::Point(161, 5);
482
			this->checkBox1->Name = L"checkBox1";
483
			this->checkBox1->Size = System::Drawing::Size(15, 29);
484
			this->checkBox1->TabIndex = 6;
485
			this->checkBox1->UseVisualStyleBackColor = true;
486
			this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &AddWare::checkBox1_CheckedChanged);
487
			// 
488
			// label7
489
			// 
490
			this->label7->Dock = System::Windows::Forms::DockStyle::Left;
491
			this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
492
				static_cast<System::Byte>(0)));
493
			this->label7->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label7.Image")));
494
			this->label7->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
495
			this->label7->Location = System::Drawing::Point(5, 5);
496
			this->label7->Name = L"label7";
497
			this->label7->Size = System::Drawing::Size(156, 29);
498
			this->label7->TabIndex = 3;
499
			this->label7->Text = L"Text ID";
500
			this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
501
			// 
502
			// AddWare
503
			// 
504
			this->AcceptButton = this->button1;
505
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
506
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
507
			this->CancelButton = this->button2;
508
			this->ClientSize = System::Drawing::Size(568, 368);
509
			this->ControlBox = false;
510
			this->Controls->Add(this->panel8);
511
			this->Controls->Add(this->panel7);
512
			this->Controls->Add(this->panel6);
513
			this->Controls->Add(this->panel5);
514
			this->Controls->Add(this->panel4);
515
			this->Controls->Add(this->panel3);
516
			this->Controls->Add(this->panel2);
517
			this->Controls->Add(this->panel1);
518
			this->Name = L"AddWare";
519
			this->Padding = System::Windows::Forms::Padding(10);
520
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
521
			this->Text = L"Add New Ware";
522
			this->TopMost = true;
523
			this->Load += gcnew System::EventHandler(this, &AddWare::AddWare_Load);
524
			this->panel1->ResumeLayout(false);
525
			this->panel2->ResumeLayout(false);
526
			this->panel2->PerformLayout();
527
			this->panel3->ResumeLayout(false);
528
			this->panel4->ResumeLayout(false);
529
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPrice))->EndInit();
530
			this->panel5->ResumeLayout(false);
531
			this->panel6->ResumeLayout(false);
532
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumVolumn))->EndInit();
533
			this->panel7->ResumeLayout(false);
534
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumNoto))->EndInit();
535
			this->panel8->ResumeLayout(false);
536
			this->panel8->PerformLayout();
537
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextID))->EndInit();
538
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumTextPage))->EndInit();
539
			this->ResumeLayout(false);
540
 
541
		}
542
#pragma endregion
543
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
544
				 m_sID = this->TextWare->Text;
545
				 m_iType = this->ComboType->SelectedIndex;
546
				 m_iPrice = System::Convert::ToInt32(this->NumPrice->Value);
547
				 m_iSize = this->ComboSize->SelectedIndex;
548
				 m_iVolumn = System::Convert::ToInt32(this->NumVolumn->Value);
549
				 m_iNoto = System::Convert::ToInt32(this->NumNoto->Value);
550
				 if ( this->checkBox1->Checked )
551
				 {
552
					 m_iTextPage = System::Convert::ToInt32(this->NumTextPage->Value);
553
					 m_iTextID = System::Convert::ToInt32(this->NumTextID->Value);
554
				 }
555
				 else
556
				 {
557
					 m_iTextPage = 0;
558
					 m_iTextID = -1;
559
				 }
560
			 }
561
private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
562
			 this->NumTextID->Enabled = this->checkBox1->Checked;
563
			 this->NumTextPage->Enabled = this->checkBox1->Checked;
564
		 }
565
private: System::Void AddWare_Load(System::Object^  sender, System::EventArgs^  e) {
566
			 this->TextWare->Focus();
567
		 }
568
};
569
}