#pragma once
#include "ClsReseau.h"
#include "ClsGroupe.h"
namespace RegiLight {
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::Net::Sockets;
using namespace System::Threading;
///
/// Description r�sum�e de Form1
///
/// AVERTISSEMENT�: si vous modifiez le nom de cette classe, vous devrez modifier la
/// propri�t� 'Nom du fichier de ressources' de l'outil de compilation de ressource manag�e
/// pour tous les fichiers .resx dont d�pend cette classe. Dans le cas contraire,
/// les concepteurs ne pourront pas interagir correctement avec les ressources
/// localis�es associ�es � ce formulaire.
///
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
Client = gcnew TcpClient;
Reseau = gcnew ClsReseau();
Groupe = gcnew ClsGroupe();
dmx = gcnew array(512);
ancienne_val = gcnew array(13);
groupe = gcnew array(13);
for(int i=0; i<512; i++)
{
dmx[i] = 0;
}
for(int i=0; i<=12; i++)
{
ancienne_val[i] = 0;
groupe[i] = 7;
}
}
protected:
///
/// Nettoyage des ressources utilis�es.
///
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TrackBar^ trackBar1;
private: System::Windows::Forms::TrackBar^ trackBar2;
private: System::Windows::Forms::TrackBar^ trackBar3;
private: System::Windows::Forms::TrackBar^ trackBar4;
private: System::Windows::Forms::TrackBar^ trackBar5;
private: System::Windows::Forms::TrackBar^ trackBar6;
private: System::Windows::Forms::TrackBar^ trackBar7;
private: System::Windows::Forms::TrackBar^ trackBar8;
private: System::Windows::Forms::TrackBar^ trackBar9;
private: System::Windows::Forms::TrackBar^ trackBar10;
private: System::Windows::Forms::TrackBar^ trackBar11;
private: System::Windows::Forms::TrackBar^ trackBar12;
///////////
private: System::Windows::Forms::TextBox^ tb1;
private: System::Windows::Forms::TextBox^ tb2;
private: System::Windows::Forms::TextBox^ tb3;
private: System::Windows::Forms::TextBox^ tb4;
private: System::Windows::Forms::TextBox^ tb5;
private: System::Windows::Forms::TextBox^ tb6;
private: System::Windows::Forms::TextBox^ tb7;
private: System::Windows::Forms::TextBox^ tb8;
private: System::Windows::Forms::TextBox^ tb9;
private: System::Windows::Forms::TextBox^ tb10;
private: System::Windows::Forms::TextBox^ tb11;
private: System::Windows::Forms::TextBox^ tb12;
private:
//Create the NetworkStream for communicating with the remote host.
NetworkStream^ stream;
ClsReseau^ Reseau;
ClsGroupe^ Groupe;
String^ adresse;
ManualResetEvent^ manualEvent;
TcpClient^ Client;
ThreadStart^ threadDelegate;
ThreadStart^ threadActualise;
Thread^ newThread;
Thread^ newThreadActualise;
array^ dmx;
array^ ancienne_val;
array^ groupe;
bool connected;
bool threadd;
Int32 port;
int num_color, num_color2, num_color3, num_color4, num_color5, num_color6, num_color7, num_color8, num_color9, num_color10, num_color11, num_color12;
int valeur, difference;
private: System::Windows::Forms::TextBox^ tb_ip;
private: System::Windows::Forms::Button^ btn_conn;
private: System::Windows::Forms::Button^ btn_deco;
private: System::Windows::Forms::Button^ btn_fondu;
private: System::Windows::Forms::Button^ btn_fondu_noir;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::Button^ button3;
private: System::Windows::Forms::Button^ button4;
private: System::Windows::Forms::Button^ button5;
private: System::Windows::Forms::Button^ button6;
private: System::Windows::Forms::Button^ button7;
private: System::Windows::Forms::Button^ button8;
private: System::Windows::Forms::Button^ button9;
private: System::Windows::Forms::Button^ button10;
private: System::Windows::Forms::Button^ button11;
private: System::Windows::Forms::Button^ button12;
private: System::Windows::Forms::MenuStrip^ menuStrip1;
private: System::Windows::Forms::ToolStripMenuItem^ fichierToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ enregistrerToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ ouvrirToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ editionToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ sequencesToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ configurationToolStripMenuItem;
private: System::ComponentModel::IContainer^ components;
///
#pragma region Windows Form Designer generated code
///
/// M�thode requise pour la prise en charge du concepteur - ne modifiez pas
/// le contenu de cette m�thode avec l'�diteur de code.
///
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->trackBar1 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar2 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar3 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar4 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar5 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar6 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar7 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar8 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar9 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar10 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar11 = (gcnew System::Windows::Forms::TrackBar());
this->trackBar12 = (gcnew System::Windows::Forms::TrackBar());
this->tb1 = (gcnew System::Windows::Forms::TextBox());
this->tb2 = (gcnew System::Windows::Forms::TextBox());
this->tb4 = (gcnew System::Windows::Forms::TextBox());
this->tb3 = (gcnew System::Windows::Forms::TextBox());
this->tb8 = (gcnew System::Windows::Forms::TextBox());
this->tb7 = (gcnew System::Windows::Forms::TextBox());
this->tb6 = (gcnew System::Windows::Forms::TextBox());
this->tb5 = (gcnew System::Windows::Forms::TextBox());
this->tb12 = (gcnew System::Windows::Forms::TextBox());
this->tb11 = (gcnew System::Windows::Forms::TextBox());
this->tb10 = (gcnew System::Windows::Forms::TextBox());
this->tb9 = (gcnew System::Windows::Forms::TextBox());
this->tb_ip = (gcnew System::Windows::Forms::TextBox());
this->btn_conn = (gcnew System::Windows::Forms::Button());
this->btn_deco = (gcnew System::Windows::Forms::Button());
this->btn_fondu = (gcnew System::Windows::Forms::Button());
this->btn_fondu_noir = (gcnew System::Windows::Forms::Button());
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button3 = (gcnew System::Windows::Forms::Button());
this->button4 = (gcnew System::Windows::Forms::Button());
this->button5 = (gcnew System::Windows::Forms::Button());
this->button6 = (gcnew System::Windows::Forms::Button());
this->button7 = (gcnew System::Windows::Forms::Button());
this->button8 = (gcnew System::Windows::Forms::Button());
this->button9 = (gcnew System::Windows::Forms::Button());
this->button10 = (gcnew System::Windows::Forms::Button());
this->button11 = (gcnew System::Windows::Forms::Button());
this->button12 = (gcnew System::Windows::Forms::Button());
this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
this->fichierToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->enregistrerToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->ouvrirToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->editionToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->sequencesToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->configurationToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
(cli::safe_cast(this->trackBar1))->BeginInit();
(cli::safe_cast(this->trackBar2))->BeginInit();
(cli::safe_cast(this->trackBar3))->BeginInit();
(cli::safe_cast(this->trackBar4))->BeginInit();
(cli::safe_cast(this->trackBar5))->BeginInit();
(cli::safe_cast(this->trackBar6))->BeginInit();
(cli::safe_cast(this->trackBar7))->BeginInit();
(cli::safe_cast(this->trackBar8))->BeginInit();
(cli::safe_cast(this->trackBar9))->BeginInit();
(cli::safe_cast(this->trackBar10))->BeginInit();
(cli::safe_cast(this->trackBar11))->BeginInit();
(cli::safe_cast(this->trackBar12))->BeginInit();
this->menuStrip1->SuspendLayout();
this->SuspendLayout();
//
// trackBar1
//
this->trackBar1->BackColor = System::Drawing::Color::Green;
this->trackBar1->Location = System::Drawing::Point(11, 53);
this->trackBar1->Maximum = 100;
this->trackBar1->Name = L"trackBar1";
this->trackBar1->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar1->Size = System::Drawing::Size(45, 288);
this->trackBar1->TabIndex = 0;
this->trackBar1->TickFrequency = 10;
this->trackBar1->Scroll += gcnew System::EventHandler(this, &Form1::trackBar1_Scroll);
this->trackBar1->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar1_MouseDown);
this->trackBar1->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar1_MouseUp);
//
// trackBar2
//
this->trackBar2->BackColor = System::Drawing::Color::Green;
this->trackBar2->Location = System::Drawing::Point(62, 53);
this->trackBar2->Maximum = 100;
this->trackBar2->Name = L"trackBar2";
this->trackBar2->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar2->Size = System::Drawing::Size(45, 288);
this->trackBar2->TabIndex = 1;
this->trackBar2->TickFrequency = 10;
this->trackBar2->Scroll += gcnew System::EventHandler(this, &Form1::trackBar2_Scroll);
this->trackBar2->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar2_MouseDown);
this->trackBar2->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar2_MouseUp);
//
// trackBar3
//
this->trackBar3->BackColor = System::Drawing::Color::Green;
this->trackBar3->Location = System::Drawing::Point(113, 53);
this->trackBar3->Maximum = 100;
this->trackBar3->Name = L"trackBar3";
this->trackBar3->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar3->Size = System::Drawing::Size(45, 288);
this->trackBar3->TabIndex = 3;
this->trackBar3->TickFrequency = 10;
this->trackBar3->Scroll += gcnew System::EventHandler(this, &Form1::trackBar3_Scroll);
this->trackBar3->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar3_MouseDown);
this->trackBar3->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar3_MouseUp);
//
// trackBar4
//
this->trackBar4->BackColor = System::Drawing::Color::Green;
this->trackBar4->Location = System::Drawing::Point(164, 53);
this->trackBar4->Maximum = 100;
this->trackBar4->Name = L"trackBar4";
this->trackBar4->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar4->Size = System::Drawing::Size(45, 288);
this->trackBar4->TabIndex = 2;
this->trackBar4->TickFrequency = 10;
//
// trackBar5
//
this->trackBar5->BackColor = System::Drawing::Color::Green;
this->trackBar5->Location = System::Drawing::Point(215, 53);
this->trackBar5->Maximum = 100;
this->trackBar5->Name = L"trackBar5";
this->trackBar5->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar5->Size = System::Drawing::Size(45, 288);
this->trackBar5->TabIndex = 7;
this->trackBar5->TickFrequency = 10;
//
// trackBar6
//
this->trackBar6->BackColor = System::Drawing::Color::Green;
this->trackBar6->Location = System::Drawing::Point(266, 53);
this->trackBar6->Maximum = 100;
this->trackBar6->Name = L"trackBar6";
this->trackBar6->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar6->Size = System::Drawing::Size(45, 288);
this->trackBar6->TabIndex = 6;
this->trackBar6->TickFrequency = 10;
//
// trackBar7
//
this->trackBar7->BackColor = System::Drawing::Color::Green;
this->trackBar7->Location = System::Drawing::Point(317, 53);
this->trackBar7->Maximum = 100;
this->trackBar7->Name = L"trackBar7";
this->trackBar7->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar7->Size = System::Drawing::Size(45, 288);
this->trackBar7->TabIndex = 5;
this->trackBar7->TickFrequency = 10;
//
// trackBar8
//
this->trackBar8->BackColor = System::Drawing::Color::Green;
this->trackBar8->Location = System::Drawing::Point(368, 53);
this->trackBar8->Maximum = 100;
this->trackBar8->Name = L"trackBar8";
this->trackBar8->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar8->Size = System::Drawing::Size(45, 288);
this->trackBar8->TabIndex = 4;
this->trackBar8->TickFrequency = 10;
//
// trackBar9
//
this->trackBar9->BackColor = System::Drawing::Color::Green;
this->trackBar9->Location = System::Drawing::Point(419, 53);
this->trackBar9->Maximum = 100;
this->trackBar9->Name = L"trackBar9";
this->trackBar9->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar9->Size = System::Drawing::Size(45, 288);
this->trackBar9->TabIndex = 11;
this->trackBar9->TickFrequency = 10;
//
// trackBar10
//
this->trackBar10->BackColor = System::Drawing::Color::Green;
this->trackBar10->Location = System::Drawing::Point(470, 53);
this->trackBar10->Maximum = 100;
this->trackBar10->Name = L"trackBar10";
this->trackBar10->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar10->Size = System::Drawing::Size(45, 288);
this->trackBar10->TabIndex = 10;
this->trackBar10->TickFrequency = 10;
//
// trackBar11
//
this->trackBar11->BackColor = System::Drawing::Color::Green;
this->trackBar11->Location = System::Drawing::Point(521, 53);
this->trackBar11->Maximum = 100;
this->trackBar11->Name = L"trackBar11";
this->trackBar11->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar11->Size = System::Drawing::Size(45, 288);
this->trackBar11->TabIndex = 9;
this->trackBar11->TickFrequency = 10;
//
// trackBar12
//
this->trackBar12->BackColor = System::Drawing::Color::Green;
this->trackBar12->Location = System::Drawing::Point(572, 53);
this->trackBar12->Maximum = 100;
this->trackBar12->Name = L"trackBar12";
this->trackBar12->Orientation = System::Windows::Forms::Orientation::Vertical;
this->trackBar12->Size = System::Drawing::Size(45, 288);
this->trackBar12->TabIndex = 8;
this->trackBar12->TickFrequency = 10;
//
// tb1
//
this->tb1->Location = System::Drawing::Point(11, 27);
this->tb1->Name = L"tb1";
this->tb1->Size = System::Drawing::Size(45, 20);
this->tb1->TabIndex = 12;
this->tb1->Text = L"0";
//
// tb2
//
this->tb2->Location = System::Drawing::Point(62, 27);
this->tb2->Name = L"tb2";
this->tb2->Size = System::Drawing::Size(45, 20);
this->tb2->TabIndex = 13;
this->tb2->Text = L"0";
//
// tb4
//
this->tb4->Location = System::Drawing::Point(164, 27);
this->tb4->Name = L"tb4";
this->tb4->Size = System::Drawing::Size(45, 20);
this->tb4->TabIndex = 15;
this->tb4->Text = L"0";
//
// tb3
//
this->tb3->Location = System::Drawing::Point(113, 27);
this->tb3->Name = L"tb3";
this->tb3->Size = System::Drawing::Size(45, 20);
this->tb3->TabIndex = 14;
this->tb3->Text = L"0";
//
// tb8
//
this->tb8->Location = System::Drawing::Point(368, 27);
this->tb8->Name = L"tb8";
this->tb8->Size = System::Drawing::Size(45, 20);
this->tb8->TabIndex = 19;
this->tb8->Text = L"0";
//
// tb7
//
this->tb7->Location = System::Drawing::Point(317, 27);
this->tb7->Name = L"tb7";
this->tb7->Size = System::Drawing::Size(45, 20);
this->tb7->TabIndex = 18;
this->tb7->Text = L"0";
//
// tb6
//
this->tb6->Location = System::Drawing::Point(266, 27);
this->tb6->Name = L"tb6";
this->tb6->Size = System::Drawing::Size(45, 20);
this->tb6->TabIndex = 17;
this->tb6->Text = L"0";
//
// tb5
//
this->tb5->Location = System::Drawing::Point(215, 27);
this->tb5->Name = L"tb5";
this->tb5->Size = System::Drawing::Size(45, 20);
this->tb5->TabIndex = 16;
this->tb5->Text = L"0";
//
// tb12
//
this->tb12->Location = System::Drawing::Point(572, 27);
this->tb12->Name = L"tb12";
this->tb12->Size = System::Drawing::Size(45, 20);
this->tb12->TabIndex = 23;
this->tb12->Text = L"0";
//
// tb11
//
this->tb11->Location = System::Drawing::Point(521, 27);
this->tb11->Name = L"tb11";
this->tb11->Size = System::Drawing::Size(45, 20);
this->tb11->TabIndex = 22;
this->tb11->Text = L"0";
//
// tb10
//
this->tb10->Location = System::Drawing::Point(470, 27);
this->tb10->Name = L"tb10";
this->tb10->Size = System::Drawing::Size(45, 20);
this->tb10->TabIndex = 21;
this->tb10->Text = L"0";
//
// tb9
//
this->tb9->Location = System::Drawing::Point(419, 27);
this->tb9->Name = L"tb9";
this->tb9->Size = System::Drawing::Size(45, 20);
this->tb9->TabIndex = 20;
this->tb9->Text = L"0";
//
// tb_ip
//
this->tb_ip->BackColor = System::Drawing::SystemColors::Window;
this->tb_ip->Location = System::Drawing::Point(622, 27);
this->tb_ip->Name = L"tb_ip";
this->tb_ip->Size = System::Drawing::Size(94, 20);
this->tb_ip->TabIndex = 24;
this->tb_ip->Text = L"192.168.100.157";
//
// btn_conn
//
this->btn_conn->Location = System::Drawing::Point(623, 55);
this->btn_conn->Name = L"btn_conn";
this->btn_conn->Size = System::Drawing::Size(96, 67);
this->btn_conn->TabIndex = 38;
this->btn_conn->Text = L"Connection";
this->btn_conn->UseVisualStyleBackColor = true;
this->btn_conn->Click += gcnew System::EventHandler(this, &Form1::btn_con_Click);
//
// btn_deco
//
this->btn_deco->Location = System::Drawing::Point(623, 128);
this->btn_deco->Name = L"btn_deco";
this->btn_deco->Size = System::Drawing::Size(96, 67);
this->btn_deco->TabIndex = 39;
this->btn_deco->Text = L"Deconnection";
this->btn_deco->UseVisualStyleBackColor = true;
this->btn_deco->Click += gcnew System::EventHandler(this, &Form1::btn_deco_Click);
//
// btn_fondu
//
this->btn_fondu->Location = System::Drawing::Point(623, 274);
this->btn_fondu->Name = L"btn_fondu";
this->btn_fondu->Size = System::Drawing::Size(96, 67);
this->btn_fondu->TabIndex = 40;
this->btn_fondu->Text = L"Fondu";
this->btn_fondu->UseVisualStyleBackColor = true;
this->btn_fondu->Click += gcnew System::EventHandler(this, &Form1::btn_fondu_Click);
//
// btn_fondu_noir
//
this->btn_fondu_noir->Location = System::Drawing::Point(623, 201);
this->btn_fondu_noir->Name = L"btn_fondu_noir";
this->btn_fondu_noir->Size = System::Drawing::Size(96, 67);
this->btn_fondu_noir->TabIndex = 41;
this->btn_fondu_noir->Text = L"Fondu noir";
this->btn_fondu_noir->UseVisualStyleBackColor = true;
this->btn_fondu_noir->Click += gcnew System::EventHandler(this, &Form1::btn_fondu_noir_Click);
//
// button1
//
this->button1->Location = System::Drawing::Point(11, 347);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(45, 25);
this->button1->TabIndex = 42;
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// button2
//
this->button2->Location = System::Drawing::Point(62, 347);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(45, 25);
this->button2->TabIndex = 43;
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// button3
//
this->button3->Location = System::Drawing::Point(113, 347);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(45, 25);
this->button3->TabIndex = 44;
this->button3->UseVisualStyleBackColor = true;
this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
//
// button4
//
this->button4->Location = System::Drawing::Point(164, 347);
this->button4->Name = L"button4";
this->button4->Size = System::Drawing::Size(45, 25);
this->button4->TabIndex = 45;
this->button4->UseVisualStyleBackColor = true;
this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
//
// button5
//
this->button5->Location = System::Drawing::Point(215, 347);
this->button5->Name = L"button5";
this->button5->Size = System::Drawing::Size(45, 25);
this->button5->TabIndex = 46;
this->button5->UseVisualStyleBackColor = true;
this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
//
// button6
//
this->button6->Location = System::Drawing::Point(266, 347);
this->button6->Name = L"button6";
this->button6->Size = System::Drawing::Size(45, 25);
this->button6->TabIndex = 47;
this->button6->UseVisualStyleBackColor = true;
this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
//
// button7
//
this->button7->Location = System::Drawing::Point(317, 347);
this->button7->Name = L"button7";
this->button7->Size = System::Drawing::Size(45, 25);
this->button7->TabIndex = 48;
this->button7->UseVisualStyleBackColor = true;
this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);
//
// button8
//
this->button8->Location = System::Drawing::Point(368, 347);
this->button8->Name = L"button8";
this->button8->Size = System::Drawing::Size(45, 25);
this->button8->TabIndex = 49;
this->button8->UseVisualStyleBackColor = true;
this->button8->Click += gcnew System::EventHandler(this, &Form1::button8_Click);
//
// button9
//
this->button9->Location = System::Drawing::Point(419, 347);
this->button9->Name = L"button9";
this->button9->Size = System::Drawing::Size(45, 25);
this->button9->TabIndex = 50;
this->button9->UseVisualStyleBackColor = true;
this->button9->Click += gcnew System::EventHandler(this, &Form1::button9_Click);
//
// button10
//
this->button10->Location = System::Drawing::Point(470, 347);
this->button10->Name = L"button10";
this->button10->Size = System::Drawing::Size(45, 25);
this->button10->TabIndex = 51;
this->button10->UseVisualStyleBackColor = true;
this->button10->Click += gcnew System::EventHandler(this, &Form1::button10_Click);
//
// button11
//
this->button11->Location = System::Drawing::Point(521, 347);
this->button11->Name = L"button11";
this->button11->Size = System::Drawing::Size(45, 25);
this->button11->TabIndex = 52;
this->button11->UseVisualStyleBackColor = true;
this->button11->Click += gcnew System::EventHandler(this, &Form1::button11_Click);
//
// button12
//
this->button12->Location = System::Drawing::Point(572, 347);
this->button12->Name = L"button12";
this->button12->Size = System::Drawing::Size(45, 25);
this->button12->TabIndex = 53;
this->button12->UseVisualStyleBackColor = true;
this->button12->Click += gcnew System::EventHandler(this, &Form1::button12_Click);
//
// menuStrip1
//
this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->fichierToolStripMenuItem,
this->editionToolStripMenuItem, this->configurationToolStripMenuItem});
this->menuStrip1->Location = System::Drawing::Point(0, 0);
this->menuStrip1->Name = L"menuStrip1";
this->menuStrip1->Size = System::Drawing::Size(729, 24);
this->menuStrip1->TabIndex = 54;
this->menuStrip1->Text = L"menuStrip1";
this->menuStrip1->ItemClicked += gcnew System::Windows::Forms::ToolStripItemClickedEventHandler(this, &Form1::menuStrip1_ItemClicked);
//
// fichierToolStripMenuItem
//
this->fichierToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->enregistrerToolStripMenuItem,
this->ouvrirToolStripMenuItem});
this->fichierToolStripMenuItem->Name = L"fichierToolStripMenuItem";
this->fichierToolStripMenuItem->Size = System::Drawing::Size(54, 20);
this->fichierToolStripMenuItem->Text = L"Fichier";
//
// enregistrerToolStripMenuItem
//
this->enregistrerToolStripMenuItem->Image = (cli::safe_cast(resources->GetObject(L"enregistrerToolStripMenuItem.Image")));
this->enregistrerToolStripMenuItem->Name = L"enregistrerToolStripMenuItem";
this->enregistrerToolStripMenuItem->Size = System::Drawing::Size(130, 22);
this->enregistrerToolStripMenuItem->Text = L"Enregistrer";
//
// ouvrirToolStripMenuItem
//
this->ouvrirToolStripMenuItem->Image = (cli::safe_cast(resources->GetObject(L"ouvrirToolStripMenuItem.Image")));
this->ouvrirToolStripMenuItem->Name = L"ouvrirToolStripMenuItem";
this->ouvrirToolStripMenuItem->Size = System::Drawing::Size(130, 22);
this->ouvrirToolStripMenuItem->Text = L"Ouvrir";
//
// editionToolStripMenuItem
//
this->editionToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->sequencesToolStripMenuItem});
this->editionToolStripMenuItem->Name = L"editionToolStripMenuItem";
this->editionToolStripMenuItem->Size = System::Drawing::Size(56, 20);
this->editionToolStripMenuItem->Text = L"Edition";
//
// sequencesToolStripMenuItem
//
this->sequencesToolStripMenuItem->Image = (cli::safe_cast(resources->GetObject(L"sequencesToolStripMenuItem.Image")));
this->sequencesToolStripMenuItem->Name = L"sequencesToolStripMenuItem";
this->sequencesToolStripMenuItem->Size = System::Drawing::Size(130, 22);
this->sequencesToolStripMenuItem->Text = L"Sequences";
//
// configurationToolStripMenuItem
//
this->configurationToolStripMenuItem->Name = L"configurationToolStripMenuItem";
this->configurationToolStripMenuItem->Size = System::Drawing::Size(93, 20);
this->configurationToolStripMenuItem->Text = L"Configuration";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::Color::White;
this->ClientSize = System::Drawing::Size(729, 381);
this->Controls->Add(this->button12);
this->Controls->Add(this->button11);
this->Controls->Add(this->button10);
this->Controls->Add(this->button9);
this->Controls->Add(this->button8);
this->Controls->Add(this->button7);
this->Controls->Add(this->button6);
this->Controls->Add(this->button5);
this->Controls->Add(this->button4);
this->Controls->Add(this->button3);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->btn_fondu_noir);
this->Controls->Add(this->btn_fondu);
this->Controls->Add(this->btn_deco);
this->Controls->Add(this->btn_conn);
this->Controls->Add(this->tb_ip);
this->Controls->Add(this->tb12);
this->Controls->Add(this->tb11);
this->Controls->Add(this->tb10);
this->Controls->Add(this->tb9);
this->Controls->Add(this->tb8);
this->Controls->Add(this->tb7);
this->Controls->Add(this->tb6);
this->Controls->Add(this->tb5);
this->Controls->Add(this->tb4);
this->Controls->Add(this->tb3);
this->Controls->Add(this->tb2);
this->Controls->Add(this->tb1);
this->Controls->Add(this->trackBar9);
this->Controls->Add(this->trackBar10);
this->Controls->Add(this->trackBar11);
this->Controls->Add(this->trackBar12);
this->Controls->Add(this->trackBar5);
this->Controls->Add(this->trackBar6);
this->Controls->Add(this->trackBar7);
this->Controls->Add(this->trackBar8);
this->Controls->Add(this->trackBar3);
this->Controls->Add(this->trackBar4);
this->Controls->Add(this->trackBar2);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->menuStrip1);
this->MainMenuStrip = this->menuStrip1;
this->Name = L"Form1";
this->Text = L"R�giLight";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &Form1::Form1_FormClosing);
(cli::safe_cast(this->trackBar1))->EndInit();
(cli::safe_cast(this->trackBar2))->EndInit();
(cli::safe_cast(this->trackBar3))->EndInit();
(cli::safe_cast(this->trackBar4))->EndInit();
(cli::safe_cast(this->trackBar5))->EndInit();
(cli::safe_cast(this->trackBar6))->EndInit();
(cli::safe_cast(this->trackBar7))->EndInit();
(cli::safe_cast(this->trackBar8))->EndInit();
(cli::safe_cast(this->trackBar9))->EndInit();
(cli::safe_cast(this->trackBar10))->EndInit();
(cli::safe_cast(this->trackBar11))->EndInit();
(cli::safe_cast(this->trackBar12))->EndInit();
this->menuStrip1->ResumeLayout(false);
this->menuStrip1->PerformLayout();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e)
{
connected = false;
manualEvent = gcnew ManualResetEvent( false );
}
private: System::Void Form1_FormClosing(System::Object^ sender, System::Windows::Forms::FormClosingEventArgs^ e)
{
if(connected == false)
{
}
else
{
newThread->Resume();
}
newThread->Abort();
delete newThread;
}
private: System::Void btn_con_Click(System::Object^ sender, System::EventArgs^ e)
{
if(connected == false)
{
connected = connection(connected);
threadDelegate = gcnew ThreadStart(this, &Form1::envoyer);
newThread = gcnew Thread(threadDelegate);
newThread->Start();
newThread->Suspend();
}
else
{
MessageBox::Show("Vous �tes d�j� conn�ct�","Attention",MessageBoxButtons::OK,MessageBoxIcon::Information);
}
}
private: System::Void btn_deco_Click(System::Object^ sender, System::EventArgs^ e)
{
if(connected == true)
{
delete newThread;
dmx[1] = 1;
connected = Reseau->fermer_connection(connected);
MessageBox::Show( "Vous vennez de vous deconnecter","Deconnection", MessageBoxButtons::OK,MessageBoxIcon::Hand);
}
else
{
MessageBox::Show( "Vous n'�tes pas connect� ","Deconnection", MessageBoxButtons::OK,MessageBoxIcon::Hand);
}
}
//Actions trackbar
//////////
private: System::Void trackBar1_Scroll(System::Object^ sender, System::EventArgs^ e)
{
difference = Groupe->calc_diff(1,trackBar1->Value,ancienne_val);
if(groupe[1] != 7)
{
gestion_groupe(1);
}
actualise_tb();
actualise_dmx();
//////signal que les action anterieurs on bien ete effectu�es
manualEvent->Set();
}
private: System::Void trackBar1_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
newThread->Resume();
}
private: System::Void trackBar1_MouseUp(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
newThread->Suspend();
}
////////
private: System::Void trackBar2_Scroll(System::Object^ sender, System::EventArgs^ e)
{
difference = Groupe->calc_diff(2,trackBar2->Value,ancienne_val);
if(groupe[2] != 7)
{
gestion_groupe(2);
}
actualise_tb();
actualise_dmx();
manualEvent->Set();
}
private: System::Void trackBar2_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
newThread->Resume();
}
private: System::Void trackBar2_MouseUp(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
newThread->Suspend();
}
//////////
private: System::Void trackBar3_Scroll(System::Object^ sender, System::EventArgs^ e)
{
difference = Groupe->calc_diff(2,trackBar2->Value,ancienne_val);
if(groupe[3] != 7)
{
gestion_groupe(3);
}
actualise_tb();
actualise_dmx();
manualEvent->Set();
}
//bouton groupage
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color = num_color +1;
switch (num_color)
{
case 1:
button1->Text= "1";
groupe[1] = 1;
break;
case 2:
button1->Text= "2";
groupe[1] = 2;
break;
case 3:
button1->Text= "3";
groupe[1] = 3;
break;
case 4:
button1->Text= "4";
groupe[1] = 4;
break;
case 5:
button1->Text= "5";
groupe[1] = 5;
break;
case 6:
button1->Text= "6";
groupe[1] = 6;
break;
case 7:
button1->Text= "";
groupe[1] = 7;
num_color = 0;
break;
}
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color2 = num_color2 +1;
switch (num_color2)
{
case 1:
button2->Text= "1";
groupe[2] = 1;
break;
case 2:
button2->Text= "2";
groupe[2] = 2;
break;
case 3:
button2->Text= "3";
groupe[2] = 3;
break;
case 4:
button2->Text= "4";
groupe[2] = 4;
break;
case 5:
button2->Text= "5";
groupe[2] = 5;
break;
case 6:
button2->Text= "6";
groupe[2] = 6;
break;
case 7:
button2->Text= "";
groupe[2] = 7;
num_color2 = 0;
break;
}
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color3 = num_color3 +1;
switch (num_color3)
{
case 1:
button3->Text= "1";
groupe[3] = 1;
break;
case 2:
button3->Text= "2";
groupe[3] = 2;
break;
case 3:
button3->Text= "3";
groupe[3] = 3;
break;
case 4:
button3->Text= "4";
groupe[3] = 4;
break;
case 5:
button3->Text= "5";
groupe[3] = 5;
break;
case 6:
button3->Text= "6";
groupe[3] = 6;
break;
case 7:
button3->Text= "";
groupe[3] = 7;
num_color3 = 0;
break;
}
}
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color4 = num_color4 +1;
switch (num_color4)
{
case 1:
button4->Text= "1";
groupe[4] = 1;
break;
case 2:
button4->Text= "2";
groupe[4] = 2;
break;
case 3:
button4->Text= "3";
groupe[4] = 3;
break;
case 4:
button4->Text= "4";
groupe[4] = 4;
break;
case 5:
button4->Text= "5";
groupe[4] = 5;
break;
case 6:
button4->Text= "6";
groupe[4] = 6;
break;
case 7:
button4->Text= "";
groupe[4] = 7;
num_color4 = 0;
break;
}
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color5 = num_color5 +1;
switch (num_color5)
{
case 1:
button5->Text= "1";
groupe[5] = 1;
break;
case 2:
button5->Text= "2";
groupe[5] = 2;
break;
case 3:
button5->Text= "3";
groupe[5] = 3;
break;
case 4:
button5->Text= "4";;
groupe[5] = 4;
break;
case 5:
button5->Text= "5";
groupe[5] = 5;
break;
case 6:
button5->Text= "6";
groupe[5] = 6;
break;
case 7:
button5->Text= "";
groupe[5] = 7;
num_color5 = 0;
break;
}
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color6 = num_color6 +1;
switch (num_color6)
{
case 1:
button6->Text= "1";
groupe[6] = 1;
break;
case 2:
button6->Text= "2";;
groupe[6] = 2;
break;
case 3:
button6->Text= "3";
groupe[6] = 3;
break;
case 4:
button6->Text= "4";
groupe[6] = 4;
break;
case 5:
button6->Text= "5";
groupe[6] = 5;
break;
case 6:
button6->Text= "6";
groupe[6] = 6;
break;
case 7:
button6->Text= "";
groupe[6] = 7;
num_color6 = 0;
break;
}
}
private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color7 = num_color7 +1;
switch (num_color7)
{
case 1:
button7->Text= "1";
groupe[7] = 1;
break;
case 2:
button7->Text= "2";;
groupe[7] = 2;
break;
case 3:
button7->Text= "3";
groupe[7] = 3;
break;
case 4:
button7->Text= "4";
groupe[7] = 4;
break;
case 5:
button7->Text= "5";
groupe[7] = 5;
break;
case 6:
button7->Text= "6";
groupe[7] = 6;
break;
case 7:
button7->Text= "";
groupe[7] = 7;
num_color7 = 0;
break;
}
}
private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color8 = num_color8 +1;
switch (num_color8)
{
case 1:
button8->Text= "1";
groupe[8] = 1;
break;
case 2:
button8->Text= "2";;
groupe[8] = 2;
break;
case 3:
button8->Text= "3";
groupe[8] = 3;
break;
case 4:
button8->Text= "4";
groupe[8] = 4;
break;
case 5:
button8->Text= "5";
groupe[8] = 5;
break;
case 6:
button8->Text= "6";
groupe[8] = 6;
break;
case 7:
button8->Text= "";
groupe[8] = 7;
num_color8 = 0;
break;
}
}
private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color9 = num_color9 +1;
switch (num_color9)
{
case 1:
button9->Text= "1";
groupe[9] = 1;
break;
case 2:
button9->Text= "2";;
groupe[9] = 2;
break;
case 3:
button9->Text= "3";
groupe[9] = 3;
break;
case 4:
button9->Text= "4";
groupe[9] = 4;
break;
case 5:
button9->Text= "5";
groupe[9] = 5;
break;
case 6:
button9->Text= "6";
groupe[9] = 6;
break;
case 7:
button9->Text= "";
groupe[9] = 7;
num_color9 = 0;
break;
}
}
private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color10 = num_color10 +1;
switch (num_color10)
{
case 1:
button10->Text= "1";
groupe[10] = 1;
break;
case 2:
button10->Text= "2";;
groupe[10] = 2;
break;
case 3:
button10->Text= "3";
groupe[10] = 3;
break;
case 4:
button10->Text= "4";
groupe[10] = 4;
break;
case 5:
button10->Text= "5";
groupe[10] = 5;
break;
case 6:
button10->Text= "6";
groupe[10] = 6;
break;
case 7:
button10->Text= "";
groupe[10] = 7;
num_color10 = 0;
break;
}
}
private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color11 = num_color11 +1;
switch (num_color11)
{
case 1:
button11->Text= "1";
groupe[11] = 1;
break;
case 2:
button11->Text= "2";;
groupe[11] = 2;
break;
case 3:
button11->Text= "3";
groupe[11] = 3;
break;
case 4:
button11->Text= "4";
groupe[11] = 4;
break;
case 5:
button11->Text= "5";
groupe[11] = 5;
break;
case 6:
button11->Text= "6";
groupe[11] = 6;
break;
case 7:
button11->Text= "";
groupe[11] = 7;
num_color11 = 0;
break;
}
}
private: System::Void button12_Click(System::Object^ sender, System::EventArgs^ e)
{
num_color12 = num_color12 +1;
switch (num_color12)
{
case 1:
button12->Text= "1";
groupe[12] = 1;
break;
case 2:
button12->Text= "2";;
groupe[12] = 2;
break;
case 3:
button12->Text= "3";
groupe[12] = 3;
break;
case 4:
button12->Text= "4";
groupe[12] = 4;
break;
case 5:
button12->Text= "5";
groupe[12] = 5;
break;
case 6:
button12->Text= "6";
groupe[12] = 6;
break;
case 7:
button12->Text= "";
groupe[12] = 7;
num_color12 = 0;
break;
}
}
private: System::Void btn_fondu_Click(System::Object^ sender, System::EventArgs^ e)
{
do
{
trackBar1->Value = trackBar1->Value -1 ;
Thread::Sleep(50);
}while(trackBar1->Value != 0 );
}
private: System::Void btn_fondu_noir_Click(System::Object^ sender, System::EventArgs^ e)
{
}
//fonctions et procedures
void envoyer()
{
//attend que les trackbar soient charg�es
manualEvent->WaitOne();
do
{
Reseau->envoyer(dmx);
// Reset l'attente du manualEvent
manualEvent->Reset();
}while(connected = true);
}
bool connection(bool connected)
{
adresse = tb_ip->Text;
port = 2013;
connected = Reseau->connection(adresse,port);
return connected;
}
void gestion_groupe(int trb)
{
if(difference != 0)
{
if(groupe[1] == groupe[trb])
{
try
{
if(trb != 1)trackBar1->Value = trackBar1->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar1->Value > 50)
{
trackBar1->Value = 100;
}
else
{
trackBar1->Value = 0;
}
}
ancienne_val[1] = trackBar1->Value;
}
if(groupe[2] == groupe[trb])
{
try
{
if(trb != 2)trackBar2->Value = trackBar2->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar2->Value > 50)
{
trackBar2->Value = 100;
}
else
{
trackBar2->Value = 0;
}
}
ancienne_val[2] = trackBar2->Value;
}
if(groupe[3] == groupe[trb])
{
try
{
if(trb != 3)trackBar3->Value = trackBar3->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar3->Value > 50)
{
trackBar3->Value = 100;
}
else
{
trackBar1->Value = 0;
}
}
ancienne_val[3] = trackBar3->Value;
}
if(groupe[4] == groupe[trb])
{
try
{
if(trb != 4)trackBar4->Value = trackBar4->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar4->Value > 50)
{
trackBar4->Value = 100;
}
else
{
trackBar4->Value = 0;
}
}
ancienne_val[4] = trackBar4->Value;
}
if(groupe[5] == groupe[trb])
{
try
{
if(trb != 5)trackBar5->Value = trackBar5->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar5->Value > 50)
{
trackBar5->Value = 100;
}
else
{
trackBar5->Value = 0;
}
}
ancienne_val[5] = trackBar5->Value;
}
if(groupe[6] == groupe[trb])
{
try
{
if(trb != 6)trackBar6->Value = trackBar6->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar6->Value > 50)
{
trackBar6->Value = 100;
}
else
{
trackBar6->Value = 0;
}
}
ancienne_val[6] = trackBar6->Value;
}
if(groupe[7] == groupe[trb])
{
try
{
if(trb != 7)trackBar7->Value = trackBar7->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar7->Value > 50)
{
trackBar7->Value = 100;
}
else
{
trackBar7->Value = 0;
}
}
ancienne_val[7] = trackBar7->Value;
}
if(groupe[8] == groupe[trb])
{
try
{
if(trb != 8)trackBar8->Value = trackBar8->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar8->Value > 50)
{
trackBar8->Value = 100;
}
else
{
trackBar8->Value = 0;
}
}
ancienne_val[8] = trackBar8->Value;
}
if(groupe[9] == groupe[trb])
{
try
{
if(trb != 9)trackBar9->Value = trackBar9->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar9->Value > 50)
{
trackBar9->Value = 100;
}
else
{
trackBar9->Value = 0;
}
}
ancienne_val[9] = trackBar9->Value;
}
if(groupe[10] == groupe[trb])
{
try
{
if(trb != 10)trackBar10->Value = trackBar10->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar10->Value > 50)
{
trackBar10->Value = 100;
}
else
{
trackBar10->Value = 0;
}
}
ancienne_val[10] = trackBar10->Value;
}
if(groupe[11] == groupe[trb])
{
try
{
if(trb != 11)trackBar11->Value = trackBar11->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar11->Value > 50)
{
trackBar11->Value = 100;
}
else
{
trackBar11->Value = 0;
}
}
ancienne_val[11] = trackBar11->Value;
}
if(groupe[12] == groupe[trb])
{
try
{
if(trb != 12)trackBar12->Value = trackBar12->Value + difference;
}
catch(Exception^ ArgumentOutOfRangeException)
{
if(trackBar12->Value > 50)
{
trackBar12->Value = 100;
}
else
{
trackBar12->Value = 0;
}
}
ancienne_val[12] = trackBar12->Value;
}
}
}
void actualise_dmx()
{
dmx[0] = (unsigned char)(trackBar1->Value * 2.55);
dmx[1] = (unsigned char)(trackBar2->Value * 2.55);
dmx[2] = (unsigned char)(trackBar3->Value * 2.55);
dmx[3] = (unsigned char)(trackBar4->Value * 2.55);
dmx[4] = (unsigned char)(trackBar5->Value * 2.55);
dmx[5] = (unsigned char)(trackBar6->Value * 2.55);
dmx[6] = (unsigned char)(trackBar7->Value * 2.55);
dmx[7] = (unsigned char)(trackBar8->Value * 2.55);
dmx[8] = (unsigned char)(trackBar9->Value * 2.55);
dmx[9] = (unsigned char)(trackBar10->Value * 2.55);
dmx[10] = (unsigned char)(trackBar11->Value * 2.55);
dmx[11] = (unsigned char)(trackBar12->Value * 2.55);
}
void actualise_tb()
{
tb1->Text = trackBar1->Value.ToString();
tb2->Text = trackBar2->Value.ToString();
tb3->Text = trackBar3->Value.ToString();
tb4->Text = trackBar4->Value.ToString();
tb5->Text = trackBar5->Value.ToString();
tb6->Text = trackBar6->Value.ToString();
tb7->Text = trackBar7->Value.ToString();
tb8->Text = trackBar8->Value.ToString();
tb9->Text = trackBar9->Value.ToString();
tb10->Text = trackBar10->Value.ToString();
tb11->Text = trackBar11->Value.ToString();
tb12->Text = trackBar12->Value.ToString();
}
private: System::Void trackBar3_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
}
private: System::Void trackBar3_MouseUp(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
{
}
private: System::Void menuStrip1_ItemClicked(System::Object^ sender, System::Windows::Forms::ToolStripItemClickedEventArgs^ e) {
}
} ;
}