IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Forms Discussion :

Problème remplissage ListBox


Sujet :

Windows Forms

  1. #1
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut Problème remplissage ListBox
    Bonjour à tous,


    J'ai développé une petite application Windows Form sous VisualStudio 2010 en C++/CLI (Windows 7) :
    jusque là tout se passait bien, mais quand j'ai voulu lancer mon application sur un poste tournant sur XP, même si celle-ci s'est lancée correctement,
    la listBox qui devait se remplir à l'initialisation de mon application était vide ..
    Je suis pourtant persuadé que cela ne vient pas de mon code, car cela fonctionne très bien sur Seven..

    Si vous avez des idées, je suis preneur !


    Merci

  2. #2
    Expert confirmé

    Homme Profil pro
    Responsable déploiement (SCCM, InTune, GPO)
    Inscrit en
    Juillet 2014
    Messages
    3 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Responsable déploiement (SCCM, InTune, GPO)
    Secteur : Transports

    Informations forums :
    Inscription : Juillet 2014
    Messages : 3 184
    Points : 5 755
    Points
    5 755
    Par défaut
    Tu n'aurai pas obsfuscer le code ?

    Si non, comment est remplie ta listbox et ou ?

  3. #3
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut
    Bonsoir Eric,


    Non je n'ai pas obfusqué mon code, du moins pas consciemment en tout cas !

    Du coup, je fais ça dans la méthode d'une classe qui gère spécialement cette listBox:

    Voici la méthode en question :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
     
    void SelectionListBox::addItem(std::string s) {
    	array<Object^>^ temp0 = gcnew array<Object^>(1);
    	temp0[0] = gcnew String(s.c_str());
    	_listBox->Items->AddRange(temp0);
     
    };

    Le fichier "header" de ma classe :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    ref class SelectionListBox
    {
    public:
    	SelectionListBox();
    	SelectionListBox(System::Windows::Forms::ListBox^  listBox1);
    	System::Windows::Forms::ListBox^  _listBox;
     
    	cliext::vector<Paramètre^> _parametres;
     
    	void addParametre(Paramètre^ parametre);
    	Paramètre^ getParametreSelectionne();
     
    	void addItem(std::string s);
    	//List<Paramètre> _parametre;
    	//List<Paramètre^> _parametres;
     
    };
    J'appelle ces méthodes lors de la création du graph de mon application (librairie ZedGraph):



    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    	private: void CreateGraph(ZedGraphControl^ zgc)
    	{
    		// get a reference to the GraphPane
    		GraphPane^ myPane = zgc->GraphPane;
     
     
    		System::Drawing::Color rouge = System::Drawing::Color::Red;
    		System::Drawing::Color bleu = System::Drawing::Color::Blue;
    		System::Drawing::Color jaune = System::Drawing::Color::Yellow;
    		SymbolType symbol = SymbolType::Star;
     
    		_graphique = gcnew Graphique(zedGraphControl1);
    		_selectionListBox = gcnew SelectionListBox(this->listBox1);
    		_parametrageBox = gcnew ParametrageBox();
     
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->label5, this->comboBox1, this->numericUpDown5));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->label6, this->comboBox2, this->numericUpDown6));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->label7, this->comboBox3, this->numericUpDown7));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->label8, this->comboBox4, this->numericUpDown8));
     
     
     
     
    		_controleurGraphique = gcnew ControleurGraphique(_graphique, _selectionListBox, _parametrageBox, this->label2);
    		_receiver = gcnew Receiver(_controleurGraphique, this->label2);
     
     
     
     
     
    		_selectionListBox->addParametre(gcnew Paramètre(...);
    		_selectionListBox->addParametre(gcnew Paramètre(...);
     
     
     
     
    		zgc->AxisChange();
    	}
    Merci !

  4. #4
    Expert confirmé

    Homme Profil pro
    Responsable déploiement (SCCM, InTune, GPO)
    Inscrit en
    Juillet 2014
    Messages
    3 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Responsable déploiement (SCCM, InTune, GPO)
    Secteur : Transports

    Informations forums :
    Inscription : Juillet 2014
    Messages : 3 184
    Points : 5 755
    Points
    5 755
    Par défaut
    Tu code en c++ ? Je ne suis pas très caler dans ce langage.

  5. #5
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut
    Oui en C++/CLI plus précisément, c'est le langage utilisé pour développer des applications de type Windows Form sur Visual C++ !

  6. #6
    Membre éclairé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Août 2010
    Messages
    479
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2010
    Messages : 479
    Points : 762
    Points
    762
    Par défaut
    Pourquoi passer par un arrau pour ajouter ton item ?
    Pareil jamais développé en CLI mais en DotNet ListBox a une methode add..
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    void SelectionListBox::addItem(std::string s) {
    	_listBox->Items->Add(s);
     
    };

  7. #7
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut
    Bonjour Lead,


    Effectivement, c'était idiot de ma part de le faire comme ça.. mais malheureusement cela ne modifie pas mon problème de base :
    la listBox se remplit toujours correctement lorsque l'application est lancée sur Windows7, et est toujours vide lorsque le programme
    est lancé sur Windows XP..

  8. #8
    Membre éclairé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Août 2010
    Messages
    479
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2010
    Messages : 479
    Points : 762
    Points
    762
    Par défaut
    hmmm est-ce que tu peux debugger ton programme sur Xp ?
    D'où viennent les items que tu ajoutes dans ta ListBox ?

    Dans quelle classe est CreateGraph ? On voit que tu fais l'appel au formulaire et tu passes une liste box dans le constructeur de ce formulaire ?
    Poste le constructeur de ta classe aussi stp.

  9. #9
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut
    Non, malheureusement.. pas moyen de débugger sur mon poste XP..

    Ci-dessous l'endroit où je charge ma listBox, dans une fenêtre :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
     
     
     
    #pragma once
    #include "Graphique.h"
    #include "Chargement_enregistrement.h"
    #include "ControleurGraphique.h"
    #include "ParametrageBox.h"
    #include "math.h"
    #include "Paramètre.h"
    #include "Receiver.h"
    #include "string.h"
    #include "direct.h"
    #include <ctime>
    #include "SelectionListBox.h"
    #include "ParametrageItem.h"
    #include <winsock2.h>
    #pragma comment(lib, "ws2_32.lib")
    #define PI 3,141592
    namespace ZedGraph {
     
    	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>
    	/// Summary for Form1
    	/// </summary>
    	public ref class Form1 : public System::Windows::Forms::Form
    	{
    	public:
    		Form1(void)
    		{
    			InitializeComponent();
    			//
    			//TODO: Add the constructor code here
    			//
    		}
    	int _minutes;
    	int _secondes;
     
     
    	int _consigneM;
    	int _consigneS;
    	private: System::Windows::Forms::Button^  button2;
    	private: System::Windows::Forms::ListBox^  listBox1;
    	private: System::Windows::Forms::Button^  button3;
    	public:
     
    		Graphique^ _graphique;
    		ControleurGraphique^ _controleurGraphique;
    	private: System::Windows::Forms::Button^  button4;
     
    	private: System::Windows::Forms::Label^  label1;
    	private: System::Windows::Forms::Label^  label8;
    	private: System::Windows::Forms::Label^  label7;
    	private: System::Windows::Forms::Label^  label6;
    	private: System::Windows::Forms::Label^  label5;
    	private: System::Windows::Forms::Label^  label4;
    	private: System::Windows::Forms::Label^  label3;
    	private: System::Windows::Forms::Label^  label2;
    	private: System::Windows::Forms::ComboBox^  comboBox4;
    	private: System::Windows::Forms::ComboBox^  comboBox3;
    	private: System::Windows::Forms::ComboBox^  comboBox2;
    	private: System::Windows::Forms::ComboBox^  comboBox1;
    	private: System::Windows::Forms::Button^  button5;
    	private: System::Windows::Forms::Button^  button6;
     
     
     
     
     
     
     
     
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown8;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown7;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown6;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown5;
    	private: System::Windows::Forms::Button^  button7;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown9;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown10;
    	private: System::Windows::Forms::TextBox^  textBox5;
    	private: System::Windows::Forms::TextBox^  textBox6;
    	private: System::Windows::Forms::ToolStrip^  toolStrip1;
    	private: System::Windows::Forms::ToolStripButton^  toolStripButton1;
    	private: System::Windows::Forms::ToolStripButton^  toolStripButton2;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown11;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown4;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown2;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown1;
    	private: System::Windows::Forms::Label^  label9;
    	private: System::Windows::Forms::Label^  label10;
    	private: System::Windows::Forms::Label^  label11;
    	private: System::Windows::Forms::Label^  label12;
    	private: System::Windows::Forms::Panel^  panel2;
    	private: System::Windows::Forms::Panel^  panel3;
    	private: System::Windows::Forms::Panel^  panel4;
    	private: System::Windows::Forms::Panel^  panel5;
    	private: System::Windows::Forms::Panel^  panel1;
    	private: System::Windows::Forms::Timer^  timer1;
    	private: System::Windows::Forms::Label^  label13;
    	private: System::Windows::Forms::OpenFileDialog^  openFileDialog1;
    	private: Microsoft::VisualBasic::PowerPacks::ShapeContainer^  shapeContainer1;
    	private: Microsoft::VisualBasic::PowerPacks::RectangleShape^  rectangleShape1;
     
     
     
     
     
     
     
    	public:
    	private: SelectionListBox^ _selectionListBox;
    	protected:
    		/// <summary>
    		/// Clean up any resources being used.
    		/// </summary>
    		~Form1()
    		{
    			if (components)
    			{
    				delete components;
    			}
    		}
    	private: ZedGraph::ZedGraphControl^  zedGraphControl1;
    	private: System::Windows::Forms::Button^  button1;
    	private: ParametrageBox^ _parametrageBox;
    	private: Receiver^ _receiver;
    			 //			 Graphique ^ _graphique;
    	protected:
    	private: System::ComponentModel::IContainer^  components;
     
    	private:
    		/// <summary>
    		/// Required designer variable.
    		/// </summary>
     
     
    #pragma region Windows Form Designer generated code
    		/// <summary>
    		/// Required method for Designer support - do not modify
    		/// the contents of this method with the code editor.
    		/// </summary>
    		void InitializeComponent(void)
    		{
    			this->components = (gcnew System::ComponentModel::Container());
    			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
    			this->zedGraphControl1 = (gcnew ZedGraph::ZedGraphControl());
    			this->button1 = (gcnew System::Windows::Forms::Button());
    			this->button2 = (gcnew System::Windows::Forms::Button());
    			this->listBox1 = (gcnew System::Windows::Forms::ListBox());
    			this->button3 = (gcnew System::Windows::Forms::Button());
    			this->button4 = (gcnew System::Windows::Forms::Button());
    			this->label8 = (gcnew System::Windows::Forms::Label());
    			this->label4 = (gcnew System::Windows::Forms::Label());
    			this->numericUpDown11 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown4 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown2 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown8 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown7 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown6 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown5 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->comboBox4 = (gcnew System::Windows::Forms::ComboBox());
    			this->comboBox3 = (gcnew System::Windows::Forms::ComboBox());
    			this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
    			this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
    			this->label7 = (gcnew System::Windows::Forms::Label());
    			this->label6 = (gcnew System::Windows::Forms::Label());
    			this->label5 = (gcnew System::Windows::Forms::Label());
    			this->label3 = (gcnew System::Windows::Forms::Label());
    			this->label2 = (gcnew System::Windows::Forms::Label());
    			this->label1 = (gcnew System::Windows::Forms::Label());
    			this->button5 = (gcnew System::Windows::Forms::Button());
    			this->button6 = (gcnew System::Windows::Forms::Button());
    			this->button7 = (gcnew System::Windows::Forms::Button());
    			this->numericUpDown9 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->numericUpDown10 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->textBox5 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox6 = (gcnew System::Windows::Forms::TextBox());
    			this->toolStrip1 = (gcnew System::Windows::Forms::ToolStrip());
    			this->toolStripButton1 = (gcnew System::Windows::Forms::ToolStripButton());
    			this->toolStripButton2 = (gcnew System::Windows::Forms::ToolStripButton());
    			this->label9 = (gcnew System::Windows::Forms::Label());
    			this->label10 = (gcnew System::Windows::Forms::Label());
    			this->label11 = (gcnew System::Windows::Forms::Label());
    			this->label12 = (gcnew System::Windows::Forms::Label());
    			this->panel2 = (gcnew System::Windows::Forms::Panel());
    			this->panel3 = (gcnew System::Windows::Forms::Panel());
    			this->panel4 = (gcnew System::Windows::Forms::Panel());
    			this->panel5 = (gcnew System::Windows::Forms::Panel());
    			this->panel1 = (gcnew System::Windows::Forms::Panel());
    			this->label13 = (gcnew System::Windows::Forms::Label());
    			this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
    			this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
    			this->shapeContainer1 = (gcnew Microsoft::VisualBasic::PowerPacks::ShapeContainer());
    			this->rectangleShape1 = (gcnew Microsoft::VisualBasic::PowerPacks::RectangleShape());
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown11))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown4))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown2))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown8))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown7))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown6))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown5))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown9))->BeginInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown10))->BeginInit();
    			this->toolStrip1->SuspendLayout();
    			this->panel2->SuspendLayout();
    			this->panel3->SuspendLayout();
    			this->panel4->SuspendLayout();
    			this->panel5->SuspendLayout();
    			this->panel1->SuspendLayout();
    			this->SuspendLayout();
    			// 
    			// zedGraphControl1
    			// 
    			this->zedGraphControl1->BackColor = System::Drawing::Color::Wheat;
    			this->zedGraphControl1->Location = System::Drawing::Point(12, 45);
    			this->zedGraphControl1->Name = L"zedGraphControl1";
    			this->zedGraphControl1->ScrollGrace = 0;
    			this->zedGraphControl1->ScrollMaxX = 0;
    			this->zedGraphControl1->ScrollMaxY = 0;
    			this->zedGraphControl1->ScrollMaxY2 = 0;
    			this->zedGraphControl1->ScrollMinX = 0;
    			this->zedGraphControl1->ScrollMinY = 0;
    			this->zedGraphControl1->ScrollMinY2 = 0;
    			this->zedGraphControl1->Size = System::Drawing::Size(1135, 441);
    			this->zedGraphControl1->TabIndex = 0;
    			// 
    			// button1
    			// 
    			this->button1->Location = System::Drawing::Point(348, 14);
    			this->button1->Name = L"button1";
    			this->button1->Size = System::Drawing::Size(75, 23);
    			this->button1->TabIndex = 1;
    			this->button1->Text = L"button1";
    			this->button1->UseVisualStyleBackColor = true;
    			// 
    			// button2
    			// 
    			this->button2->Location = System::Drawing::Point(431, 14);
    			this->button2->Name = L"button2";
    			this->button2->Size = System::Drawing::Size(168, 23);
    			this->button2->TabIndex = 2;
    			this->button2->Text = L"Lancement de l\'acquisition";
    			this->button2->UseVisualStyleBackColor = true;
    			this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
    			// 
    			// listBox1
    			// 
    			this->listBox1->FormattingEnabled = true;
    			this->listBox1->Location = System::Drawing::Point(3, 69);
    			this->listBox1->Name = L"listBox1";
    			this->listBox1->Size = System::Drawing::Size(120, 108);
    			this->listBox1->TabIndex = 3;
    			// 
    			// button3
    			// 
    			this->button3->Location = System::Drawing::Point(605, 14);
    			this->button3->Name = L"button3";
    			this->button3->Size = System::Drawing::Size(75, 23);
    			this->button3->TabIndex = 4;
    			this->button3->Text = L"button3";
    			this->button3->UseVisualStyleBackColor = true;
    			this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
    			// 
    			// button4
    			// 
    			this->button4->Location = System::Drawing::Point(5, 181);
    			this->button4->Name = L"button4";
    			this->button4->Size = System::Drawing::Size(119, 23);
    			this->button4->TabIndex = 5;
    			this->button4->Text = L"Ajouter courbe";
    			this->button4->UseVisualStyleBackColor = true;
    			this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
    			// 
    			// label8
    			// 
    			this->label8->AutoSize = true;
    			this->label8->Location = System::Drawing::Point(93, 16);
    			this->label8->Name = L"label8";
    			this->label8->Size = System::Drawing::Size(56, 13);
    			this->label8->TabIndex = 7;
    			this->label8->Text = L"Disponible";
    			// 
    			// label4
    			// 
    			this->label4->AutoSize = true;
    			this->label4->Location = System::Drawing::Point(13, 16);
    			this->label4->Name = L"label4";
    			this->label4->Size = System::Drawing::Size(50, 13);
    			this->label4->TabIndex = 3;
    			this->label4->Text = L"Courbe 4";
    			// 
    			// numericUpDown11
    			// 
    			this->numericUpDown11->DecimalPlaces = 1;
    			this->numericUpDown11->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown11->Location = System::Drawing::Point(96, 138);
    			this->numericUpDown11->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown11->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown11->Name = L"numericUpDown11";
    			this->numericUpDown11->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown11->TabIndex = 19;
    			// 
    			// numericUpDown4
    			// 
    			this->numericUpDown4->DecimalPlaces = 1;
    			this->numericUpDown4->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown4->Location = System::Drawing::Point(93, 138);
    			this->numericUpDown4->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown4->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown4->Name = L"numericUpDown4";
    			this->numericUpDown4->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown4->TabIndex = 19;
    			// 
    			// numericUpDown2
    			// 
    			this->numericUpDown2->DecimalPlaces = 1;
    			this->numericUpDown2->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown2->Location = System::Drawing::Point(91, 138);
    			this->numericUpDown2->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown2->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown2->Name = L"numericUpDown2";
    			this->numericUpDown2->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown2->TabIndex = 24;
    			// 
    			// numericUpDown1
    			// 
    			this->numericUpDown1->DecimalPlaces = 1;
    			this->numericUpDown1->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown1->Location = System::Drawing::Point(27, 138);
    			this->numericUpDown1->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown1->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown1->Name = L"numericUpDown1";
    			this->numericUpDown1->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown1->TabIndex = 23;
    			// 
    			// numericUpDown8
    			// 
    			this->numericUpDown8->DecimalPlaces = 1;
    			this->numericUpDown8->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown8->Location = System::Drawing::Point(9, 138);
    			this->numericUpDown8->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown8->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown8->Name = L"numericUpDown8";
    			this->numericUpDown8->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown8->TabIndex = 18;
    			// 
    			// numericUpDown7
    			// 
    			this->numericUpDown7->DecimalPlaces = 1;
    			this->numericUpDown7->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown7->Location = System::Drawing::Point(8, 138);
    			this->numericUpDown7->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown7->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown7->Name = L"numericUpDown7";
    			this->numericUpDown7->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown7->TabIndex = 18;
    			// 
    			// numericUpDown6
    			// 
    			this->numericUpDown6->DecimalPlaces = 1;
    			this->numericUpDown6->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown6->Location = System::Drawing::Point(6, 138);
    			this->numericUpDown6->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown6->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown6->Name = L"numericUpDown6";
    			this->numericUpDown6->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown6->TabIndex = 17;
    			// 
    			// numericUpDown5
    			// 
    			this->numericUpDown5->DecimalPlaces = 1;
    			this->numericUpDown5->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
    			this->numericUpDown5->Location = System::Drawing::Point(108, 138);
    			this->numericUpDown5->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {46000, 0, 0, 0});
    			this->numericUpDown5->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, System::Int32::MinValue});
    			this->numericUpDown5->Name = L"numericUpDown5";
    			this->numericUpDown5->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown5->TabIndex = 16;
    			// 
    			// comboBox4
    			// 
    			this->comboBox4->FormattingEnabled = true;
    			this->comboBox4->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Bleu", L"Rouge", L"Noir", L"Vert", L"Jaune"});
    			this->comboBox4->Location = System::Drawing::Point(96, 51);
    			this->comboBox4->Name = L"comboBox4";
    			this->comboBox4->Size = System::Drawing::Size(90, 21);
    			this->comboBox4->TabIndex = 11;
    			// 
    			// comboBox3
    			// 
    			this->comboBox3->FormattingEnabled = true;
    			this->comboBox3->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Bleu", L"Rouge", L"Noir", L"Vert", L"Jaune"});
    			this->comboBox3->Location = System::Drawing::Point(93, 51);
    			this->comboBox3->Name = L"comboBox3";
    			this->comboBox3->Size = System::Drawing::Size(85, 21);
    			this->comboBox3->TabIndex = 10;
    			// 
    			// comboBox2
    			// 
    			this->comboBox2->FormattingEnabled = true;
    			this->comboBox2->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Bleu", L"Rouge", L"Noir", L"Vert", L"Jaune"});
    			this->comboBox2->Location = System::Drawing::Point(72, 51);
    			this->comboBox2->Name = L"comboBox2";
    			this->comboBox2->Size = System::Drawing::Size(105, 21);
    			this->comboBox2->TabIndex = 9;
    			// 
    			// comboBox1
    			// 
    			this->comboBox1->FormattingEnabled = true;
    			this->comboBox1->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Bleu", L"Rouge", L"Noir", L"Vert", L"Jaune"});
    			this->comboBox1->Location = System::Drawing::Point(95, 51);
    			this->comboBox1->Name = L"comboBox1";
    			this->comboBox1->Size = System::Drawing::Size(79, 21);
    			this->comboBox1->TabIndex = 8;
    			// 
    			// label7
    			// 
    			this->label7->AutoSize = true;
    			this->label7->Location = System::Drawing::Point(79, 16);
    			this->label7->Name = L"label7";
    			this->label7->Size = System::Drawing::Size(56, 13);
    			this->label7->TabIndex = 6;
    			this->label7->Text = L"Disponible";
    			// 
    			// label6
    			// 
    			this->label6->AutoSize = true;
    			this->label6->Location = System::Drawing::Point(76, 16);
    			this->label6->Name = L"label6";
    			this->label6->Size = System::Drawing::Size(56, 13);
    			this->label6->TabIndex = 5;
    			this->label6->Text = L"Disponible";
    			// 
    			// label5
    			// 
    			this->label5->AutoSize = true;
    			this->label5->Location = System::Drawing::Point(92, 16);
    			this->label5->Name = L"label5";
    			this->label5->Size = System::Drawing::Size(56, 13);
    			this->label5->TabIndex = 4;
    			this->label5->Text = L"Disponible";
    			// 
    			// label3
    			// 
    			this->label3->AutoSize = true;
    			this->label3->Location = System::Drawing::Point(18, 16);
    			this->label3->Name = L"label3";
    			this->label3->Size = System::Drawing::Size(50, 13);
    			this->label3->TabIndex = 2;
    			this->label3->Text = L"Courbe 3";
    			// 
    			// label2
    			// 
    			this->label2->AutoSize = true;
    			this->label2->Location = System::Drawing::Point(14, 16);
    			this->label2->Name = L"label2";
    			this->label2->Size = System::Drawing::Size(50, 13);
    			this->label2->TabIndex = 1;
    			this->label2->Text = L"Courbe 2";
    			// 
    			// label1
    			// 
    			this->label1->AutoSize = true;
    			this->label1->Location = System::Drawing::Point(20, 16);
    			this->label1->Name = L"label1";
    			this->label1->Size = System::Drawing::Size(50, 13);
    			this->label1->TabIndex = 0;
    			this->label1->Text = L"Courbe 1";
    			// 
    			// button5
    			// 
    			this->button5->Location = System::Drawing::Point(713, 19);
    			this->button5->Name = L"button5";
    			this->button5->Size = System::Drawing::Size(289, 23);
    			this->button5->TabIndex = 7;
    			this->button5->Text = L"Paramétrer";
    			this->button5->UseVisualStyleBackColor = true;
    			this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
    			// 
    			// button6
    			// 
    			this->button6->Location = System::Drawing::Point(4, 210);
    			this->button6->Name = L"button6";
    			this->button6->Size = System::Drawing::Size(120, 23);
    			this->button6->TabIndex = 8;
    			this->button6->Text = L"Supprimer courbe";
    			this->button6->UseVisualStyleBackColor = true;
    			this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
    			// 
    			// button7
    			// 
    			this->button7->Location = System::Drawing::Point(713, 0);
    			this->button7->Name = L"button7";
    			this->button7->Size = System::Drawing::Size(289, 23);
    			this->button7->TabIndex = 9;
    			this->button7->Text = L"Réception donnée";
    			this->button7->UseVisualStyleBackColor = true;
    			this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);
    			// 
    			// numericUpDown9
    			// 
    			this->numericUpDown9->Location = System::Drawing::Point(143, 141);
    			this->numericUpDown9->Name = L"numericUpDown9";
    			this->numericUpDown9->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown9->TabIndex = 14;
    			// 
    			// numericUpDown10
    			// 
    			this->numericUpDown10->Location = System::Drawing::Point(5, 3);
    			this->numericUpDown10->Name = L"numericUpDown10";
    			this->numericUpDown10->Size = System::Drawing::Size(79, 20);
    			this->numericUpDown10->TabIndex = 15;
    			// 
    			// textBox5
    			// 
    			this->textBox5->Location = System::Drawing::Point(210, 167);
    			this->textBox5->Name = L"textBox5";
    			this->textBox5->Size = System::Drawing::Size(100, 20);
    			this->textBox5->TabIndex = 16;
    			// 
    			// textBox6
    			// 
    			this->textBox6->Location = System::Drawing::Point(100, 3);
    			this->textBox6->Name = L"textBox6";
    			this->textBox6->Size = System::Drawing::Size(100, 20);
    			this->textBox6->TabIndex = 17;
    			// 
    			// toolStrip1
    			// 
    			this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->toolStripButton1, 
    				this->toolStripButton2});
    			this->toolStrip1->Location = System::Drawing::Point(0, 0);
    			this->toolStrip1->Name = L"toolStrip1";
    			this->toolStrip1->Size = System::Drawing::Size(1169, 25);
    			this->toolStrip1->TabIndex = 18;
    			this->toolStrip1->Text = L"toolStrip1";
    			// 
    			// toolStripButton1
    			// 
    			this->toolStripButton1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
    			this->toolStripButton1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton1.Image")));
    			this->toolStripButton1->ImageTransparentColor = System::Drawing::Color::Magenta;
    			this->toolStripButton1->Name = L"toolStripButton1";
    			this->toolStripButton1->Size = System::Drawing::Size(23, 22);
    			this->toolStripButton1->Text = L"toolStripButton1";
    			this->toolStripButton1->Click += gcnew System::EventHandler(this, &Form1::toolStripButton1_Click);
    			// 
    			// toolStripButton2
    			// 
    			this->toolStripButton2->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
    			this->toolStripButton2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton2.Image")));
    			this->toolStripButton2->ImageTransparentColor = System::Drawing::Color::Magenta;
    			this->toolStripButton2->Name = L"toolStripButton2";
    			this->toolStripButton2->Size = System::Drawing::Size(23, 22);
    			this->toolStripButton2->Text = L"toolStripButton2";
    			this->toolStripButton2->Click += gcnew System::EventHandler(this, &Form1::toolStripButton2_Click);
    			// 
    			// label9
    			// 
    			this->label9->AutoSize = true;
    			this->label9->Location = System::Drawing::Point(20, 106);
    			this->label9->Name = L"label9";
    			this->label9->Size = System::Drawing::Size(86, 13);
    			this->label9->TabIndex = 25;
    			this->label9->Text = L"Plage de valeurs";
    			// 
    			// label10
    			// 
    			this->label10->AutoSize = true;
    			this->label10->Location = System::Drawing::Point(3, 106);
    			this->label10->Name = L"label10";
    			this->label10->Size = System::Drawing::Size(86, 13);
    			this->label10->TabIndex = 26;
    			this->label10->Text = L"Plage de valeurs";
    			// 
    			// label11
    			// 
    			this->label11->AutoSize = true;
    			this->label11->Location = System::Drawing::Point(5, 106);
    			this->label11->Name = L"label11";
    			this->label11->Size = System::Drawing::Size(86, 13);
    			this->label11->TabIndex = 27;
    			this->label11->Text = L"Plage de valeurs";
    			// 
    			// label12
    			// 
    			this->label12->AutoSize = true;
    			this->label12->Location = System::Drawing::Point(13, 106);
    			this->label12->Name = L"label12";
    			this->label12->Size = System::Drawing::Size(86, 13);
    			this->label12->TabIndex = 28;
    			this->label12->Text = L"Plage de valeurs";
    			// 
    			// panel2
    			// 
    			this->panel2->BackColor = System::Drawing::Color::PowderBlue;
    			this->panel2->Controls->Add(this->label1);
    			this->panel2->Controls->Add(this->label5);
    			this->panel2->Controls->Add(this->comboBox1);
    			this->panel2->Controls->Add(this->label9);
    			this->panel2->Controls->Add(this->numericUpDown1);
    			this->panel2->Controls->Add(this->numericUpDown5);
    			this->panel2->Location = System::Drawing::Point(150, 48);
    			this->panel2->Name = L"panel2";
    			this->panel2->Size = System::Drawing::Size(215, 185);
    			this->panel2->TabIndex = 19;
    			// 
    			// panel3
    			// 
    			this->panel3->BackColor = System::Drawing::Color::PowderBlue;
    			this->panel3->Controls->Add(this->label10);
    			this->panel3->Controls->Add(this->numericUpDown6);
    			this->panel3->Controls->Add(this->numericUpDown2);
    			this->panel3->Controls->Add(this->comboBox2);
    			this->panel3->Controls->Add(this->label6);
    			this->panel3->Controls->Add(this->label2);
    			this->panel3->Location = System::Drawing::Point(397, 48);
    			this->panel3->Name = L"panel3";
    			this->panel3->Size = System::Drawing::Size(215, 185);
    			this->panel3->TabIndex = 20;
    			// 
    			// panel4
    			// 
    			this->panel4->BackColor = System::Drawing::Color::PowderBlue;
    			this->panel4->Controls->Add(this->numericUpDown7);
    			this->panel4->Controls->Add(this->label11);
    			this->panel4->Controls->Add(this->numericUpDown4);
    			this->panel4->Controls->Add(this->comboBox3);
    			this->panel4->Controls->Add(this->label3);
    			this->panel4->Controls->Add(this->label7);
    			this->panel4->Location = System::Drawing::Point(636, 48);
    			this->panel4->Name = L"panel4";
    			this->panel4->Size = System::Drawing::Size(215, 185);
    			this->panel4->TabIndex = 21;
    			// 
    			// panel5
    			// 
    			this->panel5->BackColor = System::Drawing::Color::PowderBlue;
    			this->panel5->Controls->Add(this->label12);
    			this->panel5->Controls->Add(this->numericUpDown8);
    			this->panel5->Controls->Add(this->numericUpDown11);
    			this->panel5->Controls->Add(this->label8);
    			this->panel5->Controls->Add(this->comboBox4);
    			this->panel5->Controls->Add(this->label4);
    			this->panel5->Location = System::Drawing::Point(883, 48);
    			this->panel5->Name = L"panel5";
    			this->panel5->Size = System::Drawing::Size(215, 185);
    			this->panel5->TabIndex = 22;
    			// 
    			// panel1
    			// 
    			this->panel1->BackColor = System::Drawing::Color::Wheat;
    			this->panel1->Controls->Add(this->label13);
    			this->panel1->Controls->Add(this->panel5);
    			this->panel1->Controls->Add(this->panel4);
    			this->panel1->Controls->Add(this->button7);
    			this->panel1->Controls->Add(this->panel3);
    			this->panel1->Controls->Add(this->button6);
    			this->panel1->Controls->Add(this->panel2);
    			this->panel1->Controls->Add(this->listBox1);
    			this->panel1->Controls->Add(this->textBox6);
    			this->panel1->Controls->Add(this->button5);
    			this->panel1->Controls->Add(this->numericUpDown10);
    			this->panel1->Controls->Add(this->button4);
    			this->panel1->Controls->Add(this->button3);
    			this->panel1->Controls->Add(this->button2);
    			this->panel1->Controls->Add(this->button1);
    			this->panel1->Location = System::Drawing::Point(12, 478);
    			this->panel1->Name = L"panel1";
    			this->panel1->Size = System::Drawing::Size(1135, 265);
    			this->panel1->TabIndex = 23;
    			// 
    			// label13
    			// 
    			this->label13->AutoSize = true;
    			this->label13->Location = System::Drawing::Point(245, 14);
    			this->label13->Name = L"label13";
    			this->label13->Size = System::Drawing::Size(34, 13);
    			this->label13->TabIndex = 23;
    			this->label13->Text = L"00:00";
    			// 
    			// timer1
    			// 
    			this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick);
    			// 
    			// openFileDialog1
    			// 
    			this->openFileDialog1->FileName = L"openFileDialog1";
    			// 
    			// shapeContainer1
    			// 
    			this->shapeContainer1->Location = System::Drawing::Point(0, 0);
    			this->shapeContainer1->Margin = System::Windows::Forms::Padding(0);
    			this->shapeContainer1->Name = L"shapeContainer1";
    			this->shapeContainer1->Shapes->AddRange(gcnew cli::array< Microsoft::VisualBasic::PowerPacks::Shape^  >(1) {this->rectangleShape1});
    			this->shapeContainer1->Size = System::Drawing::Size(1169, 755);
    			this->shapeContainer1->TabIndex = 24;
    			this->shapeContainer1->TabStop = false;
    			// 
    			// rectangleShape1
    			// 
    			this->rectangleShape1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
    			this->rectangleShape1->BackStyle = Microsoft::VisualBasic::PowerPacks::BackStyle::Opaque;
    			this->rectangleShape1->Location = System::Drawing::Point(307, 12);
    			this->rectangleShape1->Name = L"rectangleShape1";
    			this->rectangleShape1->Size = System::Drawing::Size(200, 161);
    			// 
    			// Form1
    			// 
    			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
    			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
    			this->ClientSize = System::Drawing::Size(1169, 755);
    			this->Controls->Add(this->panel1);
    			this->Controls->Add(this->toolStrip1);
    			this->Controls->Add(this->zedGraphControl1);
    			this->Controls->Add(this->textBox5);
    			this->Controls->Add(this->numericUpDown9);
    			this->Controls->Add(this->shapeContainer1);
    			this->Name = L"Form1";
    			this->Text = L"Form1";
    			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
    			this->Resize += gcnew System::EventHandler(this, &Form1::Form1_Resize);
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown11))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown4))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown2))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown8))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown7))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown6))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown5))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown9))->EndInit();
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown10))->EndInit();
    			this->toolStrip1->ResumeLayout(false);
    			this->toolStrip1->PerformLayout();
    			this->panel2->ResumeLayout(false);
    			this->panel2->PerformLayout();
    			this->panel3->ResumeLayout(false);
    			this->panel3->PerformLayout();
    			this->panel4->ResumeLayout(false);
    			this->panel4->PerformLayout();
    			this->panel5->ResumeLayout(false);
    			this->panel5->PerformLayout();
    			this->panel1->ResumeLayout(false);
    			this->panel1->PerformLayout();
    			this->ResumeLayout(false);
    			this->PerformLayout();
     
    		}
    #pragma endregion
     
     
     
     
     
     
     
    	private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
     
     
    		CreateGraph(zedGraphControl1);
     
     
     
    		SetSize();
     
     
     
    	}
     
    	private: void CreateGraph(ZedGraphControl^ zgc)
    	{
    		// get a reference to the GraphPane
    		GraphPane^ myPane = zgc->GraphPane;
     
     
    		System::Drawing::Color rouge = System::Drawing::Color::Red;
    		System::Drawing::Color bleu = System::Drawing::Color::Blue;
    		System::Drawing::Color jaune = System::Drawing::Color::Yellow;
    		SymbolType symbol = SymbolType::Star;
     
    		_graphique = gcnew Graphique(zedGraphControl1,4);
     
    		_selectionListBox = gcnew SelectionListBox(this->listBox1);
    		_parametrageBox = gcnew ParametrageBox(4);
     
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->panel2,this->label5, this->comboBox1,this->numericUpDown1,this->numericUpDown5));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->panel3,this->label6, this->comboBox2,this->numericUpDown6,this->numericUpDown2));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->panel4,this->label7, this->comboBox3,this->numericUpDown7,this->numericUpDown4));
    		_parametrageBox->addParametrageItem(gcnew ParametrageItem(this->panel5,this->label8, this->comboBox4,this->numericUpDown8,this->numericUpDown11));
     
     
     
     
    		_controleurGraphique = gcnew ControleurGraphique(_graphique, _selectionListBox, _parametrageBox, this->label2);
    		_receiver = gcnew Receiver(_controleurGraphique, this->label2);
     
     
     
     
     
     
    		this->Text="Acquisition des données numériques du radar AGRION";
    		_selectionListBox->addParametre(gcnew Paramètre(" Parametre1  ", gcnew FormatCodage(CODAGE_DISCRET, UNDEFINED, 15, 15, 1), 4, 0x4));
    		_selectionListBox->addParametre(gcnew Paramètre("Parametre2 ", gcnew FormatCodage(CODAGE_DISCRET, UNDEFINED, 14, 14, 1), 4, 0x22));
    		_selectionListBox->addParametre(gcnew Paramètre("Parametre3 ", gcnew FormatCodage(CODAGE_BINAIRE, CODAGE_UNSIGNED, 12, 0, 5.6), 4, 0x22));
     
     
     
     
     
    		zgc->AxisChange();
    	}
     
    	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
     
     
     
    	}
     
    	private: void SetSize()
    	{
    		/*  zedGraphControl1.Location = new Point( 10, 10 );
    		// Leave a small margin around the outside of the control
    		zedGraphControl1.Size = new Size( ClientRectangle.Width - 20,
    		ClientRectangle.Height - 20 );*/
    	}
     
    	private: System::Void Form1_Resize(System::Object^  sender, System::EventArgs^  e) {
    		SetSize();
    	}
    	private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
     
     
     
     
     
     
     
     
     
    	}
    	private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
     
     
     
     
     
    			//zedGraphControl1->AxisChange();
    			zedGraphControl1->Refresh();
     
     
     
     
    				}*/
     
     
     
    	}
    	private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
    		_controleurGraphique->addParametreSelectionne(_selectionListBox->getParametreSelectionne(),this->label2);
     
    	}
     
     
    	private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
    		_parametrageBox->updateParametrageCourbes(this->label2);
    		zedGraphControl1->AxisChange();
    			zedGraphControl1->Refresh();
     
    		//_controleurGraphique->updateColor(this->label2);
     
    	}
    	private: System::Void button6_Click(System::Object^  sender, System::EventArgs^  e) {
    		_controleurGraphique->removeParametreSelectionne(_selectionListBox->getParametreSelectionne(), this->label2);
    			zedGraphControl1->Refresh();
    	}
    	private: System::Void button7_Click(System::Object^  sender, System::EventArgs^  e) {
    				this->timer1->Enabled=true;
     
    	}
     
    private: System::Void toolStripButton1_Click(System::Object^  sender, System::EventArgs^  e) {
     
    			 zedGraphControl1->SaveAsBitmap();
     
    		 }
     
     
     
    };
    }

    La classe de gestion de la listBox:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
     
     
    #pragma once
    #include <string>
    #include "Paramètre.h"
    #include "FormatCodage.h"
    #include <cliext/vector>
    	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::Collections::Generic;
     
    ref class SelectionListBox
    {
    public:
    	SelectionListBox();
    	SelectionListBox(System::Windows::Forms::ListBox^  listBox1);
    	System::Windows::Forms::ListBox^  _listBox;
     
    	cliext::vector<Paramètre^> _parametres;
     
    	void addParametre(Paramètre^ parametre);
    	Paramètre^ getParametreSelectionne();
     
    	void addItem(std::string s);
    	//List<Paramètre> _parametre;
    	//List<Paramètre^> _parametres;
     
    };

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
     
     
    #include "StdAfx.h"
    #include "SelectionListBox.h"
     
    #include <msclr\marshal_cppstd.h>
    SelectionListBox::SelectionListBox(){
     
     
     
     
    }
     
     
    SelectionListBox::SelectionListBox(System::Windows::Forms::ListBox^  listBox)
    {
    			_listBox=listBox;
    }
     
     
    void SelectionListBox::addItem(std::string s){
     
    	_listBox->Items->Add( gcnew String( s.c_str() ) );
    	//_listBox->Items->AddRange(s);
     
     
     
    };
     
     
    void SelectionListBox::addParametre(Paramètre^ parametre){
    	_parametres.push_back(parametre);
    	msclr::interop::marshal_context context;
        std::string standardString = context.marshal_as<std::string>(parametre->getNom());
    	//Object^ chaine=gcnew String(parametre->getNom().c_str());
    	this->addItem(standardString);
    }
     
     
    Paramètre^ SelectionListBox::getParametreSelectionne(){return _parametres.at(_listBox->SelectedIndex);}

  10. #10
    Membre éclairé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Août 2010
    Messages
    479
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2010
    Messages : 479
    Points : 762
    Points
    762
    Par défaut
    Mouais pas facile de dire comme ça. Je ne vois rien de particulier.
    Essaye de mettre des logs dans un fichier au pire sur les grosses étapes.
    Déjà est-ce que la liste est peuplée ou bien est-elle vide ?
    Si vide c'est le remplissage qui foire. A quel niveau ?

    Et puis pourquoi sur Xp ? C'est plus supporté y'a des raisons hein ^^

  11. #11
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2013
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2013
    Messages : 27
    Points : 12
    Points
    12
    Par défaut
    Bonjour Lead,


    J'utilise ces moyens techniques et cette configuration car c'est celle qui m'a été proposée, je dois faire avec, c'est indépendant de ma volonté !



    J'ai trouvé le problème : il ne fallait pas initialiser mes objets graphiques dans des méthodes d'initialisation un peu "spéciales", comme par exemple createGraph() ..
    Une fois l'initialisation placée dans le constructeur, plus de problèmes !

    J'ai obtenu la même erreur autre part dans mon programme, quand j'ai voulu écrire dans un fichier .txt, à moi maintenant de trouver un bout de code compatible aux 2 configurations !

    Merci pour ton aide !

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [XL-2007] Probléme remplissage d'une listbox et filtrage avec comboBox
    Par Nejjar_med dans le forum Macros et VBA Excel
    Réponses: 0
    Dernier message: 29/07/2013, 13h17
  2. [VBA-E] Problème de ListBox
    Par sat478 dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 20/06/2007, 10h42
  3. Remplissage ListBox
    Par beb30 dans le forum MFC
    Réponses: 4
    Dernier message: 29/03/2006, 10h11
  4. [VBA-A]Remplissage ListBox
    Par cuicui08 dans le forum VBA Access
    Réponses: 18
    Dernier message: 27/02/2006, 11h05
  5. [C#] remplissage listBox avec un dataSet
    Par aymron dans le forum ASP.NET
    Réponses: 5
    Dernier message: 18/10/2005, 10h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo