#pragma once
#include "BaseForm.h"
//#include "CustomRichTextBox.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;
using namespace Generic;

namespace ObjDataEdit
{
#ifdef _Just_Show_DotNet_Form_

	enum PE_COM_TYPE
	{
		EM_PE_COM_NONE		= 0,
		EM_PE_COM_PE		= 1,
		EM_PE_COM_PHASE		= 2,
		EM_PE_COM_OBJECTIVE	= 3,
		EM_PE_COM_VAR		= 4
	};

	public __gc class PEPhase;
	public __gc class PEObjective;

	//******************************************************************************
	public __gc class PEComponet : public System::Object 
	{
	protected:
		int					m_Type;
		DB_GameObjDbStruct  m_ObjDB;
		BaseForm*			m_Form;
		SqlCommand*			m_SQL;
		vector <char*>*		m_StrList;
		int					m_MinGUID;
		int					m_MaxGUID;

		void*				m_pRootObjDB;

	public:
		PEComponet(BaseForm* pPEForm, void* pRootObjDB);
		virtual void Release();

	public:
		virtual String* ToString();

	public:
		virtual bool NewObjDB(int iParentGUID);
		virtual bool ReadObjDB(int iGUID);
		virtual bool SaveObjDB();
		virtual bool RemoveObjDB();
		virtual void CreateUI(System::Windows::Forms::Control* Parent, System::String* Name){}
		virtual void UpdateUI(){}
		virtual bool CheckModifyAndCheckOut();

	protected:
		__property virtual ReaderClass< DB_GameObjDbStruct >* get_ObjReader();
		__property char* get_DBName();
		__property String* get_Account();

	public:
		__property int get_GUID();
		__property int get_ParentGUID();
		__property void set_ParentGUID(int value);
		__property bool get_UpdateDataToDisplay();
		__property void set_UpdateDataToDisplay(bool value);
	};

	//******************************************************************************
	public __gc class PEPhase : public PEComponet
	{
	protected:
		Generic::List<PEObjective*>*			m_SOBs;
		Generic::List<PEObjective*>*			m_FOBs;
		Generic::Dictionary<int, PEObjective*>* m_OBIndex;
		int										m_TabPageIndex1;
		int										m_TabPageIndex2;

	protected:
		System::Windows::Forms::TabPage*		m_tbpMain;
		System::Windows::Forms::SplitContainer* m_spc1;
		System::Windows::Forms::GroupBox*		m_gbxBasic;
		System::Windows::Forms::SplitContainer* m_spc2;
		System::Windows::Forms::GroupBox*		m_gbxSOBs;
		System::Windows::Forms::Panel*			m_pnlEditSOB;
		System::Windows::Forms::Button*			m_btNewSOB;
		System::Windows::Forms::Button*			m_btRemoveSOB;
		System::Windows::Forms::CheckedListBox* m_clbSLogic;
		System::Windows::Forms::TabControl*		m_tbcSOBs;
		System::Windows::Forms::GroupBox*		m_gbxFOBs;
		System::Windows::Forms::Panel*			m_pnlEditFOB;
		System::Windows::Forms::Button*			m_btNewFOB;
		System::Windows::Forms::Button*			m_btRemoveFOB;
		System::Windows::Forms::CheckedListBox*	m_clbFLogic;
		System::Windows::Forms::TabControl*		m_tbcFOBs;
		System::Windows::Forms::Panel*			m_pnlName;
		System::Windows::Forms::Label*			m_lblName;
		System::Windows::Forms::TextBox*		m_tbxName;
		System::Windows::Forms::GroupBox*		m_gbxScore;
		System::Windows::Forms::Label*			m_lblScore;
		System::Windows::Forms::TextBox*		m_tbxScore;
		System::Windows::Forms::Label*			m_lblBonusScore1;
		System::Windows::Forms::TextBox*		m_tbxBonusScore1;
		System::Windows::Forms::Label*			m_lblBonusScore2;
		System::Windows::Forms::TextBox*		m_tbxBonusScore2;
		System::Windows::Forms::GroupBox*		m_gbxNextPhase;
		System::Windows::Forms::TextBox*		m_tbxNPTimeGap;
		System::Windows::Forms::Label*			m_lblNPTimeGap;
		System::Windows::Forms::GroupBox*		m_gbxNote;
		System::Windows::Forms::TextBox*		m_tbxNote;
		System::Windows::Forms::GroupBox*		m_gbxShortNote;
		System::Windows::Forms::TextBox*		m_tbxShortNote;

	public:
		PEPhase(BaseForm* pPEForm, void* pRootObjDB);
		virtual void Release();

	public:
		virtual String* ToString();

	public:
		virtual bool NewObjDB(int iParentGUID);
		virtual bool ReadObjDB(int iGUID);
		virtual bool SaveObjDB();
		virtual bool RemoveObjDB();
		virtual void CreateUI(System::Windows::Forms::Control* Parent, System::String* Name);
		virtual void UpdateUI();

	public:
		PEObjective* NewOB(int iOBCamp);
		PEObjective* LoadOB(int iGUID);
		void		 RemoveOB(int iGUID);

	public:
		System::Void btNewSOB_Click(System::Object* sender, System::EventArgs* e);
		System::Void btRemoveSOB_Click(System::Object* sender, System::EventArgs* e);
		System::Void btNewFOB_Click(System::Object* sender, System::EventArgs* e);
		System::Void btRemoveFOB_Click(System::Object* sender, System::EventArgs* e);
		System::Void tbxName_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxScore_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxBonusScore1_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxBonusScore2_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxNPTimeGap_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxNote_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxShortNote_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void clbSLogic_SelectedValueChanged(System::Object* sender, System::EventArgs* e);
		System::Void clbFLogic_SelectedValueChanged(System::Object* sender, System::EventArgs* e);
	public:
		__property TabPage*  get_TabPageControl() {return m_tbpMain;}
	};

	//******************************************************************************
	public __gc class PEObjective : public PEComponet
	{
	protected:		
		System::Windows::Forms::TabPage*		m_tbpMain;
		System::Windows::Forms::Label*			m_lblName;
		System::Windows::Forms::TextBox*		m_tbxName;
		System::Windows::Forms::GroupBox*		m_gbxObjective;
		System::Windows::Forms::ComboBox*		m_cbxVarName;
		System::Windows::Forms::ComboBox*		m_cbxType;
		System::Windows::Forms::TextBox*		m_tbxThreshold;
		System::Windows::Forms::Label*			m_lblInitValue;
		System::Windows::Forms::TextBox*		m_tbxInitValue;
		System::Windows::Forms::CheckedListBox* m_clbFlag;
		System::Windows::Forms::Label*			m_lblNextPhase;
		System::Windows::Forms::ComboBox*		m_cbxNextPhase;
		System::Windows::Forms::GroupBox*		m_gbxNote;
		System::Windows::Forms::TextBox*		m_tbxNote;
		System::Windows::Forms::GroupBox*		m_gbxShortNote;
		System::Windows::Forms::TextBox*		m_tbxShortNote;

	public:
		PEObjective(BaseForm* pPEForm, void* pRootObjDB);

	public:
		virtual bool NewObjDB(int iParentGUID);

	public:		
		virtual void CreateUI(System::Windows::Forms::Control* Parent, System::String* Name);
		virtual void UpdateUI();

	public:
		System::Void tbxName_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void clbFlag_SelectedValueChanged(System::Object* sender, System::EventArgs* e);
		System::Void cbxVarName_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void cbxType_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxThreshold_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxInitValue_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void cbxNextPhase_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxNote_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxShortNote_TextChanged(System::Object* sender, System::EventArgs* e);

	public:
		__property int get_OBCamp();
		__property void set_OBCamp(int value);
		__property TabPage*  get_TabPageControl() {return m_tbpMain;}
	};

	//******************************************************************************
	public __gc class PEVar : public PEComponet
	{
	public:
		PEVar(BaseForm* pPEForm, void* pRootObjDB);

	public:
		virtual String* ToString();

	public:
		virtual bool NewObjDB(int iParentGUID);
		virtual bool SaveObjDB();

	public:
		__property String* get_VarName();
		__property void set_VarName(String* value);
		__property String* get_VarNote();
		__property void set_VarNote(String* value);
	};

	//******************************************************************************
	public __gc class PEZoneInfo : public System::Object 
	{
	protected:
		int		m_ID;
		String* m_Name;

	public:
		PEZoneInfo(int iID, String* strName)
		{
			m_ID	= iID;
			m_Name	= strName;
		}

	public:
		virtual String* ToString()
		{
			return String::Format("{0} {1}", __box(m_ID), m_Name);
		}

	public:
		__property int get_ID() {return m_ID;}
		__property String* get_Name() {return m_Name;}
	};
	//******************************************************************************
	public __gc class PESubZoneInfo : public System::Object 
	{
	protected:
		int		m_ZoneID;
		int		m_ID;
		String* m_Name;

	public:
		PESubZoneInfo(int iZoneID, int iID, String* strName)
		{
			m_ZoneID	= iZoneID;
			m_ID		= iID;
			m_Name		= strName;
		}

	public:
		virtual String* ToString()
		{
			return String::Format("{0} {1}", __box(m_ID), m_Name);
		}

	public:
		__property int get_ZoneID() {return m_ZoneID;}
		__property int get_ID() {return m_ID;}
		__property String* get_Name() {return m_Name;}
	};

	//******************************************************************************

#endif

	/// <summary> 
	/// Summary for PEForm
	///
	/// 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>
#ifndef _Just_Show_DotNet_Form_
    public __gc class PEForm : public System::Windows::Forms::Form
#else 
    public __gc class PEForm : public BaseForm
#endif	
	{
	public: 
        PEForm( char* FormName , char* DBName , char* OutputFile  , bool IsReadOnly , SearchFormTypeENUM FormType )
			: BaseForm( FormName , DBName , OutputFile  , IsReadOnly , FormType )
        {
            InitializeComponent();
			this->panel4_Base->Controls->Add(this->m_pnlContainer);

#ifdef _Just_Show_DotNet_Form_

			treeList1->AfterExpand -= new DevExpress::XtraTreeList::NodeEventHandler(this, &BaseForm::Treelist_AfterExpand);
			treeList1->AfterExpand += new DevExpress::XtraTreeList::NodeEventHandler(this, &PEForm::Treelist_AfterExpand);

			m_PhaseIndex	= new Generic::Dictionary<int, PEPhase*>();
			m_Phases		= new Generic::List<PEPhase*>();
			m_VarIndex		= new Generic::Dictionary<int, PEVar*>();
			m_Vars			= new Generic::List<PEVar*>();
			m_ZoneInfo		= new Generic::Dictionary<int, PEZoneInfo*>();
			m_SubZoneInfo	= new Generic::Dictionary<int, PESubZoneInfo*>();
			m_cbxSZs		= new Generic::List<System::Windows::Forms::ComboBox*>();

			m_cbxSZs->Add(m_cbxPESZID1);
			m_cbxSZs->Add(m_cbxPESZID2);
			m_cbxSZs->Add(m_cbxPESZID3);
			m_cbxSZs->Add(m_cbxPESZID4);
			m_cbxSZs->Add(m_cbxPESZID5);
			m_cbxSZs->Add(m_cbxPESZID6);

			m_TabPageIndex = 0;
#endif
        }  
        
	protected: 
		void Dispose(Boolean disposing)
		{
			//delete m_ph;

			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Panel*  m_pnlContainer;
	private: System::Windows::Forms::TabControl*  m_tbcMain;
	private: System::Windows::Forms::TabPage*  m_tbpPE;
	private: System::Windows::Forms::SplitContainer*  m_spcPE1;
	private: System::Windows::Forms::TabPage*  m_tbpPEVar;
	private: System::Windows::Forms::GroupBox*  m_gbxPHs;
	private: System::Windows::Forms::GroupBox*  m_gbxPEBasic;
	private: System::Windows::Forms::CheckedListBox*  m_clbPEFlags;
	private: System::Windows::Forms::GroupBox*  m_gbxPEEditVar;
	private: System::Windows::Forms::Button*  m_btPENewVar;
	private: System::Windows::Forms::Button*  m_btPEUpdateVar;
	private: System::Windows::Forms::Label*  m_lblPEVarName;
	private: System::Windows::Forms::Button*  m_btPEDelVar;
	private: System::Windows::Forms::TextBox*  m_tbxPEVarName;
	private: System::Windows::Forms::TextBox*  m_tbxPEVarNote;
	private: System::Windows::Forms::Label*  m_lblPEVarNote;
	private: System::Windows::Forms::GroupBox*  m_gbxPEVarList;
	private: System::Windows::Forms::ListView*  m_lvPEVar;
	private: System::Windows::Forms::ColumnHeader*  m_lvColPEVarGUID;
	private: System::Windows::Forms::ColumnHeader*  m_lvColPEVarName;
	private: System::Windows::Forms::ColumnHeader*  m_lvColPEVarNote;
	private: System::Windows::Forms::TabControl*  m_tbcPHs;
	private: System::Windows::Forms::TabPage*  m_tbpPH1;
	private: System::Windows::Forms::SplitContainer*  m_spcPH1;
	private: System::Windows::Forms::GroupBox*  m_gbxPHBasic;
	private: System::Windows::Forms::TextBox*  m_tbxPH1Name;
	private: System::Windows::Forms::Label*  m_lblPH1Name;
	private: System::Windows::Forms::SplitContainer*  m_spcPH2;
	private: System::Windows::Forms::GroupBox*  m_gbxPHSOBs;
	private: System::Windows::Forms::GroupBox*  m_gbxPHFOBs;
	private: System::Windows::Forms::Panel*  m_pnlEditPH;
	private: System::Windows::Forms::Button*  m_btPEDelPhase;
	private: System::Windows::Forms::Button*  m_btPENewPhase;
	private: System::Windows::Forms::Panel*  m_pnlPHName;
	private: System::Windows::Forms::Panel*  m_pnlEditSOB;
	private: System::Windows::Forms::CheckedListBox*  m_clbPH1SLogic;
	private: System::Windows::Forms::Button*  m_btDelSOB;
	private: System::Windows::Forms::Button*  m_btNewSOB;
	private: System::Windows::Forms::GroupBox*  m_gbxPELuaEvent;
	private: System::Windows::Forms::TextBox*  m_tbxOBOnArchieve;
	private: System::Windows::Forms::Label*  m_lblOBOnArchieve;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnPlayerLeave;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnPlayerEnter;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnFail;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnSucc;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnBegin;
	private: System::Windows::Forms::Label*  m_lblPEOnPlayerLeave;
	private: System::Windows::Forms::Label*  m_lblPEOnPlayerEnter;
	private: System::Windows::Forms::Label*  m_lblPEOnFail;
	private: System::Windows::Forms::Label*  m_lblPEOnSucc;
	private: System::Windows::Forms::Label*  m_lblPEOnBegin;
	private: System::Windows::Forms::GroupBox*  m_gbxPERegion;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID6;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID5;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID4;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID3;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID2;
	private: System::Windows::Forms::ComboBox*  m_cbxPESZID1;
	private: System::Windows::Forms::ComboBox*  m_cbxPEZoneID;
	private: System::Windows::Forms::Label*  m_lblPESubZone;
	private: System::Windows::Forms::Label*  m_lblPEZone;
	private: System::Windows::Forms::GroupBox*  m_gbxPEReset;
	private: System::Windows::Forms::TextBox*  m_tbxPEResetTimeGap;
	private: System::Windows::Forms::Label*  m_lblPEResetTimeGapSecond;
	private: System::Windows::Forms::Label*  m_lblPEResetTimeGap;
	private: System::Windows::Forms::TabControl*  m_tbcPHSOBs;
	private: System::Windows::Forms::TabPage*  m_tbpSOB1;
	private: System::Windows::Forms::CheckedListBox*  m_clbSOB1Flag;
	private: System::Windows::Forms::TextBox*  m_tbxSOB1Name;
	private: System::Windows::Forms::Label*  m_lblSOB1Name;
	private: System::Windows::Forms::Panel*  m_pnlEditFOB;
	private: System::Windows::Forms::TabControl*  m_tbcPHFOBs;
	private: System::Windows::Forms::CheckedListBox*  m_clbPH1FLogic;
	private: System::Windows::Forms::Button*  m_btDelFOB;
	private: System::Windows::Forms::Button*  m_btNewFOB;
	private: System::Windows::Forms::GroupBox*  m_gbxSOB1Note;
	private: System::Windows::Forms::TextBox*  m_tbxSOB1Note;
	private: System::Windows::Forms::ComboBox*  m_cbxSOB1NextPhase;
	private: System::Windows::Forms::Label*  m_lblSOB1NextPhase;
	private: System::Windows::Forms::GroupBox*  m_gbxSOB1Setting;
	private: System::Windows::Forms::TextBox*  m_tbxSOB1InitValue;
	private: System::Windows::Forms::Label*  m_lblSOB1InitValue;
	private: System::Windows::Forms::TextBox*  m_tbxSOB1Threshold;
	private: System::Windows::Forms::ComboBox*  m_cbxSOB1Type;
	private: System::Windows::Forms::ComboBox*  m_cbxSOB1VarName;
	private: System::Windows::Forms::GroupBox*  m_gbxSOB1ShortNote;
	private: System::Windows::Forms::TextBox*  m_tbxSOB1ShortNote;
	private: System::Windows::Forms::Label*  m_lblPH1BonusScore2;
	private: System::Windows::Forms::Label*  m_lblPH1BonusScore1;
	private: System::Windows::Forms::TextBox*  m_tbxPHOnFail;
	private: System::Windows::Forms::TextBox*  m_tbxPHOnSucc;
	private: System::Windows::Forms::TextBox*  m_tbxPHOnBegin;
	private: System::Windows::Forms::Label*  m_lblPHOnFail;
	private: System::Windows::Forms::Label*  m_lblPHOnSucc;
	private: System::Windows::Forms::Label*  m_lblPHOnBegin;
	private: System::Windows::Forms::GroupBox*  m_gbxPH1Score;
	private: System::Windows::Forms::TextBox*  m_tbxPH1BonusScore2;
	private: System::Windows::Forms::TextBox*  m_tbxPH1BonusScore1;
	private: System::Windows::Forms::TextBox*  m_tbxPH1Score;
	private: System::Windows::Forms::Label*  m_lblPH1Score;
	private: System::Windows::Forms::GroupBox*  m_gbxPH1ShortNote;
	private: System::Windows::Forms::TextBox*  m_tbxPH1ShortNote;
	private: System::Windows::Forms::GroupBox*  m_gbxPH1Note;
	private: System::Windows::Forms::TextBox*  m_tbxPH1Note;
	private: System::Windows::Forms::GroupBox*  m_gbxPH1NextPhase;
	private: System::Windows::Forms::Label*  m_lblPH1NPTimeGap;
	private: System::Windows::Forms::TextBox*  m_tbxPH1NPTimeGap;
	private: System::Windows::Forms::TextBox*  m_tbxPEOnBalance;
	private: System::Windows::Forms::Label*  m_lblPEOnBalance;
	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->m_pnlContainer = (new System::Windows::Forms::Panel());
			this->m_tbcMain = (new System::Windows::Forms::TabControl());
			this->m_tbpPE = (new System::Windows::Forms::TabPage());
			this->m_spcPE1 = (new System::Windows::Forms::SplitContainer());
			this->m_gbxPEBasic = (new System::Windows::Forms::GroupBox());
			this->m_gbxPELuaEvent = (new System::Windows::Forms::GroupBox());
			this->m_tbxPEOnBalance = (new System::Windows::Forms::TextBox());
			this->m_lblPEOnBalance = (new System::Windows::Forms::Label());
			this->m_tbxPHOnFail = (new System::Windows::Forms::TextBox());
			this->m_tbxPHOnSucc = (new System::Windows::Forms::TextBox());
			this->m_tbxPHOnBegin = (new System::Windows::Forms::TextBox());
			this->m_lblPHOnFail = (new System::Windows::Forms::Label());
			this->m_lblPHOnSucc = (new System::Windows::Forms::Label());
			this->m_lblPHOnBegin = (new System::Windows::Forms::Label());
			this->m_tbxOBOnArchieve = (new System::Windows::Forms::TextBox());
			this->m_lblOBOnArchieve = (new System::Windows::Forms::Label());
			this->m_tbxPEOnPlayerLeave = (new System::Windows::Forms::TextBox());
			this->m_tbxPEOnPlayerEnter = (new System::Windows::Forms::TextBox());
			this->m_tbxPEOnFail = (new System::Windows::Forms::TextBox());
			this->m_tbxPEOnSucc = (new System::Windows::Forms::TextBox());
			this->m_tbxPEOnBegin = (new System::Windows::Forms::TextBox());
			this->m_lblPEOnPlayerLeave = (new System::Windows::Forms::Label());
			this->m_lblPEOnPlayerEnter = (new System::Windows::Forms::Label());
			this->m_lblPEOnFail = (new System::Windows::Forms::Label());
			this->m_lblPEOnSucc = (new System::Windows::Forms::Label());
			this->m_lblPEOnBegin = (new System::Windows::Forms::Label());
			this->m_gbxPERegion = (new System::Windows::Forms::GroupBox());
			this->m_cbxPESZID6 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPESZID5 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPESZID4 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPESZID3 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPESZID2 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPESZID1 = (new System::Windows::Forms::ComboBox());
			this->m_cbxPEZoneID = (new System::Windows::Forms::ComboBox());
			this->m_lblPESubZone = (new System::Windows::Forms::Label());
			this->m_lblPEZone = (new System::Windows::Forms::Label());
			this->m_gbxPEReset = (new System::Windows::Forms::GroupBox());
			this->m_tbxPEResetTimeGap = (new System::Windows::Forms::TextBox());
			this->m_lblPEResetTimeGapSecond = (new System::Windows::Forms::Label());
			this->m_lblPEResetTimeGap = (new System::Windows::Forms::Label());
			this->m_clbPEFlags = (new System::Windows::Forms::CheckedListBox());
			this->m_gbxPHs = (new System::Windows::Forms::GroupBox());
			this->m_tbcPHs = (new System::Windows::Forms::TabControl());
			this->m_tbpPH1 = (new System::Windows::Forms::TabPage());
			this->m_spcPH1 = (new System::Windows::Forms::SplitContainer());
			this->m_gbxPHBasic = (new System::Windows::Forms::GroupBox());
			this->m_gbxPH1ShortNote = (new System::Windows::Forms::GroupBox());
			this->m_tbxPH1ShortNote = (new System::Windows::Forms::TextBox());
			this->m_gbxPH1Note = (new System::Windows::Forms::GroupBox());
			this->m_tbxPH1Note = (new System::Windows::Forms::TextBox());
			this->m_gbxPH1NextPhase = (new System::Windows::Forms::GroupBox());
			this->m_lblPH1NPTimeGap = (new System::Windows::Forms::Label());
			this->m_tbxPH1NPTimeGap = (new System::Windows::Forms::TextBox());
			this->m_gbxPH1Score = (new System::Windows::Forms::GroupBox());
			this->m_tbxPH1BonusScore2 = (new System::Windows::Forms::TextBox());
			this->m_tbxPH1BonusScore1 = (new System::Windows::Forms::TextBox());
			this->m_tbxPH1Score = (new System::Windows::Forms::TextBox());
			this->m_lblPH1BonusScore2 = (new System::Windows::Forms::Label());
			this->m_lblPH1Score = (new System::Windows::Forms::Label());
			this->m_lblPH1BonusScore1 = (new System::Windows::Forms::Label());
			this->m_pnlPHName = (new System::Windows::Forms::Panel());
			this->m_lblPH1Name = (new System::Windows::Forms::Label());
			this->m_tbxPH1Name = (new System::Windows::Forms::TextBox());
			this->m_spcPH2 = (new System::Windows::Forms::SplitContainer());
			this->m_gbxPHSOBs = (new System::Windows::Forms::GroupBox());
			this->m_tbcPHSOBs = (new System::Windows::Forms::TabControl());
			this->m_tbpSOB1 = (new System::Windows::Forms::TabPage());
			this->m_gbxSOB1ShortNote = (new System::Windows::Forms::GroupBox());
			this->m_tbxSOB1ShortNote = (new System::Windows::Forms::TextBox());
			this->m_gbxSOB1Note = (new System::Windows::Forms::GroupBox());
			this->m_tbxSOB1Note = (new System::Windows::Forms::TextBox());
			this->m_gbxSOB1Setting = (new System::Windows::Forms::GroupBox());
			this->m_clbSOB1Flag = (new System::Windows::Forms::CheckedListBox());
			this->m_tbxSOB1Name = (new System::Windows::Forms::TextBox());
			this->m_lblSOB1Name = (new System::Windows::Forms::Label());
			this->m_lblSOB1NextPhase = (new System::Windows::Forms::Label());
			this->m_cbxSOB1NextPhase = (new System::Windows::Forms::ComboBox());
			this->m_tbxSOB1InitValue = (new System::Windows::Forms::TextBox());
			this->m_lblSOB1InitValue = (new System::Windows::Forms::Label());
			this->m_tbxSOB1Threshold = (new System::Windows::Forms::TextBox());
			this->m_cbxSOB1Type = (new System::Windows::Forms::ComboBox());
			this->m_cbxSOB1VarName = (new System::Windows::Forms::ComboBox());
			this->m_pnlEditSOB = (new System::Windows::Forms::Panel());
			this->m_clbPH1SLogic = (new System::Windows::Forms::CheckedListBox());
			this->m_btDelSOB = (new System::Windows::Forms::Button());
			this->m_btNewSOB = (new System::Windows::Forms::Button());
			this->m_gbxPHFOBs = (new System::Windows::Forms::GroupBox());
			this->m_tbcPHFOBs = (new System::Windows::Forms::TabControl());
			this->m_pnlEditFOB = (new System::Windows::Forms::Panel());
			this->m_clbPH1FLogic = (new System::Windows::Forms::CheckedListBox());
			this->m_btDelFOB = (new System::Windows::Forms::Button());
			this->m_btNewFOB = (new System::Windows::Forms::Button());
			this->m_pnlEditPH = (new System::Windows::Forms::Panel());
			this->m_btPEDelPhase = (new System::Windows::Forms::Button());
			this->m_btPENewPhase = (new System::Windows::Forms::Button());
			this->m_tbpPEVar = (new System::Windows::Forms::TabPage());
			this->m_gbxPEVarList = (new System::Windows::Forms::GroupBox());
			this->m_lvPEVar = (new System::Windows::Forms::ListView());
			this->m_lvColPEVarGUID = (new System::Windows::Forms::ColumnHeader());
			this->m_lvColPEVarName = (new System::Windows::Forms::ColumnHeader());
			this->m_lvColPEVarNote = (new System::Windows::Forms::ColumnHeader());
			this->m_gbxPEEditVar = (new System::Windows::Forms::GroupBox());
			this->m_tbxPEVarNote = (new System::Windows::Forms::TextBox());
			this->m_lblPEVarNote = (new System::Windows::Forms::Label());
			this->m_btPENewVar = (new System::Windows::Forms::Button());
			this->m_btPEUpdateVar = (new System::Windows::Forms::Button());
			this->m_lblPEVarName = (new System::Windows::Forms::Label());
			this->m_btPEDelVar = (new System::Windows::Forms::Button());
			this->m_tbxPEVarName = (new System::Windows::Forms::TextBox());
			this->m_pnlContainer->SuspendLayout();
			this->m_tbcMain->SuspendLayout();
			this->m_tbpPE->SuspendLayout();
			this->m_spcPE1->Panel1->SuspendLayout();
			this->m_spcPE1->Panel2->SuspendLayout();
			this->m_spcPE1->SuspendLayout();
			this->m_gbxPEBasic->SuspendLayout();
			this->m_gbxPELuaEvent->SuspendLayout();
			this->m_gbxPERegion->SuspendLayout();
			this->m_gbxPEReset->SuspendLayout();
			this->m_gbxPHs->SuspendLayout();
			this->m_tbcPHs->SuspendLayout();
			this->m_tbpPH1->SuspendLayout();
			this->m_spcPH1->Panel1->SuspendLayout();
			this->m_spcPH1->Panel2->SuspendLayout();
			this->m_spcPH1->SuspendLayout();
			this->m_gbxPHBasic->SuspendLayout();
			this->m_gbxPH1ShortNote->SuspendLayout();
			this->m_gbxPH1Note->SuspendLayout();
			this->m_gbxPH1NextPhase->SuspendLayout();
			this->m_gbxPH1Score->SuspendLayout();
			this->m_pnlPHName->SuspendLayout();
			this->m_spcPH2->Panel1->SuspendLayout();
			this->m_spcPH2->Panel2->SuspendLayout();
			this->m_spcPH2->SuspendLayout();
			this->m_gbxPHSOBs->SuspendLayout();
			this->m_tbcPHSOBs->SuspendLayout();
			this->m_tbpSOB1->SuspendLayout();
			this->m_gbxSOB1ShortNote->SuspendLayout();
			this->m_gbxSOB1Note->SuspendLayout();
			this->m_gbxSOB1Setting->SuspendLayout();
			this->m_pnlEditSOB->SuspendLayout();
			this->m_gbxPHFOBs->SuspendLayout();
			this->m_pnlEditFOB->SuspendLayout();
			this->m_pnlEditPH->SuspendLayout();
			this->m_tbpPEVar->SuspendLayout();
			this->m_gbxPEVarList->SuspendLayout();
			this->m_gbxPEEditVar->SuspendLayout();
			this->SuspendLayout();
			// 
			// m_pnlContainer
			// 
			this->m_pnlContainer->Controls->Add(this->m_tbcMain);
			this->m_pnlContainer->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_pnlContainer->Location = System::Drawing::Point(0, 0);
			this->m_pnlContainer->Name = S"m_pnlContainer";
			this->m_pnlContainer->Size = System::Drawing::Size(984, 802);
			this->m_pnlContainer->TabIndex = 0;
			// 
			// m_tbcMain
			// 
			this->m_tbcMain->Controls->Add(this->m_tbpPE);
			this->m_tbcMain->Controls->Add(this->m_tbpPEVar);
			this->m_tbcMain->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbcMain->Location = System::Drawing::Point(0, 0);
			this->m_tbcMain->Name = S"m_tbcMain";
			this->m_tbcMain->SelectedIndex = 0;
			this->m_tbcMain->Size = System::Drawing::Size(984, 802);
			this->m_tbcMain->TabIndex = 1;
			// 
			// m_tbpPE
			// 
			this->m_tbpPE->Controls->Add(this->m_spcPE1);
			this->m_tbpPE->Location = System::Drawing::Point(4, 22);
			this->m_tbpPE->Name = S"m_tbpPE";
			this->m_tbpPE->Padding = System::Windows::Forms::Padding(3);
			this->m_tbpPE->Size = System::Drawing::Size(976, 776);
			this->m_tbpPE->TabIndex = 0;
			this->m_tbpPE->Text = S"流程控制";
			this->m_tbpPE->UseVisualStyleBackColor = true;
			// 
			// m_spcPE1
			// 
			this->m_spcPE1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_spcPE1->FixedPanel = System::Windows::Forms::FixedPanel::Panel1;
			this->m_spcPE1->Location = System::Drawing::Point(3, 3);
			this->m_spcPE1->Name = S"m_spcPE1";
			// 
			// m_spcPE1.Panel1
			// 
			this->m_spcPE1->Panel1->Controls->Add(this->m_gbxPEBasic);
			// 
			// m_spcPE1.Panel2
			// 
			this->m_spcPE1->Panel2->Controls->Add(this->m_gbxPHs);
			this->m_spcPE1->Size = System::Drawing::Size(970, 770);
			this->m_spcPE1->SplitterDistance = 250;
			this->m_spcPE1->TabIndex = 1;
			// 
			// m_gbxPEBasic
			// 
			this->m_gbxPEBasic->BackColor = System::Drawing::SystemColors::Control;
			this->m_gbxPEBasic->Controls->Add(this->m_gbxPELuaEvent);
			this->m_gbxPEBasic->Controls->Add(this->m_gbxPERegion);
			this->m_gbxPEBasic->Controls->Add(this->m_gbxPEReset);
			this->m_gbxPEBasic->Controls->Add(this->m_clbPEFlags);
			this->m_gbxPEBasic->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPEBasic->Location = System::Drawing::Point(0, 0);
			this->m_gbxPEBasic->Name = S"m_gbxPEBasic";
			this->m_gbxPEBasic->Size = System::Drawing::Size(250, 770);
			this->m_gbxPEBasic->TabIndex = 0;
			this->m_gbxPEBasic->TabStop = false;
			this->m_gbxPEBasic->Text = S"基本設定";
			// 
			// m_gbxPELuaEvent
			// 
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnBalance);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnBalance);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPHOnFail);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPHOnSucc);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPHOnBegin);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPHOnFail);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPHOnSucc);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPHOnBegin);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxOBOnArchieve);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblOBOnArchieve);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnPlayerLeave);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnPlayerEnter);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnFail);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnSucc);
			this->m_gbxPELuaEvent->Controls->Add(this->m_tbxPEOnBegin);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnPlayerLeave);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnPlayerEnter);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnFail);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnSucc);
			this->m_gbxPELuaEvent->Controls->Add(this->m_lblPEOnBegin);
			this->m_gbxPELuaEvent->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPELuaEvent->Location = System::Drawing::Point(3, 317);
			this->m_gbxPELuaEvent->Name = S"m_gbxPELuaEvent";
			this->m_gbxPELuaEvent->Size = System::Drawing::Size(244, 450);
			this->m_gbxPELuaEvent->TabIndex = 18;
			this->m_gbxPELuaEvent->TabStop = false;
			this->m_gbxPELuaEvent->Text = S"Lua函式";
			// 
			// m_tbxPEOnBalance
			// 
			this->m_tbxPEOnBalance->Location = System::Drawing::Point(112, 270);
			this->m_tbxPEOnBalance->MaxLength = 64;
			this->m_tbxPEOnBalance->Name = S"m_tbxPEOnBalance";
			this->m_tbxPEOnBalance->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnBalance->TabIndex = 26;
			this->m_tbxPEOnBalance->Tag = S"";
			this->m_tbxPEOnBalance->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnBalance_TextChanged);
			// 
			// m_lblPEOnBalance
			// 
			this->m_lblPEOnBalance->Location = System::Drawing::Point(6, 270);
			this->m_lblPEOnBalance->Name = S"m_lblPEOnBalance";
			this->m_lblPEOnBalance->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnBalance->TabIndex = 25;
			this->m_lblPEOnBalance->Text = S"結束後獎勵結算";
			this->m_lblPEOnBalance->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxPHOnFail
			// 
			this->m_tbxPHOnFail->Location = System::Drawing::Point(112, 214);
			this->m_tbxPHOnFail->Name = S"m_tbxPHOnFail";
			this->m_tbxPHOnFail->Size = System::Drawing::Size(120, 22);
			this->m_tbxPHOnFail->TabIndex = 24;
			this->m_tbxPHOnFail->Tag = S"";
			this->m_tbxPHOnFail->TextChanged += new System::EventHandler(this, &PEForm::tbxPHOnFail_TextChanged);
			// 
			// m_tbxPHOnSucc
			// 
			this->m_tbxPHOnSucc->Location = System::Drawing::Point(112, 186);
			this->m_tbxPHOnSucc->Name = S"m_tbxPHOnSucc";
			this->m_tbxPHOnSucc->Size = System::Drawing::Size(120, 22);
			this->m_tbxPHOnSucc->TabIndex = 23;
			this->m_tbxPHOnSucc->Tag = S"";
			this->m_tbxPHOnSucc->TextChanged += new System::EventHandler(this, &PEForm::tbxPHOnSucc_TextChanged);
			// 
			// m_tbxPHOnBegin
			// 
			this->m_tbxPHOnBegin->Location = System::Drawing::Point(112, 158);
			this->m_tbxPHOnBegin->Name = S"m_tbxPHOnBegin";
			this->m_tbxPHOnBegin->Size = System::Drawing::Size(120, 22);
			this->m_tbxPHOnBegin->TabIndex = 22;
			this->m_tbxPHOnBegin->Tag = S"";
			this->m_tbxPHOnBegin->TextChanged += new System::EventHandler(this, &PEForm::tbxPHOnBegin_TextChanged);
			// 
			// m_lblPHOnFail
			// 
			this->m_lblPHOnFail->Location = System::Drawing::Point(6, 214);
			this->m_lblPHOnFail->Name = S"m_lblPHOnFail";
			this->m_lblPHOnFail->Size = System::Drawing::Size(100, 22);
			this->m_lblPHOnFail->TabIndex = 21;
			this->m_lblPHOnFail->Text = S"階段失敗後";
			this->m_lblPHOnFail->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPHOnSucc
			// 
			this->m_lblPHOnSucc->Location = System::Drawing::Point(6, 186);
			this->m_lblPHOnSucc->Name = S"m_lblPHOnSucc";
			this->m_lblPHOnSucc->Size = System::Drawing::Size(100, 22);
			this->m_lblPHOnSucc->TabIndex = 20;
			this->m_lblPHOnSucc->Text = S"階段成功後";
			this->m_lblPHOnSucc->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPHOnBegin
			// 
			this->m_lblPHOnBegin->Location = System::Drawing::Point(6, 158);
			this->m_lblPHOnBegin->Name = S"m_lblPHOnBegin";
			this->m_lblPHOnBegin->Size = System::Drawing::Size(100, 22);
			this->m_lblPHOnBegin->TabIndex = 19;
			this->m_lblPHOnBegin->Text = S"階段開始時";
			this->m_lblPHOnBegin->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxOBOnArchieve
			// 
			this->m_tbxOBOnArchieve->Location = System::Drawing::Point(112, 242);
			this->m_tbxOBOnArchieve->MaxLength = 64;
			this->m_tbxOBOnArchieve->Name = S"m_tbxOBOnArchieve";
			this->m_tbxOBOnArchieve->Size = System::Drawing::Size(120, 22);
			this->m_tbxOBOnArchieve->TabIndex = 18;
			this->m_tbxOBOnArchieve->Tag = S"";
			this->m_tbxOBOnArchieve->TextChanged += new System::EventHandler(this, &PEForm::tbxOBOnArchieve_TextChanged);
			// 
			// m_lblOBOnArchieve
			// 
			this->m_lblOBOnArchieve->Location = System::Drawing::Point(6, 242);
			this->m_lblOBOnArchieve->Name = S"m_lblOBOnArchieve";
			this->m_lblOBOnArchieve->Size = System::Drawing::Size(100, 22);
			this->m_lblOBOnArchieve->TabIndex = 17;
			this->m_lblOBOnArchieve->Text = S"任何條件達成時";
			this->m_lblOBOnArchieve->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxPEOnPlayerLeave
			// 
			this->m_tbxPEOnPlayerLeave->Location = System::Drawing::Point(112, 130);
			this->m_tbxPEOnPlayerLeave->MaxLength = 64;
			this->m_tbxPEOnPlayerLeave->Name = S"m_tbxPEOnPlayerLeave";
			this->m_tbxPEOnPlayerLeave->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnPlayerLeave->TabIndex = 16;
			this->m_tbxPEOnPlayerLeave->Tag = S"";
			this->m_tbxPEOnPlayerLeave->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnPlayerLeave_TextChanged);
			// 
			// m_tbxPEOnPlayerEnter
			// 
			this->m_tbxPEOnPlayerEnter->Location = System::Drawing::Point(112, 102);
			this->m_tbxPEOnPlayerEnter->MaxLength = 64;
			this->m_tbxPEOnPlayerEnter->Name = S"m_tbxPEOnPlayerEnter";
			this->m_tbxPEOnPlayerEnter->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnPlayerEnter->TabIndex = 15;
			this->m_tbxPEOnPlayerEnter->Tag = S"";
			this->m_tbxPEOnPlayerEnter->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnPlayerEnter_TextChanged);
			// 
			// m_tbxPEOnFail
			// 
			this->m_tbxPEOnFail->Location = System::Drawing::Point(112, 74);
			this->m_tbxPEOnFail->MaxLength = 64;
			this->m_tbxPEOnFail->Name = S"m_tbxPEOnFail";
			this->m_tbxPEOnFail->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnFail->TabIndex = 14;
			this->m_tbxPEOnFail->Tag = S"";
			this->m_tbxPEOnFail->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnFail_TextChanged);
			// 
			// m_tbxPEOnSucc
			// 
			this->m_tbxPEOnSucc->Location = System::Drawing::Point(112, 46);
			this->m_tbxPEOnSucc->MaxLength = 64;
			this->m_tbxPEOnSucc->Name = S"m_tbxPEOnSucc";
			this->m_tbxPEOnSucc->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnSucc->TabIndex = 13;
			this->m_tbxPEOnSucc->Tag = S"";
			this->m_tbxPEOnSucc->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnSucc_TextChanged);
			// 
			// m_tbxPEOnBegin
			// 
			this->m_tbxPEOnBegin->Location = System::Drawing::Point(112, 18);
			this->m_tbxPEOnBegin->MaxLength = 64;
			this->m_tbxPEOnBegin->Name = S"m_tbxPEOnBegin";
			this->m_tbxPEOnBegin->Size = System::Drawing::Size(120, 22);
			this->m_tbxPEOnBegin->TabIndex = 12;
			this->m_tbxPEOnBegin->Tag = S"";
			this->m_tbxPEOnBegin->TextChanged += new System::EventHandler(this, &PEForm::tbxPEOnBegin_TextChanged);
			// 
			// m_lblPEOnPlayerLeave
			// 
			this->m_lblPEOnPlayerLeave->Location = System::Drawing::Point(6, 130);
			this->m_lblPEOnPlayerLeave->Name = S"m_lblPEOnPlayerLeave";
			this->m_lblPEOnPlayerLeave->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnPlayerLeave->TabIndex = 11;
			this->m_lblPEOnPlayerLeave->Text = S"玩家離開區域";
			this->m_lblPEOnPlayerLeave->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEOnPlayerEnter
			// 
			this->m_lblPEOnPlayerEnter->Location = System::Drawing::Point(6, 102);
			this->m_lblPEOnPlayerEnter->Name = S"m_lblPEOnPlayerEnter";
			this->m_lblPEOnPlayerEnter->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnPlayerEnter->TabIndex = 10;
			this->m_lblPEOnPlayerEnter->Text = S"玩家進入區域";
			this->m_lblPEOnPlayerEnter->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEOnFail
			// 
			this->m_lblPEOnFail->Location = System::Drawing::Point(6, 74);
			this->m_lblPEOnFail->Name = S"m_lblPEOnFail";
			this->m_lblPEOnFail->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnFail->TabIndex = 9;
			this->m_lblPEOnFail->Text = S"失敗後";
			this->m_lblPEOnFail->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEOnSucc
			// 
			this->m_lblPEOnSucc->Location = System::Drawing::Point(6, 46);
			this->m_lblPEOnSucc->Name = S"m_lblPEOnSucc";
			this->m_lblPEOnSucc->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnSucc->TabIndex = 8;
			this->m_lblPEOnSucc->Text = S"成功後";
			this->m_lblPEOnSucc->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEOnBegin
			// 
			this->m_lblPEOnBegin->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_lblPEOnBegin->Location = System::Drawing::Point(6, 18);
			this->m_lblPEOnBegin->Name = S"m_lblPEOnBegin";
			this->m_lblPEOnBegin->Size = System::Drawing::Size(100, 22);
			this->m_lblPEOnBegin->TabIndex = 7;
			this->m_lblPEOnBegin->Text = S"開始時";
			this->m_lblPEOnBegin->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_gbxPERegion
			// 
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID6);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID5);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID4);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID3);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID2);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPESZID1);
			this->m_gbxPERegion->Controls->Add(this->m_cbxPEZoneID);
			this->m_gbxPERegion->Controls->Add(this->m_lblPESubZone);
			this->m_gbxPERegion->Controls->Add(this->m_lblPEZone);
			this->m_gbxPERegion->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPERegion->Location = System::Drawing::Point(3, 104);
			this->m_gbxPERegion->Name = S"m_gbxPERegion";
			this->m_gbxPERegion->Size = System::Drawing::Size(244, 213);
			this->m_gbxPERegion->TabIndex = 17;
			this->m_gbxPERegion->TabStop = false;
			this->m_gbxPERegion->Text = S"發生區域";
			// 
			// m_cbxPESZID6
			// 
			this->m_cbxPESZID6->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID6->FormattingEnabled = true;
			this->m_cbxPESZID6->Location = System::Drawing::Point(58, 173);
			this->m_cbxPESZID6->Name = S"m_cbxPESZID6";
			this->m_cbxPESZID6->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID6->TabIndex = 22;
			this->m_cbxPESZID6->Tag = S"5";
			this->m_cbxPESZID6->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPESZID5
			// 
			this->m_cbxPESZID5->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID5->FormattingEnabled = true;
			this->m_cbxPESZID5->Location = System::Drawing::Point(58, 147);
			this->m_cbxPESZID5->Name = S"m_cbxPESZID5";
			this->m_cbxPESZID5->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID5->TabIndex = 15;
			this->m_cbxPESZID5->Tag = S"4";
			this->m_cbxPESZID5->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPESZID4
			// 
			this->m_cbxPESZID4->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID4->FormattingEnabled = true;
			this->m_cbxPESZID4->Location = System::Drawing::Point(58, 121);
			this->m_cbxPESZID4->Name = S"m_cbxPESZID4";
			this->m_cbxPESZID4->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID4->TabIndex = 14;
			this->m_cbxPESZID4->Tag = S"3";
			this->m_cbxPESZID4->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPESZID3
			// 
			this->m_cbxPESZID3->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID3->FormattingEnabled = true;
			this->m_cbxPESZID3->Location = System::Drawing::Point(58, 95);
			this->m_cbxPESZID3->Name = S"m_cbxPESZID3";
			this->m_cbxPESZID3->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID3->TabIndex = 13;
			this->m_cbxPESZID3->Tag = S"2";
			this->m_cbxPESZID3->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPESZID2
			// 
			this->m_cbxPESZID2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID2->FormattingEnabled = true;
			this->m_cbxPESZID2->Location = System::Drawing::Point(58, 69);
			this->m_cbxPESZID2->Name = S"m_cbxPESZID2";
			this->m_cbxPESZID2->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID2->TabIndex = 12;
			this->m_cbxPESZID2->Tag = S"1";
			this->m_cbxPESZID2->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPESZID1
			// 
			this->m_cbxPESZID1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPESZID1->FormattingEnabled = true;
			this->m_cbxPESZID1->Location = System::Drawing::Point(58, 41);
			this->m_cbxPESZID1->Name = S"m_cbxPESZID1";
			this->m_cbxPESZID1->Size = System::Drawing::Size(180, 20);
			this->m_cbxPESZID1->TabIndex = 11;
			this->m_cbxPESZID1->Tag = S"0";
			this->m_cbxPESZID1->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPESZID_SelectedIndexChanged);
			// 
			// m_cbxPEZoneID
			// 
			this->m_cbxPEZoneID->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxPEZoneID->FormattingEnabled = true;
			this->m_cbxPEZoneID->Location = System::Drawing::Point(58, 17);
			this->m_cbxPEZoneID->Name = S"m_cbxPEZoneID";
			this->m_cbxPEZoneID->Size = System::Drawing::Size(180, 20);
			this->m_cbxPEZoneID->TabIndex = 10;
			this->m_cbxPEZoneID->SelectedIndexChanged += new System::EventHandler(this, &PEForm::cbxPEZID_SelectedIndexChanged);
			// 
			// m_lblPESubZone
			// 
			this->m_lblPESubZone->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_lblPESubZone->Location = System::Drawing::Point(3, 41);
			this->m_lblPESubZone->Name = S"m_lblPESubZone";
			this->m_lblPESubZone->Size = System::Drawing::Size(40, 22);
			this->m_lblPESubZone->TabIndex = 9;
			this->m_lblPESubZone->Text = S"區域";
			this->m_lblPESubZone->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEZone
			// 
			this->m_lblPEZone->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_lblPEZone->Location = System::Drawing::Point(3, 16);
			this->m_lblPEZone->Name = S"m_lblPEZone";
			this->m_lblPEZone->Size = System::Drawing::Size(40, 22);
			this->m_lblPEZone->TabIndex = 8;
			this->m_lblPEZone->Text = S"Zone";
			this->m_lblPEZone->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_gbxPEReset
			// 
			this->m_gbxPEReset->Controls->Add(this->m_tbxPEResetTimeGap);
			this->m_gbxPEReset->Controls->Add(this->m_lblPEResetTimeGapSecond);
			this->m_gbxPEReset->Controls->Add(this->m_lblPEResetTimeGap);
			this->m_gbxPEReset->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPEReset->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_gbxPEReset->Location = System::Drawing::Point(3, 56);
			this->m_gbxPEReset->Name = S"m_gbxPEReset";
			this->m_gbxPEReset->Size = System::Drawing::Size(244, 48);
			this->m_gbxPEReset->TabIndex = 16;
			this->m_gbxPEReset->TabStop = false;
			this->m_gbxPEReset->Text = S"重置";
			// 
			// m_tbxPEResetTimeGap
			// 
			this->m_tbxPEResetTimeGap->Location = System::Drawing::Point(92, 18);
			this->m_tbxPEResetTimeGap->Name = S"m_tbxPEResetTimeGap";
			this->m_tbxPEResetTimeGap->Size = System::Drawing::Size(112, 22);
			this->m_tbxPEResetTimeGap->TabIndex = 8;
			this->m_tbxPEResetTimeGap->TextChanged += new System::EventHandler(this, &PEForm::tbxPEResetTimeGap_TextChanged);
			// 
			// m_lblPEResetTimeGapSecond
			// 
			this->m_lblPEResetTimeGapSecond->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_lblPEResetTimeGapSecond->Location = System::Drawing::Point(210, 18);
			this->m_lblPEResetTimeGapSecond->Name = S"m_lblPEResetTimeGapSecond";
			this->m_lblPEResetTimeGapSecond->Size = System::Drawing::Size(28, 22);
			this->m_lblPEResetTimeGapSecond->TabIndex = 7;
			this->m_lblPEResetTimeGapSecond->Text = S"秒";
			this->m_lblPEResetTimeGapSecond->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPEResetTimeGap
			// 
			this->m_lblPEResetTimeGap->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_lblPEResetTimeGap->Location = System::Drawing::Point(6, 18);
			this->m_lblPEResetTimeGap->Name = S"m_lblPEResetTimeGap";
			this->m_lblPEResetTimeGap->Size = System::Drawing::Size(80, 22);
			this->m_lblPEResetTimeGap->TabIndex = 6;
			this->m_lblPEResetTimeGap->Text = S"重置時間間隔";
			this->m_lblPEResetTimeGap->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_clbPEFlags
			// 
			this->m_clbPEFlags->CheckOnClick = true;
			this->m_clbPEFlags->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_clbPEFlags->FormattingEnabled = true;
			System::Object* __mcTemp__1[] = new System::Object*[2];
			__mcTemp__1[0] = S"顯示介面";
			__mcTemp__1[1] = S"顯示分數";
			this->m_clbPEFlags->Items->AddRange(__mcTemp__1);
			this->m_clbPEFlags->Location = System::Drawing::Point(3, 18);
			this->m_clbPEFlags->Name = S"m_clbPEFlags";
			this->m_clbPEFlags->Size = System::Drawing::Size(244, 38);
			this->m_clbPEFlags->TabIndex = 15;
			this->m_clbPEFlags->Tag = S"";
			this->m_clbPEFlags->SelectedValueChanged += new System::EventHandler(this, &PEForm::clbPEFlags_SelectedValueChanged);
			// 
			// m_gbxPHs
			// 
			this->m_gbxPHs->BackColor = System::Drawing::SystemColors::Control;
			this->m_gbxPHs->Controls->Add(this->m_tbcPHs);
			this->m_gbxPHs->Controls->Add(this->m_pnlEditPH);
			this->m_gbxPHs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPHs->Location = System::Drawing::Point(0, 0);
			this->m_gbxPHs->Name = S"m_gbxPHs";
			this->m_gbxPHs->Size = System::Drawing::Size(716, 770);
			this->m_gbxPHs->TabIndex = 1;
			this->m_gbxPHs->TabStop = false;
			this->m_gbxPHs->Text = S"階段";
			// 
			// m_tbcPHs
			// 
			this->m_tbcPHs->Controls->Add(this->m_tbpPH1);
			this->m_tbcPHs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbcPHs->Location = System::Drawing::Point(3, 47);
			this->m_tbcPHs->Name = S"m_tbcPHs";
			this->m_tbcPHs->SelectedIndex = 0;
			this->m_tbcPHs->Size = System::Drawing::Size(710, 720);
			this->m_tbcPHs->TabIndex = 3;
			// 
			// m_tbpPH1
			// 
			this->m_tbpPH1->Controls->Add(this->m_spcPH1);
			this->m_tbpPH1->Location = System::Drawing::Point(4, 22);
			this->m_tbpPH1->Name = S"m_tbpPH1";
			this->m_tbpPH1->Padding = System::Windows::Forms::Padding(3);
			this->m_tbpPH1->Size = System::Drawing::Size(702, 694);
			this->m_tbpPH1->TabIndex = 0;
			this->m_tbpPH1->Text = S"階段1";
			this->m_tbpPH1->UseVisualStyleBackColor = true;
			// 
			// m_spcPH1
			// 
			this->m_spcPH1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_spcPH1->FixedPanel = System::Windows::Forms::FixedPanel::Panel1;
			this->m_spcPH1->Location = System::Drawing::Point(3, 3);
			this->m_spcPH1->Name = S"m_spcPH1";
			// 
			// m_spcPH1.Panel1
			// 
			this->m_spcPH1->Panel1->Controls->Add(this->m_gbxPHBasic);
			// 
			// m_spcPH1.Panel2
			// 
			this->m_spcPH1->Panel2->Controls->Add(this->m_spcPH2);
			this->m_spcPH1->Size = System::Drawing::Size(696, 688);
			this->m_spcPH1->SplitterDistance = 233;
			this->m_spcPH1->TabIndex = 0;
			// 
			// m_gbxPHBasic
			// 
			this->m_gbxPHBasic->BackColor = System::Drawing::SystemColors::Control;
			this->m_gbxPHBasic->Controls->Add(this->m_gbxPH1ShortNote);
			this->m_gbxPHBasic->Controls->Add(this->m_gbxPH1Note);
			this->m_gbxPHBasic->Controls->Add(this->m_gbxPH1NextPhase);
			this->m_gbxPHBasic->Controls->Add(this->m_gbxPH1Score);
			this->m_gbxPHBasic->Controls->Add(this->m_pnlPHName);
			this->m_gbxPHBasic->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPHBasic->Location = System::Drawing::Point(0, 0);
			this->m_gbxPHBasic->Name = S"m_gbxPHBasic";
			this->m_gbxPHBasic->Size = System::Drawing::Size(233, 688);
			this->m_gbxPHBasic->TabIndex = 0;
			this->m_gbxPHBasic->TabStop = false;
			this->m_gbxPHBasic->Text = S"基本設定";
			// 
			// m_gbxPH1ShortNote
			// 
			this->m_gbxPH1ShortNote->Controls->Add(this->m_tbxPH1ShortNote);
			this->m_gbxPH1ShortNote->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPH1ShortNote->Location = System::Drawing::Point(3, 294);
			this->m_gbxPH1ShortNote->Name = S"m_gbxPH1ShortNote";
			this->m_gbxPH1ShortNote->Size = System::Drawing::Size(227, 75);
			this->m_gbxPH1ShortNote->TabIndex = 23;
			this->m_gbxPH1ShortNote->TabStop = false;
			this->m_gbxPH1ShortNote->Text = S"註解";
			// 
			// m_tbxPH1ShortNote
			// 
			this->m_tbxPH1ShortNote->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbxPH1ShortNote->Location = System::Drawing::Point(3, 18);
			this->m_tbxPH1ShortNote->Multiline = true;
			this->m_tbxPH1ShortNote->Name = S"m_tbxPH1ShortNote";
			this->m_tbxPH1ShortNote->Size = System::Drawing::Size(221, 54);
			this->m_tbxPH1ShortNote->TabIndex = 0;
			this->m_tbxPH1ShortNote->Tag = S"";
			// 
			// m_gbxPH1Note
			// 
			this->m_gbxPH1Note->Controls->Add(this->m_tbxPH1Note);
			this->m_gbxPH1Note->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPH1Note->Location = System::Drawing::Point(3, 194);
			this->m_gbxPH1Note->Name = S"m_gbxPH1Note";
			this->m_gbxPH1Note->Size = System::Drawing::Size(227, 100);
			this->m_gbxPH1Note->TabIndex = 26;
			this->m_gbxPH1Note->TabStop = false;
			this->m_gbxPH1Note->Text = S"說明文(遊戲)";
			// 
			// m_tbxPH1Note
			// 
			this->m_tbxPH1Note->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbxPH1Note->Location = System::Drawing::Point(3, 18);
			this->m_tbxPH1Note->Multiline = true;
			this->m_tbxPH1Note->Name = S"m_tbxPH1Note";
			this->m_tbxPH1Note->Size = System::Drawing::Size(221, 79);
			this->m_tbxPH1Note->TabIndex = 0;
			this->m_tbxPH1Note->Tag = S"";
			// 
			// m_gbxPH1NextPhase
			// 
			this->m_gbxPH1NextPhase->Controls->Add(this->m_lblPH1NPTimeGap);
			this->m_gbxPH1NextPhase->Controls->Add(this->m_tbxPH1NPTimeGap);
			this->m_gbxPH1NextPhase->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPH1NextPhase->Location = System::Drawing::Point(3, 148);
			this->m_gbxPH1NextPhase->Name = S"m_gbxPH1NextPhase";
			this->m_gbxPH1NextPhase->Size = System::Drawing::Size(227, 46);
			this->m_gbxPH1NextPhase->TabIndex = 25;
			this->m_gbxPH1NextPhase->TabStop = false;
			this->m_gbxPH1NextPhase->Text = S"階段結束";
			// 
			// m_lblPH1NPTimeGap
			// 
			this->m_lblPH1NPTimeGap->Location = System::Drawing::Point(92, 18);
			this->m_lblPH1NPTimeGap->Name = S"m_lblPH1NPTimeGap";
			this->m_lblPH1NPTimeGap->Size = System::Drawing::Size(120, 22);
			this->m_lblPH1NPTimeGap->TabIndex = 21;
			this->m_lblPH1NPTimeGap->Text = S"秒後開始下一階段";
			this->m_lblPH1NPTimeGap->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxPH1NPTimeGap
			// 
			this->m_tbxPH1NPTimeGap->Location = System::Drawing::Point(6, 18);
			this->m_tbxPH1NPTimeGap->Name = S"m_tbxPH1NPTimeGap";
			this->m_tbxPH1NPTimeGap->Size = System::Drawing::Size(80, 22);
			this->m_tbxPH1NPTimeGap->TabIndex = 20;
			// 
			// m_gbxPH1Score
			// 
			this->m_gbxPH1Score->Controls->Add(this->m_tbxPH1BonusScore2);
			this->m_gbxPH1Score->Controls->Add(this->m_tbxPH1BonusScore1);
			this->m_gbxPH1Score->Controls->Add(this->m_tbxPH1Score);
			this->m_gbxPH1Score->Controls->Add(this->m_lblPH1BonusScore2);
			this->m_gbxPH1Score->Controls->Add(this->m_lblPH1Score);
			this->m_gbxPH1Score->Controls->Add(this->m_lblPH1BonusScore1);
			this->m_gbxPH1Score->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPH1Score->Location = System::Drawing::Point(3, 48);
			this->m_gbxPH1Score->Name = S"m_gbxPH1Score";
			this->m_gbxPH1Score->Size = System::Drawing::Size(227, 100);
			this->m_gbxPH1Score->TabIndex = 24;
			this->m_gbxPH1Score->TabStop = false;
			this->m_gbxPH1Score->Text = S"積分";
			// 
			// m_tbxPH1BonusScore2
			// 
			this->m_tbxPH1BonusScore2->Location = System::Drawing::Point(88, 70);
			this->m_tbxPH1BonusScore2->Name = S"m_tbxPH1BonusScore2";
			this->m_tbxPH1BonusScore2->Size = System::Drawing::Size(133, 22);
			this->m_tbxPH1BonusScore2->TabIndex = 19;
			// 
			// m_tbxPH1BonusScore1
			// 
			this->m_tbxPH1BonusScore1->Location = System::Drawing::Point(88, 42);
			this->m_tbxPH1BonusScore1->Name = S"m_tbxPH1BonusScore1";
			this->m_tbxPH1BonusScore1->Size = System::Drawing::Size(133, 22);
			this->m_tbxPH1BonusScore1->TabIndex = 18;
			// 
			// m_tbxPH1Score
			// 
			this->m_tbxPH1Score->Location = System::Drawing::Point(88, 14);
			this->m_tbxPH1Score->Name = S"m_tbxPH1Score";
			this->m_tbxPH1Score->Size = System::Drawing::Size(133, 22);
			this->m_tbxPH1Score->TabIndex = 17;
			// 
			// m_lblPH1BonusScore2
			// 
			this->m_lblPH1BonusScore2->Location = System::Drawing::Point(3, 70);
			this->m_lblPH1BonusScore2->Name = S"m_lblPH1BonusScore2";
			this->m_lblPH1BonusScore2->Size = System::Drawing::Size(80, 22);
			this->m_lblPH1BonusScore2->TabIndex = 16;
			this->m_lblPH1BonusScore2->Text = S"Raid獎勵績分";
			this->m_lblPH1BonusScore2->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPH1Score
			// 
			this->m_lblPH1Score->Location = System::Drawing::Point(3, 14);
			this->m_lblPH1Score->Name = S"m_lblPH1Score";
			this->m_lblPH1Score->Size = System::Drawing::Size(80, 22);
			this->m_lblPH1Score->TabIndex = 15;
			this->m_lblPH1Score->Text = S"基本積分";
			this->m_lblPH1Score->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblPH1BonusScore1
			// 
			this->m_lblPH1BonusScore1->Location = System::Drawing::Point(3, 42);
			this->m_lblPH1BonusScore1->Name = S"m_lblPH1BonusScore1";
			this->m_lblPH1BonusScore1->Size = System::Drawing::Size(80, 22);
			this->m_lblPH1BonusScore1->TabIndex = 15;
			this->m_lblPH1BonusScore1->Text = S"組隊獎勵績分";
			this->m_lblPH1BonusScore1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_pnlPHName
			// 
			this->m_pnlPHName->AutoSize = true;
			this->m_pnlPHName->Controls->Add(this->m_lblPH1Name);
			this->m_pnlPHName->Controls->Add(this->m_tbxPH1Name);
			this->m_pnlPHName->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_pnlPHName->Location = System::Drawing::Point(3, 18);
			this->m_pnlPHName->Name = S"m_pnlPHName";
			this->m_pnlPHName->Size = System::Drawing::Size(227, 30);
			this->m_pnlPHName->TabIndex = 20;
			// 
			// m_lblPH1Name
			// 
			this->m_lblPH1Name->Location = System::Drawing::Point(3, 5);
			this->m_lblPH1Name->Name = S"m_lblPH1Name";
			this->m_lblPH1Name->Size = System::Drawing::Size(44, 22);
			this->m_lblPH1Name->TabIndex = 9;
			this->m_lblPH1Name->Text = S"名稱";
			this->m_lblPH1Name->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxPH1Name
			// 
			this->m_tbxPH1Name->Location = System::Drawing::Point(88, 5);
			this->m_tbxPH1Name->Name = S"m_tbxPH1Name";
			this->m_tbxPH1Name->Size = System::Drawing::Size(135, 22);
			this->m_tbxPH1Name->TabIndex = 13;
			this->m_tbxPH1Name->Tag = S"";
			// 
			// m_spcPH2
			// 
			this->m_spcPH2->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_spcPH2->Location = System::Drawing::Point(0, 0);
			this->m_spcPH2->Name = S"m_spcPH2";
			this->m_spcPH2->Orientation = System::Windows::Forms::Orientation::Horizontal;
			// 
			// m_spcPH2.Panel1
			// 
			this->m_spcPH2->Panel1->Controls->Add(this->m_gbxPHSOBs);
			// 
			// m_spcPH2.Panel2
			// 
			this->m_spcPH2->Panel2->Controls->Add(this->m_gbxPHFOBs);
			this->m_spcPH2->Size = System::Drawing::Size(459, 688);
			this->m_spcPH2->SplitterDistance = 337;
			this->m_spcPH2->TabIndex = 0;
			// 
			// m_gbxPHSOBs
			// 
			this->m_gbxPHSOBs->BackColor = System::Drawing::SystemColors::Control;
			this->m_gbxPHSOBs->Controls->Add(this->m_tbcPHSOBs);
			this->m_gbxPHSOBs->Controls->Add(this->m_pnlEditSOB);
			this->m_gbxPHSOBs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPHSOBs->Location = System::Drawing::Point(0, 0);
			this->m_gbxPHSOBs->Name = S"m_gbxPHSOBs";
			this->m_gbxPHSOBs->Size = System::Drawing::Size(459, 337);
			this->m_gbxPHSOBs->TabIndex = 1;
			this->m_gbxPHSOBs->TabStop = false;
			this->m_gbxPHSOBs->Text = S"成功條件";
			// 
			// m_tbcPHSOBs
			// 
			this->m_tbcPHSOBs->Controls->Add(this->m_tbpSOB1);
			this->m_tbcPHSOBs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbcPHSOBs->Location = System::Drawing::Point(3, 64);
			this->m_tbcPHSOBs->Name = S"m_tbcPHSOBs";
			this->m_tbcPHSOBs->SelectedIndex = 0;
			this->m_tbcPHSOBs->Size = System::Drawing::Size(453, 270);
			this->m_tbcPHSOBs->TabIndex = 3;
			// 
			// m_tbpSOB1
			// 
			this->m_tbpSOB1->BackColor = System::Drawing::SystemColors::Control;
			this->m_tbpSOB1->Controls->Add(this->m_gbxSOB1ShortNote);
			this->m_tbpSOB1->Controls->Add(this->m_gbxSOB1Note);
			this->m_tbpSOB1->Controls->Add(this->m_gbxSOB1Setting);
			this->m_tbpSOB1->Location = System::Drawing::Point(4, 22);
			this->m_tbpSOB1->Name = S"m_tbpSOB1";
			this->m_tbpSOB1->Padding = System::Windows::Forms::Padding(3);
			this->m_tbpSOB1->Size = System::Drawing::Size(445, 244);
			this->m_tbpSOB1->TabIndex = 0;
			this->m_tbpSOB1->Text = S"條件1";
			// 
			// m_gbxSOB1ShortNote
			// 
			this->m_gbxSOB1ShortNote->Controls->Add(this->m_tbxSOB1ShortNote);
			this->m_gbxSOB1ShortNote->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxSOB1ShortNote->Location = System::Drawing::Point(3, 183);
			this->m_gbxSOB1ShortNote->Name = S"m_gbxSOB1ShortNote";
			this->m_gbxSOB1ShortNote->Size = System::Drawing::Size(439, 58);
			this->m_gbxSOB1ShortNote->TabIndex = 57;
			this->m_gbxSOB1ShortNote->TabStop = false;
			this->m_gbxSOB1ShortNote->Text = S"註解";
			// 
			// m_tbxSOB1ShortNote
			// 
			this->m_tbxSOB1ShortNote->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbxSOB1ShortNote->Location = System::Drawing::Point(3, 18);
			this->m_tbxSOB1ShortNote->Multiline = true;
			this->m_tbxSOB1ShortNote->Name = S"m_tbxSOB1ShortNote";
			this->m_tbxSOB1ShortNote->Size = System::Drawing::Size(433, 37);
			this->m_tbxSOB1ShortNote->TabIndex = 0;
			this->m_tbxSOB1ShortNote->Tag = S"";
			// 
			// m_gbxSOB1Note
			// 
			this->m_gbxSOB1Note->Controls->Add(this->m_tbxSOB1Note);
			this->m_gbxSOB1Note->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxSOB1Note->Location = System::Drawing::Point(3, 99);
			this->m_gbxSOB1Note->Name = S"m_gbxSOB1Note";
			this->m_gbxSOB1Note->Size = System::Drawing::Size(439, 84);
			this->m_gbxSOB1Note->TabIndex = 56;
			this->m_gbxSOB1Note->TabStop = false;
			this->m_gbxSOB1Note->Text = S"說明文(遊戲)";
			// 
			// m_tbxSOB1Note
			// 
			this->m_tbxSOB1Note->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbxSOB1Note->Location = System::Drawing::Point(3, 18);
			this->m_tbxSOB1Note->Multiline = true;
			this->m_tbxSOB1Note->Name = S"m_tbxSOB1Note";
			this->m_tbxSOB1Note->Size = System::Drawing::Size(433, 63);
			this->m_tbxSOB1Note->TabIndex = 0;
			this->m_tbxSOB1Note->Tag = S"";
			// 
			// m_gbxSOB1Setting
			// 
			this->m_gbxSOB1Setting->Controls->Add(this->m_clbSOB1Flag);
			this->m_gbxSOB1Setting->Controls->Add(this->m_tbxSOB1Name);
			this->m_gbxSOB1Setting->Controls->Add(this->m_lblSOB1Name);
			this->m_gbxSOB1Setting->Controls->Add(this->m_lblSOB1NextPhase);
			this->m_gbxSOB1Setting->Controls->Add(this->m_cbxSOB1NextPhase);
			this->m_gbxSOB1Setting->Controls->Add(this->m_tbxSOB1InitValue);
			this->m_gbxSOB1Setting->Controls->Add(this->m_lblSOB1InitValue);
			this->m_gbxSOB1Setting->Controls->Add(this->m_tbxSOB1Threshold);
			this->m_gbxSOB1Setting->Controls->Add(this->m_cbxSOB1Type);
			this->m_gbxSOB1Setting->Controls->Add(this->m_cbxSOB1VarName);
			this->m_gbxSOB1Setting->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxSOB1Setting->Location = System::Drawing::Point(3, 3);
			this->m_gbxSOB1Setting->Name = S"m_gbxSOB1Setting";
			this->m_gbxSOB1Setting->Size = System::Drawing::Size(439, 96);
			this->m_gbxSOB1Setting->TabIndex = 54;
			this->m_gbxSOB1Setting->TabStop = false;
			this->m_gbxSOB1Setting->Text = S"設定";
			// 
			// m_clbSOB1Flag
			// 
			this->m_clbSOB1Flag->CheckOnClick = true;
			this->m_clbSOB1Flag->FormattingEnabled = true;
			System::Object* __mcTemp__2[] = new System::Object*[2];
			__mcTemp__2[0] = S"顯示";
			__mcTemp__2[1] = S"次要條件";
			this->m_clbSOB1Flag->Items->AddRange(__mcTemp__2);
			this->m_clbSOB1Flag->Location = System::Drawing::Point(352, 12);
			this->m_clbSOB1Flag->Name = S"m_clbSOB1Flag";
			this->m_clbSOB1Flag->Size = System::Drawing::Size(81, 38);
			this->m_clbSOB1Flag->TabIndex = 52;
			// 
			// m_tbxSOB1Name
			// 
			this->m_tbxSOB1Name->Location = System::Drawing::Point(82, 12);
			this->m_tbxSOB1Name->Name = S"m_tbxSOB1Name";
			this->m_tbxSOB1Name->Size = System::Drawing::Size(182, 22);
			this->m_tbxSOB1Name->TabIndex = 43;
			this->m_tbxSOB1Name->Tag = S"";
			// 
			// m_lblSOB1Name
			// 
			this->m_lblSOB1Name->Location = System::Drawing::Point(6, 12);
			this->m_lblSOB1Name->Name = S"m_lblSOB1Name";
			this->m_lblSOB1Name->Size = System::Drawing::Size(70, 22);
			this->m_lblSOB1Name->TabIndex = 42;
			this->m_lblSOB1Name->Text = S"名稱";
			this->m_lblSOB1Name->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_lblSOB1NextPhase
			// 
			this->m_lblSOB1NextPhase->Location = System::Drawing::Point(6, 38);
			this->m_lblSOB1NextPhase->Name = S"m_lblSOB1NextPhase";
			this->m_lblSOB1NextPhase->Size = System::Drawing::Size(70, 22);
			this->m_lblSOB1NextPhase->TabIndex = 16;
			this->m_lblSOB1NextPhase->Text = S"達成後跳到";
			this->m_lblSOB1NextPhase->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_cbxSOB1NextPhase
			// 
			this->m_cbxSOB1NextPhase->FormattingEnabled = true;
			this->m_cbxSOB1NextPhase->Location = System::Drawing::Point(82, 38);
			this->m_cbxSOB1NextPhase->Name = S"m_cbxSOB1NextPhase";
			this->m_cbxSOB1NextPhase->Size = System::Drawing::Size(182, 20);
			this->m_cbxSOB1NextPhase->TabIndex = 18;
			// 
			// m_tbxSOB1InitValue
			// 
			this->m_tbxSOB1InitValue->Location = System::Drawing::Point(357, 64);
			this->m_tbxSOB1InitValue->Name = S"m_tbxSOB1InitValue";
			this->m_tbxSOB1InitValue->Size = System::Drawing::Size(60, 22);
			this->m_tbxSOB1InitValue->TabIndex = 28;
			// 
			// m_lblSOB1InitValue
			// 
			this->m_lblSOB1InitValue->Location = System::Drawing::Point(301, 64);
			this->m_lblSOB1InitValue->Name = S"m_lblSOB1InitValue";
			this->m_lblSOB1InitValue->Size = System::Drawing::Size(50, 23);
			this->m_lblSOB1InitValue->TabIndex = 27;
			this->m_lblSOB1InitValue->Text = S"初始值";
			this->m_lblSOB1InitValue->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_tbxSOB1Threshold
			// 
			this->m_tbxSOB1Threshold->Location = System::Drawing::Point(235, 64);
			this->m_tbxSOB1Threshold->Name = S"m_tbxSOB1Threshold";
			this->m_tbxSOB1Threshold->Size = System::Drawing::Size(60, 22);
			this->m_tbxSOB1Threshold->TabIndex = 26;
			// 
			// m_cbxSOB1Type
			// 
			this->m_cbxSOB1Type->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxSOB1Type->FormattingEnabled = true;
			System::Object* __mcTemp__3[] = new System::Object*[7];
			__mcTemp__3[0] = S"大於";
			__mcTemp__3[1] = S"大於等於";
			__mcTemp__3[2] = S"等於";
			__mcTemp__3[3] = S"不等於";
			__mcTemp__3[4] = S"小於等於";
			__mcTemp__3[5] = S"小於";
			__mcTemp__3[6] = S"時間限制";
			this->m_cbxSOB1Type->Items->AddRange(__mcTemp__3);
			this->m_cbxSOB1Type->Location = System::Drawing::Point(149, 64);
			this->m_cbxSOB1Type->Name = S"m_cbxSOB1Type";
			this->m_cbxSOB1Type->Size = System::Drawing::Size(80, 20);
			this->m_cbxSOB1Type->TabIndex = 24;
			// 
			// m_cbxSOB1VarName
			// 
			this->m_cbxSOB1VarName->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->m_cbxSOB1VarName->FormattingEnabled = true;
			this->m_cbxSOB1VarName->Location = System::Drawing::Point(8, 64);
			this->m_cbxSOB1VarName->Name = S"m_cbxSOB1VarName";
			this->m_cbxSOB1VarName->Size = System::Drawing::Size(135, 20);
			this->m_cbxSOB1VarName->TabIndex = 23;
			// 
			// m_pnlEditSOB
			// 
			this->m_pnlEditSOB->AutoSize = true;
			this->m_pnlEditSOB->Controls->Add(this->m_clbPH1SLogic);
			this->m_pnlEditSOB->Controls->Add(this->m_btDelSOB);
			this->m_pnlEditSOB->Controls->Add(this->m_btNewSOB);
			this->m_pnlEditSOB->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_pnlEditSOB->Location = System::Drawing::Point(3, 18);
			this->m_pnlEditSOB->Name = S"m_pnlEditSOB";
			this->m_pnlEditSOB->Size = System::Drawing::Size(453, 46);
			this->m_pnlEditSOB->TabIndex = 2;
			// 
			// m_clbPH1SLogic
			// 
			this->m_clbPH1SLogic->CheckOnClick = true;
			this->m_clbPH1SLogic->FormattingEnabled = true;
			System::Object* __mcTemp__4[] = new System::Object*[2];
			__mcTemp__4[0] = S"AND";
			__mcTemp__4[1] = S"OR";
			this->m_clbPH1SLogic->Items->AddRange(__mcTemp__4);
			this->m_clbPH1SLogic->Location = System::Drawing::Point(369, 5);
			this->m_clbPH1SLogic->MultiColumn = true;
			this->m_clbPH1SLogic->Name = S"m_clbPH1SLogic";
			this->m_clbPH1SLogic->Size = System::Drawing::Size(80, 38);
			this->m_clbPH1SLogic->TabIndex = 0;
			// 
			// m_btDelSOB
			// 
			this->m_btDelSOB->Location = System::Drawing::Point(84, 5);
			this->m_btDelSOB->Name = S"m_btDelSOB";
			this->m_btDelSOB->Size = System::Drawing::Size(75, 23);
			this->m_btDelSOB->TabIndex = 1;
			this->m_btDelSOB->Text = S"刪除";
			this->m_btDelSOB->UseVisualStyleBackColor = true;
			// 
			// m_btNewSOB
			// 
			this->m_btNewSOB->Location = System::Drawing::Point(3, 5);
			this->m_btNewSOB->Name = S"m_btNewSOB";
			this->m_btNewSOB->Size = System::Drawing::Size(75, 23);
			this->m_btNewSOB->TabIndex = 0;
			this->m_btNewSOB->Text = S"新增";
			this->m_btNewSOB->UseVisualStyleBackColor = true;
			// 
			// m_gbxPHFOBs
			// 
			this->m_gbxPHFOBs->BackColor = System::Drawing::SystemColors::Control;
			this->m_gbxPHFOBs->Controls->Add(this->m_tbcPHFOBs);
			this->m_gbxPHFOBs->Controls->Add(this->m_pnlEditFOB);
			this->m_gbxPHFOBs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPHFOBs->Location = System::Drawing::Point(0, 0);
			this->m_gbxPHFOBs->Name = S"m_gbxPHFOBs";
			this->m_gbxPHFOBs->Size = System::Drawing::Size(459, 347);
			this->m_gbxPHFOBs->TabIndex = 0;
			this->m_gbxPHFOBs->TabStop = false;
			this->m_gbxPHFOBs->Text = S"失敗條件";
			// 
			// m_tbcPHFOBs
			// 
			this->m_tbcPHFOBs->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_tbcPHFOBs->Location = System::Drawing::Point(3, 62);
			this->m_tbcPHFOBs->Name = S"m_tbcPHFOBs";
			this->m_tbcPHFOBs->SelectedIndex = 0;
			this->m_tbcPHFOBs->Size = System::Drawing::Size(453, 282);
			this->m_tbcPHFOBs->TabIndex = 2;
			// 
			// m_pnlEditFOB
			// 
			this->m_pnlEditFOB->AutoSize = true;
			this->m_pnlEditFOB->Controls->Add(this->m_clbPH1FLogic);
			this->m_pnlEditFOB->Controls->Add(this->m_btDelFOB);
			this->m_pnlEditFOB->Controls->Add(this->m_btNewFOB);
			this->m_pnlEditFOB->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_pnlEditFOB->Location = System::Drawing::Point(3, 18);
			this->m_pnlEditFOB->Name = S"m_pnlEditFOB";
			this->m_pnlEditFOB->Size = System::Drawing::Size(453, 44);
			this->m_pnlEditFOB->TabIndex = 1;
			// 
			// m_clbPH1FLogic
			// 
			this->m_clbPH1FLogic->CheckOnClick = true;
			this->m_clbPH1FLogic->FormattingEnabled = true;
			System::Object* __mcTemp__5[] = new System::Object*[2];
			__mcTemp__5[0] = S"AND";
			__mcTemp__5[1] = S"OR";
			this->m_clbPH1FLogic->Items->AddRange(__mcTemp__5);
			this->m_clbPH1FLogic->Location = System::Drawing::Point(369, 3);
			this->m_clbPH1FLogic->Name = S"m_clbPH1FLogic";
			this->m_clbPH1FLogic->Size = System::Drawing::Size(80, 38);
			this->m_clbPH1FLogic->TabIndex = 2;
			// 
			// m_btDelFOB
			// 
			this->m_btDelFOB->Location = System::Drawing::Point(85, 3);
			this->m_btDelFOB->Name = S"m_btDelFOB";
			this->m_btDelFOB->Size = System::Drawing::Size(75, 23);
			this->m_btDelFOB->TabIndex = 1;
			this->m_btDelFOB->Text = S"刪除";
			this->m_btDelFOB->UseVisualStyleBackColor = true;
			// 
			// m_btNewFOB
			// 
			this->m_btNewFOB->Location = System::Drawing::Point(4, 3);
			this->m_btNewFOB->Name = S"m_btNewFOB";
			this->m_btNewFOB->Size = System::Drawing::Size(75, 23);
			this->m_btNewFOB->TabIndex = 0;
			this->m_btNewFOB->Text = S"新增";
			this->m_btNewFOB->UseVisualStyleBackColor = true;
			// 
			// m_pnlEditPH
			// 
			this->m_pnlEditPH->AutoSize = true;
			this->m_pnlEditPH->Controls->Add(this->m_btPEDelPhase);
			this->m_pnlEditPH->Controls->Add(this->m_btPENewPhase);
			this->m_pnlEditPH->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_pnlEditPH->Location = System::Drawing::Point(3, 18);
			this->m_pnlEditPH->Name = S"m_pnlEditPH";
			this->m_pnlEditPH->Size = System::Drawing::Size(710, 29);
			this->m_pnlEditPH->TabIndex = 2;
			// 
			// m_btPEDelPhase
			// 
			this->m_btPEDelPhase->Location = System::Drawing::Point(84, 3);
			this->m_btPEDelPhase->Name = S"m_btPEDelPhase";
			this->m_btPEDelPhase->Size = System::Drawing::Size(75, 23);
			this->m_btPEDelPhase->TabIndex = 1;
			this->m_btPEDelPhase->Text = S"刪除";
			this->m_btPEDelPhase->UseVisualStyleBackColor = true;
			this->m_btPEDelPhase->Click += new System::EventHandler(this, &PEForm::btPERemovePhase_Click);
			// 
			// m_btPENewPhase
			// 
			this->m_btPENewPhase->Location = System::Drawing::Point(3, 3);
			this->m_btPENewPhase->Name = S"m_btPENewPhase";
			this->m_btPENewPhase->Size = System::Drawing::Size(75, 23);
			this->m_btPENewPhase->TabIndex = 0;
			this->m_btPENewPhase->Text = S"新增";
			this->m_btPENewPhase->UseVisualStyleBackColor = true;
			this->m_btPENewPhase->Click += new System::EventHandler(this, &PEForm::btPENewPhase_Click);
			// 
			// m_tbpPEVar
			// 
			this->m_tbpPEVar->BackColor = System::Drawing::Color::Transparent;
			this->m_tbpPEVar->Controls->Add(this->m_gbxPEVarList);
			this->m_tbpPEVar->Controls->Add(this->m_gbxPEEditVar);
			this->m_tbpPEVar->ForeColor = System::Drawing::SystemColors::ControlText;
			this->m_tbpPEVar->Location = System::Drawing::Point(4, 22);
			this->m_tbpPEVar->Name = S"m_tbpPEVar";
			this->m_tbpPEVar->Padding = System::Windows::Forms::Padding(3);
			this->m_tbpPEVar->Size = System::Drawing::Size(976, 776);
			this->m_tbpPEVar->TabIndex = 1;
			this->m_tbpPEVar->Text = S"變數管理";
			// 
			// m_gbxPEVarList
			// 
			this->m_gbxPEVarList->Controls->Add(this->m_lvPEVar);
			this->m_gbxPEVarList->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_gbxPEVarList->Location = System::Drawing::Point(3, 113);
			this->m_gbxPEVarList->Name = S"m_gbxPEVarList";
			this->m_gbxPEVarList->Size = System::Drawing::Size(970, 660);
			this->m_gbxPEVarList->TabIndex = 8;
			this->m_gbxPEVarList->TabStop = false;
			this->m_gbxPEVarList->Text = S"變數列表";
			// 
			// m_lvPEVar
			// 
			System::Windows::Forms::ColumnHeader* __mcTemp__6[] = new System::Windows::Forms::ColumnHeader*[3];
			__mcTemp__6[0] = this->m_lvColPEVarGUID;
			__mcTemp__6[1] = this->m_lvColPEVarName;
			__mcTemp__6[2] = this->m_lvColPEVarNote;
			this->m_lvPEVar->Columns->AddRange(__mcTemp__6);
			this->m_lvPEVar->Dock = System::Windows::Forms::DockStyle::Fill;
			this->m_lvPEVar->Location = System::Drawing::Point(3, 18);
			this->m_lvPEVar->Name = S"m_lvPEVar";
			this->m_lvPEVar->Size = System::Drawing::Size(964, 639);
			this->m_lvPEVar->TabIndex = 4;
			this->m_lvPEVar->UseCompatibleStateImageBehavior = false;
			this->m_lvPEVar->View = System::Windows::Forms::View::Details;
			this->m_lvPEVar->SelectedIndexChanged += new System::EventHandler(this, &PEForm::lvPEVar_SelectedIndexChanged);
			// 
			// m_lvColPEVarGUID
			// 
			this->m_lvColPEVarGUID->Text = S"GUID";
			// 
			// m_lvColPEVarName
			// 
			this->m_lvColPEVarName->Text = S"變數名稱";
			this->m_lvColPEVarName->Width = 135;
			// 
			// m_lvColPEVarNote
			// 
			this->m_lvColPEVarNote->Text = S"註解";
			this->m_lvColPEVarNote->Width = 295;
			// 
			// m_gbxPEEditVar
			// 
			this->m_gbxPEEditVar->Controls->Add(this->m_tbxPEVarNote);
			this->m_gbxPEEditVar->Controls->Add(this->m_lblPEVarNote);
			this->m_gbxPEEditVar->Controls->Add(this->m_btPENewVar);
			this->m_gbxPEEditVar->Controls->Add(this->m_btPEUpdateVar);
			this->m_gbxPEEditVar->Controls->Add(this->m_lblPEVarName);
			this->m_gbxPEEditVar->Controls->Add(this->m_btPEDelVar);
			this->m_gbxPEEditVar->Controls->Add(this->m_tbxPEVarName);
			this->m_gbxPEEditVar->Dock = System::Windows::Forms::DockStyle::Top;
			this->m_gbxPEEditVar->Location = System::Drawing::Point(3, 3);
			this->m_gbxPEEditVar->Name = S"m_gbxPEEditVar";
			this->m_gbxPEEditVar->Size = System::Drawing::Size(970, 110);
			this->m_gbxPEEditVar->TabIndex = 7;
			this->m_gbxPEEditVar->TabStop = false;
			this->m_gbxPEEditVar->Text = S"編輯";
			// 
			// m_tbxPEVarNote
			// 
			this->m_tbxPEVarNote->Location = System::Drawing::Point(150, 52);
			this->m_tbxPEVarNote->Multiline = true;
			this->m_tbxPEVarNote->Name = S"m_tbxPEVarNote";
			this->m_tbxPEVarNote->Size = System::Drawing::Size(200, 50);
			this->m_tbxPEVarNote->TabIndex = 7;
			// 
			// m_lblPEVarNote
			// 
			this->m_lblPEVarNote->Location = System::Drawing::Point(104, 50);
			this->m_lblPEVarNote->Name = S"m_lblPEVarNote";
			this->m_lblPEVarNote->Size = System::Drawing::Size(40, 23);
			this->m_lblPEVarNote->TabIndex = 6;
			this->m_lblPEVarNote->Text = S"註解";
			this->m_lblPEVarNote->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_btPENewVar
			// 
			this->m_btPENewVar->Location = System::Drawing::Point(6, 21);
			this->m_btPENewVar->Name = S"m_btPENewVar";
			this->m_btPENewVar->Size = System::Drawing::Size(75, 23);
			this->m_btPENewVar->TabIndex = 0;
			this->m_btPENewVar->Text = S"新增";
			this->m_btPENewVar->UseVisualStyleBackColor = true;
			this->m_btPENewVar->Click += new System::EventHandler(this, &PEForm::btNewPEVar_Click);
			// 
			// m_btPEUpdateVar
			// 
			this->m_btPEUpdateVar->Location = System::Drawing::Point(6, 50);
			this->m_btPEUpdateVar->Name = S"m_btPEUpdateVar";
			this->m_btPEUpdateVar->Size = System::Drawing::Size(75, 23);
			this->m_btPEUpdateVar->TabIndex = 1;
			this->m_btPEUpdateVar->Text = S"更新";
			this->m_btPEUpdateVar->UseVisualStyleBackColor = true;
			this->m_btPEUpdateVar->Click += new System::EventHandler(this, &PEForm::btUpatePEVar_Click);
			// 
			// m_lblPEVarName
			// 
			this->m_lblPEVarName->Location = System::Drawing::Point(104, 21);
			this->m_lblPEVarName->Name = S"m_lblPEVarName";
			this->m_lblPEVarName->Size = System::Drawing::Size(40, 23);
			this->m_lblPEVarName->TabIndex = 5;
			this->m_lblPEVarName->Text = S"名稱";
			this->m_lblPEVarName->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
			// 
			// m_btPEDelVar
			// 
			this->m_btPEDelVar->Location = System::Drawing::Point(6, 79);
			this->m_btPEDelVar->Name = S"m_btPEDelVar";
			this->m_btPEDelVar->Size = System::Drawing::Size(75, 23);
			this->m_btPEDelVar->TabIndex = 2;
			this->m_btPEDelVar->Text = S"刪除";
			this->m_btPEDelVar->UseVisualStyleBackColor = true;
			this->m_btPEDelVar->Click += new System::EventHandler(this, &PEForm::btRemovePEVar_Click);
			// 
			// m_tbxPEVarName
			// 
			this->m_tbxPEVarName->Location = System::Drawing::Point(150, 21);
			this->m_tbxPEVarName->Name = S"m_tbxPEVarName";
			this->m_tbxPEVarName->Size = System::Drawing::Size(200, 22);
			this->m_tbxPEVarName->TabIndex = 4;
			// 
			// PEForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(984, 802);
			this->Controls->Add(this->m_pnlContainer);
			this->Name = S"PEForm";
			this->Text = S"公眾任務";
			this->m_pnlContainer->ResumeLayout(false);
			this->m_tbcMain->ResumeLayout(false);
			this->m_tbpPE->ResumeLayout(false);
			this->m_spcPE1->Panel1->ResumeLayout(false);
			this->m_spcPE1->Panel2->ResumeLayout(false);
			this->m_spcPE1->ResumeLayout(false);
			this->m_gbxPEBasic->ResumeLayout(false);
			this->m_gbxPELuaEvent->ResumeLayout(false);
			this->m_gbxPELuaEvent->PerformLayout();
			this->m_gbxPERegion->ResumeLayout(false);
			this->m_gbxPEReset->ResumeLayout(false);
			this->m_gbxPEReset->PerformLayout();
			this->m_gbxPHs->ResumeLayout(false);
			this->m_gbxPHs->PerformLayout();
			this->m_tbcPHs->ResumeLayout(false);
			this->m_tbpPH1->ResumeLayout(false);
			this->m_spcPH1->Panel1->ResumeLayout(false);
			this->m_spcPH1->Panel2->ResumeLayout(false);
			this->m_spcPH1->ResumeLayout(false);
			this->m_gbxPHBasic->ResumeLayout(false);
			this->m_gbxPHBasic->PerformLayout();
			this->m_gbxPH1ShortNote->ResumeLayout(false);
			this->m_gbxPH1ShortNote->PerformLayout();
			this->m_gbxPH1Note->ResumeLayout(false);
			this->m_gbxPH1Note->PerformLayout();
			this->m_gbxPH1NextPhase->ResumeLayout(false);
			this->m_gbxPH1NextPhase->PerformLayout();
			this->m_gbxPH1Score->ResumeLayout(false);
			this->m_gbxPH1Score->PerformLayout();
			this->m_pnlPHName->ResumeLayout(false);
			this->m_pnlPHName->PerformLayout();
			this->m_spcPH2->Panel1->ResumeLayout(false);
			this->m_spcPH2->Panel2->ResumeLayout(false);
			this->m_spcPH2->ResumeLayout(false);
			this->m_gbxPHSOBs->ResumeLayout(false);
			this->m_gbxPHSOBs->PerformLayout();
			this->m_tbcPHSOBs->ResumeLayout(false);
			this->m_tbpSOB1->ResumeLayout(false);
			this->m_gbxSOB1ShortNote->ResumeLayout(false);
			this->m_gbxSOB1ShortNote->PerformLayout();
			this->m_gbxSOB1Note->ResumeLayout(false);
			this->m_gbxSOB1Note->PerformLayout();
			this->m_gbxSOB1Setting->ResumeLayout(false);
			this->m_gbxSOB1Setting->PerformLayout();
			this->m_pnlEditSOB->ResumeLayout(false);
			this->m_gbxPHFOBs->ResumeLayout(false);
			this->m_gbxPHFOBs->PerformLayout();
			this->m_pnlEditFOB->ResumeLayout(false);
			this->m_pnlEditPH->ResumeLayout(false);
			this->m_tbpPEVar->ResumeLayout(false);
			this->m_gbxPEVarList->ResumeLayout(false);
			this->m_gbxPEEditVar->ResumeLayout(false);
			this->m_gbxPEEditVar->PerformLayout();
			this->ResumeLayout(false);

		}
	protected:
		System::Void clbPEFlags_SelectedValueChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEResetTimeGap_TextChanged(System::Object* sender, System::EventArgs * e);
		System::Void cbxPEZID_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void cbxPESZID_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnBegin_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnSucc_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnFail_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnPlayerEnter_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnPlayerLeave_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPHOnBegin_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPHOnSucc_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPHOnFail_TextChanged(System::Object* sender, System::EventArgs* e);		
		System::Void tbxOBOnArchieve_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void tbxPEOnBalance_TextChanged(System::Object* sender, System::EventArgs* e);
		System::Void btNewPEVar_Click(System::Object* sender, System::EventArgs* e);
		System::Void btUpatePEVar_Click(System::Object* sender, System::EventArgs* e);
		System::Void btRemovePEVar_Click(System::Object* sender, System::EventArgs* e);
		System::Void lvPEVar_SelectedIndexChanged(System::Object* sender, System::EventArgs* e);
		System::Void btPENewPhase_Click(System::Object* sender, System::EventArgs* e);
		System::Void btPERemovePhase_Click(System::Object* sender, System::EventArgs* e);
		System::Void Treelist_AfterExpand(System::Object* sender, DevExpress::XtraTreeList::NodeEventArgs*  e);

	protected:
		Generic::Dictionary<int, PEPhase*>*					m_PhaseIndex;
		Generic::List<PEPhase*>*							m_Phases;
		Generic::Dictionary<int, PEVar*>*					m_VarIndex;
		Generic::List<PEVar*>*								m_Vars;
		Generic::Dictionary<int, PEZoneInfo*>*				m_ZoneInfo;
		Generic::Dictionary<int, PESubZoneInfo*>*			m_SubZoneInfo;
		Generic::List<System::Windows::Forms::ComboBox*>*	m_cbxSZs;
		int													m_TabPageIndex;
		
    protected:
		//######################################################################################################
		//Base Form Override
		virtual void    UpDateList();
		virtual void    UpDate_DataToDisplay();
		virtual void    UnLockAndSave();
		virtual void    NewObj();
        virtual ReaderClass< DB_GameObjDbStruct >* ObjReader();
		virtual void    OnTimeProc();
        virtual void    OnActive();
        virtual void    OnSelectObj( bool LockOk );
        virtual void    OnOutputObjSetting( DB_GameObjDbStruct* TempObj );
        virtual int     ObjSize();
		virtual void    OnValueChange();
		virtual void	AfterUpdateObj( DB_GameObjDbStruct* TempObj ){};
		//######################################################################################################
	protected:
		void	 LoadPhases();
		void	 LoadVars();
		void	 LoadZoneInfo();
		void	 LoadSubZoneInfo();

	protected:
		PEPhase* NewPhase();
		PEPhase* LoadPhase(int iGUID);
		void	 RemovePhase(int iGUID);
		PEVar*	 NewVar();
		PEVar*	 LoadVar(int iGUID);
		void	 RemoveVar(int iGUID);

	public:
		bool PE_CheckModifyAndCheckOut();
		void SaveTabPageIndex();

	public:
		__property SqlCommand* get_SQL() {return sqlCommand_Base;}
		__property Generic::List<PEPhase*>* get_Phases(){return m_Phases;}
		__property Generic::List<PEVar*>* get_Vars(){return m_Vars;}
		__property bool get_UpdateDataToDisplay(){return _Update_DataToDisplay;}
		__property void set_UpdateDataToDisplay(bool value){_Update_DataToDisplay = value;}
};
}
