#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 CreatePasswordForm
	///
	/// 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 CreatePasswordForm : public System::Windows::Forms::Form
	{
	public: 

		CreatePasswordForm(void)
		{
			InitializeComponent();
			CB_EncodeType->SelectedIndex = 0;
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
    private: bool   _IsAccept;
	private: System::Windows::Forms::Label*  label1;
	private: System::Windows::Forms::ComboBox*  CB_EncodeType;
	private: System::Windows::Forms::Label*  label2;
	private: System::Windows::Forms::TextBox*  TB_Password;
	private: System::Windows::Forms::TextBox*  TB_Key;


	private: System::Windows::Forms::Label*  label3;
	private: System::Windows::Forms::TextBox*  TB_CodeResult;

	private: System::Windows::Forms::Label*  label4;
	private: System::Windows::Forms::Button*  button1;












	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->label1 = (new System::Windows::Forms::Label());
			this->CB_EncodeType = (new System::Windows::Forms::ComboBox());
			this->label2 = (new System::Windows::Forms::Label());
			this->TB_Password = (new System::Windows::Forms::TextBox());
			this->TB_Key = (new System::Windows::Forms::TextBox());
			this->label3 = (new System::Windows::Forms::Label());
			this->TB_CodeResult = (new System::Windows::Forms::TextBox());
			this->label4 = (new System::Windows::Forms::Label());
			this->button1 = (new System::Windows::Forms::Button());
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(12, 9);
			this->label1->Name = S"label1";
			this->label1->Size = System::Drawing::Size(53, 12);
			this->label1->TabIndex = 0;
			this->label1->Text = S"編碼方式";
			// 
			// CB_EncodeType
			// 
			this->CB_EncodeType->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->CB_EncodeType->FormattingEnabled = true;
			System::Object* __mcTemp__1[] = new System::Object*[2];
			__mcTemp__1[0] = S"一般";
			__mcTemp__1[1] = S"MD5";
			this->CB_EncodeType->Items->AddRange(__mcTemp__1);
			this->CB_EncodeType->Location = System::Drawing::Point(69, 6);
			this->CB_EncodeType->Name = S"CB_EncodeType";
			this->CB_EncodeType->Size = System::Drawing::Size(69, 20);
			this->CB_EncodeType->TabIndex = 1;
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(148, 9);
			this->label2->Name = S"label2";
			this->label2->Size = System::Drawing::Size(29, 12);
			this->label2->TabIndex = 2;
			this->label2->Text = S"密碼";
			// 
			// TB_Password
			// 
			this->TB_Password->Location = System::Drawing::Point(183, 4);
			this->TB_Password->Name = S"TB_Password";
			this->TB_Password->PasswordChar = '*';
			this->TB_Password->Size = System::Drawing::Size(100, 22);
			this->TB_Password->TabIndex = 3;
			// 
			// TB_Key
			// 
			this->TB_Key->Location = System::Drawing::Point(331, 4);
			this->TB_Key->Name = S"TB_Key";
			this->TB_Key->Size = System::Drawing::Size(100, 22);
			this->TB_Key->TabIndex = 5;
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(296, 9);
			this->label3->Name = S"label3";
			this->label3->Size = System::Drawing::Size(29, 12);
			this->label3->TabIndex = 4;
			this->label3->Text = S"鑰匙";
			// 
			// TB_CodeResult
			// 
			this->TB_CodeResult->Location = System::Drawing::Point(51, 32);
			this->TB_CodeResult->Name = S"TB_CodeResult";
			this->TB_CodeResult->ReadOnly = true;
			this->TB_CodeResult->Size = System::Drawing::Size(278, 22);
			this->TB_CodeResult->TabIndex = 7;
			// 
			// label4
			// 
			this->label4->AutoSize = true;
			this->label4->Location = System::Drawing::Point(12, 37);
			this->label4->Name = S"label4";
			this->label4->Size = System::Drawing::Size(29, 12);
			this->label4->TabIndex = 6;
			this->label4->Text = S"結果";
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(356, 32);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(75, 23);
			this->button1->TabIndex = 8;
			this->button1->Text = S"產生";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += new System::EventHandler(this, &CreatePasswordForm::CreateCode_Click);
			// 
			// CreatePasswordForm
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 15);
			this->ClientSize = System::Drawing::Size(443, 60);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->TB_CodeResult);
			this->Controls->Add(this->label4);
			this->Controls->Add(this->TB_Key);
			this->Controls->Add(this->label3);
			this->Controls->Add(this->TB_Password);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->CB_EncodeType);
			this->Controls->Add(this->label1);
			this->Name = S"CreatePasswordForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = S"登入";
			this->TopMost = true;
			this->ResumeLayout(false);
			this->PerformLayout();

		}		
private: System::Void CreateCode_Click(System::Object*  sender, System::EventArgs*  e);
};
}