#pragma once

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


namespace ObjDataEdit
{
	/// <summary> 
	/// Summary for SqlCmdForm
	///
	/// 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 SqlCmdForm : public System::Windows::Forms::Form
	{
	public: 
		SqlCmdForm(void)
		{
			InitializeComponent();
            _IsAccept = false;
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
    private: System::Windows::Forms::Button *  button2;
    private: System::Windows::Forms::Button *  button1;
    private: System::Windows::Forms::ComboBox *  comboBox1;

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

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
            this->button2 = new System::Windows::Forms::Button();
            this->button1 = new System::Windows::Forms::Button();
            this->comboBox1 = new System::Windows::Forms::ComboBox();
            this->SuspendLayout();
            // 
            // button2
            // 
            this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
            this->button2->Location = System::Drawing::Point(328, 40);
            this->button2->Name = S"button2";
            this->button2->Size = System::Drawing::Size(75, 24);
            this->button2->TabIndex = 7;
            this->button2->Text = S"¨ú®ø";
            this->button2->Click += new System::EventHandler(this, &ObjDataEdit::SqlCmdForm::Cancel_Click);
            // 
            // button1
            // 
            this->button1->Location = System::Drawing::Point(240, 40);
            this->button1->Name = S"button1";
            this->button1->Size = System::Drawing::Size(75, 24);
            this->button1->TabIndex = 6;
            this->button1->Text = S"½T©w";
            this->button1->Click += new System::EventHandler(this, &ObjDataEdit::SqlCmdForm::Ok_Click);
            // 
            // comboBox1
            // 
            System::Object* __mcTemp__1[] = new System::Object*[4];
            __mcTemp__1[0] = S"WHERE  GUID = 100001";
            __mcTemp__1[1] = S"WHERE  ( Name LIKE \'%©Ç\') ORDER  BY  LastModifyAccount  , Name DESC";
            __mcTemp__1[2] = S"WHERE LastModifyAccount = \'Test\'";
            __mcTemp__1[3] = S"WHERE LockAccount = \'Test\'";
            this->comboBox1->Items->AddRange(__mcTemp__1);
            this->comboBox1->Location = System::Drawing::Point(8, 8);
            this->comboBox1->Name = S"comboBox1";
            this->comboBox1->Size = System::Drawing::Size(648, 20);
            this->comboBox1->TabIndex = 8;
            // 
            // SqlCmdForm
            // 
            this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
            this->ClientSize = System::Drawing::Size(656, 70);
            this->Controls->Add(this->comboBox1);
            this->Controls->Add(this->button2);
            this->Controls->Add(this->button1);
            this->Name = S"SqlCmdForm";
            this->Text = S"SqlCmdForm";
            this->ResumeLayout(false);

        }		


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

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


    public:
        String* SqlCmd()  { return comboBox1->Text;};
        bool    IsAccept(){ return _IsAccept; }

    };
}