#pragma once
#include "Global.h"
#include "SetAccount.h"
#include "ModifyAccount.h"
#include "DelAccount.h"

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 ObjDataEdit
{
	/// <summary> 
	/// Summary for MaintainForm
	///
	/// 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 MaintainForm : public System::Windows::Forms::Form
	{
	public: 
		MaintainForm(void)
		{
			InitializeComponent();
			this->sqlConnection1->ConnectionString = Global::GetDBSource();

            sqlConnection1->Open();
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
    private: System::Data::SqlClient::SqlDataAdapter *  sqlDataAdapter1;
    private: System::Data::SqlClient::SqlCommand *  sqlSelectCommand1;

    private: System::Data::SqlClient::SqlCommand *  sqlUpdateCommand1;

    private: System::Data::SqlClient::SqlConnection *  sqlConnection1;
    private: ObjDataEdit::DataSet2 *  dataSet21;
    public: DevExpress::XtraGrid::GridControl *  gridControl1;

    private: DevExpress::XtraGrid::Views::Grid::GridView *  gridView1;
    private: DevExpress::XtraGrid::Views::Grid::GridView *  gridView2;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colAccount_id;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colAdmin;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colValueTable;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colAddPower;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colArmor;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colBodyObj;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colPlayer;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colItem;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colKeyItem;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colMagic;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colQuestCollect;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colQuestDetail;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colRune;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colTitle;
    private: DevExpress::XtraGrid::Columns::GridColumn *  colWeapon;
			 						  
    private: DevExpress::XtraEditors::Repository::RepositoryItemComboBox *  repositoryItemComboBox1;
    private: DevExpress::XtraEditors::Repository::RepositoryItemComboBox *  repositoryItemComboBox2;
    private: System::Windows::Forms::MainMenu *  mainMenu1;
    private: System::Windows::Forms::MenuItem *  menuItem1;
    private: DevExpress::XtraEditors::Repository::RepositoryItemTextEdit *  repositoryItemTextEdit1;
    private: System::Windows::Forms::MenuItem *  menuItem2;
    private: System::Windows::Forms::MenuItem *  menuItem3;
    private: System::Windows::Forms::MenuItem *  menuItem4;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coNPC;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coMine;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coImage;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coFlag;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coRecipe;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coQuestNPC;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coLearnMagic;
    private: DevExpress::XtraGrid::Columns::GridColumn *  coScript;
	private: DevExpress::XtraGrid::Columns::GridColumn*   coSuit;
	private: DevExpress::XtraGrid::Columns::GridColumn*   coString;
	private: DevExpress::XtraGrid::Columns::GridColumn *  colShop;



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

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (new System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager*  resources = (new System::ComponentModel::ComponentResourceManager(__typeof(MaintainForm)));
			this->sqlDataAdapter1 = (new System::Data::SqlClient::SqlDataAdapter());
			this->sqlSelectCommand1 = (new System::Data::SqlClient::SqlCommand());
			this->sqlConnection1 = (new System::Data::SqlClient::SqlConnection());
			this->sqlUpdateCommand1 = (new System::Data::SqlClient::SqlCommand());
			this->dataSet21 = (new ObjDataEdit::DataSet2());
			this->gridControl1 = (new DevExpress::XtraGrid::GridControl());
			this->gridView2 = (new DevExpress::XtraGrid::Views::Grid::GridView());
			this->colAccount_id = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->repositoryItemTextEdit1 = (new DevExpress::XtraEditors::Repository::RepositoryItemTextEdit());
			this->colAdmin = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->repositoryItemComboBox1 = (new DevExpress::XtraEditors::Repository::RepositoryItemComboBox());
			this->colValueTable = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->repositoryItemComboBox2 = (new DevExpress::XtraEditors::Repository::RepositoryItemComboBox());
			this->colAddPower = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colArmor = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colBodyObj = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colPlayer = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colItem = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colKeyItem = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colMagic = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colQuestCollect = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colQuestDetail = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colRune = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colTitle = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colWeapon = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coNPC = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coMine = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coImage = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coFlag = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coRecipe = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coQuestNPC = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coLearnMagic = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coScript = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->colShop = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coSuit = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->coString = (new DevExpress::XtraGrid::Columns::GridColumn());
			this->gridView1 = (new DevExpress::XtraGrid::Views::Grid::GridView());
			this->mainMenu1 = (new System::Windows::Forms::MainMenu(this->components));
			this->menuItem1 = (new System::Windows::Forms::MenuItem());
			this->menuItem2 = (new System::Windows::Forms::MenuItem());
			this->menuItem3 = (new System::Windows::Forms::MenuItem());
			this->menuItem4 = (new System::Windows::Forms::MenuItem());
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->dataSet21))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridControl1))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridView2))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemTextEdit1))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemComboBox1))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemComboBox2))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridView1))->BeginInit();
			this->SuspendLayout();
			// 
			// sqlDataAdapter1
			// 
			this->sqlDataAdapter1->SelectCommand = this->sqlSelectCommand1;
			System::Data::Common::DataTableMapping* __mcTemp__1[] = new System::Data::Common::DataTableMapping*[1];
			System::Data::Common::DataColumnMapping* __mcTemp__2[] = new System::Data::Common::DataColumnMapping*[27];
			__mcTemp__2[0] = (new System::Data::Common::DataColumnMapping(S"Account_id", S"Account_id"));
			__mcTemp__2[1] = (new System::Data::Common::DataColumnMapping(S"Password", S"Password"));
			__mcTemp__2[2] = (new System::Data::Common::DataColumnMapping(S"Admin", S"Admin"));
			__mcTemp__2[3] = (new System::Data::Common::DataColumnMapping(S"ValueTable", S"ValueTable"));
			__mcTemp__2[4] = (new System::Data::Common::DataColumnMapping(S"AddPower", S"AddPower"));
			__mcTemp__2[5] = (new System::Data::Common::DataColumnMapping(S"Armor", S"Armor"));
			__mcTemp__2[6] = (new System::Data::Common::DataColumnMapping(S"BodyObj", S"BodyObj"));
			__mcTemp__2[7] = (new System::Data::Common::DataColumnMapping(S"Player", S"Player"));
			__mcTemp__2[8] = (new System::Data::Common::DataColumnMapping(S"Item", S"Item"));
			__mcTemp__2[9] = (new System::Data::Common::DataColumnMapping(S"KeyItem", S"KeyItem"));
			__mcTemp__2[10] = (new System::Data::Common::DataColumnMapping(S"Magic", S"Magic"));
			__mcTemp__2[11] = (new System::Data::Common::DataColumnMapping(S"QuestCollect", S"QuestCollect"));
			__mcTemp__2[12] = (new System::Data::Common::DataColumnMapping(S"QuestDetail", S"QuestDetail"));
			__mcTemp__2[13] = (new System::Data::Common::DataColumnMapping(S"Rune", S"Rune"));
			__mcTemp__2[14] = (new System::Data::Common::DataColumnMapping(S"Title", S"Title"));
			__mcTemp__2[15] = (new System::Data::Common::DataColumnMapping(S"Weapon", S"Weapon"));
			__mcTemp__2[16] = (new System::Data::Common::DataColumnMapping(S"NPC", S"NPC"));
			__mcTemp__2[17] = (new System::Data::Common::DataColumnMapping(S"Mine", S"Mine"));
			__mcTemp__2[18] = (new System::Data::Common::DataColumnMapping(S"Image", S"Image"));
			__mcTemp__2[19] = (new System::Data::Common::DataColumnMapping(S"Flag", S"Flag"));
			__mcTemp__2[20] = (new System::Data::Common::DataColumnMapping(S"Recipe", S"Recipe"));
			__mcTemp__2[21] = (new System::Data::Common::DataColumnMapping(S"QuestNPC", S"QuestNPC"));
			__mcTemp__2[22] = (new System::Data::Common::DataColumnMapping(S"Script", S"Script"));
			__mcTemp__2[23] = (new System::Data::Common::DataColumnMapping(S"LearnMagic", S"LearnMagic"));
			__mcTemp__2[24] = (new System::Data::Common::DataColumnMapping(S"Shop", S"Shop"));
			__mcTemp__2[25] = (new System::Data::Common::DataColumnMapping(S"Suit", S"Suit"));
			__mcTemp__2[26] = (new System::Data::Common::DataColumnMapping(S"String", S"String"));
			__mcTemp__1[0] = (new System::Data::Common::DataTableMapping(S"Table", S"AccountDB", __mcTemp__2));
			this->sqlDataAdapter1->TableMappings->AddRange(__mcTemp__1);
			this->sqlDataAdapter1->UpdateCommand = this->sqlUpdateCommand1;
			// 
			// sqlSelectCommand1
			// 
			this->sqlSelectCommand1->CommandText = resources->GetString(S"sqlSelectCommand1.CommandText");
			this->sqlSelectCommand1->Connection = this->sqlConnection1;
			// 
			// sqlConnection1
			// 
			this->sqlConnection1->FireInfoMessageEventOnUserErrors = false;
			this->sqlConnection1->ConnectionString = S"workstation id=HSIANG;packet size=4096;user id=hsiangren;persist security info=True;initial catalog=ObjectData;password=2ddilxxl;data source=GS1";
			// 
			// sqlUpdateCommand1
			// 
			this->sqlUpdateCommand1->CommandText = resources->GetString(S"sqlUpdateCommand1.CommandText");
			this->sqlUpdateCommand1->Connection = this->sqlConnection1;
			System::Data::SqlClient::SqlParameter* __mcTemp__3[] = new System::Data::SqlClient::SqlParameter*[26];
			__mcTemp__3[0] = (new System::Data::SqlClient::SqlParameter(S"@Admin", System::Data::SqlDbType::VarChar, 50, S"Admin"));
			__mcTemp__3[1] = (new System::Data::SqlClient::SqlParameter(S"@ValueTable", System::Data::SqlDbType::VarChar, 50, S"ValueTable"));
			__mcTemp__3[2] = (new System::Data::SqlClient::SqlParameter(S"@AddPower", System::Data::SqlDbType::VarChar, 50, S"AddPower"));
			__mcTemp__3[3] = (new System::Data::SqlClient::SqlParameter(S"@Armor", System::Data::SqlDbType::VarChar, 50, S"Armor"));
			__mcTemp__3[4] = (new System::Data::SqlClient::SqlParameter(S"@BodyObj", System::Data::SqlDbType::VarChar, 50, S"BodyObj"));
			__mcTemp__3[5] = (new System::Data::SqlClient::SqlParameter(S"@Player", System::Data::SqlDbType::VarChar, 50, S"Player"));
			__mcTemp__3[6] = (new System::Data::SqlClient::SqlParameter(S"@Item", System::Data::SqlDbType::VarChar, 50, S"Item"));
			__mcTemp__3[7] = (new System::Data::SqlClient::SqlParameter(S"@KeyItem", System::Data::SqlDbType::VarChar, 50, S"KeyItem"));
			__mcTemp__3[8] = (new System::Data::SqlClient::SqlParameter(S"@Magic", System::Data::SqlDbType::VarChar, 50, S"Magic"));
			__mcTemp__3[9] = (new System::Data::SqlClient::SqlParameter(S"@QuestCollect", System::Data::SqlDbType::VarChar, 50, S"QuestCollect"));
			__mcTemp__3[10] = (new System::Data::SqlClient::SqlParameter(S"@QuestDetail", System::Data::SqlDbType::VarChar, 50, S"QuestDetail"));
			__mcTemp__3[11] = (new System::Data::SqlClient::SqlParameter(S"@Rune", System::Data::SqlDbType::VarChar, 50, S"Rune"));
			__mcTemp__3[12] = (new System::Data::SqlClient::SqlParameter(S"@Title", System::Data::SqlDbType::VarChar, 50, S"Title"));
			__mcTemp__3[13] = (new System::Data::SqlClient::SqlParameter(S"@Weapon", System::Data::SqlDbType::VarChar, 50, S"Weapon"));
			__mcTemp__3[14] = (new System::Data::SqlClient::SqlParameter(S"@NPC", System::Data::SqlDbType::VarChar, 50, S"NPC"));
			__mcTemp__3[15] = (new System::Data::SqlClient::SqlParameter(S"@Mine", System::Data::SqlDbType::VarChar, 50, S"Mine"));
			__mcTemp__3[16] = (new System::Data::SqlClient::SqlParameter(S"@Image", System::Data::SqlDbType::VarChar, 50, S"Image"));
			__mcTemp__3[17] = (new System::Data::SqlClient::SqlParameter(S"@Flag", System::Data::SqlDbType::VarChar, 50, S"Flag"));
			__mcTemp__3[18] = (new System::Data::SqlClient::SqlParameter(S"@Recipe", System::Data::SqlDbType::VarChar, 50, S"Recipe"));
			__mcTemp__3[19] = (new System::Data::SqlClient::SqlParameter(S"@QuestNPC", System::Data::SqlDbType::VarChar, 50, S"QuestNPC"));
			__mcTemp__3[20] = (new System::Data::SqlClient::SqlParameter(S"@Script", System::Data::SqlDbType::VarChar, 50, S"Script"));
			__mcTemp__3[21] = (new System::Data::SqlClient::SqlParameter(S"@LearnMagic", System::Data::SqlDbType::VarChar, 50, S"LearnMagic"));
			__mcTemp__3[22] = (new System::Data::SqlClient::SqlParameter(S"@Shop", System::Data::SqlDbType::VarChar, 50, S"Shop"));
			__mcTemp__3[23] = (new System::Data::SqlClient::SqlParameter(S"@Suit", System::Data::SqlDbType::VarChar, 50, S"Suit"));
			__mcTemp__3[24] = (new System::Data::SqlClient::SqlParameter(S"@String", System::Data::SqlDbType::VarChar, 50, S"String"));
			__mcTemp__3[25] = (new System::Data::SqlClient::SqlParameter(S"@Account_id", System::Data::SqlDbType::VarChar, 31, System::Data::ParameterDirection::Input, 
				false, (System::Byte)0, (System::Byte)0, S"Account_id", System::Data::DataRowVersion::Original, 0));
			this->sqlUpdateCommand1->Parameters->AddRange(__mcTemp__3);
			// 
			// dataSet21
			// 
			this->dataSet21->DataSetName = S"DataSet2";
			this->dataSet21->Locale = (new System::Globalization::CultureInfo(S"zh-TW"));
			this->dataSet21->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
			// 
			// gridControl1
			// 
			this->gridControl1->DataSource = this->dataSet21->AccountDB;
			this->gridControl1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->gridControl1->EmbeddedNavigator->Name = S"";
			this->gridControl1->Location = System::Drawing::Point(0, 0);
			this->gridControl1->MainView = this->gridView2;
			this->gridControl1->Name = S"gridControl1";
			DevExpress::XtraEditors::Repository::RepositoryItem* __mcTemp__4[] = new DevExpress::XtraEditors::Repository::RepositoryItem*[3];
			__mcTemp__4[0] = this->repositoryItemComboBox1;
			__mcTemp__4[1] = this->repositoryItemComboBox2;
			__mcTemp__4[2] = this->repositoryItemTextEdit1;
			this->gridControl1->RepositoryItems->AddRange(__mcTemp__4);
			this->gridControl1->Size = System::Drawing::Size(1248, 718);
			this->gridControl1->TabIndex = 0;
			DevExpress::XtraGrid::Views::Base::BaseView* __mcTemp__5[] = new DevExpress::XtraGrid::Views::Base::BaseView*[2];
			__mcTemp__5[0] = this->gridView2;
			__mcTemp__5[1] = this->gridView1;
			this->gridControl1->ViewCollection->AddRange(__mcTemp__5);
			// 
			// gridView2
			// 
			DevExpress::XtraGrid::Columns::GridColumn* __mcTemp__6[] = new DevExpress::XtraGrid::Columns::GridColumn*[26];
			__mcTemp__6[0] = this->colAccount_id;
			__mcTemp__6[1] = this->colAdmin;
			__mcTemp__6[2] = this->colValueTable;
			__mcTemp__6[3] = this->colAddPower;
			__mcTemp__6[4] = this->colArmor;
			__mcTemp__6[5] = this->colBodyObj;
			__mcTemp__6[6] = this->colPlayer;
			__mcTemp__6[7] = this->colItem;
			__mcTemp__6[8] = this->colKeyItem;
			__mcTemp__6[9] = this->colMagic;
			__mcTemp__6[10] = this->colQuestCollect;
			__mcTemp__6[11] = this->colQuestDetail;
			__mcTemp__6[12] = this->colRune;
			__mcTemp__6[13] = this->colTitle;
			__mcTemp__6[14] = this->colWeapon;
			__mcTemp__6[15] = this->coNPC;
			__mcTemp__6[16] = this->coMine;
			__mcTemp__6[17] = this->coImage;
			__mcTemp__6[18] = this->coFlag;
			__mcTemp__6[19] = this->coRecipe;
			__mcTemp__6[20] = this->coQuestNPC;
			__mcTemp__6[21] = this->coLearnMagic;
			__mcTemp__6[22] = this->coScript;
			__mcTemp__6[23] = this->colShop;
			__mcTemp__6[24] = this->coSuit;
			__mcTemp__6[25] = this->coString;
			this->gridView2->Columns->AddRange(__mcTemp__6);
			this->gridView2->FixedLineWidth = 1;
			this->gridView2->GridControl = this->gridControl1;
			this->gridView2->HorzScrollVisibility = DevExpress::XtraGrid::Views::Base::ScrollVisibility::Always;
			this->gridView2->Name = S"gridView2";
			this->gridView2->OptionsView->ColumnAutoWidth = false;
			// 
			// colAccount_id
			// 
			this->colAccount_id->Caption = S"帳號";
			this->colAccount_id->ColumnEdit = this->repositoryItemTextEdit1;
			this->colAccount_id->FieldName = S"Account_id";
			this->colAccount_id->MinWidth = 50;
			this->colAccount_id->Name = S"colAccount_id";
			this->colAccount_id->OptionsColumn->FixedWidth = true;
			this->colAccount_id->OptionsColumn->ReadOnly = true;
			this->colAccount_id->Visible = true;
			this->colAccount_id->VisibleIndex = 0;
			// 
			// repositoryItemTextEdit1
			// 
			this->repositoryItemTextEdit1->AutoHeight = false;
			this->repositoryItemTextEdit1->Name = S"repositoryItemTextEdit1";
			this->repositoryItemTextEdit1->ReadOnly = true;
			// 
			// colAdmin
			// 
			this->colAdmin->Caption = S"管理者";
			this->colAdmin->ColumnEdit = this->repositoryItemComboBox1;
			this->colAdmin->FieldName = S"Admin";
			this->colAdmin->MinWidth = 50;
			this->colAdmin->Name = S"colAdmin";
			this->colAdmin->OptionsColumn->FixedWidth = true;
			this->colAdmin->Visible = true;
			this->colAdmin->VisibleIndex = 1;
			// 
			// repositoryItemComboBox1
			// 
			this->repositoryItemComboBox1->AutoHeight = false;
			DevExpress::XtraEditors::Controls::EditorButton* __mcTemp__7[] = new DevExpress::XtraEditors::Controls::EditorButton*[1];
			__mcTemp__7[0] = (new DevExpress::XtraEditors::Controls::EditorButton(DevExpress::XtraEditors::Controls::ButtonPredefines::Combo));
			this->repositoryItemComboBox1->Buttons->AddRange(__mcTemp__7);
			System::Object* __mcTemp__8[] = new System::Object*[2];
			__mcTemp__8[0] = S"否";
			__mcTemp__8[1] = S"是";
			this->repositoryItemComboBox1->Items->AddRange(__mcTemp__8);
			this->repositoryItemComboBox1->Name = S"repositoryItemComboBox1";
			this->repositoryItemComboBox1->TextEditStyle = DevExpress::XtraEditors::Controls::TextEditStyles::DisableTextEditor;
			this->repositoryItemComboBox1->ValidateOnEnterKey = true;
			// 
			// colValueTable
			// 
			this->colValueTable->Caption = S"Table";
			this->colValueTable->ColumnEdit = this->repositoryItemComboBox2;
			this->colValueTable->FieldName = S"ValueTable";
			this->colValueTable->MinWidth = 50;
			this->colValueTable->Name = S"colValueTable";
			this->colValueTable->OptionsColumn->FixedWidth = true;
			this->colValueTable->Visible = true;
			this->colValueTable->VisibleIndex = 2;
			// 
			// repositoryItemComboBox2
			// 
			this->repositoryItemComboBox2->AutoHeight = false;
			DevExpress::XtraEditors::Controls::EditorButton* __mcTemp__9[] = new DevExpress::XtraEditors::Controls::EditorButton*[1];
			__mcTemp__9[0] = (new DevExpress::XtraEditors::Controls::EditorButton(DevExpress::XtraEditors::Controls::ButtonPredefines::Combo));
			this->repositoryItemComboBox2->Buttons->AddRange(__mcTemp__9);
			System::Object* __mcTemp__10[] = new System::Object*[3];
			__mcTemp__10[0] = S"無權限";
			__mcTemp__10[1] = S"可讀";
			__mcTemp__10[2] = S"可讀寫";
			this->repositoryItemComboBox2->Items->AddRange(__mcTemp__10);
			this->repositoryItemComboBox2->Name = S"repositoryItemComboBox2";
			this->repositoryItemComboBox2->TextEditStyle = DevExpress::XtraEditors::Controls::TextEditStyles::DisableTextEditor;
			// 
			// colAddPower
			// 
			this->colAddPower->Caption = S"附加能力";
			this->colAddPower->ColumnEdit = this->repositoryItemComboBox2;
			this->colAddPower->FieldName = S"AddPower";
			this->colAddPower->MinWidth = 50;
			this->colAddPower->Name = S"colAddPower";
			this->colAddPower->OptionsColumn->FixedWidth = true;
			this->colAddPower->Visible = true;
			this->colAddPower->VisibleIndex = 3;
			// 
			// colArmor
			// 
			this->colArmor->Caption = S"裝備";
			this->colArmor->ColumnEdit = this->repositoryItemComboBox2;
			this->colArmor->FieldName = S"Armor";
			this->colArmor->MinWidth = 50;
			this->colArmor->Name = S"colArmor";
			this->colArmor->OptionsColumn->FixedWidth = true;
			this->colArmor->Visible = true;
			this->colArmor->VisibleIndex = 4;
			// 
			// colBodyObj
			// 
			this->colBodyObj->Caption = S"身體";
			this->colBodyObj->ColumnEdit = this->repositoryItemComboBox2;
			this->colBodyObj->FieldName = S"BodyObj";
			this->colBodyObj->MinWidth = 50;
			this->colBodyObj->Name = S"colBodyObj";
			this->colBodyObj->OptionsColumn->FixedWidth = true;
			this->colBodyObj->Visible = true;
			this->colBodyObj->VisibleIndex = 5;
			// 
			// colPlayer
			// 
			this->colPlayer->Caption = S"玩家";
			this->colPlayer->ColumnEdit = this->repositoryItemComboBox2;
			this->colPlayer->FieldName = S"Player";
			this->colPlayer->MinWidth = 50;
			this->colPlayer->Name = S"colPlayer";
			this->colPlayer->OptionsColumn->FixedWidth = true;
			this->colPlayer->Visible = true;
			this->colPlayer->VisibleIndex = 6;
			// 
			// colItem
			// 
			this->colItem->Caption = S"物品";
			this->colItem->ColumnEdit = this->repositoryItemComboBox2;
			this->colItem->FieldName = S"Item";
			this->colItem->MinWidth = 50;
			this->colItem->Name = S"colItem";
			this->colItem->OptionsColumn->FixedWidth = true;
			this->colItem->Visible = true;
			this->colItem->VisibleIndex = 7;
			// 
			// colKeyItem
			// 
			this->colKeyItem->Caption = S"重要物品";
			this->colKeyItem->ColumnEdit = this->repositoryItemComboBox2;
			this->colKeyItem->FieldName = S"KeyItem";
			this->colKeyItem->MinWidth = 50;
			this->colKeyItem->Name = S"colKeyItem";
			this->colKeyItem->OptionsColumn->FixedWidth = true;
			this->colKeyItem->Visible = true;
			this->colKeyItem->VisibleIndex = 8;
			// 
			// colMagic
			// 
			this->colMagic->Caption = S"法術";
			this->colMagic->ColumnEdit = this->repositoryItemComboBox2;
			this->colMagic->FieldName = S"Magic";
			this->colMagic->MinWidth = 50;
			this->colMagic->Name = S"colMagic";
			this->colMagic->OptionsColumn->FixedWidth = true;
			this->colMagic->Visible = true;
			this->colMagic->VisibleIndex = 9;
			// 
			// colQuestCollect
			// 
			this->colQuestCollect->Caption = S"QuestCollect";
			this->colQuestCollect->ColumnEdit = this->repositoryItemComboBox2;
			this->colQuestCollect->FieldName = S"QuestCollect";
			this->colQuestCollect->MinWidth = 50;
			this->colQuestCollect->Name = S"colQuestCollect";
			this->colQuestCollect->OptionsColumn->FixedWidth = true;
			this->colQuestCollect->Visible = true;
			this->colQuestCollect->VisibleIndex = 10;
			// 
			// colQuestDetail
			// 
			this->colQuestDetail->Caption = S"QuestDetail";
			this->colQuestDetail->ColumnEdit = this->repositoryItemComboBox2;
			this->colQuestDetail->FieldName = S"QuestDetail";
			this->colQuestDetail->MinWidth = 50;
			this->colQuestDetail->Name = S"colQuestDetail";
			this->colQuestDetail->OptionsColumn->FixedWidth = true;
			this->colQuestDetail->Visible = true;
			this->colQuestDetail->VisibleIndex = 11;
			// 
			// colRune
			// 
			this->colRune->Caption = S"符文";
			this->colRune->ColumnEdit = this->repositoryItemComboBox2;
			this->colRune->FieldName = S"Rune";
			this->colRune->MinWidth = 50;
			this->colRune->Name = S"colRune";
			this->colRune->OptionsColumn->FixedWidth = true;
			this->colRune->Visible = true;
			this->colRune->VisibleIndex = 12;
			// 
			// colTitle
			// 
			this->colTitle->Caption = S"頭銜";
			this->colTitle->ColumnEdit = this->repositoryItemComboBox2;
			this->colTitle->FieldName = S"Title";
			this->colTitle->MinWidth = 50;
			this->colTitle->Name = S"colTitle";
			this->colTitle->OptionsColumn->FixedWidth = true;
			this->colTitle->Visible = true;
			this->colTitle->VisibleIndex = 13;
			// 
			// colWeapon
			// 
			this->colWeapon->Caption = S"武器";
			this->colWeapon->ColumnEdit = this->repositoryItemComboBox2;
			this->colWeapon->FieldName = S"Weapon";
			this->colWeapon->MinWidth = 50;
			this->colWeapon->Name = S"colWeapon";
			this->colWeapon->OptionsColumn->FixedWidth = true;
			this->colWeapon->Visible = true;
			this->colWeapon->VisibleIndex = 14;
			// 
			// coNPC
			// 
			this->coNPC->Caption = S"NPC";
			this->coNPC->ColumnEdit = this->repositoryItemComboBox2;
			this->coNPC->FieldName = S"NPC";
			this->coNPC->MinWidth = 50;
			this->coNPC->Name = S"coNPC";
			this->coNPC->OptionsColumn->FixedWidth = true;
			this->coNPC->Visible = true;
			this->coNPC->VisibleIndex = 15;
			// 
			// coMine
			// 
			this->coMine->Caption = S"礦產";
			this->coMine->ColumnEdit = this->repositoryItemComboBox2;
			this->coMine->FieldName = S"Mine";
			this->coMine->MinWidth = 50;
			this->coMine->Name = S"coMine";
			this->coMine->OptionsColumn->FixedWidth = true;
			this->coMine->Visible = true;
			this->coMine->VisibleIndex = 16;
			// 
			// coImage
			// 
			this->coImage->Caption = S"圖形";
			this->coImage->ColumnEdit = this->repositoryItemComboBox2;
			this->coImage->FieldName = S"Image";
			this->coImage->MinWidth = 50;
			this->coImage->Name = S"coImage";
			this->coImage->OptionsColumn->FixedWidth = true;
			this->coImage->Visible = true;
			this->coImage->VisibleIndex = 17;
			// 
			// coFlag
			// 
			this->coFlag->Caption = S"旗子";
			this->coFlag->ColumnEdit = this->repositoryItemComboBox2;
			this->coFlag->FieldName = S"Flag";
			this->coFlag->MinWidth = 50;
			this->coFlag->Name = S"coFlag";
			this->coFlag->OptionsColumn->FixedWidth = true;
			this->coFlag->Visible = true;
			this->coFlag->VisibleIndex = 18;
			// 
			// coRecipe
			// 
			this->coRecipe->Caption = S"配方";
			this->coRecipe->ColumnEdit = this->repositoryItemComboBox2;
			this->coRecipe->FieldName = S"Recipe";
			this->coRecipe->Name = S"coRecipe";
			this->coRecipe->Visible = true;
			this->coRecipe->VisibleIndex = 19;
			// 
			// coQuestNPC
			// 
			this->coQuestNPC->Caption = S"任務NPC";
			this->coQuestNPC->ColumnEdit = this->repositoryItemComboBox2;
			this->coQuestNPC->FieldName = S"QuestNPC";
			this->coQuestNPC->Name = S"coQuestNPC";
			this->coQuestNPC->Visible = true;
			this->coQuestNPC->VisibleIndex = 20;
			// 
			// coLearnMagic
			// 
			this->coLearnMagic->Caption = S"職業技能";
			this->coLearnMagic->ColumnEdit = this->repositoryItemComboBox2;
			this->coLearnMagic->FieldName = S"LearnMagic";
			this->coLearnMagic->Name = S"coLearnMagic";
			this->coLearnMagic->Visible = true;
			this->coLearnMagic->VisibleIndex = 21;
			// 
			// coScript
			// 
			this->coScript->Caption = S"LUA劇情";
			this->coScript->ColumnEdit = this->repositoryItemComboBox2;
			this->coScript->FieldName = S"Script";
			this->coScript->Name = S"coScript";
			this->coScript->Visible = true;
			this->coScript->VisibleIndex = 22;
			// 
			// colShop
			// 
			this->colShop->Caption = S"Shop";
			this->colShop->FieldName = S"Shop";
			this->colShop->Name = S"colShop";
			this->colShop->Visible = true;
			this->colShop->VisibleIndex = 23;
			// 
			// coSuit
			// 
			this->coSuit->Caption = S"套裝";
			this->coSuit->FieldName = S"Suit";
			this->coSuit->Name = S"coSuit";
			this->coSuit->Visible = true;
			this->coSuit->VisibleIndex = 24;
			// 
			// coString
			// 
			this->coString->Caption = S"字串表";
			this->coString->FieldName = S"String";
			this->coString->Name = S"coString";
			this->coString->Visible = true;
			this->coString->VisibleIndex = 25;
			// 
			// gridView1
			// 
			this->gridView1->GridControl = this->gridControl1;
			this->gridView1->Name = S"gridView1";
			// 
			// mainMenu1
			// 
			System::Windows::Forms::MenuItem* __mcTemp__11[] = new System::Windows::Forms::MenuItem*[1];
			__mcTemp__11[0] = this->menuItem1;
			this->mainMenu1->MenuItems->AddRange(__mcTemp__11);
			// 
			// menuItem1
			// 
			this->menuItem1->Index = 0;
			System::Windows::Forms::MenuItem* __mcTemp__12[] = new System::Windows::Forms::MenuItem*[3];
			__mcTemp__12[0] = this->menuItem2;
			__mcTemp__12[1] = this->menuItem3;
			__mcTemp__12[2] = this->menuItem4;
			this->menuItem1->MenuItems->AddRange(__mcTemp__12);
			this->menuItem1->Text = S"帳號設定";
			// 
			// menuItem2
			// 
			this->menuItem2->Index = 0;
			this->menuItem2->Text = S"新增";
			this->menuItem2->Click += new System::EventHandler(this, &MaintainForm::NewAccount);
			// 
			// menuItem3
			// 
			this->menuItem3->Index = 1;
			this->menuItem3->Text = S"修改密碼";
			this->menuItem3->Click += new System::EventHandler(this, &MaintainForm::ModifyAccount_Click);
			// 
			// menuItem4
			// 
			this->menuItem4->Index = 2;
			this->menuItem4->Text = S"刪除帳號";
			this->menuItem4->Click += new System::EventHandler(this, &MaintainForm::DelAccount_Click);
			// 
			// MaintainForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(1248, 718);
			this->Controls->Add(this->gridControl1);
			this->Menu = this->mainMenu1;
			this->Name = S"MaintainForm";
			this->Text = S"MaintainForm";
			this->WindowState = System::Windows::Forms::FormWindowState::Maximized;
			this->Closing += new System::ComponentModel::CancelEventHandler(this, &MaintainForm::MaintainForm_Closing);
			this->Load += new System::EventHandler(this, &MaintainForm::MaintainForm_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->dataSet21))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridControl1))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridView2))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemTextEdit1))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemComboBox1))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->repositoryItemComboBox2))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize*  >(this->gridView1))->EndInit();
			this->ResumeLayout(false);

		}		
    private: System::Void MaintainForm_Load(System::Object *  sender, System::EventArgs *  e)
             {
                sqlDataAdapter1->Fill( dataSet21 );
             }


    private: System::Void MaintainForm_Closing(System::Object *  sender, System::ComponentModel::CancelEventArgs *  e)
            {
                sqlDataAdapter1->Update( dataSet21 );
            }

    private: System::Void NewAccount(System::Object *  sender, System::EventArgs *  e)
            {
                sqlDataAdapter1->Update( dataSet21 );

                SetAccount* Form;
                Form = new SetAccount;
                Form->ShowDialog();

                dataSet21->Clear();
                sqlDataAdapter1->Fill( dataSet21 );
            }

    private: System::Void ModifyAccount_Click(System::Object *  sender, System::EventArgs *  e)
            {
                sqlDataAdapter1->Update( dataSet21 );
                ModifyAccount* Form;
                Form = new ModifyAccount;
                Form->ShowDialog();
                dataSet21->Clear();
                sqlDataAdapter1->Fill( dataSet21 );
            }

    private: System::Void DelAccount_Click(System::Object *  sender, System::EventArgs *  e)
            {
                sqlDataAdapter1->Update( dataSet21 );

                DelAccount* Form;
                Form = new DelAccount;
                Form->ShowDialog();

                dataSet21->Clear();
                sqlDataAdapter1->Fill( dataSet21 );
            }

};
}