#pragma once
#pragma		warning (disable:4146)
#include <Windows.h>
#include <vector>

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Text;
using namespace System::Data::SqlClient;

namespace ObjDataEdit
{
	/// <summary> 
	/// Summary for SelectAbilityForm
	///
	/// 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 __gc class SelectAbilityForm : public System::Windows::Forms::Form
	{
	public: 

		SelectAbilityForm(void)
		{
            _IsAccept = false;
			InitializeComponent();
			_SubIDList = new ( vector<int> );
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);

			delete _SubIDList;
		}
    private: System::Windows::Forms::Panel *  panel1;
	private: System::Windows::Forms::Label*  label1;
	private: System::Windows::Forms::ComboBox*  CB_SelectType;

	private: System::Windows::Forms::Button*  button2;
	private: System::Windows::Forms::Button*  button1;
	private: System::Windows::Forms::ListBox*  LB_SelectSubType;



	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container* components;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->panel1 = (new System::Windows::Forms::Panel());
			this->button2 = (new System::Windows::Forms::Button());
			this->button1 = (new System::Windows::Forms::Button());
			this->LB_SelectSubType = (new System::Windows::Forms::ListBox());
			this->label1 = (new System::Windows::Forms::Label());
			this->CB_SelectType = (new System::Windows::Forms::ComboBox());
			this->panel1->SuspendLayout();
			this->SuspendLayout();
			// 
			// panel1
			// 
			this->panel1->Controls->Add(this->button2);
			this->panel1->Controls->Add(this->button1);
			this->panel1->Controls->Add(this->LB_SelectSubType);
			this->panel1->Controls->Add(this->label1);
			this->panel1->Controls->Add(this->CB_SelectType);
			this->panel1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->panel1->Location = System::Drawing::Point(0, 0);
			this->panel1->Name = S"panel1";
			this->panel1->Size = System::Drawing::Size(327, 184);
			this->panel1->TabIndex = 0;
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(217, 151);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(75, 24);
			this->button2->TabIndex = 4;
			this->button2->Text = S"取消";
			this->button2->UseVisualStyleBackColor = true;
			this->button2->Click += new System::EventHandler(this, &SelectAbilityForm::Click_Cancel_Event);
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(136, 151);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(75, 24);
			this->button1->TabIndex = 3;
			this->button1->Text = S"確定";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += new System::EventHandler(this, &SelectAbilityForm::Click_OK_Event);
			// 
			// LB_SelectSubType
			// 
			this->LB_SelectSubType->FormattingEnabled = true;
			this->LB_SelectSubType->ItemHeight = 12;
			this->LB_SelectSubType->Location = System::Drawing::Point(12, 33);
			this->LB_SelectSubType->Name = S"LB_SelectSubType";
			this->LB_SelectSubType->Size = System::Drawing::Size(299, 112);
			this->LB_SelectSubType->TabIndex = 2;
			this->LB_SelectSubType->DoubleClick += new System::EventHandler(this, &SelectAbilityForm::Click_OK_Event);
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(10, 10);
			this->label1->Name = S"label1";
			this->label1->Size = System::Drawing::Size(29, 12);
			this->label1->TabIndex = 1;
			this->label1->Text = S"分類";
			// 
			// CB_SelectType
			// 
			this->CB_SelectType->FormattingEnabled = true;
			System::Object* __mcTemp__1[] = new System::Object*[16];
			__mcTemp__1[0] = S"五大屬性( 與清除 )";
			__mcTemp__1[1] = S"上限提升";
			__mcTemp__1[2] = S"回復率";
			__mcTemp__1[3] = S"近戰強化";
			__mcTemp__1[4] = S"魔法強化";
			__mcTemp__1[5] = S"抗性強化";
			__mcTemp__1[6] = S"特殊類";
			__mcTemp__1[7] = S"裝甲強化";
			__mcTemp__1[8] = S"武器強化";
			__mcTemp__1[9] = S"武器速度強化";
			__mcTemp__1[10] = S"裝備能力";
			__mcTemp__1[11] = S"技能提升";
			__mcTemp__1[12] = S"HQ機率";
			__mcTemp__1[13] = S"吸收值";
			__mcTemp__1[14] = S"速度強化";
			__mcTemp__1[15] = S"其他";
			this->CB_SelectType->Items->AddRange(__mcTemp__1);
			this->CB_SelectType->Location = System::Drawing::Point(54, 7);
			this->CB_SelectType->Name = S"CB_SelectType";
			this->CB_SelectType->Size = System::Drawing::Size(121, 20);
			this->CB_SelectType->TabIndex = 0;
			this->CB_SelectType->SelectedIndexChanged += new System::EventHandler(this, &SelectAbilityForm::CB_SelectType_SelectedIndexChanged);
			// 
			// SelectAbilityForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(327, 184);
			this->Controls->Add(this->panel1);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
			this->Name = S"SelectAbilityForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = S"能力選擇";
			this->TopMost = true;
			this->Load += new System::EventHandler(this, &SelectAbilityForm::SelectAbilityForm_Load);
			this->panel1->ResumeLayout(false);
			this->panel1->PerformLayout();
			this->ResumeLayout(false);

		}		
	private: 
		bool				_IsAccept; 
		vector<int>*		_SubIDList;
	public:
		static SelectAbilityForm*  g_SelectAbilityForm;
		static void Init( );

		void	ShowForm( );
		bool	IsAccept( );
		int		SelectID( );
		void	UpdateInfo( );

		System::Void SelectAbilityForm_Load(System::Object*  sender, System::EventArgs*  e);
		System::Void Click_OK_Event(System::Object*  sender, System::EventArgs*  e);
		System::Void Click_Cancel_Event(System::Object*  sender, System::EventArgs*  e);
		System::Void CB_SelectType_SelectedIndexChanged(System::Object*  sender, System::EventArgs*  e);

};
}