Blame | 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 AddWare
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class AddWare : public System::Windows::Forms::Form
{
public:
AddWare(void)
{
InitializeComponent();
this->ComboSize->SelectedIndex = 0;
this->ComboType->SelectedIndex = 0;
this->TextWare->Focus();
}
void SetEdit(System::String ^sID)
{
this->Text = "Edit Ware: " + sID;
this->TextWare->Enabled = false;
}
void SetType(int i) { this->ComboType->SelectedIndex = i; }
void SetSize(int i) { this->ComboSize->SelectedIndex = i; }
void SetPrice(int i) { this->NumPrice->Value = i; }
void SetVolumn(int i) { this->NumVolumn->Value = i; }
void SetMinNotoriety(int i) { this->NumNoto->Value = i; }
void SetTextPage(int page, int id) {
this->checkBox1->Checked = true;
this->NumTextPage->Value = page;
this->NumTextID->Value = id;
}
void SetNoText() { this->checkBox1->Checked = false; }
System::String ^GetID() { return m_sID; }
int GetType() { return m_iType; }
int GetPrice() { return m_iPrice; }
int GetSize() { return m_iSize; }
int GetVolumn() { return m_iVolumn; }
int GetMinNotoriety() { return m_iNoto; }
int GetTextPage() { return m_iTextPage; }
int GetTextID() { return m_iTextID; }
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~AddWare()
{
if (components)
{
delete components;
}
}
System::String ^m_sID;
int m_iType;
int m_iPrice;
int m_iSize;
int m_iVolumn;
int m_iNoto;
int m_iTextPage;
int m_iTextID;
private: System::Windows::Forms::Button^ button1;
protected:
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::Panel^ panel1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Panel^ panel2;
public: System::Windows::Forms::TextBox^ TextWare;
private:
private: System::Windows::Forms::Panel^ panel3;
public: System::Windows::Forms::ComboBox^ ComboType;
private:
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Panel^ panel4;
public: System::Windows::Forms::NumericUpDown^ NumPrice;
private:
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Panel^ panel5;
public: System::Windows::Forms::ComboBox^ ComboSize;
private:
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Panel^ panel6;
public: System::Windows::Forms::NumericUpDown^ NumVolumn;
private:
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Panel^ panel7;
public: System::Windows::Forms::NumericUpDown^ NumNoto;
private:
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::Panel^ panel8;
public: System::Windows::Forms::NumericUpDown^ NumTextID;
private:
public: System::Windows::Forms::NumericUpDown^ NumTextPage;
private:
private: System::Windows::Forms::CheckBox^ checkBox1;
public:
private: System::Windows::Forms::Label^ label7;
private:
/// <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)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(AddWare::typeid));
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->panel1 = (gcnew System::Windows::Forms::Panel());
this->label1 = (gcnew System::Windows::Forms::Label());
this->panel2 = (gcnew System::Windows::Forms::Panel());
this->TextWare = (gcnew System::Windows::Forms::TextBox());
this->panel3 = (gcnew System::Windows::Forms::Panel());
this->ComboType = (gcnew System::Windows::Forms::ComboBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->panel4 = (gcnew System::Windows::Forms::Panel());
this->NumPrice = (gcnew System::Windows::Forms::NumericUpDown());
this->label3 = (gcnew System::Windows::Forms::Label());
this->panel5 = (gcnew System::Windows::Forms::Panel());
this->ComboSize = (gcnew System::Windows::Forms::ComboBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->panel6 = (gcnew System::Windows::Forms::Panel());
this->NumVolumn = (gcnew System::Windows::Forms::NumericUpDown());
this->label5 = (gcnew System::Windows::Forms::Label());
this->panel7 = (gcnew System::Windows::Forms::Panel());
this->NumNoto = (gcnew System::Windows::Forms::NumericUpDown());
this->label6 = (gcnew System::Windows::Forms::Label());
this->panel8 = (gcnew System::Windows::Forms::Panel());
this->NumTextID = (gcnew System::Windows::Forms::NumericUpDown());
this->NumTextPage = (gcnew System::Windows::Forms::NumericUpDown());
this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
this->label7 = (gcnew System::Windows::Forms::Label());
this->panel1->SuspendLayout();
this->panel2->SuspendLayout();
this->panel3->SuspendLayout();
this->panel4->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPrice))->BeginInit();
this->panel5->SuspendLayout();
this->panel6->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumVolumn))->BeginInit();
this->panel7->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumNoto))->BeginInit();
this->panel8->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumTextID))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumTextPage))->BeginInit();
this->SuspendLayout();
//
// button1
//
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
this->button1->Dock = System::Windows::Forms::DockStyle::Right;
this->button1->Location = System::Drawing::Point(435, 3);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(110, 29);
this->button1->TabIndex = 0;
this->button1->TabStop = false;
this->button1->Text = L"OK";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &AddWare::button1_Click);
//
// button2
//
this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->button2->Dock = System::Windows::Forms::DockStyle::Right;
this->button2->Location = System::Drawing::Point(325, 3);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(110, 29);
this->button2->TabIndex = 1;
this->button2->TabStop = false;
this->button2->Text = L"Cancel";
this->button2->UseVisualStyleBackColor = true;
//
// panel1
//
this->panel1->Controls->Add(this->button2);
this->panel1->Controls->Add(this->button1);
this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
this->panel1->Location = System::Drawing::Point(10, 323);
this->panel1->Name = L"panel1";
this->panel1->Padding = System::Windows::Forms::Padding(3);
this->panel1->Size = System::Drawing::Size(548, 35);
this->panel1->TabIndex = 2;
//
// label1
//
this->label1->Dock = System::Windows::Forms::DockStyle::Left;
this->label1->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->label1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label1.Image")));
this->label1->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label1->Location = System::Drawing::Point(5, 5);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(156, 29);
this->label1->TabIndex = 3;
this->label1->Text = L"Ware ID";
this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel2
//
this->panel2->Controls->Add(this->TextWare);
this->panel2->Controls->Add(this->label1);
this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
this->panel2->Location = System::Drawing::Point(10, 10);
this->panel2->Name = L"panel2";
this->panel2->Padding = System::Windows::Forms::Padding(5);
this->panel2->Size = System::Drawing::Size(548, 39);
this->panel2->TabIndex = 4;
//
// TextWare
//
this->TextWare->Dock = System::Windows::Forms::DockStyle::Fill;
this->TextWare->Location = System::Drawing::Point(161, 5);
this->TextWare->Name = L"TextWare";
this->TextWare->Size = System::Drawing::Size(382, 20);
this->TextWare->TabIndex = 4;
this->TextWare->Text = L"SS_WARE_";
//
// panel3
//
this->panel3->Controls->Add(this->ComboType);
this->panel3->Controls->Add(this->label2);
this->panel3->Dock = System::Windows::Forms::DockStyle::Top;
this->panel3->Location = System::Drawing::Point(10, 49);
this->panel3->Name = L"panel3";
this->panel3->Padding = System::Windows::Forms::Padding(5);
this->panel3->Size = System::Drawing::Size(548, 41);
this->panel3->TabIndex = 5;
//
// ComboType
//
this->ComboType->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboType->FormattingEnabled = true;
this->ComboType->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"Bio", L"Energy", L"Food", L"Mineral", L"Tech",
L"Other"});
this->ComboType->Location = System::Drawing::Point(161, 5);
this->ComboType->Name = L"ComboType";
this->ComboType->Size = System::Drawing::Size(382, 21);
this->ComboType->TabIndex = 4;
//
// 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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label2.Image")));
this->label2->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label2->Location = System::Drawing::Point(5, 5);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(156, 31);
this->label2->TabIndex = 3;
this->label2->Text = L"Ware Type";
this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel4
//
this->panel4->Controls->Add(this->NumPrice);
this->panel4->Controls->Add(this->label3);
this->panel4->Dock = System::Windows::Forms::DockStyle::Top;
this->panel4->Location = System::Drawing::Point(10, 90);
this->panel4->Name = L"panel4";
this->panel4->Padding = System::Windows::Forms::Padding(5);
this->panel4->Size = System::Drawing::Size(548, 45);
this->panel4->TabIndex = 6;
//
// NumPrice
//
this->NumPrice->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumPrice->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
this->NumPrice->Location = System::Drawing::Point(161, 5);
this->NumPrice->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
this->NumPrice->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
this->NumPrice->Name = L"NumPrice";
this->NumPrice->Size = System::Drawing::Size(382, 20);
this->NumPrice->TabIndex = 4;
this->NumPrice->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {28, 0, 0, 0});
//
// 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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label3.Image")));
this->label3->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label3->Location = System::Drawing::Point(5, 5);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(156, 35);
this->label3->TabIndex = 3;
this->label3->Text = L"Price";
this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel5
//
this->panel5->Controls->Add(this->ComboSize);
this->panel5->Controls->Add(this->label4);
this->panel5->Dock = System::Windows::Forms::DockStyle::Top;
this->panel5->Location = System::Drawing::Point(10, 135);
this->panel5->Name = L"panel5";
this->panel5->Padding = System::Windows::Forms::Padding(5);
this->panel5->Size = System::Drawing::Size(548, 41);
this->panel5->TabIndex = 7;
//
// ComboSize
//
this->ComboSize->Dock = System::Windows::Forms::DockStyle::Fill;
this->ComboSize->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->ComboSize->FormattingEnabled = true;
this->ComboSize->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"Tiny Containers", L"Small Containers (S)", L"Medium Containers (M)",
L"Large Containers (L)", L"Extra Large Containers (XL)", L"Station Containers (ST)"});
this->ComboSize->Location = System::Drawing::Point(161, 5);
this->ComboSize->Name = L"ComboSize";
this->ComboSize->Size = System::Drawing::Size(382, 21);
this->ComboSize->TabIndex = 5;
//
// 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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label4.Image")));
this->label4->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label4->Location = System::Drawing::Point(5, 5);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(156, 31);
this->label4->TabIndex = 3;
this->label4->Text = L"Size Class";
this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel6
//
this->panel6->Controls->Add(this->NumVolumn);
this->panel6->Controls->Add(this->label5);
this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
this->panel6->Location = System::Drawing::Point(10, 176);
this->panel6->Name = L"panel6";
this->panel6->Padding = System::Windows::Forms::Padding(5);
this->panel6->Size = System::Drawing::Size(548, 44);
this->panel6->TabIndex = 8;
//
// NumVolumn
//
this->NumVolumn->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumVolumn->Location = System::Drawing::Point(161, 5);
this->NumVolumn->Name = L"NumVolumn";
this->NumVolumn->Size = System::Drawing::Size(382, 20);
this->NumVolumn->TabIndex = 5;
this->NumVolumn->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// 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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label5.Image")));
this->label5->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label5->Location = System::Drawing::Point(5, 5);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(156, 34);
this->label5->TabIndex = 3;
this->label5->Text = L"Volumn";
this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel7
//
this->panel7->Controls->Add(this->NumNoto);
this->panel7->Controls->Add(this->label6);
this->panel7->Dock = System::Windows::Forms::DockStyle::Top;
this->panel7->Location = System::Drawing::Point(10, 220);
this->panel7->Name = L"panel7";
this->panel7->Padding = System::Windows::Forms::Padding(5);
this->panel7->Size = System::Drawing::Size(548, 39);
this->panel7->TabIndex = 9;
//
// NumNoto
//
this->NumNoto->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumNoto->Location = System::Drawing::Point(161, 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(382, 20);
this->NumNoto->TabIndex = 5;
//
// label6
//
this->label6->Dock = System::Windows::Forms::DockStyle::Left;
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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label6.Image")));
this->label6->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label6->Location = System::Drawing::Point(5, 5);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(156, 29);
this->label6->TabIndex = 3;
this->label6->Text = L"Min. Notoriety";
this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// panel8
//
this->panel8->Controls->Add(this->NumTextID);
this->panel8->Controls->Add(this->NumTextPage);
this->panel8->Controls->Add(this->checkBox1);
this->panel8->Controls->Add(this->label7);
this->panel8->Dock = System::Windows::Forms::DockStyle::Top;
this->panel8->Location = System::Drawing::Point(10, 259);
this->panel8->Name = L"panel8";
this->panel8->Padding = System::Windows::Forms::Padding(5);
this->panel8->Size = System::Drawing::Size(548, 39);
this->panel8->TabIndex = 10;
//
// NumTextID
//
this->NumTextID->Dock = System::Windows::Forms::DockStyle::Fill;
this->NumTextID->Enabled = false;
this->NumTextID->Location = System::Drawing::Point(273, 5);
this->NumTextID->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200000000, 0, 0, 0});
this->NumTextID->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumTextID->Name = L"NumTextID";
this->NumTextID->Size = System::Drawing::Size(270, 20);
this->NumTextID->TabIndex = 7;
this->NumTextID->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// NumTextPage
//
this->NumTextPage->Dock = System::Windows::Forms::DockStyle::Left;
this->NumTextPage->Enabled = false;
this->NumTextPage->Location = System::Drawing::Point(176, 5);
this->NumTextPage->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {9999, 0, 0, 0});
this->NumTextPage->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->NumTextPage->Name = L"NumTextPage";
this->NumTextPage->Size = System::Drawing::Size(97, 20);
this->NumTextPage->TabIndex = 7;
this->NumTextPage->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// checkBox1
//
this->checkBox1->AutoSize = true;
this->checkBox1->Dock = System::Windows::Forms::DockStyle::Left;
this->checkBox1->Location = System::Drawing::Point(161, 5);
this->checkBox1->Name = L"checkBox1";
this->checkBox1->Size = System::Drawing::Size(15, 29);
this->checkBox1->TabIndex = 6;
this->checkBox1->UseVisualStyleBackColor = true;
this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &AddWare::checkBox1_CheckedChanged);
//
// label7
//
this->label7->Dock = System::Windows::Forms::DockStyle::Left;
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->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"label7.Image")));
this->label7->ImageAlign = System::Drawing::ContentAlignment::MiddleRight;
this->label7->Location = System::Drawing::Point(5, 5);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(156, 29);
this->label7->TabIndex = 3;
this->label7->Text = L"Text ID";
this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// AddWare
//
this->AcceptButton = this->button1;
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->CancelButton = this->button2;
this->ClientSize = System::Drawing::Size(568, 368);
this->ControlBox = false;
this->Controls->Add(this->panel8);
this->Controls->Add(this->panel7);
this->Controls->Add(this->panel6);
this->Controls->Add(this->panel5);
this->Controls->Add(this->panel4);
this->Controls->Add(this->panel3);
this->Controls->Add(this->panel2);
this->Controls->Add(this->panel1);
this->Name = L"AddWare";
this->Padding = System::Windows::Forms::Padding(10);
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"Add New Ware";
this->TopMost = true;
this->Load += gcnew System::EventHandler(this, &AddWare::AddWare_Load);
this->panel1->ResumeLayout(false);
this->panel2->ResumeLayout(false);
this->panel2->PerformLayout();
this->panel3->ResumeLayout(false);
this->panel4->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumPrice))->EndInit();
this->panel5->ResumeLayout(false);
this->panel6->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumVolumn))->EndInit();
this->panel7->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumNoto))->EndInit();
this->panel8->ResumeLayout(false);
this->panel8->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumTextID))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->NumTextPage))->EndInit();
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
m_sID = this->TextWare->Text;
m_iType = this->ComboType->SelectedIndex;
m_iPrice = System::Convert::ToInt32(this->NumPrice->Value);
m_iSize = this->ComboSize->SelectedIndex;
m_iVolumn = System::Convert::ToInt32(this->NumVolumn->Value);
m_iNoto = System::Convert::ToInt32(this->NumNoto->Value);
if ( this->checkBox1->Checked )
{
m_iTextPage = System::Convert::ToInt32(this->NumTextPage->Value);
m_iTextID = System::Convert::ToInt32(this->NumTextID->Value);
}
else
{
m_iTextPage = 0;
m_iTextID = -1;
}
}
private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
this->NumTextID->Enabled = this->checkBox1->Checked;
this->NumTextPage->Enabled = this->checkBox1->Checked;
}
private: System::Void AddWare_Load(System::Object^ sender, System::EventArgs^ e) {
this->TextWare->Focus();
}
};
}