//Programme de démonstration du module TC/USB-48IO Visual C++ 2010 Express
// V1.0 : 30/14/2014: 3CC-DB : Release

#pragma once

#include "TCUSB48IO.h"

namespace DemoTCUSB48IO {

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

	/// <summary>
	/// Description résumée de Form1
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: ajoutez ici le code du constructeur
			//
		}

	protected:
		/// <summary>
		/// Nettoyage des ressources utilisées.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Button^  Btn_S16;
	protected: 
	private: System::Windows::Forms::Label^  label26;
	private: System::Windows::Forms::Button^  Btn_S15;
	private: System::Windows::Forms::Button^  Btn_E1;
	private: System::Windows::Forms::Button^  Btn_S14;
	private: System::Windows::Forms::TextBox^  Txt_E32;
	private: System::Windows::Forms::Button^  Btn_S13;
	private: System::Windows::Forms::Button^  Btn_E17;
	private: System::Windows::Forms::Button^  Btn_S12;
	private: System::Windows::Forms::Label^  label27;
	private: System::Windows::Forms::Button^  Btn_S11;
	private: System::Windows::Forms::Button^  Btn_E2;
	private: System::Windows::Forms::Button^  Btn_S10;
	private: System::Windows::Forms::TextBox^  Txt_E31;
	private: System::Windows::Forms::Button^  Btn_S9;
	private: System::Windows::Forms::Button^  Btn_E3;
	private: System::Windows::Forms::Button^  Btn_S8;
	private: System::Windows::Forms::Label^  label28;
	private: System::Windows::Forms::Button^  Btn_S7;
	private: System::Windows::Forms::Button^  Btn_E4;
	private: System::Windows::Forms::Button^  Btn_S6;
	private: System::Windows::Forms::TextBox^  Txt_E30;
	private: System::Windows::Forms::Button^  Btn_S5;
	private: System::Windows::Forms::Button^  Btn_E5;
	private: System::Windows::Forms::Button^  Btn_S4;
	private: System::Windows::Forms::Label^  label29;
	private: System::Windows::Forms::Button^  Btn_S3;
	private: System::Windows::Forms::Button^  Btn_E6;
	private: System::Windows::Forms::Button^  Btn_S2;
	private: System::Windows::Forms::TextBox^  Txt_E29;
	private: System::Windows::Forms::Button^  Btn_S1;
	private: System::Windows::Forms::Button^  Btn_E7;
	private: System::Windows::Forms::Label^  label30;
	private: System::Windows::Forms::Button^  Btn_E8;
	private: System::Windows::Forms::TextBox^  Txt_E28;
	private: System::Windows::Forms::Button^  Btn_E9;
	private: System::Windows::Forms::Label^  label31;
	private: System::Windows::Forms::Button^  Btn_E10;
	private: System::Windows::Forms::TextBox^  Txt_E27;
	private: System::Windows::Forms::Button^  Btn_E11;
	private: System::Windows::Forms::Label^  label32;
	private: System::Windows::Forms::Button^  Btn_E12;
	private: System::Windows::Forms::TextBox^  Txt_E26;
	private: System::Windows::Forms::Button^  Btn_E13;
	private: System::Windows::Forms::Label^  label33;
	private: System::Windows::Forms::Button^  Btn_E14;
	private: System::Windows::Forms::TextBox^  Txt_E25;
	private: System::Windows::Forms::Button^  Btn_E32;
	private: System::Windows::Forms::Label^  label18;
	private: System::Windows::Forms::Button^  Btn_E15;
	private: System::Windows::Forms::TextBox^  Txt_E24;
	private: System::Windows::Forms::Button^  Btn_E31;
	private: System::Windows::Forms::Label^  label19;
	private: System::Windows::Forms::Button^  Btn_E16;
	private: System::Windows::Forms::TextBox^  Txt_E23;
	private: System::Windows::Forms::Button^  Btn_E30;
	private: System::Windows::Forms::Label^  label20;
	private: System::Windows::Forms::Button^  Btn_E18;
	private: System::Windows::Forms::TextBox^  Txt_E22;
	private: System::Windows::Forms::Button^  Btn_E29;
	private: System::Windows::Forms::Label^  label21;
	private: System::Windows::Forms::Button^  Btn_E19;
	private: System::Windows::Forms::TextBox^  Txt_E21;
	private: System::Windows::Forms::Button^  Btn_E28;
	private: System::Windows::Forms::Label^  label22;
	private: System::Windows::Forms::Button^  Btn_E20;
	private: System::Windows::Forms::TextBox^  Txt_E20;
	private: System::Windows::Forms::Button^  Btn_E27;
	private: System::Windows::Forms::Label^  label23;
	private: System::Windows::Forms::Button^  Btn_E21;
	private: System::Windows::Forms::TextBox^  Txt_E19;
	private: System::Windows::Forms::Button^  Btn_E26;
	private: System::Windows::Forms::Label^  label24;
	private: System::Windows::Forms::Button^  Btn_E22;
	private: System::Windows::Forms::TextBox^  Txt_E18;
	private: System::Windows::Forms::Button^  Btn_E25;
	private: System::Windows::Forms::Label^  label25;
	private: System::Windows::Forms::Button^  Btn_E23;
	private: System::Windows::Forms::TextBox^  Txt_E17;
	private: System::Windows::Forms::Button^  Btn_E24;
	private: System::Windows::Forms::Label^  label10;
	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::TextBox^  Txt_E16;
	private: System::Windows::Forms::TextBox^  Txt_E1;
	private: System::Windows::Forms::Label^  label11;
	private: System::Windows::Forms::TextBox^  Txt_E2;
	private: System::Windows::Forms::TextBox^  Txt_E15;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::Label^  label12;
	private: System::Windows::Forms::TextBox^  Txt_E3;
	private: System::Windows::Forms::TextBox^  Txt_E14;
	private: System::Windows::Forms::Label^  label4;
	private: System::Windows::Forms::Label^  label13;
	private: System::Windows::Forms::TextBox^  Txt_E4;
	private: System::Windows::Forms::TextBox^  Txt_E13;
	private: System::Windows::Forms::Label^  label5;
	private: System::Windows::Forms::Label^  label14;
	private: System::Windows::Forms::TextBox^  Txt_E5;
	private: System::Windows::Forms::TextBox^  Txt_E12;
	private: System::Windows::Forms::Label^  label6;
	private: System::Windows::Forms::Label^  label15;
	private: System::Windows::Forms::TextBox^  Txt_E6;
	private: System::Windows::Forms::TextBox^  Txt_E11;
	private: System::Windows::Forms::Label^  label7;
	private: System::Windows::Forms::Label^  label16;
	private: System::Windows::Forms::TextBox^  Txt_E7;
	private: System::Windows::Forms::TextBox^  Txt_E10;
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::Label^  label8;
	private: System::Windows::Forms::Label^  label17;
	private: System::Windows::Forms::TextBox^  Txt_E8;
	private: System::Windows::Forms::TextBox^  Txt_E9;
	private: System::Windows::Forms::Label^  label9;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Timer^  timer1;
	private: System::Windows::Forms::TextBox^  Txt_serie;
private: System::Windows::Forms::Button^  buttonOpen;
	private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// Variable nécessaire au concepteur.
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
		/// le contenu de cette méthode avec l'éditeur de code.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			this->Btn_S16 = (gcnew System::Windows::Forms::Button());
			this->label26 = (gcnew System::Windows::Forms::Label());
			this->Btn_S15 = (gcnew System::Windows::Forms::Button());
			this->Btn_E1 = (gcnew System::Windows::Forms::Button());
			this->Btn_S14 = (gcnew System::Windows::Forms::Button());
			this->Txt_E32 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_S13 = (gcnew System::Windows::Forms::Button());
			this->Btn_E17 = (gcnew System::Windows::Forms::Button());
			this->Btn_S12 = (gcnew System::Windows::Forms::Button());
			this->label27 = (gcnew System::Windows::Forms::Label());
			this->Btn_S11 = (gcnew System::Windows::Forms::Button());
			this->Btn_E2 = (gcnew System::Windows::Forms::Button());
			this->Btn_S10 = (gcnew System::Windows::Forms::Button());
			this->Txt_E31 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_S9 = (gcnew System::Windows::Forms::Button());
			this->Btn_E3 = (gcnew System::Windows::Forms::Button());
			this->Btn_S8 = (gcnew System::Windows::Forms::Button());
			this->label28 = (gcnew System::Windows::Forms::Label());
			this->Btn_S7 = (gcnew System::Windows::Forms::Button());
			this->Btn_E4 = (gcnew System::Windows::Forms::Button());
			this->Btn_S6 = (gcnew System::Windows::Forms::Button());
			this->Txt_E30 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_S5 = (gcnew System::Windows::Forms::Button());
			this->Btn_E5 = (gcnew System::Windows::Forms::Button());
			this->Btn_S4 = (gcnew System::Windows::Forms::Button());
			this->label29 = (gcnew System::Windows::Forms::Label());
			this->Btn_S3 = (gcnew System::Windows::Forms::Button());
			this->Btn_E6 = (gcnew System::Windows::Forms::Button());
			this->Btn_S2 = (gcnew System::Windows::Forms::Button());
			this->Txt_E29 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_S1 = (gcnew System::Windows::Forms::Button());
			this->Btn_E7 = (gcnew System::Windows::Forms::Button());
			this->label30 = (gcnew System::Windows::Forms::Label());
			this->Btn_E8 = (gcnew System::Windows::Forms::Button());
			this->Txt_E28 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E9 = (gcnew System::Windows::Forms::Button());
			this->label31 = (gcnew System::Windows::Forms::Label());
			this->Btn_E10 = (gcnew System::Windows::Forms::Button());
			this->Txt_E27 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E11 = (gcnew System::Windows::Forms::Button());
			this->label32 = (gcnew System::Windows::Forms::Label());
			this->Btn_E12 = (gcnew System::Windows::Forms::Button());
			this->Txt_E26 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E13 = (gcnew System::Windows::Forms::Button());
			this->label33 = (gcnew System::Windows::Forms::Label());
			this->Btn_E14 = (gcnew System::Windows::Forms::Button());
			this->Txt_E25 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E32 = (gcnew System::Windows::Forms::Button());
			this->label18 = (gcnew System::Windows::Forms::Label());
			this->Btn_E15 = (gcnew System::Windows::Forms::Button());
			this->Txt_E24 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E31 = (gcnew System::Windows::Forms::Button());
			this->label19 = (gcnew System::Windows::Forms::Label());
			this->Btn_E16 = (gcnew System::Windows::Forms::Button());
			this->Txt_E23 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E30 = (gcnew System::Windows::Forms::Button());
			this->label20 = (gcnew System::Windows::Forms::Label());
			this->Btn_E18 = (gcnew System::Windows::Forms::Button());
			this->Txt_E22 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E29 = (gcnew System::Windows::Forms::Button());
			this->label21 = (gcnew System::Windows::Forms::Label());
			this->Btn_E19 = (gcnew System::Windows::Forms::Button());
			this->Txt_E21 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E28 = (gcnew System::Windows::Forms::Button());
			this->label22 = (gcnew System::Windows::Forms::Label());
			this->Btn_E20 = (gcnew System::Windows::Forms::Button());
			this->Txt_E20 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E27 = (gcnew System::Windows::Forms::Button());
			this->label23 = (gcnew System::Windows::Forms::Label());
			this->Btn_E21 = (gcnew System::Windows::Forms::Button());
			this->Txt_E19 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E26 = (gcnew System::Windows::Forms::Button());
			this->label24 = (gcnew System::Windows::Forms::Label());
			this->Btn_E22 = (gcnew System::Windows::Forms::Button());
			this->Txt_E18 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E25 = (gcnew System::Windows::Forms::Button());
			this->label25 = (gcnew System::Windows::Forms::Label());
			this->Btn_E23 = (gcnew System::Windows::Forms::Button());
			this->Txt_E17 = (gcnew System::Windows::Forms::TextBox());
			this->Btn_E24 = (gcnew System::Windows::Forms::Button());
			this->label10 = (gcnew System::Windows::Forms::Label());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->Txt_E16 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E1 = (gcnew System::Windows::Forms::TextBox());
			this->label11 = (gcnew System::Windows::Forms::Label());
			this->Txt_E2 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E15 = (gcnew System::Windows::Forms::TextBox());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->label12 = (gcnew System::Windows::Forms::Label());
			this->Txt_E3 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E14 = (gcnew System::Windows::Forms::TextBox());
			this->label4 = (gcnew System::Windows::Forms::Label());
			this->label13 = (gcnew System::Windows::Forms::Label());
			this->Txt_E4 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E13 = (gcnew System::Windows::Forms::TextBox());
			this->label5 = (gcnew System::Windows::Forms::Label());
			this->label14 = (gcnew System::Windows::Forms::Label());
			this->Txt_E5 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E12 = (gcnew System::Windows::Forms::TextBox());
			this->label6 = (gcnew System::Windows::Forms::Label());
			this->label15 = (gcnew System::Windows::Forms::Label());
			this->Txt_E6 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E11 = (gcnew System::Windows::Forms::TextBox());
			this->label7 = (gcnew System::Windows::Forms::Label());
			this->label16 = (gcnew System::Windows::Forms::Label());
			this->Txt_E7 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E10 = (gcnew System::Windows::Forms::TextBox());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->label8 = (gcnew System::Windows::Forms::Label());
			this->label17 = (gcnew System::Windows::Forms::Label());
			this->Txt_E8 = (gcnew System::Windows::Forms::TextBox());
			this->Txt_E9 = (gcnew System::Windows::Forms::TextBox());
			this->label9 = (gcnew System::Windows::Forms::Label());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
			this->Txt_serie = (gcnew System::Windows::Forms::TextBox());
			this->buttonOpen = (gcnew System::Windows::Forms::Button());
			this->groupBox1->SuspendLayout();
			this->SuspendLayout();
			// 
			// Btn_S16
			// 
			this->Btn_S16->Location = System::Drawing::Point(485, 319);
			this->Btn_S16->Name = L"Btn_S16";
			this->Btn_S16->Size = System::Drawing::Size(45, 45);
			this->Btn_S16->TabIndex = 66;
			this->Btn_S16->Text = L"S16";
			this->Btn_S16->UseVisualStyleBackColor = true;
			this->Btn_S16->Click += gcnew System::EventHandler(this, &Form1::Btn_S16_Click);
			// 
			// label26
			// 
			this->label26->AutoSize = true;
			this->label26->Location = System::Drawing::Point(477, 210);
			this->label26->Name = L"label26";
			this->label26->Size = System::Drawing::Size(60, 13);
			this->label26->TabIndex = 99;
			this->label26->Text = L"COUNT 32";
			// 
			// Btn_S15
			// 
			this->Btn_S15->Location = System::Drawing::Point(419, 319);
			this->Btn_S15->Name = L"Btn_S15";
			this->Btn_S15->Size = System::Drawing::Size(45, 45);
			this->Btn_S15->TabIndex = 65;
			this->Btn_S15->Text = L"S15";
			this->Btn_S15->UseVisualStyleBackColor = true;
			this->Btn_S15->Click += gcnew System::EventHandler(this, &Form1::Btn_S15_Click);
			// 
			// Btn_E1
			// 
			this->Btn_E1->Location = System::Drawing::Point(5, 20);
			this->Btn_E1->Name = L"Btn_E1";
			this->Btn_E1->Size = System::Drawing::Size(35, 35);
			this->Btn_E1->TabIndex = 5;
			this->Btn_E1->Text = L"E01";
			this->Btn_E1->UseVisualStyleBackColor = true;
			// 
			// Btn_S14
			// 
			this->Btn_S14->Location = System::Drawing::Point(353, 319);
			this->Btn_S14->Name = L"Btn_S14";
			this->Btn_S14->Size = System::Drawing::Size(45, 45);
			this->Btn_S14->TabIndex = 64;
			this->Btn_S14->Text = L"S14";
			this->Btn_S14->UseVisualStyleBackColor = true;
			this->Btn_S14->Click += gcnew System::EventHandler(this, &Form1::Btn_S14_Click);
			// 
			// Txt_E32
			// 
			this->Txt_E32->Location = System::Drawing::Point(480, 226);
			this->Txt_E32->Name = L"Txt_E32";
			this->Txt_E32->Size = System::Drawing::Size(57, 20);
			this->Txt_E32->TabIndex = 98;
			// 
			// Btn_S13
			// 
			this->Btn_S13->Location = System::Drawing::Point(287, 319);
			this->Btn_S13->Name = L"Btn_S13";
			this->Btn_S13->Size = System::Drawing::Size(45, 45);
			this->Btn_S13->TabIndex = 63;
			this->Btn_S13->Text = L"S13";
			this->Btn_S13->UseVisualStyleBackColor = true;
			this->Btn_S13->Click += gcnew System::EventHandler(this, &Form1::Btn_S13_Click);
			// 
			// Btn_E17
			// 
			this->Btn_E17->Location = System::Drawing::Point(5, 55);
			this->Btn_E17->Name = L"Btn_E17";
			this->Btn_E17->Size = System::Drawing::Size(35, 35);
			this->Btn_E17->TabIndex = 21;
			this->Btn_E17->Text = L"E17";
			this->Btn_E17->UseVisualStyleBackColor = true;
			// 
			// Btn_S12
			// 
			this->Btn_S12->Location = System::Drawing::Point(221, 319);
			this->Btn_S12->Name = L"Btn_S12";
			this->Btn_S12->Size = System::Drawing::Size(45, 45);
			this->Btn_S12->TabIndex = 62;
			this->Btn_S12->Text = L"S12";
			this->Btn_S12->UseVisualStyleBackColor = true;
			this->Btn_S12->Click += gcnew System::EventHandler(this, &Form1::Btn_S12_Click);
			// 
			// label27
			// 
			this->label27->AutoSize = true;
			this->label27->Location = System::Drawing::Point(411, 210);
			this->label27->Name = L"label27";
			this->label27->Size = System::Drawing::Size(60, 13);
			this->label27->TabIndex = 97;
			this->label27->Text = L"COUNT 31";
			// 
			// Btn_S11
			// 
			this->Btn_S11->Location = System::Drawing::Point(155, 319);
			this->Btn_S11->Name = L"Btn_S11";
			this->Btn_S11->Size = System::Drawing::Size(45, 45);
			this->Btn_S11->TabIndex = 61;
			this->Btn_S11->Text = L"S11";
			this->Btn_S11->UseVisualStyleBackColor = true;
			this->Btn_S11->Click += gcnew System::EventHandler(this, &Form1::Btn_S11_Click);
			// 
			// Btn_E2
			// 
			this->Btn_E2->Location = System::Drawing::Point(40, 20);
			this->Btn_E2->Name = L"Btn_E2";
			this->Btn_E2->Size = System::Drawing::Size(35, 35);
			this->Btn_E2->TabIndex = 6;
			this->Btn_E2->Text = L"E02";
			this->Btn_E2->UseVisualStyleBackColor = true;
			// 
			// Btn_S10
			// 
			this->Btn_S10->Location = System::Drawing::Point(89, 319);
			this->Btn_S10->Name = L"Btn_S10";
			this->Btn_S10->Size = System::Drawing::Size(45, 45);
			this->Btn_S10->TabIndex = 60;
			this->Btn_S10->Text = L"S10";
			this->Btn_S10->UseVisualStyleBackColor = true;
			this->Btn_S10->Click += gcnew System::EventHandler(this, &Form1::Btn_S10_Click);
			// 
			// Txt_E31
			// 
			this->Txt_E31->Location = System::Drawing::Point(414, 226);
			this->Txt_E31->Name = L"Txt_E31";
			this->Txt_E31->Size = System::Drawing::Size(57, 20);
			this->Txt_E31->TabIndex = 96;
			// 
			// Btn_S9
			// 
			this->Btn_S9->Location = System::Drawing::Point(23, 319);
			this->Btn_S9->Name = L"Btn_S9";
			this->Btn_S9->Size = System::Drawing::Size(45, 45);
			this->Btn_S9->TabIndex = 59;
			this->Btn_S9->Text = L"S09";
			this->Btn_S9->UseVisualStyleBackColor = true;
			this->Btn_S9->Click += gcnew System::EventHandler(this, &Form1::Btn_S9_Click);
			// 
			// Btn_E3
			// 
			this->Btn_E3->Location = System::Drawing::Point(75, 20);
			this->Btn_E3->Name = L"Btn_E3";
			this->Btn_E3->Size = System::Drawing::Size(35, 35);
			this->Btn_E3->TabIndex = 7;
			this->Btn_E3->Text = L"E03";
			this->Btn_E3->UseVisualStyleBackColor = true;
			// 
			// Btn_S8
			// 
			this->Btn_S8->Location = System::Drawing::Point(485, 253);
			this->Btn_S8->Name = L"Btn_S8";
			this->Btn_S8->Size = System::Drawing::Size(45, 45);
			this->Btn_S8->TabIndex = 58;
			this->Btn_S8->Text = L"S08";
			this->Btn_S8->UseVisualStyleBackColor = true;
			this->Btn_S8->Click += gcnew System::EventHandler(this, &Form1::Btn_S8_Click);
			// 
			// label28
			// 
			this->label28->AutoSize = true;
			this->label28->Location = System::Drawing::Point(345, 210);
			this->label28->Name = L"label28";
			this->label28->Size = System::Drawing::Size(60, 13);
			this->label28->TabIndex = 95;
			this->label28->Text = L"COUNT 30";
			// 
			// Btn_S7
			// 
			this->Btn_S7->Location = System::Drawing::Point(419, 253);
			this->Btn_S7->Name = L"Btn_S7";
			this->Btn_S7->Size = System::Drawing::Size(45, 45);
			this->Btn_S7->TabIndex = 57;
			this->Btn_S7->Text = L"S07";
			this->Btn_S7->UseVisualStyleBackColor = true;
			this->Btn_S7->Click += gcnew System::EventHandler(this, &Form1::Btn_S7_Click);
			// 
			// Btn_E4
			// 
			this->Btn_E4->Location = System::Drawing::Point(110, 20);
			this->Btn_E4->Name = L"Btn_E4";
			this->Btn_E4->Size = System::Drawing::Size(35, 35);
			this->Btn_E4->TabIndex = 8;
			this->Btn_E4->Text = L"E04";
			this->Btn_E4->UseVisualStyleBackColor = true;
			// 
			// Btn_S6
			// 
			this->Btn_S6->Location = System::Drawing::Point(353, 253);
			this->Btn_S6->Name = L"Btn_S6";
			this->Btn_S6->Size = System::Drawing::Size(45, 45);
			this->Btn_S6->TabIndex = 56;
			this->Btn_S6->Text = L"S06";
			this->Btn_S6->UseVisualStyleBackColor = true;
			this->Btn_S6->Click += gcnew System::EventHandler(this, &Form1::Btn_S6_Click);
			// 
			// Txt_E30
			// 
			this->Txt_E30->Location = System::Drawing::Point(348, 226);
			this->Txt_E30->Name = L"Txt_E30";
			this->Txt_E30->Size = System::Drawing::Size(57, 20);
			this->Txt_E30->TabIndex = 94;
			// 
			// Btn_S5
			// 
			this->Btn_S5->Location = System::Drawing::Point(287, 253);
			this->Btn_S5->Name = L"Btn_S5";
			this->Btn_S5->Size = System::Drawing::Size(45, 45);
			this->Btn_S5->TabIndex = 55;
			this->Btn_S5->Text = L"S05";
			this->Btn_S5->UseVisualStyleBackColor = true;
			this->Btn_S5->Click += gcnew System::EventHandler(this, &Form1::Btn_S5_Click);
			// 
			// Btn_E5
			// 
			this->Btn_E5->Location = System::Drawing::Point(145, 20);
			this->Btn_E5->Name = L"Btn_E5";
			this->Btn_E5->Size = System::Drawing::Size(35, 35);
			this->Btn_E5->TabIndex = 9;
			this->Btn_E5->Text = L"E05";
			this->Btn_E5->UseVisualStyleBackColor = true;
			// 
			// Btn_S4
			// 
			this->Btn_S4->Location = System::Drawing::Point(221, 253);
			this->Btn_S4->Name = L"Btn_S4";
			this->Btn_S4->Size = System::Drawing::Size(45, 45);
			this->Btn_S4->TabIndex = 54;
			this->Btn_S4->Text = L"S04";
			this->Btn_S4->UseVisualStyleBackColor = true;
			this->Btn_S4->Click += gcnew System::EventHandler(this, &Form1::Btn_S4_Click);
			// 
			// label29
			// 
			this->label29->AutoSize = true;
			this->label29->Location = System::Drawing::Point(279, 210);
			this->label29->Name = L"label29";
			this->label29->Size = System::Drawing::Size(60, 13);
			this->label29->TabIndex = 93;
			this->label29->Text = L"COUNT 29";
			// 
			// Btn_S3
			// 
			this->Btn_S3->Location = System::Drawing::Point(155, 253);
			this->Btn_S3->Name = L"Btn_S3";
			this->Btn_S3->Size = System::Drawing::Size(45, 45);
			this->Btn_S3->TabIndex = 53;
			this->Btn_S3->Text = L"S03";
			this->Btn_S3->UseVisualStyleBackColor = true;
			this->Btn_S3->Click += gcnew System::EventHandler(this, &Form1::Btn_S3_Click);
			// 
			// Btn_E6
			// 
			this->Btn_E6->Location = System::Drawing::Point(180, 20);
			this->Btn_E6->Name = L"Btn_E6";
			this->Btn_E6->Size = System::Drawing::Size(35, 35);
			this->Btn_E6->TabIndex = 10;
			this->Btn_E6->Text = L"E06";
			this->Btn_E6->UseVisualStyleBackColor = true;
			// 
			// Btn_S2
			// 
			this->Btn_S2->Location = System::Drawing::Point(89, 253);
			this->Btn_S2->Name = L"Btn_S2";
			this->Btn_S2->Size = System::Drawing::Size(45, 45);
			this->Btn_S2->TabIndex = 52;
			this->Btn_S2->Text = L"S02";
			this->Btn_S2->UseVisualStyleBackColor = true;
			this->Btn_S2->Click += gcnew System::EventHandler(this, &Form1::Btn_S2_Click);
			// 
			// Txt_E29
			// 
			this->Txt_E29->Location = System::Drawing::Point(282, 226);
			this->Txt_E29->Name = L"Txt_E29";
			this->Txt_E29->Size = System::Drawing::Size(57, 20);
			this->Txt_E29->TabIndex = 92;
			// 
			// Btn_S1
			// 
			this->Btn_S1->Location = System::Drawing::Point(23, 253);
			this->Btn_S1->Name = L"Btn_S1";
			this->Btn_S1->Size = System::Drawing::Size(45, 45);
			this->Btn_S1->TabIndex = 51;
			this->Btn_S1->Text = L"S01";
			this->Btn_S1->UseVisualStyleBackColor = true;
			this->Btn_S1->Click += gcnew System::EventHandler(this, &Form1::Btn_S1_Click);
			// 
			// Btn_E7
			// 
			this->Btn_E7->Location = System::Drawing::Point(215, 20);
			this->Btn_E7->Name = L"Btn_E7";
			this->Btn_E7->Size = System::Drawing::Size(35, 35);
			this->Btn_E7->TabIndex = 11;
			this->Btn_E7->Text = L"E07";
			this->Btn_E7->UseVisualStyleBackColor = true;
			// 
			// label30
			// 
			this->label30->AutoSize = true;
			this->label30->Location = System::Drawing::Point(213, 210);
			this->label30->Name = L"label30";
			this->label30->Size = System::Drawing::Size(60, 13);
			this->label30->TabIndex = 91;
			this->label30->Text = L"COUNT 28";
			// 
			// Btn_E8
			// 
			this->Btn_E8->Location = System::Drawing::Point(250, 20);
			this->Btn_E8->Name = L"Btn_E8";
			this->Btn_E8->Size = System::Drawing::Size(35, 35);
			this->Btn_E8->TabIndex = 12;
			this->Btn_E8->Text = L"E08";
			this->Btn_E8->UseVisualStyleBackColor = true;
			// 
			// Txt_E28
			// 
			this->Txt_E28->Location = System::Drawing::Point(216, 226);
			this->Txt_E28->Name = L"Txt_E28";
			this->Txt_E28->Size = System::Drawing::Size(57, 20);
			this->Txt_E28->TabIndex = 90;
			// 
			// Btn_E9
			// 
			this->Btn_E9->Location = System::Drawing::Point(285, 20);
			this->Btn_E9->Name = L"Btn_E9";
			this->Btn_E9->Size = System::Drawing::Size(35, 35);
			this->Btn_E9->TabIndex = 13;
			this->Btn_E9->Text = L"E09";
			this->Btn_E9->UseVisualStyleBackColor = true;
			// 
			// label31
			// 
			this->label31->AutoSize = true;
			this->label31->Location = System::Drawing::Point(147, 210);
			this->label31->Name = L"label31";
			this->label31->Size = System::Drawing::Size(60, 13);
			this->label31->TabIndex = 89;
			this->label31->Text = L"COUNT 27";
			// 
			// Btn_E10
			// 
			this->Btn_E10->Location = System::Drawing::Point(320, 20);
			this->Btn_E10->Name = L"Btn_E10";
			this->Btn_E10->Size = System::Drawing::Size(35, 35);
			this->Btn_E10->TabIndex = 14;
			this->Btn_E10->Text = L"E10";
			this->Btn_E10->UseVisualStyleBackColor = true;
			// 
			// Txt_E27
			// 
			this->Txt_E27->Location = System::Drawing::Point(150, 226);
			this->Txt_E27->Name = L"Txt_E27";
			this->Txt_E27->Size = System::Drawing::Size(57, 20);
			this->Txt_E27->TabIndex = 88;
			// 
			// Btn_E11
			// 
			this->Btn_E11->Location = System::Drawing::Point(355, 20);
			this->Btn_E11->Name = L"Btn_E11";
			this->Btn_E11->Size = System::Drawing::Size(35, 35);
			this->Btn_E11->TabIndex = 15;
			this->Btn_E11->Text = L"E11";
			this->Btn_E11->UseVisualStyleBackColor = true;
			// 
			// label32
			// 
			this->label32->AutoSize = true;
			this->label32->Location = System::Drawing::Point(81, 210);
			this->label32->Name = L"label32";
			this->label32->Size = System::Drawing::Size(60, 13);
			this->label32->TabIndex = 87;
			this->label32->Text = L"COUNT 26";
			// 
			// Btn_E12
			// 
			this->Btn_E12->Location = System::Drawing::Point(390, 20);
			this->Btn_E12->Name = L"Btn_E12";
			this->Btn_E12->Size = System::Drawing::Size(35, 35);
			this->Btn_E12->TabIndex = 16;
			this->Btn_E12->Text = L"E12";
			this->Btn_E12->UseVisualStyleBackColor = true;
			// 
			// Txt_E26
			// 
			this->Txt_E26->Location = System::Drawing::Point(84, 226);
			this->Txt_E26->Name = L"Txt_E26";
			this->Txt_E26->Size = System::Drawing::Size(57, 20);
			this->Txt_E26->TabIndex = 86;
			// 
			// Btn_E13
			// 
			this->Btn_E13->Location = System::Drawing::Point(425, 20);
			this->Btn_E13->Name = L"Btn_E13";
			this->Btn_E13->Size = System::Drawing::Size(35, 35);
			this->Btn_E13->TabIndex = 17;
			this->Btn_E13->Text = L"E13";
			this->Btn_E13->UseVisualStyleBackColor = true;
			// 
			// label33
			// 
			this->label33->AutoSize = true;
			this->label33->Location = System::Drawing::Point(15, 210);
			this->label33->Name = L"label33";
			this->label33->Size = System::Drawing::Size(60, 13);
			this->label33->TabIndex = 85;
			this->label33->Text = L"COUNT 25";
			// 
			// Btn_E14
			// 
			this->Btn_E14->Location = System::Drawing::Point(460, 20);
			this->Btn_E14->Name = L"Btn_E14";
			this->Btn_E14->Size = System::Drawing::Size(35, 35);
			this->Btn_E14->TabIndex = 18;
			this->Btn_E14->Text = L"E14";
			this->Btn_E14->UseVisualStyleBackColor = true;
			// 
			// Txt_E25
			// 
			this->Txt_E25->Location = System::Drawing::Point(18, 226);
			this->Txt_E25->Name = L"Txt_E25";
			this->Txt_E25->Size = System::Drawing::Size(57, 20);
			this->Txt_E25->TabIndex = 84;
			// 
			// Btn_E32
			// 
			this->Btn_E32->Location = System::Drawing::Point(530, 55);
			this->Btn_E32->Name = L"Btn_E32";
			this->Btn_E32->Size = System::Drawing::Size(35, 35);
			this->Btn_E32->TabIndex = 36;
			this->Btn_E32->Text = L"E32";
			this->Btn_E32->UseVisualStyleBackColor = true;
			// 
			// label18
			// 
			this->label18->AutoSize = true;
			this->label18->Location = System::Drawing::Point(477, 171);
			this->label18->Name = L"label18";
			this->label18->Size = System::Drawing::Size(60, 13);
			this->label18->TabIndex = 83;
			this->label18->Text = L"COUNT 24";
			// 
			// Btn_E15
			// 
			this->Btn_E15->Location = System::Drawing::Point(495, 20);
			this->Btn_E15->Name = L"Btn_E15";
			this->Btn_E15->Size = System::Drawing::Size(35, 35);
			this->Btn_E15->TabIndex = 19;
			this->Btn_E15->Text = L"E15";
			this->Btn_E15->UseVisualStyleBackColor = true;
			// 
			// Txt_E24
			// 
			this->Txt_E24->Location = System::Drawing::Point(480, 187);
			this->Txt_E24->Name = L"Txt_E24";
			this->Txt_E24->Size = System::Drawing::Size(57, 20);
			this->Txt_E24->TabIndex = 82;
			// 
			// Btn_E31
			// 
			this->Btn_E31->Location = System::Drawing::Point(495, 55);
			this->Btn_E31->Name = L"Btn_E31";
			this->Btn_E31->Size = System::Drawing::Size(35, 35);
			this->Btn_E31->TabIndex = 35;
			this->Btn_E31->Text = L"E31";
			this->Btn_E31->UseVisualStyleBackColor = true;
			// 
			// label19
			// 
			this->label19->AutoSize = true;
			this->label19->Location = System::Drawing::Point(411, 171);
			this->label19->Name = L"label19";
			this->label19->Size = System::Drawing::Size(60, 13);
			this->label19->TabIndex = 81;
			this->label19->Text = L"COUNT 23";
			// 
			// Btn_E16
			// 
			this->Btn_E16->Location = System::Drawing::Point(530, 20);
			this->Btn_E16->Name = L"Btn_E16";
			this->Btn_E16->Size = System::Drawing::Size(35, 35);
			this->Btn_E16->TabIndex = 20;
			this->Btn_E16->Text = L"E16";
			this->Btn_E16->UseVisualStyleBackColor = true;
			// 
			// Txt_E23
			// 
			this->Txt_E23->Location = System::Drawing::Point(414, 187);
			this->Txt_E23->Name = L"Txt_E23";
			this->Txt_E23->Size = System::Drawing::Size(57, 20);
			this->Txt_E23->TabIndex = 80;
			// 
			// Btn_E30
			// 
			this->Btn_E30->Location = System::Drawing::Point(460, 55);
			this->Btn_E30->Name = L"Btn_E30";
			this->Btn_E30->Size = System::Drawing::Size(35, 35);
			this->Btn_E30->TabIndex = 34;
			this->Btn_E30->Text = L"E30";
			this->Btn_E30->UseVisualStyleBackColor = true;
			// 
			// label20
			// 
			this->label20->AutoSize = true;
			this->label20->Location = System::Drawing::Point(345, 171);
			this->label20->Name = L"label20";
			this->label20->Size = System::Drawing::Size(60, 13);
			this->label20->TabIndex = 79;
			this->label20->Text = L"COUNT 22";
			// 
			// Btn_E18
			// 
			this->Btn_E18->Location = System::Drawing::Point(40, 55);
			this->Btn_E18->Name = L"Btn_E18";
			this->Btn_E18->Size = System::Drawing::Size(35, 35);
			this->Btn_E18->TabIndex = 22;
			this->Btn_E18->Text = L"E18";
			this->Btn_E18->UseVisualStyleBackColor = true;
			// 
			// Txt_E22
			// 
			this->Txt_E22->Location = System::Drawing::Point(348, 187);
			this->Txt_E22->Name = L"Txt_E22";
			this->Txt_E22->Size = System::Drawing::Size(57, 20);
			this->Txt_E22->TabIndex = 78;
			// 
			// Btn_E29
			// 
			this->Btn_E29->Location = System::Drawing::Point(425, 55);
			this->Btn_E29->Name = L"Btn_E29";
			this->Btn_E29->Size = System::Drawing::Size(35, 35);
			this->Btn_E29->TabIndex = 33;
			this->Btn_E29->Text = L"E29";
			this->Btn_E29->UseVisualStyleBackColor = true;
			// 
			// label21
			// 
			this->label21->AutoSize = true;
			this->label21->Location = System::Drawing::Point(279, 171);
			this->label21->Name = L"label21";
			this->label21->Size = System::Drawing::Size(60, 13);
			this->label21->TabIndex = 77;
			this->label21->Text = L"COUNT 21";
			// 
			// Btn_E19
			// 
			this->Btn_E19->Location = System::Drawing::Point(75, 55);
			this->Btn_E19->Name = L"Btn_E19";
			this->Btn_E19->Size = System::Drawing::Size(35, 35);
			this->Btn_E19->TabIndex = 23;
			this->Btn_E19->Text = L"E19";
			this->Btn_E19->UseVisualStyleBackColor = true;
			// 
			// Txt_E21
			// 
			this->Txt_E21->Location = System::Drawing::Point(282, 187);
			this->Txt_E21->Name = L"Txt_E21";
			this->Txt_E21->Size = System::Drawing::Size(57, 20);
			this->Txt_E21->TabIndex = 76;
			// 
			// Btn_E28
			// 
			this->Btn_E28->Location = System::Drawing::Point(390, 55);
			this->Btn_E28->Name = L"Btn_E28";
			this->Btn_E28->Size = System::Drawing::Size(35, 35);
			this->Btn_E28->TabIndex = 32;
			this->Btn_E28->Text = L"E28";
			this->Btn_E28->UseVisualStyleBackColor = true;
			// 
			// label22
			// 
			this->label22->AutoSize = true;
			this->label22->Location = System::Drawing::Point(213, 171);
			this->label22->Name = L"label22";
			this->label22->Size = System::Drawing::Size(60, 13);
			this->label22->TabIndex = 75;
			this->label22->Text = L"COUNT 20";
			// 
			// Btn_E20
			// 
			this->Btn_E20->Location = System::Drawing::Point(110, 55);
			this->Btn_E20->Name = L"Btn_E20";
			this->Btn_E20->Size = System::Drawing::Size(35, 35);
			this->Btn_E20->TabIndex = 24;
			this->Btn_E20->Text = L"E20";
			this->Btn_E20->UseVisualStyleBackColor = true;
			// 
			// Txt_E20
			// 
			this->Txt_E20->Location = System::Drawing::Point(216, 187);
			this->Txt_E20->Name = L"Txt_E20";
			this->Txt_E20->Size = System::Drawing::Size(57, 20);
			this->Txt_E20->TabIndex = 74;
			// 
			// Btn_E27
			// 
			this->Btn_E27->Location = System::Drawing::Point(355, 55);
			this->Btn_E27->Name = L"Btn_E27";
			this->Btn_E27->Size = System::Drawing::Size(35, 35);
			this->Btn_E27->TabIndex = 31;
			this->Btn_E27->Text = L"E27";
			this->Btn_E27->UseVisualStyleBackColor = true;
			// 
			// label23
			// 
			this->label23->AutoSize = true;
			this->label23->Location = System::Drawing::Point(147, 171);
			this->label23->Name = L"label23";
			this->label23->Size = System::Drawing::Size(60, 13);
			this->label23->TabIndex = 73;
			this->label23->Text = L"COUNT 19";
			// 
			// Btn_E21
			// 
			this->Btn_E21->Location = System::Drawing::Point(145, 55);
			this->Btn_E21->Name = L"Btn_E21";
			this->Btn_E21->Size = System::Drawing::Size(35, 35);
			this->Btn_E21->TabIndex = 25;
			this->Btn_E21->Text = L"E21";
			this->Btn_E21->UseVisualStyleBackColor = true;
			// 
			// Txt_E19
			// 
			this->Txt_E19->Location = System::Drawing::Point(150, 187);
			this->Txt_E19->Name = L"Txt_E19";
			this->Txt_E19->Size = System::Drawing::Size(57, 20);
			this->Txt_E19->TabIndex = 72;
			// 
			// Btn_E26
			// 
			this->Btn_E26->Location = System::Drawing::Point(320, 55);
			this->Btn_E26->Name = L"Btn_E26";
			this->Btn_E26->Size = System::Drawing::Size(35, 35);
			this->Btn_E26->TabIndex = 30;
			this->Btn_E26->Text = L"E26";
			this->Btn_E26->UseVisualStyleBackColor = true;
			// 
			// label24
			// 
			this->label24->AutoSize = true;
			this->label24->Location = System::Drawing::Point(81, 171);
			this->label24->Name = L"label24";
			this->label24->Size = System::Drawing::Size(60, 13);
			this->label24->TabIndex = 71;
			this->label24->Text = L"COUNT 18";
			// 
			// Btn_E22
			// 
			this->Btn_E22->Location = System::Drawing::Point(180, 55);
			this->Btn_E22->Name = L"Btn_E22";
			this->Btn_E22->Size = System::Drawing::Size(35, 35);
			this->Btn_E22->TabIndex = 26;
			this->Btn_E22->Text = L"E22";
			this->Btn_E22->UseVisualStyleBackColor = true;
			// 
			// Txt_E18
			// 
			this->Txt_E18->Location = System::Drawing::Point(84, 187);
			this->Txt_E18->Name = L"Txt_E18";
			this->Txt_E18->Size = System::Drawing::Size(57, 20);
			this->Txt_E18->TabIndex = 70;
			// 
			// Btn_E25
			// 
			this->Btn_E25->Location = System::Drawing::Point(285, 55);
			this->Btn_E25->Name = L"Btn_E25";
			this->Btn_E25->Size = System::Drawing::Size(35, 35);
			this->Btn_E25->TabIndex = 29;
			this->Btn_E25->Text = L"E25";
			this->Btn_E25->UseVisualStyleBackColor = true;
			// 
			// label25
			// 
			this->label25->AutoSize = true;
			this->label25->Location = System::Drawing::Point(15, 171);
			this->label25->Name = L"label25";
			this->label25->Size = System::Drawing::Size(60, 13);
			this->label25->TabIndex = 69;
			this->label25->Text = L"COUNT 17";
			// 
			// Btn_E23
			// 
			this->Btn_E23->Location = System::Drawing::Point(215, 55);
			this->Btn_E23->Name = L"Btn_E23";
			this->Btn_E23->Size = System::Drawing::Size(35, 35);
			this->Btn_E23->TabIndex = 27;
			this->Btn_E23->Text = L"E23";
			this->Btn_E23->UseVisualStyleBackColor = true;
			// 
			// Txt_E17
			// 
			this->Txt_E17->Location = System::Drawing::Point(18, 187);
			this->Txt_E17->Name = L"Txt_E17";
			this->Txt_E17->Size = System::Drawing::Size(57, 20);
			this->Txt_E17->TabIndex = 68;
			// 
			// Btn_E24
			// 
			this->Btn_E24->Location = System::Drawing::Point(250, 55);
			this->Btn_E24->Name = L"Btn_E24";
			this->Btn_E24->Size = System::Drawing::Size(35, 35);
			this->Btn_E24->TabIndex = 28;
			this->Btn_E24->Text = L"E24";
			this->Btn_E24->UseVisualStyleBackColor = true;
			// 
			// label10
			// 
			this->label10->AutoSize = true;
			this->label10->Location = System::Drawing::Point(477, 132);
			this->label10->Name = L"label10";
			this->label10->Size = System::Drawing::Size(60, 13);
			this->label10->TabIndex = 67;
			this->label10->Text = L"COUNT 16";
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(15, 93);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(60, 13);
			this->label2->TabIndex = 3;
			this->label2->Text = L"COUNT 01";
			// 
			// Txt_E16
			// 
			this->Txt_E16->Location = System::Drawing::Point(480, 148);
			this->Txt_E16->Name = L"Txt_E16";
			this->Txt_E16->Size = System::Drawing::Size(57, 20);
			this->Txt_E16->TabIndex = 66;
			// 
			// Txt_E1
			// 
			this->Txt_E1->Location = System::Drawing::Point(18, 109);
			this->Txt_E1->Name = L"Txt_E1";
			this->Txt_E1->Size = System::Drawing::Size(57, 20);
			this->Txt_E1->TabIndex = 1;
			// 
			// label11
			// 
			this->label11->AutoSize = true;
			this->label11->Location = System::Drawing::Point(411, 132);
			this->label11->Name = L"label11";
			this->label11->Size = System::Drawing::Size(60, 13);
			this->label11->TabIndex = 65;
			this->label11->Text = L"COUNT 15";
			// 
			// Txt_E2
			// 
			this->Txt_E2->Location = System::Drawing::Point(84, 109);
			this->Txt_E2->Name = L"Txt_E2";
			this->Txt_E2->Size = System::Drawing::Size(57, 20);
			this->Txt_E2->TabIndex = 37;
			// 
			// Txt_E15
			// 
			this->Txt_E15->Location = System::Drawing::Point(414, 148);
			this->Txt_E15->Name = L"Txt_E15";
			this->Txt_E15->Size = System::Drawing::Size(57, 20);
			this->Txt_E15->TabIndex = 64;
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(81, 93);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(60, 13);
			this->label3->TabIndex = 38;
			this->label3->Text = L"COUNT 02";
			// 
			// label12
			// 
			this->label12->AutoSize = true;
			this->label12->Location = System::Drawing::Point(345, 132);
			this->label12->Name = L"label12";
			this->label12->Size = System::Drawing::Size(60, 13);
			this->label12->TabIndex = 63;
			this->label12->Text = L"COUNT 14";
			// 
			// Txt_E3
			// 
			this->Txt_E3->Location = System::Drawing::Point(150, 109);
			this->Txt_E3->Name = L"Txt_E3";
			this->Txt_E3->Size = System::Drawing::Size(57, 20);
			this->Txt_E3->TabIndex = 39;
			// 
			// Txt_E14
			// 
			this->Txt_E14->Location = System::Drawing::Point(348, 148);
			this->Txt_E14->Name = L"Txt_E14";
			this->Txt_E14->Size = System::Drawing::Size(57, 20);
			this->Txt_E14->TabIndex = 62;
			// 
			// label4
			// 
			this->label4->AutoSize = true;
			this->label4->Location = System::Drawing::Point(147, 93);
			this->label4->Name = L"label4";
			this->label4->Size = System::Drawing::Size(60, 13);
			this->label4->TabIndex = 40;
			this->label4->Text = L"COUNT 03";
			// 
			// label13
			// 
			this->label13->AutoSize = true;
			this->label13->Location = System::Drawing::Point(279, 132);
			this->label13->Name = L"label13";
			this->label13->Size = System::Drawing::Size(60, 13);
			this->label13->TabIndex = 61;
			this->label13->Text = L"COUNT 13";
			// 
			// Txt_E4
			// 
			this->Txt_E4->Location = System::Drawing::Point(216, 109);
			this->Txt_E4->Name = L"Txt_E4";
			this->Txt_E4->Size = System::Drawing::Size(57, 20);
			this->Txt_E4->TabIndex = 41;
			// 
			// Txt_E13
			// 
			this->Txt_E13->Location = System::Drawing::Point(282, 148);
			this->Txt_E13->Name = L"Txt_E13";
			this->Txt_E13->Size = System::Drawing::Size(57, 20);
			this->Txt_E13->TabIndex = 60;
			// 
			// label5
			// 
			this->label5->AutoSize = true;
			this->label5->Location = System::Drawing::Point(213, 93);
			this->label5->Name = L"label5";
			this->label5->Size = System::Drawing::Size(60, 13);
			this->label5->TabIndex = 42;
			this->label5->Text = L"COUNT 04";
			// 
			// label14
			// 
			this->label14->AutoSize = true;
			this->label14->Location = System::Drawing::Point(213, 132);
			this->label14->Name = L"label14";
			this->label14->Size = System::Drawing::Size(60, 13);
			this->label14->TabIndex = 59;
			this->label14->Text = L"COUNT 12";
			// 
			// Txt_E5
			// 
			this->Txt_E5->Location = System::Drawing::Point(282, 109);
			this->Txt_E5->Name = L"Txt_E5";
			this->Txt_E5->Size = System::Drawing::Size(57, 20);
			this->Txt_E5->TabIndex = 43;
			// 
			// Txt_E12
			// 
			this->Txt_E12->Location = System::Drawing::Point(216, 148);
			this->Txt_E12->Name = L"Txt_E12";
			this->Txt_E12->Size = System::Drawing::Size(57, 20);
			this->Txt_E12->TabIndex = 58;
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(279, 93);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(60, 13);
			this->label6->TabIndex = 44;
			this->label6->Text = L"COUNT 05";
			// 
			// label15
			// 
			this->label15->AutoSize = true;
			this->label15->Location = System::Drawing::Point(147, 132);
			this->label15->Name = L"label15";
			this->label15->Size = System::Drawing::Size(60, 13);
			this->label15->TabIndex = 57;
			this->label15->Text = L"COUNT 11";
			// 
			// Txt_E6
			// 
			this->Txt_E6->Location = System::Drawing::Point(348, 109);
			this->Txt_E6->Name = L"Txt_E6";
			this->Txt_E6->Size = System::Drawing::Size(57, 20);
			this->Txt_E6->TabIndex = 45;
			// 
			// Txt_E11
			// 
			this->Txt_E11->Location = System::Drawing::Point(150, 148);
			this->Txt_E11->Name = L"Txt_E11";
			this->Txt_E11->Size = System::Drawing::Size(57, 20);
			this->Txt_E11->TabIndex = 56;
			// 
			// label7
			// 
			this->label7->AutoSize = true;
			this->label7->Location = System::Drawing::Point(345, 93);
			this->label7->Name = L"label7";
			this->label7->Size = System::Drawing::Size(60, 13);
			this->label7->TabIndex = 46;
			this->label7->Text = L"COUNT 06";
			// 
			// label16
			// 
			this->label16->AutoSize = true;
			this->label16->Location = System::Drawing::Point(81, 132);
			this->label16->Name = L"label16";
			this->label16->Size = System::Drawing::Size(60, 13);
			this->label16->TabIndex = 55;
			this->label16->Text = L"COUNT 10";
			// 
			// Txt_E7
			// 
			this->Txt_E7->Location = System::Drawing::Point(414, 109);
			this->Txt_E7->Name = L"Txt_E7";
			this->Txt_E7->Size = System::Drawing::Size(57, 20);
			this->Txt_E7->TabIndex = 47;
			// 
			// Txt_E10
			// 
			this->Txt_E10->Location = System::Drawing::Point(84, 148);
			this->Txt_E10->Name = L"Txt_E10";
			this->Txt_E10->Size = System::Drawing::Size(57, 20);
			this->Txt_E10->TabIndex = 54;
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->Btn_S16);
			this->groupBox1->Controls->Add(this->label26);
			this->groupBox1->Controls->Add(this->Btn_S15);
			this->groupBox1->Controls->Add(this->Btn_E1);
			this->groupBox1->Controls->Add(this->Btn_S14);
			this->groupBox1->Controls->Add(this->Txt_E32);
			this->groupBox1->Controls->Add(this->Btn_S13);
			this->groupBox1->Controls->Add(this->Btn_E17);
			this->groupBox1->Controls->Add(this->Btn_S12);
			this->groupBox1->Controls->Add(this->label27);
			this->groupBox1->Controls->Add(this->Btn_S11);
			this->groupBox1->Controls->Add(this->Btn_E2);
			this->groupBox1->Controls->Add(this->Btn_S10);
			this->groupBox1->Controls->Add(this->Txt_E31);
			this->groupBox1->Controls->Add(this->Btn_S9);
			this->groupBox1->Controls->Add(this->Btn_E3);
			this->groupBox1->Controls->Add(this->Btn_S8);
			this->groupBox1->Controls->Add(this->label28);
			this->groupBox1->Controls->Add(this->Btn_S7);
			this->groupBox1->Controls->Add(this->Btn_E4);
			this->groupBox1->Controls->Add(this->Btn_S6);
			this->groupBox1->Controls->Add(this->Txt_E30);
			this->groupBox1->Controls->Add(this->Btn_S5);
			this->groupBox1->Controls->Add(this->Btn_E5);
			this->groupBox1->Controls->Add(this->Btn_S4);
			this->groupBox1->Controls->Add(this->label29);
			this->groupBox1->Controls->Add(this->Btn_S3);
			this->groupBox1->Controls->Add(this->Btn_E6);
			this->groupBox1->Controls->Add(this->Btn_S2);
			this->groupBox1->Controls->Add(this->Txt_E29);
			this->groupBox1->Controls->Add(this->Btn_S1);
			this->groupBox1->Controls->Add(this->Btn_E7);
			this->groupBox1->Controls->Add(this->label30);
			this->groupBox1->Controls->Add(this->Btn_E8);
			this->groupBox1->Controls->Add(this->Txt_E28);
			this->groupBox1->Controls->Add(this->Btn_E9);
			this->groupBox1->Controls->Add(this->label31);
			this->groupBox1->Controls->Add(this->Btn_E10);
			this->groupBox1->Controls->Add(this->Txt_E27);
			this->groupBox1->Controls->Add(this->Btn_E11);
			this->groupBox1->Controls->Add(this->label32);
			this->groupBox1->Controls->Add(this->Btn_E12);
			this->groupBox1->Controls->Add(this->Txt_E26);
			this->groupBox1->Controls->Add(this->Btn_E13);
			this->groupBox1->Controls->Add(this->label33);
			this->groupBox1->Controls->Add(this->Btn_E14);
			this->groupBox1->Controls->Add(this->Txt_E25);
			this->groupBox1->Controls->Add(this->Btn_E32);
			this->groupBox1->Controls->Add(this->label18);
			this->groupBox1->Controls->Add(this->Btn_E15);
			this->groupBox1->Controls->Add(this->Txt_E24);
			this->groupBox1->Controls->Add(this->Btn_E31);
			this->groupBox1->Controls->Add(this->label19);
			this->groupBox1->Controls->Add(this->Btn_E16);
			this->groupBox1->Controls->Add(this->Txt_E23);
			this->groupBox1->Controls->Add(this->Btn_E30);
			this->groupBox1->Controls->Add(this->label20);
			this->groupBox1->Controls->Add(this->Btn_E18);
			this->groupBox1->Controls->Add(this->Txt_E22);
			this->groupBox1->Controls->Add(this->Btn_E29);
			this->groupBox1->Controls->Add(this->label21);
			this->groupBox1->Controls->Add(this->Btn_E19);
			this->groupBox1->Controls->Add(this->Txt_E21);
			this->groupBox1->Controls->Add(this->Btn_E28);
			this->groupBox1->Controls->Add(this->label22);
			this->groupBox1->Controls->Add(this->Btn_E20);
			this->groupBox1->Controls->Add(this->Txt_E20);
			this->groupBox1->Controls->Add(this->Btn_E27);
			this->groupBox1->Controls->Add(this->label23);
			this->groupBox1->Controls->Add(this->Btn_E21);
			this->groupBox1->Controls->Add(this->Txt_E19);
			this->groupBox1->Controls->Add(this->Btn_E26);
			this->groupBox1->Controls->Add(this->label24);
			this->groupBox1->Controls->Add(this->Btn_E22);
			this->groupBox1->Controls->Add(this->Txt_E18);
			this->groupBox1->Controls->Add(this->Btn_E25);
			this->groupBox1->Controls->Add(this->label25);
			this->groupBox1->Controls->Add(this->Btn_E23);
			this->groupBox1->Controls->Add(this->Txt_E17);
			this->groupBox1->Controls->Add(this->Btn_E24);
			this->groupBox1->Controls->Add(this->label10);
			this->groupBox1->Controls->Add(this->label2);
			this->groupBox1->Controls->Add(this->Txt_E16);
			this->groupBox1->Controls->Add(this->Txt_E1);
			this->groupBox1->Controls->Add(this->label11);
			this->groupBox1->Controls->Add(this->Txt_E2);
			this->groupBox1->Controls->Add(this->Txt_E15);
			this->groupBox1->Controls->Add(this->label3);
			this->groupBox1->Controls->Add(this->label12);
			this->groupBox1->Controls->Add(this->Txt_E3);
			this->groupBox1->Controls->Add(this->Txt_E14);
			this->groupBox1->Controls->Add(this->label4);
			this->groupBox1->Controls->Add(this->label13);
			this->groupBox1->Controls->Add(this->Txt_E4);
			this->groupBox1->Controls->Add(this->Txt_E13);
			this->groupBox1->Controls->Add(this->label5);
			this->groupBox1->Controls->Add(this->label14);
			this->groupBox1->Controls->Add(this->Txt_E5);
			this->groupBox1->Controls->Add(this->Txt_E12);
			this->groupBox1->Controls->Add(this->label6);
			this->groupBox1->Controls->Add(this->label15);
			this->groupBox1->Controls->Add(this->Txt_E6);
			this->groupBox1->Controls->Add(this->Txt_E11);
			this->groupBox1->Controls->Add(this->label7);
			this->groupBox1->Controls->Add(this->label16);
			this->groupBox1->Controls->Add(this->Txt_E7);
			this->groupBox1->Controls->Add(this->Txt_E10);
			this->groupBox1->Controls->Add(this->label8);
			this->groupBox1->Controls->Add(this->label17);
			this->groupBox1->Controls->Add(this->Txt_E8);
			this->groupBox1->Controls->Add(this->Txt_E9);
			this->groupBox1->Controls->Add(this->label9);
			this->groupBox1->Location = System::Drawing::Point(12, 35);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(602, 376);
			this->groupBox1->TabIndex = 7;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"Entrées / Sorties";
			// 
			// label8
			// 
			this->label8->AutoSize = true;
			this->label8->Location = System::Drawing::Point(411, 93);
			this->label8->Name = L"label8";
			this->label8->Size = System::Drawing::Size(60, 13);
			this->label8->TabIndex = 48;
			this->label8->Text = L"COUNT 07";
			// 
			// label17
			// 
			this->label17->AutoSize = true;
			this->label17->Location = System::Drawing::Point(15, 132);
			this->label17->Name = L"label17";
			this->label17->Size = System::Drawing::Size(60, 13);
			this->label17->TabIndex = 53;
			this->label17->Text = L"COUNT 09";
			// 
			// Txt_E8
			// 
			this->Txt_E8->Location = System::Drawing::Point(480, 109);
			this->Txt_E8->Name = L"Txt_E8";
			this->Txt_E8->Size = System::Drawing::Size(57, 20);
			this->Txt_E8->TabIndex = 49;
			// 
			// Txt_E9
			// 
			this->Txt_E9->Location = System::Drawing::Point(18, 148);
			this->Txt_E9->Name = L"Txt_E9";
			this->Txt_E9->Size = System::Drawing::Size(57, 20);
			this->Txt_E9->TabIndex = 52;
			// 
			// label9
			// 
			this->label9->AutoSize = true;
			this->label9->Location = System::Drawing::Point(477, 93);
			this->label9->Name = L"label9";
			this->label9->Size = System::Drawing::Size(60, 13);
			this->label9->TabIndex = 50;
			this->label9->Text = L"COUNT 08";
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(14, 12);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(90, 13);
			this->label1->TabIndex = 6;
			this->label1->Text = L"Numéro de série :";
			// 
			// timer1
			// 
			this->timer1->Enabled = true;
			this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick);
			// 
			// Txt_serie
			// 
			this->Txt_serie->Location = System::Drawing::Point(110, 9);
			this->Txt_serie->Name = L"Txt_serie";
			this->Txt_serie->Size = System::Drawing::Size(102, 20);
			this->Txt_serie->TabIndex = 5;
			// 
			// buttonOpen
			// 
			this->buttonOpen->Location = System::Drawing::Point(222, 7);
			this->buttonOpen->Name = L"buttonOpen";
			this->buttonOpen->Size = System::Drawing::Size(75, 23);
			this->buttonOpen->TabIndex = 8;
			this->buttonOpen->Text = L"Open!";
			this->buttonOpen->UseVisualStyleBackColor = true;
			this->buttonOpen->Click += gcnew System::EventHandler(this, &Form1::buttonOpen_Click);
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(634, 420);
			this->Controls->Add(this->buttonOpen);
			this->Controls->Add(this->groupBox1);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->Txt_serie);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
			this->Name = L"Form1";
			this->Text = L"TC/USB-48IO Demo Program V1.0 -(c) 2014 3C Concept S.A.S Visual C++ 2010";
			this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &Form1::Form1_FormClosing);
			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
			this->groupBox1->ResumeLayout(false);
			this->groupBox1->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
		WORD D_output;
	private: System::Void Form1_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e) 
			 {
				 TCUSB48IO_Close(1);
			 }
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e)
		 {
			
			D_output=0;
            Btn_S1->BackColor = Color::Green;
            Btn_S2->BackColor = Color::Green;
            Btn_S3->BackColor = Color::Green;
            Btn_S4->BackColor = Color::Green;
            Btn_S5->BackColor = Color::Green;
            Btn_S6->BackColor = Color::Green;
            Btn_S7->BackColor = Color::Green;
            Btn_S8->BackColor = Color::Green;
            Btn_S9->BackColor = Color::Green;
            Btn_S10->BackColor = Color::Green;
            Btn_S11->BackColor = Color::Green;
            Btn_S12->BackColor = Color::Green;
            Btn_S13->BackColor = Color::Green;
            Btn_S14->BackColor = Color::Green;
            Btn_S15->BackColor = Color::Green;
            Btn_S16->BackColor = Color::Green;
		 }
private: System::Void Btn_S1_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0001);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S1->BackColor == Color::Lime) Btn_S1->BackColor = Color::Green; else Btn_S1->BackColor = Color::Lime;
		 }

private: System::Void timer1_Tick(System::Object^  sender, System::EventArgs^  e) 
		 {
			DWORD D_input = 0;
            BYTE D_Temp = 0;

            TCUSB48IO_Refresh(1);
            TCUSB48IO_Input(1, & D_input);

            TCUSB48IO_Counter(1, 1, & D_Temp); Txt_E1->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 2, & D_Temp); Txt_E2->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 3, & D_Temp); Txt_E3->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 4, & D_Temp); Txt_E4->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 5, & D_Temp); Txt_E5->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 6, & D_Temp); Txt_E6->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 7, & D_Temp); Txt_E7->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 8, & D_Temp); Txt_E8->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 9, & D_Temp); Txt_E9->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 10, & D_Temp); Txt_E10->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 11, & D_Temp); Txt_E11->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 12, & D_Temp); Txt_E12->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 13, & D_Temp); Txt_E13->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 14, & D_Temp); Txt_E14->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 15, & D_Temp); Txt_E15->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 16, & D_Temp); Txt_E16->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 17, & D_Temp); Txt_E17->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 18, & D_Temp); Txt_E18->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 19, & D_Temp); Txt_E19->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 20, & D_Temp); Txt_E20->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 21, & D_Temp); Txt_E21->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 22, & D_Temp); Txt_E22->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 23, & D_Temp); Txt_E23->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 24, & D_Temp); Txt_E24->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 25, & D_Temp); Txt_E25->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 26, & D_Temp); Txt_E26->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 27, & D_Temp); Txt_E27->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 28, & D_Temp); Txt_E28->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 29, & D_Temp); Txt_E29->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 30, & D_Temp); Txt_E30->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 31, & D_Temp); Txt_E31->Text = D_Temp.ToString();
            TCUSB48IO_Counter(1, 32, & D_Temp); Txt_E32->Text = D_Temp.ToString();

            if ((D_input & 0x00000001) > 0) Btn_E1->BackColor = Color::Lime; else Btn_E1->BackColor = Color::Green;
            if ((D_input & 0x00000002) > 0) Btn_E2->BackColor = Color::Lime; else Btn_E2->BackColor = Color::Green;
            if ((D_input & 0x00000004) > 0) Btn_E3->BackColor = Color::Lime; else Btn_E3->BackColor = Color::Green;
            if ((D_input & 0x00000008) > 0) Btn_E4->BackColor = Color::Lime; else Btn_E4->BackColor = Color::Green;
            if ((D_input & 0x00000010) > 0) Btn_E5->BackColor = Color::Lime; else Btn_E5->BackColor = Color::Green;
            if ((D_input & 0x00000020) > 0) Btn_E6->BackColor = Color::Lime; else Btn_E6->BackColor = Color::Green;
            if ((D_input & 0x00000040) > 0) Btn_E7->BackColor = Color::Lime; else Btn_E7->BackColor = Color::Green;
            if ((D_input & 0x00000080) > 0) Btn_E8->BackColor = Color::Lime; else Btn_E8->BackColor = Color::Green;

            if ((D_input & 0x00000100) > 0) Btn_E9->BackColor = Color::Lime; else Btn_E9->BackColor = Color::Green;
            if ((D_input & 0x00000200) > 0) Btn_E10->BackColor = Color::Lime; else Btn_E10->BackColor = Color::Green;
            if ((D_input & 0x00000400) > 0) Btn_E11->BackColor = Color::Lime; else Btn_E11->BackColor = Color::Green;
            if ((D_input & 0x00000800) > 0) Btn_E12->BackColor = Color::Lime; else Btn_E12->BackColor = Color::Green;
            if ((D_input & 0x00001000) > 0) Btn_E13->BackColor = Color::Lime; else Btn_E13->BackColor = Color::Green;
            if ((D_input & 0x00002000) > 0) Btn_E14->BackColor = Color::Lime; else Btn_E14->BackColor = Color::Green;
            if ((D_input & 0x00004000) > 0) Btn_E15->BackColor = Color::Lime; else Btn_E15->BackColor = Color::Green;
            if ((D_input & 0x00008000) > 0) Btn_E16->BackColor = Color::Lime; else Btn_E16->BackColor = Color::Green;

            if ((D_input & 0x00010000) > 0) Btn_E17->BackColor = Color::Lime; else Btn_E17->BackColor = Color::Green;
            if ((D_input & 0x00020000) > 0) Btn_E18->BackColor = Color::Lime; else Btn_E18->BackColor = Color::Green;
            if ((D_input & 0x00040000) > 0) Btn_E19->BackColor = Color::Lime; else Btn_E19->BackColor = Color::Green;
            if ((D_input & 0x00080000) > 0) Btn_E20->BackColor = Color::Lime; else Btn_E20->BackColor = Color::Green;
            if ((D_input & 0x00100000) > 0) Btn_E21->BackColor = Color::Lime; else Btn_E21->BackColor = Color::Green;
            if ((D_input & 0x00200000) > 0) Btn_E22->BackColor = Color::Lime; else Btn_E22->BackColor = Color::Green;
            if ((D_input & 0x00400000) > 0) Btn_E23->BackColor = Color::Lime; else Btn_E23->BackColor = Color::Green;
            if ((D_input & 0x00800000) > 0) Btn_E24->BackColor = Color::Lime; else Btn_E24->BackColor = Color::Green;

            if ((D_input & 0x01000000) > 0) Btn_E25->BackColor = Color::Lime; else Btn_E25->BackColor = Color::Green;
            if ((D_input & 0x02000000) > 0) Btn_E26->BackColor = Color::Lime; else Btn_E26->BackColor = Color::Green;
            if ((D_input & 0x04000000) > 0) Btn_E27->BackColor = Color::Lime; else Btn_E27->BackColor = Color::Green;
            if ((D_input & 0x08000000) > 0) Btn_E28->BackColor = Color::Lime; else Btn_E28->BackColor = Color::Green;
            if ((D_input & 0x10000000) > 0) Btn_E29->BackColor = Color::Lime; else Btn_E29->BackColor = Color::Green;
            if ((D_input & 0x20000000) > 0) Btn_E30->BackColor = Color::Lime; else Btn_E30->BackColor = Color::Green;
            if ((D_input & 0x40000000) > 0) Btn_E31->BackColor = Color::Lime; else Btn_E31->BackColor = Color::Green;
            if ((D_input & 0x80000000) > 0) Btn_E32->BackColor = Color::Lime; else Btn_E32->BackColor = Color::Green;
		 }
private: System::Void buttonOpen_Click(System::Object^  sender, System::EventArgs^  e)
		 {
			int err48IO = 0;
            DWORD NumeroSeries = 0;
            int Num = 1;
			
            err48IO = TCUSB48IO_OpenN(Num, & NumeroSeries);
            if (err48IO != 0)
            {
                if (err48IO == 1) MessageBox::Show("Numero de serie incorrect");
                if (err48IO == 2) MessageBox::Show("N° de module incorrect");
                if (err48IO == 3) MessageBox::Show("Pas de module TC/USB-48IO détecté");
                if (err48IO == 4) MessageBox::Show("Module non initialisé");
                if (err48IO > 4) MessageBox::Show("Erreur inconue n°"+err48IO.ToString());
                Close();
            }
			buttonOpen->Enabled=false;
            Txt_serie->Text = NumeroSeries.ToString();
		 }
private: System::Void Btn_S2_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0002);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S2->BackColor == Color::Lime) Btn_S2->BackColor = Color::Green; else Btn_S2->BackColor = Color::Lime;
		 }
private: System::Void Btn_S3_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0004);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S3->BackColor == Color::Lime) Btn_S3->BackColor = Color::Green; else Btn_S3->BackColor = Color::Lime;
		 }
private: System::Void Btn_S4_Click(System::Object^  sender, System::EventArgs^  e)
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0008);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S4->BackColor == Color::Lime) Btn_S4->BackColor = Color::Green; else Btn_S4->BackColor = Color::Lime;
		 }
private: System::Void Btn_S5_Click(System::Object^  sender, System::EventArgs^  e) 
		 {			
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0010);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S5->BackColor == Color::Lime) Btn_S5->BackColor = Color::Green; else Btn_S5->BackColor = Color::Lime;
		 }
private: System::Void Btn_S6_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0020);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S6->BackColor == Color::Lime) Btn_S6->BackColor = Color::Green; else Btn_S6->BackColor = Color::Lime;
		 }
private: System::Void Btn_S7_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0040);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S7->BackColor == Color::Lime) Btn_S7->BackColor = Color::Green; else Btn_S7->BackColor = Color::Lime;
		 }
private: System::Void Btn_S8_Click(System::Object^  sender, System::EventArgs^  e)
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0080);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S8->BackColor == Color::Lime) Btn_S8->BackColor = Color::Green; else Btn_S8->BackColor = Color::Lime;
		 }
private: System::Void Btn_S9_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0100);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S9->BackColor == Color::Lime) Btn_S9->BackColor = Color::Green; else Btn_S9->BackColor = Color::Lime;
		 }
private: System::Void Btn_S10_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0200);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S10->BackColor == Color::Lime) Btn_S10->BackColor = Color::Green; else Btn_S10->BackColor = Color::Lime;
		 }
private: System::Void Btn_S11_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0400);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S11->BackColor == Color::Lime) Btn_S11->BackColor = Color::Green; else Btn_S11->BackColor = Color::Lime;
		 }
private: System::Void Btn_S12_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x0800);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S12->BackColor == Color::Lime) Btn_S12->BackColor = Color::Green; else Btn_S12->BackColor = Color::Lime;
		 }
private: System::Void Btn_S13_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x1000);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S13->BackColor == Color::Lime) Btn_S13->BackColor = Color::Green; else Btn_S13->BackColor = Color::Lime;
		 }
private: System::Void Btn_S14_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x2000);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S14->BackColor == Color::Lime) Btn_S14->BackColor = Color::Green; else Btn_S14->BackColor = Color::Lime;
		 }
private: System::Void Btn_S15_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x4000);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S15->BackColor == Color::Lime) Btn_S15->BackColor = Color::Green; else Btn_S15->BackColor = Color::Lime;
		 }
private: System::Void Btn_S16_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			long err48IO = 0;
            D_output = Convert::ToUInt16(D_output ^ 0x8000);
            err48IO = TCUSB48IO_Output(1, D_output);
            TCUSB48IO_Refresh(1);
            if (Btn_S16->BackColor == Color::Lime) Btn_S16->BackColor = Color::Green; else Btn_S16->BackColor = Color::Lime;
		 }
};
}

