#pragma once
#pragma		warning (disable:4146)
#include <Windows.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 System::Text;
using namespace System::Data::SqlClient;

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


		BatchUpdateForm(void)
		{
			InitializeComponent();
//			sqlConnection->ConnectionString = Global::GetDBSource();
  //          sqlConnection->Open();    
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
    private: bool   _IsAccept;
    private: System::Windows::Forms::Panel *  panel1;



	private: System::Windows::Forms::ListView*  LV_PreView;
	protected: 

	private: System::Windows::Forms::TextBox*  InsertStr;
	private: System::Windows::Forms::Button*  button2;
	private: System::Windows::Forms::Button*  button1;
	private: System::Windows::Forms::Button*  button3;

	protected: 

	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->button3 = (new System::Windows::Forms::Button());
			this->button2 = (new System::Windows::Forms::Button());
			this->button1 = (new System::Windows::Forms::Button());
			this->InsertStr = (new System::Windows::Forms::TextBox());
			this->LV_PreView = (new System::Windows::Forms::ListView());
			this->panel1->SuspendLayout();
			this->SuspendLayout();
			// 
			// panel1
			// 
			this->panel1->Controls->Add(this->button3);
			this->panel1->Controls->Add(this->button2);
			this->panel1->Controls->Add(this->button1);
			this->panel1->Controls->Add(this->InsertStr);
			this->panel1->Controls->Add(this->LV_PreView);
			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(914, 437);
			this->panel1->TabIndex = 0;
			// 
			// button3
			// 
			this->button3->Location = System::Drawing::Point(819, 402);
			this->button3->Name = S"button3";
			this->button3->Size = System::Drawing::Size(71, 27);
			this->button3->TabIndex = 5;
			this->button3->Text = S"確定";
			this->button3->UseVisualStyleBackColor = true;
			this->button3->Click += new System::EventHandler(this, &BatchUpdateForm::Accept_Click);
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(724, 402);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(78, 27);
			this->button2->TabIndex = 4;
			this->button2->Text = S"取消";
			this->button2->UseVisualStyleBackColor = true;
			this->button2->Click += new System::EventHandler(this, &BatchUpdateForm::Cancel_Click);
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(834, 12);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(68, 54);
			this->button1->TabIndex = 3;
			this->button1->Text = S"檢視";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += new System::EventHandler(this, &BatchUpdateForm::PreView_Click);
			// 
			// InsertStr
			// 
			this->InsertStr->HideSelection = false;
			this->InsertStr->Location = System::Drawing::Point(12, 3);
			this->InsertStr->MaxLength = 327670;
			this->InsertStr->Multiline = true;
			this->InsertStr->Name = S"InsertStr";
			this->InsertStr->ScrollBars = System::Windows::Forms::ScrollBars::Both;
			this->InsertStr->Size = System::Drawing::Size(816, 80);
			this->InsertStr->TabIndex = 2;
			// 
			// LV_PreView
			// 
			this->LV_PreView->FullRowSelect = true;
			this->LV_PreView->GridLines = true;
			this->LV_PreView->Location = System::Drawing::Point(12, 86);
			this->LV_PreView->Name = S"LV_PreView";
			this->LV_PreView->Size = System::Drawing::Size(890, 310);
			this->LV_PreView->TabIndex = 0;
			this->LV_PreView->UseCompatibleStateImageBehavior = false;
			this->LV_PreView->View = System::Windows::Forms::View::Details;
			// 
			// BatchUpdateForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(914, 437);
			this->Controls->Add(this->panel1);
			this->Name = S"BatchUpdateForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = S"登入";
			this->TopMost = true;
			this->panel1->ResumeLayout(false);
			this->panel1->PerformLayout();
			this->ResumeLayout(false);

		}		
	public:
		static BatchUpdateForm*  g_BatchUpdateForm;
		static void Init( );
		static bool IsAccept() 
		{
			return g_BatchUpdateForm->_IsAccept;
		}

		static void	ShowForm( );
		static ListView*  PreView() 
		{ 
			return g_BatchUpdateForm->LV_PreView;
		} 

	public:
private: System::Void Cancel_Click(System::Object*  sender, System::EventArgs*  e) 
		 {
			 Close();
		 }

private: System::Void Accept_Click(System::Object*  sender, System::EventArgs*  e) 
		 {
			 _IsAccept = true;
			 Close();
		 }
private: System::Void PreView_Click(System::Object*  sender, System::EventArgs*  e);

};
}