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

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

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

		ShowDataForm(void)
		{
			InitializeComponent();
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);

		}
    private: System::Windows::Forms::Panel *  panel1;




	private: System::Windows::Forms::Button*  button1;
	private: System::Windows::Forms::ListView*  LV_DataList;

	private: System::Windows::Forms::ColumnHeader*  columnHeader1;
	private: System::Windows::Forms::ColumnHeader*  columnHeader2;

	private: System::Windows::Forms::ColumnHeader*  columnHeader4;
	private: System::Windows::Forms::ColumnHeader*  columnHeader5;
	private: System::Windows::Forms::ColumnHeader*  columnHeader3;




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

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->panel1 = (new System::Windows::Forms::Panel());
			this->LV_DataList = (new System::Windows::Forms::ListView());
			this->columnHeader1 = (new System::Windows::Forms::ColumnHeader());
			this->columnHeader2 = (new System::Windows::Forms::ColumnHeader());
			this->columnHeader4 = (new System::Windows::Forms::ColumnHeader());
			this->columnHeader5 = (new System::Windows::Forms::ColumnHeader());
			this->button1 = (new System::Windows::Forms::Button());
			this->columnHeader3 = (new System::Windows::Forms::ColumnHeader());
			this->panel1->SuspendLayout();
			this->SuspendLayout();
			// 
			// panel1
			// 
			this->panel1->Controls->Add(this->LV_DataList);
			this->panel1->Controls->Add(this->button1);
			this->panel1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->panel1->Location = System::Drawing::Point(0, 0);
			this->panel1->Name = S"panel1";
			this->panel1->Size = System::Drawing::Size(774, 184);
			this->panel1->TabIndex = 0;
			// 
			// LV_DataList
			// 
			System::Windows::Forms::ColumnHeader* __mcTemp__1[] = new System::Windows::Forms::ColumnHeader*[5];
			__mcTemp__1[0] = this->columnHeader1;
			__mcTemp__1[1] = this->columnHeader3;
			__mcTemp__1[2] = this->columnHeader2;
			__mcTemp__1[3] = this->columnHeader4;
			__mcTemp__1[4] = this->columnHeader5;
			this->LV_DataList->Columns->AddRange(__mcTemp__1);
			this->LV_DataList->Dock = System::Windows::Forms::DockStyle::Top;
			this->LV_DataList->FullRowSelect = true;
			this->LV_DataList->GridLines = true;
			this->LV_DataList->HideSelection = false;
			this->LV_DataList->LabelWrap = false;
			this->LV_DataList->Location = System::Drawing::Point(0, 0);
			this->LV_DataList->MultiSelect = false;
			this->LV_DataList->Name = S"LV_DataList";
			this->LV_DataList->Size = System::Drawing::Size(774, 145);
			this->LV_DataList->TabIndex = 15;
			this->LV_DataList->UseCompatibleStateImageBehavior = false;
			this->LV_DataList->View = System::Windows::Forms::View::Details;
			// 
			// columnHeader1
			// 
			this->columnHeader1->Text = S"時間";
			this->columnHeader1->Width = 124;
			// 
			// columnHeader2
			// 
			this->columnHeader2->Text = S"帳號";
			// 
			// columnHeader4
			// 
			this->columnHeader4->Text = S"原值";
			this->columnHeader4->Width = 193;
			// 
			// columnHeader5
			// 
			this->columnHeader5->Text = S"新值";
			this->columnHeader5->Width = 232;
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(696, 151);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(75, 24);
			this->button1->TabIndex = 3;
			this->button1->Text = S"確定";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += new System::EventHandler(this, &ShowDataForm::Click_OK_Event);
			// 
			// columnHeader3
			// 
			this->columnHeader3->Text = S"欄位";
			this->columnHeader3->Width = 75;
			// 
			// ShowDataForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(774, 184);
			this->Controls->Add(this->panel1);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
			this->Name = S"ShowDataForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = S"修改歷程";
			this->TopMost = true;
			this->Load += new System::EventHandler(this, &ShowDataForm::ShowDataForm_Load);
			this->panel1->ResumeLayout(false);
			this->ResumeLayout(false);

		}		
	public:
		static ShowDataForm*  g_ShowDataForm;
		static void Init( );

		void	ShowForm( );
		void	Clear( );

		
		System::Void ShowDataForm_Load(System::Object*  sender, System::EventArgs*  e);
		System::Void Click_OK_Event(System::Object*  sender, System::EventArgs*  e);
		void	SetHistory( System::String* StrList[] );

};
}