-
Notifications
You must be signed in to change notification settings - Fork 8
/
frmOBD2Scan.cs
6762 lines (6636 loc) · 287 KB
/
frmOBD2Scan.cs
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
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using SAE.J2534;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Globalization;
using System.IO;
using System.IO.Ports;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
using DarkUI.Controls;
using DarkUI.Forms;
public class frmOBD2Scan : DarkForm
{
public int int_0;
public static Color color_0 = Color.PaleVioletRed;
public static Color color_1 = Color.OrangeRed;
public static Color color_2 = Color.Azure;
public static Color color_3 = Color.BlanchedAlmond;
public static Color color_4 = Color.CornflowerBlue;
public static Color color_5 = Color.Firebrick;
public static Color color_6 = Color.PaleGoldenrod;
public static int int_1 = 15;
public static bool bool_0;
public static string string_0;
public static string string_1;
private Thread thread_0;
private string[] string_2;
private string[] string_3;
private string[] string_4;
public static bool bool_1 = false;
private bool bool_2;
public static bool bool_3;
private int int_2;
private SerialPort serialPort_0;
private Channel channel_0;
private API api_0;
private Device device_0;
private APIInfo apiinfo_0;
private int int_3;
private bool bool_4;
private StringBuilder stringBuilder_0 = new StringBuilder();
private string string_5;
private string string_6 = "";
private int int_4;
private ArrayList arrayList_0 = new ArrayList();
private bool bool_5 = true;
private int int_5;
private int int_6;
private int int_7;
private int int_8;
private int int_9;
private int int_10;
private int int_11;
private int int_12;
private int int_13;
private int int_14;
private int int_15;
private int int_16;
private int int_17;
private int int_18;
private int int_19;
private int int_20;
private int int_21;
private int int_22;
private int int_23;
private int int_24;
private int int_25;
private int int_26;
private int int_27;
private int int_28;
private int int_29;
private int int_30;
private int int_31;
private int int_32;
private int int_33;
private int int_34;
private int int_35;
private int int_36;
private int int_37;
private int int_38;
private int int_39;
private int int_40;
private int int_41;
private int int_42;
private int int_43;
private int int_44;
private int int_45;
private int int_46;
private int int_47;
private int int_48;
private int int_49;
private int int_50;
private int int_51;
private int int_52;
private int int_53;
private int int_54;
private int int_55;
private int int_56;
private int int_57;
private int int_58;
private int int_59;
private int int_60;
private int int_61;
private int int_62;
private int int_63;
private int int_64;
private int int_65;
private int int_66;
private int int_67;
private int int_68;
private int int_69;
private int int_70;
private int int_71;
private int int_72;
private int int_73;
private int int_74;
private int int_75;
private int int_76;
private int int_77;
private int int_78;
private int int_79;
private int int_80;
private int int_81;
private int int_82;
private int int_83;
private int int_84;
private int int_85;
private int int_86;
private int int_87;
private int int_88;
private int int_89;
private int int_90;
private int int_91;
private int int_92;
private int int_93;
private int int_94;
private int int_95;
private int int_96;
private int int_97;
private int int_98;
private int int_99;
private int int_100;
private int int_101;
private int int_102;
private int int_103;
private int int_104;
private int int_105;
private int int_106;
private int int_107;
private int int_108;
private int int_109;
private int int_110;
private int int_111;
private int int_112;
private int int_113;
private int int_114;
private int int_115;
private int int_116;
private int int_117;
private int int_118;
private int int_119;
private int int_120;
private int int_121;
private int int_122;
private int int_123;
private int int_124;
private int int_125;
private int int_126;
private int int_127;
private int int_128;
private int int_129;
private int int_130;
private int int_131;
private int int_132;
private int int_133;
private int int_134;
private int int_135;
private int int_136;
private int int_137;
private int int_138;
private int int_139;
private int int_140;
private int int_141;
private int int_142;
private int int_143;
private int int_144;
private int int_145;
private int int_146;
private int int_147;
private int int_148;
private int int_149;
private int int_150;
private int int_151;
private int int_152;
private int int_153;
private int int_154;
private int int_155;
private int int_156;
private int int_157;
private int int_158;
private int int_159;
private int int_160;
private int int_161;
private int int_162;
private int int_163;
private int int_164;
private int int_165;
private int int_166;
private int int_167;
private int int_168;
private int int_169;
private int int_170;
private int int_171;
private int int_172;
private int int_173;
private int int_174;
private int int_175;
private int int_176;
private int int_177;
private int int_178;
private int int_179;
private int int_180;
private int int_181;
private int int_182;
private string string_7 = "000";
private string string_8 = "000";
private string string_9;
private string string_10;
private string string_11 = "0";
private string string_12;
private string string_13;
private string string_14;
private string string_15;
private string string_16;
private string string_17;
private string string_18;
private int int_183;
private bool bool_6;
private int int_184;
private bool bool_7 = true;
private double double_0;
private List<string> list_0 = new List<string>();
private TableLayoutPanel tableLayoutPanel1;
private TabPage tabPage7;
private TabPage tabPage5;
private TabPage tabPage6;
private TableLayoutPanel tableLayoutPanel2;
private TableLayoutPanel tableLayoutPanel3;
private TableLayoutPanel tableLayoutPanel6;
private DarkGroupBox groupBox2;
private DarkButton ClearTable;
private DarkButton StopTable;
private DarkComboBox comboV;
private DarkLabel labelL;
private DarkComboBox comboY;
private DarkLabel labely;
private DarkComboBox comboX;
private DarkLabel labelx;
public DarkDataGridView dataGridView_0;
private TableLayoutPanel tableLayoutPanel5;
public DarkButton GColourLF;
private DarkButton GColourL4;
private DarkButton GColourL3;
private DarkButton GColourL2;
private DarkButton GColourL1;
public DarkButton GColour2;
private DarkLabel label4;
public DarkButton GColour1;
private TableLayoutPanel tableLayoutPanel4;
private TableLayoutPanel tableLayoutPanel7;
private IContainer icontainer_0;
private DarkButton Gstart;
private PerfChart livegraph1;
private DarkComboBox Graph4;
private DarkComboBox Graph3;
private DarkComboBox Graph2;
private DarkComboBox Graph1;
private System.Windows.Forms.Timer timer_0;
private PerfChart livegraph4;
private PerfChart livegraph3;
private DarkLabel label6;
private DarkLabel label5;
private DarkButton StartTable;
private System.Windows.Forms.Timer timer_1;
private DarkLabel label9;
private DarkLabel label8;
private DarkLabel label7;
private MaskedTextBox maskedTextBox1;
private DarkComboBox comboBox1;
private DarkLabel label10;
private DarkLabel label11;
private DarkLabel label13;
private MaskedTextBox maskedTextBox2;
private DarkLabel label12;
private DarkComboBox comboBox2;
private ColorDialog colorDialog_0;
private DarkLabel label14;
private DarkComboBox comboBox3;
private PerfChart livegraph2;
private string string_19;
private DarkCheckBox cbJ2534;
private TableLayoutPanel tableLayoutPanel11;
private TableLayoutPanel tableLayoutPanel12;
private DarkLabel G4L;
private DarkLabel G3L;
private DarkLabel G2L;
public static string string_20 = "";
public static int int_185;
public static int int_186 = 0;
private DarkLabel G1L;
private bool bool_8;
private bool bool_9;
private static bool bool_10 = true;
public static bool bool_11;
public static float float_0;
public static float float_1;
public static float float_2;
public static int int_187;
public static float float_3;
public static float float_4;
public static float float_5;
public static float float_6;
public static int int_188;
public static float float_7;
public static float float_8;
public static float float_9;
public static float float_10;
public static int int_189;
public static float float_11;
public static float float_12;
public static float float_13;
public static float float_14;
public static float float_15;
public static int int_190;
public static int int_191;
public static int int_192;
public static int int_193;
private DarkTabControl tabControl1;
private TabPage tabPage1;
private TabPage tabPage2;
private TabPage tabPage3;
private DarkGroupBox groupBox1;
private DarkLabel label3;
private DarkLabel label2;
private DarkGroupBox gbConnection;
private DarkLabel label1;
private DarkLabel descPort;
private DarkComboBox cbBaud;
private DarkComboBox cbPort;
private DarkGroupBox groupBox4;
private DarkTextBox txtDTCD;
private DarkButton ClearDTC;
private DarkButton ButtonReadCEL;
private DarkListBox listBoxCEL;
private DarkGroupBox groupBox5;
private DarkButton button2;
private TrackBar trackBar1;
private ClassListView listViewLive;
private ColumnHeader columnHeader_0;
private ColumnHeader columnHeader_1;
private ColumnHeader columnHeader_2;
private ColumnHeader columnHeader_3;
private ColumnHeader columnHeader_4;
private DarkListBox listBoxPIDs;
private System.Windows.Forms.Timer timer_2;
private System.Windows.Forms.Timer timer_3;
private System.Windows.Forms.Timer timer_4;
private DarkButton button1;
private System.Windows.Forms.Timer timer_5;
private TabPage tabPage4;
private DarkGroupBox gbStatus;
private ListView lvLog;
private ColumnHeader columnHeader_5;
private DarkButton buttonclear;
private System.Windows.Forms.Timer timer_6;
private IContainer components;
private DarkLabel descRate;
private ToolTip toolTip_0;
internal frmOBD2Scan()
{
color_0 = Color.PaleVioletRed;
color_1 = Color.OrangeRed;
color_2 = Color.Azure;
color_3 = Color.BlanchedAlmond;
color_4 = Color.CornflowerBlue;
color_5 = Color.Firebrick;
color_6 = Color.PaleGoldenrod;
this.InitializeComponent();
this.method_0();
NewInitit();
if (bool_3)
{
base.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
this.method_18();
this.label1.Text = "To identify the correct port, Unplug device && note available ports" + Environment.NewLine + "Connect device & select the new entry. Then Click Connect button down the bottom.";
}
private void button1_Click(object sender, EventArgs e)
{
if (!this.bool_8)
{
if (this.int_2 == 0)
{
this.int_2 = 3;
this.method_18();
this.bool_4 = true;
try
{
this.serialPort_0 = new SerialPort(this.cbPort.Text, int.Parse(this.cbBaud.Text), Parity.None, 8, StopBits.One);
this.serialPort_0.Open();
this.int_3 = 0;
this.stringBuilder_0.Clear();
this.timer_2.Enabled = true;
this.serialPort_0.Write("ATWS\r");
this.timer_5.Enabled = true;
this.method_11();
}
catch
{
MessageBox.Show("Something Went Wrong Trying To Open Port.");
this.int_2 = 0;
this.method_18();
}
}
else if (this.int_2 == 1)
{
if (!this.bool_8)
{
this.method_9();
this.int_2 = 0;
this.method_18();
}
else
{
this.int_2 = 0;
this.method_18();
bool_11 = false;
this.bool_4 = false;
this.method_21("Connection closed automatically.");
this.int_2 = 0;
this.method_18();
}
}
else
{
this.method_9();
this.int_2 = 0;
this.method_18();
}
}
else if (this.int_2 == 0)
{
this.int_2 = 3;
this.bool_4 = true;
if (!bool_10)
{
using (API api = APIFactory.GetAPI(this.string_19))
{
using (Device device = api.GetDevice(""))
{
using (Channel channel = device.GetChannel(Protocol.CAN, Baud.CAN, ConnectFlag.NONE, false))
{
byte[] match = new byte[4];
match[2] = 7;
match[3] = 0xe8;
channel.StartMsgFilter(new MessageFilter(UserFilterType.PASS, match));
SConfig[] sConfig = new SConfig[] { new SConfig(Parameter.LOOP_BACK, 1) };
channel.SetConfig(sConfig);
}
}
}
}
this.timer_2.Enabled = true;
this.bool_4 = false;
this.int_2 = 1;
this.method_18();
}
else if (this.int_2 == 1)
{
this.int_2 = 0;
this.method_18();
bool_11 = false;
this.timer_6.Enabled = false;
this.timer_2.Enabled = false;
Thread.Sleep(0x4b0);
this.bool_4 = false;
this.thread_0.Abort();
this.thread_0 = null;
this.method_21("Connection closed automatically.");
this.int_2 = 0;
this.method_18();
}
}
private void button2_Click(object sender, EventArgs e)
{
this.timer_4.Interval = int_1;
if (this.listViewLive.Items.Count != 0)
{
if (!this.timer_4.Enabled)
{
if (!bool_10)
{
int num = 0;
foreach (ListViewItem item1 in this.listViewLive.Items)
{
this.list_0.Add(this.listViewLive.Items[num].SubItems[0].Text);
num++;
}
this.int_184 = 0;
}
this.timer_4.Enabled = true;
this.timer_6.Enabled = true;
this.listBoxPIDs.Enabled = false;
this.button2.Text = "Stop Logging";
}
else
{
this.int_184 = 0;
this.timer_4.Enabled = false;
this.timer_6.Enabled = false;
this.button2.Text = "Start Logging";
if (!bool_10)
{
this.listBoxPIDs.Enabled = true;
}
}
}
}
private void buttonclear_Click(object sender, EventArgs e)
{
this.lvLog.Clear();
}
private void ButtonReadCEL_Click(object sender, EventArgs e)
{
this.txtDTCD.Text = "";
this.listBoxCEL.Items.Clear();
this.method_19("03");
}
private void cbJ2534_CheckStateChanged(object sender, EventArgs e)
{
if (!this.cbJ2534.Checked)
{
this.cbJ2534.Checked = false;
this.bool_8 = false;
}
else
{
this.bool_8 = true;
GForm_J2534Select select = new GForm_J2534Select();
if (select.ShowDialog() != DialogResult.OK)
{
this.cbJ2534.Checked = false;
}
else
{
try
{
this.string_19 = select.APIInfo_0.Filename;
}
catch
{
this.cbJ2534.Checked = false;
}
}
select.Dispose();
}
bool_0 = this.cbJ2534.Checked;
}
private void cbPort_SelectedValueChanged(object sender, EventArgs e)
{
string_1 = this.cbPort.Text;
string_0 = this.cbBaud.Text;
}
private void ClearDTC_Click(object sender, EventArgs e)
{
this.method_19("04");
}
private void frmOBD2Scan_FormClosing(object sender, FormClosingEventArgs e)
{
if ((this.serialPort_0 != null) && this.serialPort_0.IsOpen)
{
bool_1 = false;
this.serialPort_0.Close();
}
if (bool_11)
{
bool_11 = false;
this.int_2 = 0;
this.timer_6.Enabled = false;
this.timer_2.Enabled = false;
this.method_18();
this.bool_4 = false;
this.method_21("Connection closed automatically.");
this.int_2 = 0;
this.method_18();
}
}
private void frmOBD2Scan_Load(object sender, EventArgs e)
{
this.cbBaud.Text = string_0;
this.method_2();
this.method_1();
this.groupBox5.Text = "Refresh rate: " + int_1.ToString() + "ms";
this.trackBar1.Value = int_1;
this.cbJ2534.Checked = bool_0;
}
private void GColour1_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColour1.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColour2_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColour2.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColourL1_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColourL1.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColourL2_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColourL2.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColourL3_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColourL3.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColourL4_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColourL4.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void GColourLF_Click(object sender, EventArgs e)
{
if (this.colorDialog_0.ShowDialog() == DialogResult.OK)
{
this.GColourLF.BackColor = this.colorDialog_0.Color;
this.method_1();
}
}
private void Graph1_SelectedIndexChanged(object sender, EventArgs e)
{
this.G1L.Text = this.Graph1.Text;
}
private void Graph2_SelectedIndexChanged(object sender, EventArgs e)
{
this.G2L.Text = this.Graph2.Text;
}
private void Graph3_SelectedIndexChanged(object sender, EventArgs e)
{
this.G3L.Text = this.Graph3.Text;
}
private void Graph4_SelectedIndexChanged(object sender, EventArgs e)
{
this.G4L.Text = this.Graph4.Text;
}
private void Gstart_Click(object sender, EventArgs e)
{
if (this.Gstart.Text == "Start")
{
this.timer_0.Enabled = true;
this.Gstart.Text = "Stop";
}
else
{
this.Gstart.Text = "Start";
this.timer_0.Enabled = false;
}
}
private void NewInitit()
{
GClass4 class2 = new GClass4();
GClass4 class3 = new GClass4();
GClass4 class4 = new GClass4();
GClass4 class5 = new GClass4();
GClass4 class6 = new GClass4();
GClass4 class7 = new GClass4();
GClass4 class8 = new GClass4();
GClass4 class9 = new GClass4();
GClass4 class10 = new GClass4();
GClass4 class11 = new GClass4();
GClass4 class12 = new GClass4();
GClass4 class13 = new GClass4();
GClass4 class14 = new GClass4();
GClass4 class15 = new GClass4();
GClass4 class16 = new GClass4();
GClass4 class17 = new GClass4();
class2.Color_0 = Color.FromArgb(0xc0, 0xc0, 0);
class2.DashStyle_0 = DashStyle.Solid;
class2.Single_0 = 2f;
class3.Color_0 = Color.Black;
class3.DashStyle_0 = DashStyle.Solid;
class3.Single_0 = 5f;
class4.Color_0 = Color.Black;
class4.DashStyle_0 = DashStyle.Solid;
class4.Single_0 = 1f;
class5.Color_0 = Color.Black;
class5.DashStyle_0 = DashStyle.Solid;
class5.Single_0 = 1f;
class6.Color_0 = Color.Fuchsia;
class6.DashStyle_0 = DashStyle.Solid;
class6.Single_0 = 2f;
class7.Color_0 = Color.Fuchsia;
class7.DashStyle_0 = DashStyle.Solid;
class7.Single_0 = 5f;
class8.Color_0 = Color.Black;
class8.DashStyle_0 = DashStyle.Solid;
class8.Single_0 = 1f;
class9.Color_0 = Color.Black;
class9.DashStyle_0 = DashStyle.Solid;
class9.Single_0 = 1f;
class10.Color_0 = Color.Blue;
class10.DashStyle_0 = DashStyle.Solid;
class10.Single_0 = 2f;
class11.Color_0 = Color.Blue;
class11.DashStyle_0 = DashStyle.Solid;
class11.Single_0 = 5f;
class12.Color_0 = Color.Black;
class12.DashStyle_0 = DashStyle.Solid;
class12.Single_0 = 1f;
class13.Color_0 = Color.Black;
class13.DashStyle_0 = DashStyle.Solid;
class13.Single_0 = 1f;
class14.Color_0 = Color.Turquoise;
class14.DashStyle_0 = DashStyle.Solid;
class14.Single_0 = 2f;
class15.Color_0 = Color.Red;
class15.DashStyle_0 = DashStyle.Solid;
class15.Single_0 = 5f;
class16.Color_0 = Color.Black;
class16.DashStyle_0 = DashStyle.Solid;
class16.Single_0 = 1f;
class17.Color_0 = Color.Black;
class17.DashStyle_0 = DashStyle.Solid;
class17.Single_0 = 1f;
this.livegraph4 = new PerfChart();
this.livegraph3 = new PerfChart();
this.livegraph2 = new PerfChart();
this.livegraph1 = new PerfChart();
this.tableLayoutPanel11.Controls.Add(this.livegraph4, 1, 3);
this.tableLayoutPanel11.Controls.Add(this.G4L, 0, 3);
this.tableLayoutPanel11.Controls.Add(this.tableLayoutPanel12, 1, 4);
this.tableLayoutPanel11.Controls.Add(this.G3L, 0, 2);
this.tableLayoutPanel11.Controls.Add(this.livegraph3, 1, 2);
this.tableLayoutPanel11.Controls.Add(this.G2L, 0, 1);
this.tableLayoutPanel11.Controls.Add(this.livegraph2, 1, 1);
this.tableLayoutPanel11.Controls.Add(this.G1L, 0, 0);
this.tableLayoutPanel11.Controls.Add(this.livegraph1, 1, 0);
this.livegraph4.Border3DStyle_0 = Border3DStyle.Flat;
this.livegraph4.Dock = DockStyle.Fill;
this.livegraph4.Font = new Font("Comic Sans MS", 12f, FontStyle.Bold);
this.livegraph4.Location = new Point(0x3b, 0xf1);
this.livegraph4.Margin = new Padding(3, 4, 3, 4);
this.livegraph4.Name = "livegraph4";
this.livegraph4.GClass3_0.Boolean_3 = true;
this.livegraph4.GClass3_0.Color_1 = Color.DarkGreen;
this.livegraph4.GClass3_0.Color_0 = Color.YellowGreen;
this.livegraph4.GClass3_0.Boolean_2 = false;
this.livegraph4.GClass3_0.Boolean_1 = true;
this.livegraph4.GClass3_0.Boolean_0 = true;
this.livegraph4.GEnum0_0 = GEnum0.Relative;
this.livegraph4.Size = new Size(0x1f2, 0x47);
this.livegraph4.TabIndex = 0x11;
this.livegraph4.Int32_0 = 100;
this.livegraph4.GEnum1_0 = GEnum1.Disabled;
this.livegraph4.DoubleClick += new EventHandler(this.livegraph4_DoubleClick);
this.livegraph3.Border3DStyle_0 = Border3DStyle.Flat;
this.livegraph3.Dock = DockStyle.Fill;
this.livegraph3.Font = new Font("Comic Sans MS", 12f, FontStyle.Bold);
this.livegraph3.Location = new Point(0x3b, 0xa2);
this.livegraph3.Margin = new Padding(3, 4, 3, 4);
this.livegraph3.Name = "livegraph3";
this.livegraph3.GClass3_0.Boolean_3 = true;
this.livegraph3.GClass3_0.Color_1 = Color.DarkGreen;
this.livegraph3.GClass3_0.Color_0 = Color.YellowGreen;
this.livegraph3.GClass3_0.Boolean_2 = false;
this.livegraph3.GClass3_0.Boolean_1 = true;
this.livegraph3.GClass3_0.Boolean_0 = true;
this.livegraph3.GEnum0_0 = GEnum0.Relative;
this.livegraph3.Size = new Size(0x1f2, 0x47);
this.livegraph3.TabIndex = 0x10;
this.livegraph3.Int32_0 = 100;
this.livegraph3.GEnum1_0 = GEnum1.Disabled;
this.livegraph3.DoubleClick += new EventHandler(this.livegraph3_DoubleClick);
this.livegraph2.Border3DStyle_0 = Border3DStyle.Flat;
this.livegraph2.Dock = DockStyle.Fill;
this.livegraph2.Font = new Font("Comic Sans MS", 12f, FontStyle.Bold);
this.livegraph2.Location = new Point(0x3b, 0x53);
this.livegraph2.Margin = new Padding(3, 4, 3, 4);
this.livegraph2.Name = "livegraph2";
this.livegraph2.GClass3_0.Boolean_3 = true;
this.livegraph2.GClass3_0.Color_1 = Color.DarkGreen;
this.livegraph2.GClass3_0.Color_0 = Color.YellowGreen;
this.livegraph2.GClass3_0.Boolean_2 = false;
this.livegraph2.GClass3_0.Boolean_1 = true;
this.livegraph2.GClass3_0.Boolean_0 = true;
this.livegraph2.GEnum0_0 = GEnum0.Relative;
this.livegraph2.Size = new Size(0x1f2, 0x47);
this.livegraph2.TabIndex = 15;
this.livegraph2.Int32_0 = 100;
this.livegraph2.GEnum1_0 = GEnum1.Disabled;
this.livegraph2.DoubleClick += new EventHandler(this.livegraph2_DoubleClick);
this.livegraph1.Border3DStyle_0 = Border3DStyle.Flat;
this.livegraph1.Dock = DockStyle.Fill;
this.livegraph1.Font = new Font("Comic Sans MS", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.livegraph1.Location = new Point(0x3b, 4);
this.livegraph1.Margin = new Padding(3, 4, 3, 4);
this.livegraph1.Name = "livegraph1";
this.livegraph1.GClass3_0.Boolean_3 = true;
this.livegraph1.GClass3_0.Color_1 = Color.DarkGreen;
this.livegraph1.GClass3_0.Color_0 = Color.YellowGreen;
this.livegraph1.GClass3_0.Boolean_2 = false;
this.livegraph1.GClass3_0.Boolean_1 = true;
this.livegraph1.GClass3_0.Boolean_0 = true;
this.livegraph1.GEnum0_0 = GEnum0.Relative;
this.livegraph1.Size = new Size(0x1f2, 0x47);
this.livegraph1.TabIndex = 10;
this.livegraph1.Int32_0 = 100;
this.livegraph1.GEnum1_0 = GEnum1.Disabled;
this.livegraph1.DoubleClick += new EventHandler(this.livegraph1_DoubleClick);
this.livegraph4.GClass3_0.GClass4_2 = class2;
this.livegraph4.GClass3_0.GClass4_3 = class3;
this.livegraph4.GClass3_0.GClass4_1 = class4;
this.livegraph4.GClass3_0.GClass4_0 = class5;
this.livegraph3.GClass3_0.GClass4_2 = class6;
this.livegraph3.GClass3_0.GClass4_3 = class7;
this.livegraph3.GClass3_0.GClass4_1 = class8;
this.livegraph3.GClass3_0.GClass4_0 = class9;
this.livegraph2.GClass3_0.GClass4_2 = class10;
this.livegraph2.GClass3_0.GClass4_3 = class11;
this.livegraph2.GClass3_0.GClass4_1 = class12;
this.livegraph2.GClass3_0.GClass4_0 = class13;
this.livegraph1.GClass3_0.GClass4_2 = class14;
this.livegraph1.GClass3_0.GClass4_3 = class15;
this.livegraph1.GClass3_0.GClass4_1 = class16;
this.livegraph1.GClass3_0.GClass4_0 = class17;
//##################
this.listViewLive = new ClassListView();
ColumnHeader[] values = new ColumnHeader[] { this.columnHeader_0, this.columnHeader_1, this.columnHeader_2, this.columnHeader_3, this.columnHeader_4 };
this.listViewLive.Columns.AddRange(values);
this.listViewLive.Dock = DockStyle.Fill;
this.listViewLive.HeaderStyle = ColumnHeaderStyle.Nonclickable;
this.listViewLive.HideSelection = false;
this.listViewLive.Location = new Point(0x9b, 3);
this.listViewLive.Margin = new Padding(2, 3, 2, 3);
this.listViewLive.Name = "listViewLive";
this.listViewLive.Size = new Size(0x193, 0x11c);
this.listViewLive.TabIndex = 3;
this.listViewLive.UseCompatibleStateImageBehavior = false;
this.listViewLive.View = View.Details;
this.listViewLive.KeyDown += new KeyEventHandler(this.listViewLive_KeyDown);
this.listViewLive.MouseDoubleClick += new MouseEventHandler(this.listViewLive_MouseDoubleClick);
this.tableLayoutPanel3.Controls.Add(this.button2, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.listViewLive, 1, 0);
this.tableLayoutPanel3.Controls.Add(this.listBoxPIDs, 0, 0);
this.tableLayoutPanel3.Controls.Add(this.groupBox5, 1, 1);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Honda OBD2 Scan Tools Initializing..", 2);
this.G4L = new DarkUI.Controls.DarkLabel();
this.G3L = new DarkUI.Controls.DarkLabel();
this.G2L = new DarkUI.Controls.DarkLabel();
this.G1L = new DarkUI.Controls.DarkLabel();
this.Graph4 = new DarkUI.Controls.DarkComboBox();
this.Graph3 = new DarkUI.Controls.DarkComboBox();
this.Graph2 = new DarkUI.Controls.DarkComboBox();
this.Graph1 = new DarkUI.Controls.DarkComboBox();
this.Gstart = new DarkUI.Controls.DarkButton();
this.tabControl1 = new DarkUI.Controls.DarkTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.gbConnection = new DarkUI.Controls.DarkGroupBox();
this.descRate = new DarkUI.Controls.DarkLabel();
this.label1 = new DarkUI.Controls.DarkLabel();
this.descPort = new DarkUI.Controls.DarkLabel();
this.cbJ2534 = new DarkUI.Controls.DarkCheckBox();
this.cbBaud = new DarkUI.Controls.DarkComboBox();
this.cbPort = new DarkUI.Controls.DarkComboBox();
this.button1 = new DarkUI.Controls.DarkButton();
this.groupBox1 = new DarkUI.Controls.DarkGroupBox();
this.label3 = new DarkUI.Controls.DarkLabel();
this.label2 = new DarkUI.Controls.DarkLabel();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.txtDTCD = new DarkUI.Controls.DarkTextBox();
this.groupBox4 = new DarkUI.Controls.DarkGroupBox();
this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel();
this.ButtonReadCEL = new DarkUI.Controls.DarkButton();
this.listBoxCEL = new DarkUI.Controls.DarkListBox(this.components);
this.ClearDTC = new DarkUI.Controls.DarkButton();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel11 = new System.Windows.Forms.TableLayoutPanel();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox2 = new DarkUI.Controls.DarkGroupBox();
this.label6 = new DarkUI.Controls.DarkLabel();
this.label5 = new DarkUI.Controls.DarkLabel();
this.ClearTable = new DarkUI.Controls.DarkButton();
this.StopTable = new DarkUI.Controls.DarkButton();
this.StartTable = new DarkUI.Controls.DarkButton();
this.comboV = new DarkUI.Controls.DarkComboBox();
this.labelL = new DarkUI.Controls.DarkLabel();
this.comboY = new DarkUI.Controls.DarkComboBox();
this.labely = new DarkUI.Controls.DarkLabel();
this.comboX = new DarkUI.Controls.DarkComboBox();
this.labelx = new DarkUI.Controls.DarkLabel();
this.dataGridView_0 = new DarkUI.Controls.DarkDataGridView();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
this.label9 = new DarkUI.Controls.DarkLabel();
this.label8 = new DarkUI.Controls.DarkLabel();
this.GColourLF = new DarkUI.Controls.DarkButton();
this.GColourL4 = new DarkUI.Controls.DarkButton();
this.GColourL3 = new DarkUI.Controls.DarkButton();
this.GColourL2 = new DarkUI.Controls.DarkButton();
this.GColourL1 = new DarkUI.Controls.DarkButton();
this.GColour2 = new DarkUI.Controls.DarkButton();
this.label4 = new DarkUI.Controls.DarkLabel();
this.GColour1 = new DarkUI.Controls.DarkButton();
this.label7 = new DarkUI.Controls.DarkLabel();
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
this.comboBox1 = new DarkUI.Controls.DarkComboBox();
this.label10 = new DarkUI.Controls.DarkLabel();
this.label11 = new DarkUI.Controls.DarkLabel();
this.label13 = new DarkUI.Controls.DarkLabel();
this.maskedTextBox2 = new System.Windows.Forms.MaskedTextBox();
this.label12 = new DarkUI.Controls.DarkLabel();