-
Notifications
You must be signed in to change notification settings - Fork 2
/
Class10_settings.cs
2804 lines (2544 loc) · 176 KB
/
Class10_settings.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 Dal.Settings;
using Data;
using System;
using System.Drawing;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
internal class Class10_settings
{
public AirFuelUnits airFuelUnits_0;
public bool bool_10;
public bool bool_11;
public bool bool_12;
public bool bool_15;
public bool bool_20_ONLY_NA_VIEW;
public bool bool_21;
public bool bool_23;
public bool bool_24 = true;
public bool bool_25;
public bool bool_26 = true;
public bool bool_27;
public bool bool_28;
public bool bool_3 = true;
public bool bool_31 = true;
public bool bool_32 = true;
public bool bool_33 = true;
public bool Emu_AutoScan = true;
public bool Emu_AlwaysRT = true;
public bool bool_36;
public bool bool_38;
public bool bool_40;
public bool bool_42 = true;
public bool bool_43 = true;
public bool bool_44 = true;
public bool bool_45 = true;
public bool[] bool_46 = new bool[] { false, true, true, true, true, true };
public bool bool_47;
public bool bool_48 = true;
public bool bool_49 = false;
//public bool bool_5 = true; //show emu progress
public bool bool_51 = false;
public bool bool_6;
public bool bool_7;
public bool bool_8;
public bool chkEmuVendor = true;
public bool LogAdvancedDatas = false;
public bool bool_CheckJ12 = false;
//AFR, Graph, Data, Gauges, Table Grid, Live Plots, Tracing
public int DatalogCurrentPreset = 1;
public bool DatalogThreadEnabled = false;
public bool[] bool_ActiveDatalog = new bool[] { true, true, true, true, true, true, true };
public int[] int_ActiveDatalog = new int[] { 0, 0, 0, 0, 0, 0, 0 };
//public int[] int_ActiveDatalog = new int[] { 70, 70, 70, 70, 70, 70, 70 };
//Same as Above (better overall)
public bool[] bool_ActiveDatalog_Preset1 = new bool[] { true, true, true, true, true, true, true };
public int[] int_ActiveDatalog_Preset1 = new int[] { 0, 0, 0, 0, 0, 0, 0 };
//public int[] int_ActiveDatalog_Preset1 = new int[] { 70, 70, 70, 70, 70, 70, 70 };
//better in tables
public bool[] bool_ActiveDatalog_Preset2 = new bool[] { true, true, true, true, true, false, true };
public int[] int_ActiveDatalog_Preset2 = new int[] { 10, 70, 70, 70, 10, 100, 10 };
//better for Datas and gauges
public bool[] bool_ActiveDatalog_Preset3 = new bool[] { true, true, true, true, true, false, true };
public int[] int_ActiveDatalog_Preset3 = new int[] { 70, 70, 20, 20, 70, 100, 70 };
//better for graphing
public bool[] bool_ActiveDatalog_Preset4 = new bool[] { true, true, true, true, true, true, true };
public int[] int_ActiveDatalog_Preset4 = new int[] { 70, 15, 45, 50, 70, 15, 70 };
//public bool IsNeptuneRTP = false;
public ChartCollection chartCollection_0;
private Class10_settings class10_0;
private Class18 class18_0;
public Color color_Trace = Color.FromArgb(128, 128, 255); //trace
public Color color_Trail = Color.FromArgb(205, 205, 255); //trail
public Color color_2 = Color.Blue;
public Color color_3 = Color.FromArgb(75, 75, 75); //3d/2d graph back
public Color color_4 = Color.Black;
public Color color_On = Color.FromArgb(190, 255, 190); //Led On
public Color color_OnDark = Color.FromArgb(0, 175, 0); //Led On
public Color color_Off = Color.FromArgb(215, 120, 120); //Led Off
public Color color_7 = Color.FromArgb(220, 240, 255);
public Color color_8 = Color.FromArgb(170, 230, 235);
public Color color_9 = Color.LightCoral;
public Color color_10 = Color.CornflowerBlue;
public Color color_11 = Color.FromArgb(235, 235, 235); //2D/3D Text color
public Color color_12 = Color.FromArgb(255, 255, 200); //Plot 2D/3D color1
public Color color_13 = Color.FromArgb(200, 255, 200); //Plot 2D/3D color2
public Color color_14 = Color.FromArgb(175, 175, 175); //2D/3D Text color #2
public Color color_20 = Color.FromArgb(185, 255, 255); //Fuel Color 0-15%
public Color color_21 = Color.FromArgb(200, 255, 200); //Fuel Color 15-60%
public Color color_22 = Color.FromArgb(255, 255, 200); //Fuel Color 60-100%
public Color color_23 = Color.FromArgb(255, 80, 80); //Fuel Color 100%
public Color color_30 = Color.FromArgb(185, 255, 255); //Ign Color -6 to 0
public Color color_31 = Color.FromArgb(200, 255, 200); //Ign Color 0 to 30
public Color color_32 = Color.FromArgb(255, 255, 200); //Ign Color 30 to 60
public Color color_33 = Color.FromArgb(255, 80, 80); //Ign Color 60
public Color color_40 = Color.FromArgb(255, 200, 200); //VE Color -100 to 0
public Color color_41 = Color.FromArgb(200, 255, 255); //VE Color 0 to 100
public int PercentColor1 = 8;
public int PercentColor2 = 38;
public int PercentColorIgn = 50;
public int AccelTimerSpeedStart = 3;
public int AccelTimerSpeedEnd = 100;
public int GlitchedBaseromTestInterval = 15000; //30279
public List<string> ShortcutsKeys = new List<string>();
public float scaleRate = 100;
public CorrectionUnits correctionUnits_0;
public DataloggingMode dataloggingMode_0 = DataloggingMode.datalogMultiByteX;
public DataloggingTable dataloggingTable_0;
public DataloggingTable dataloggingTable_1;
public double[] double_0 = new double[] { 0.0, 1.3, 0.3, 1.0, 0.7, 1.0, 1.0, 0.71 };
public double[] double_1 = new double[] { 1.3, 0.0, 1.0, 0.3, 1.0, 0.7, 0.71, 1.0 };
public double double_10;
public double double_11;
public double double_12;
public double double_13 = 1.5;
public double double_14 = 10.0;
public double double_15 = 0.75;
public double double_2;
public double double_3 = 14.75;
public double[] double_4 = new double[] { 0.0, 5.0 };
public double[] double_5 = new double[] { 0.0, 5.0 };
public double[] double_6 = new double[] { 0.0, 5.0 };
public double double_7;
public double double_8;
public double double_9 = 1.5;
public EmulatorMode emulatorMode_0 = EmulatorMode.Demon;
public float float_0;
public float float_1;
public float float_2;
public float float_3;
public float float_4;
public float float_5;
public float float_6 = 0.03f;
public float float_7 = 14.25f;
public float float_8 = 8.25f;
public int int_0 = 111; // Sensors Numbers #### 96 = Old Number
public int int_1;
public int int_10;
public int Datalog_Baud = 0x9600;
public int Emulator_Baud = 0xe1000;
public int int_2;
public int int_2_LivePlot = 2;
public int int_20 = 100;
public int int_21 = 3;
public int int_22 = 2; //analog1 decimals
public int int_23 = 2; //analog2 decimals
public int int_24 = 2; //analog3 decimals
public int int_25 = 0;
public int int_26;
public int int_27;
public int int_28;
public int int_29;
public int int_3 = 100;
public int int_30;
public int int_31;
public int int_32;
public int int_33;
public int int_34;
public int int_35;
public int int_36 = 25;
public int int_37 = 0;
public int int_38;
public int int_39;
public int int_4 = 60;
public int int_40 = 1;
public int int_41 = 5;
public int int_5 = 200;
public int int_55;
public int int_56;
public int int_57;
public int int_58;
public int int_59;
public int int_6 = 0x3f5;
public int int_60;
public int int_61;
public int int_62;
public int int_8;
public int int_9;
public int int_GraphSensor = 0;
public int int_GraphColumns = 14;
public int SplitterDistance;
public MapGraphSelect mapGraphSelect_0 = MapGraphSelect.fill;
public MapSensorUnits mapSensorUnits_0;
public MapSensorUnits mapSensorUnits_1;
public SensorsX sensors_0 = SensorsX.boostX;
public SensorsX sensors_1 = SensorsX.injDuty;
public SensorsX sensors_2 = SensorsX.injDur;
private SettingsKey settingsKey_0;
public string[] string_0 = new string[10];
public string[] string_VW = new string[10];
public string[] string_XDF = new string[10];
public string string_1 = "";
public string string_2 = "";
public string string_4 = "";
public string string_5 = "";
public string string_6 = "";
public string Password = "";
public bool Protect = false;
public bool PasswordHiden = false;
public TemperatureUnits temperatureUnits_0 = TemperatureUnits.C;
public VssUnits vssUnits_0;
public WBinput wbinput_0;
public Wideband_Serial wideband_Serial_0;
public int LastPackageChecksum = 0;
public int BurnerSoftware = 0; //0=internal, 1=Moates Flash&Burn, 2=MiniPro
public string BurnerLocation = "";
public bool OverlayConditionsDisabled = true;
public bool LogDatetime = true;
public bool ToolbarFile = true;
public bool ToolbarEdit = true;
public bool ToolbarEmulator = true;
public bool ToolbarDatalog = true;
public bool ToolbarView = true;
public bool ToolbarTools = true;
public bool ShownDockedMode = false;
public string ICutModInstall = "";
public bool LiveGraphing = false;
public int LiveGraph_Lenght = 800;
public int burnChipIndex = 0;
public int burnCommCache = 0;
public string calFilePath = "";
public Point dataloggingToolStrip = new Point(165, 49);
public Point mainToolStrip = new Point(3, 24);
public Point viewToolStrip = new Point(3, 74);
public Point editToolStrip = new Point(220, 24);
public Point windowsToolStrip = new Point(275, 74);
public Point emulatorToolStrip = new Point(3, 49);
public Point tunerToolStrip = new Point(3, 0);
public Point tableEditToolStrip = new Point(175, 0);
public Point tableViewToolStrip = new Point(3, 25);
public Point Display_Location = new Point(375, 105);
public Point logGraphs_Location = new Point(260, 500);
public Point logGrid_Location = new Point(0, 105);
public Point parameters_Location = new Point(320, 250);
public Point tables_Location = new Point(260, 210);
public Point Debug_Location = new Point(80, 80);
public Point errorCodes_Location = new Point(80, 80);
public Point LivePlot_Location = new Point(260, 500);
public Point snapShots_Location = new Point(80, 80);
public Point ActiveDatalog_Location = new Point(80, 80);
public Point DynoC_Location = new Point(80, 80);
public Size Display_Size = new Size(650, 130);
public Size logGraphs_Size = new Size(750, 250);
public Size logGrid_Size = new Size(255, 600);
public Size parameters_Size = new Size(570, 570);
public Size tables_Size = new Size(750, 435);
public Size Debug_Size = new Size(358, 311);
public Size errorCodes_Size = new Size(150, 150);
public Size LivePlot_Size = new Size(750, 435);
public Size ActiveDatalog_Size = new Size(358, 311);
public Size DynoC_Size = new Size(150, 200);
public int dtCommCache = 0;
public bool dtPeakShown = true;
public int emuCommCache = 0;
public string logFilePath = "";
public int overlay1_Display = 3;
public int overlay2_Display = 3;
public int overlay3_Display = 3;
public string parameterNode = "";
public string romFilePath = "";
public int tunerSmartTrack = 1;
public bool IsBluetooth = false;
public bool WindowedMode = false;
public string Tabs1_Names = "";
public string Tabs2_Names = "";
public string Tabs3_Names = "";
public string Tabs4_Names = "";
public string Tabs5_Names = "";
public bool Tabs3_Show = true;
public bool Tabs4_Show = true;
public bool Tabs5_Show = false;
public int TabsLeft_Split = 252;
public int TabsTop_Split = 104;
public int TabsBottom_Split = 432;
public int TabsBottomLeft_Split = 540;
public int TabsRight_Split = 450;
public int Tabs1_Selected = 0;
public int Tabs2_Selected = 0;
public int Tabs3_Selected = 0;
public int Tabs4_Selected = 0;
public int Tabs5_Selected = 0;
public int BoostFuel = 120;
public float BoostRetard = 1;
public int BoostIGNStep1 = 0;
public int BoostIGNStep2 = 3;
public int BoostIGNStep3 = 5;
public int BoostIGNStep4 = 7;
public int BoostIGNStep5 = 12;
public int BoostIGNStep6 = 30;
public double BoostIGNRetard1 = 0.08;
public double BoostIGNRetard2 = 0.15;
public double BoostIGNRetard3 = 0.25;
public double BoostIGNRetard4 = 0.5;
public double BoostIGNRetard5 = 0.75;
public int Parameter_Splitter = 250;
public event Delegate14 delegate14_0;
public event Delegate12 delegate12_0;
public event Delegate10 delegate10_0;
public event Delegate13 delegate13_0;
public List<string> SensorsTags;
public List<string> SensorsNames;
public List<string> SensorsDesc;
public List<int> SensorsMin;
public List<int> SensorsMax;
public List<int> SensorsCustomMin;
public List<int> SensorsCustomMax;
public List<bool> SensorsCustomINT;
public string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\SettingsV2.xml";
public string LastGraphSavePath = "";
public FrmMain frmMain_0;
public bool Shortcut_PressCTRL = false;
public bool Shortcut_PressALT = false;
public bool Shortcut_PressSHIFT = false;
public Keys Shortcut_KeyPressed = (Keys)0;
public string Shortcut_KeyName = "";
public string Dyno_COMPORTDyno = "";
public string Dyno_COMPort = "";
public string Dyno_COMPortBC = "";
public string Dyno_AUX1Type = "";
public string Dyno_AUX2Type = "";
public string Dyno_AUX3Type = "";
public string Dyno_AUXMIN1V = "";
public string Dyno_AUXMIN2V = "";
public string Dyno_AUXMIN3V = "";
public string Dyno_AUXMAX1V = "";
public string Dyno_AUXMAX2V = "";
public string Dyno_AUXMAX3V = "";
public string Dyno_AUXMIN1O = "";
public string Dyno_AUXMIN2O = "";
public string Dyno_AUXMIN3O = "";
public string Dyno_AUXMAX1O = "";
public string Dyno_AUXMAX2O = "";
public string Dyno_AUXMAX3O = "";
public bool ShownHint_Gauges = false;
public bool ShownHint_Colors = false;
public bool ShownHint_Separator = false;
public bool ShownHint_Dragging = false;
public bool ShownHint_DebugLogs = false;
public Class10_settings(ref FrmMain FrmMain_1)
{
this.class10_0 = this;
this.frmMain_0 = FrmMain_1;
string_1 = "COM1";
string_2 = "COM1";
string_4 = "V";
string_5 = "V";
string_6 = "V";
Tabs1_Names = "Datalog,Debug Logs,";
Tabs2_Names = "Tables,Parameters,Snapshots,";
Tabs3_Names = "Graph,LivePlot,";
Tabs4_Names = "CEL,Datalogs Threads,Dyno,";
Dyno_COMPort = "COM1";
Dyno_COMPortBC = "COM2";
Dyno_AUX1Type = "AFR";
Dyno_AUX2Type = "Voltage";
Dyno_AUX3Type = "Voltage";
Dyno_AUXMIN1V = "0";
Dyno_AUXMIN2V = "0";
Dyno_AUXMIN3V = "0";
Dyno_AUXMAX1V = "5";
Dyno_AUXMAX2V = "5";
Dyno_AUXMAX3V = "5";
Dyno_AUXMIN1O = "10";
Dyno_AUXMIN2O = "0";
Dyno_AUXMIN3O = "0";
Dyno_AUXMAX1O = "20";
Dyno_AUXMAX2O = "5";
Dyno_AUXMAX3O = "5";
//Transfert .preset files into .txt
string path1 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\display.preset";
string path2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\Graph.preset";
string path3 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\Target_AFR.preset";
string path4 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\templates.preset"; //not used anywhere, only remove
string path1_2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\display.txt";
string path2_2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\Graph.txt";
string path3_2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\Target_AFR.txt";
if (File.Exists(path1)) { File.Create(path1_2).Dispose(); File.WriteAllBytes(path1_2, File.ReadAllBytes(path1)); File.Delete(path1); }
if (File.Exists(path2)) { File.Create(path2_2).Dispose(); File.WriteAllBytes(path2_2, File.ReadAllBytes(path2)); File.Delete(path2); }
if (File.Exists(path3)) { File.Create(path3_2).Dispose(); File.WriteAllBytes(path3_2, File.ReadAllBytes(path3)); File.Delete(path3); }
if (File.Exists(path4)) { File.Delete(path4); }
LoadShortcuts();
this.method_6();
if (!File.Exists(path)) Reset_Default();
try
{
SettingsFile.Create(path);
this.method_list();
}
catch (Exception message)
{
MessageBox.Show(Form.ActiveForm, "Unable to load Settings correctly, Settings will be resetting to default!" + Environment.NewLine + "" + Environment.NewLine + "" + Environment.NewLine + "" + message);
Reset_Default();
}
//Reset ECT and IAT Max Sensor Value was set at 0 instead of 140
for (int i = 0; i < 2; i++)
{
SensorsX ThisSensor = SensorsX.ectX;
if (i == 1) ThisSensor = SensorsX.iatX;
int VLu = this.method_22_Max(ThisSensor);
if (this.temperatureUnits_0 == TemperatureUnits.F) VLu = (int)this.class18_0.method_242(this.method_22_Max(ThisSensor));
if (VLu < 140)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_23_Max(ThisSensor, (int) this.class18_0.method_242(140));
else this.method_23_Max(ThisSensor, 140);
}
//#######################
VLu = this.method_20_Min(ThisSensor);
if (this.temperatureUnits_0 == TemperatureUnits.F) VLu = (int)this.class18_0.method_242(this.method_20_Min(ThisSensor));
if (VLu > -40)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_21_Min(ThisSensor, (int)this.class18_0.method_242(-40));
else this.method_21_Min(ThisSensor, -40);
}
//#######################
VLu = this.method_22(ThisSensor);
if (this.temperatureUnits_0 == TemperatureUnits.F) VLu = (int)this.class18_0.method_242(this.method_22(ThisSensor));
if ((VLu < 60 && ThisSensor == SensorsX.ectX)
|| (VLu < 30 && ThisSensor == SensorsX.iatX))
{
if (ThisSensor == SensorsX.ectX)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_23(ThisSensor, (int)this.class18_0.method_242(110));
else this.method_23(ThisSensor, 110);
}
if (ThisSensor == SensorsX.iatX)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_23(ThisSensor, (int)this.class18_0.method_242(100));
else this.method_23(ThisSensor, 100);
}
}
//#######################
VLu = this.method_20(ThisSensor);
if (this.temperatureUnits_0 == TemperatureUnits.F) VLu = (int)this.class18_0.method_242(this.method_20(ThisSensor));
if ((VLu < 60 && ThisSensor == SensorsX.ectX)
|| (VLu < 30 && ThisSensor == SensorsX.iatX))
{
if (ThisSensor == SensorsX.ectX)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_21(ThisSensor, (int)this.class18_0.method_242(100));
else this.method_21(ThisSensor, 100);
}
if (ThisSensor == SensorsX.iatX)
{
if (this.temperatureUnits_0 == TemperatureUnits.F) this.method_21(ThisSensor, (int)this.class18_0.method_242(65));
else this.method_21(ThisSensor, 65);
}
}
}
}
public void LoadSettings(string pathnew)
{
try
{
SettingsFile.Create(pathnew);
method_1();
method_3();
SettingsFile.Create(path);
MessageBox.Show(Form.ActiveForm, "Settings succesfully loaded!");
}
catch
{
MessageBox.Show(Form.ActiveForm, "Unable to load settings!");
}
}
public void Reset_Default()
{
FileInfo info = new FileInfo(path);
if (info.Exists) File.Delete(path);
SettingsFile.Create(path);
info = null;
info = new FileInfo(path);
info.Directory.Create();
info = null;
File.Create(path).Dispose();
this.LoadShortcuts();
this.method_1();
this.method_3();
this.SaveSensors();
this.method_Reset();
this.dataloggingMode_0 = DataloggingMode.datalogDemon;
this.emulatorMode_0 = EmulatorMode.Demon;
this.bool_31 = true;
this.string_1 = this.string_2;
this.Emulator_Baud = 0xe1000;
this.Datalog_Baud = this.Emulator_Baud;
this.bool_27 = this.Emu_AlwaysRT;
this.method_3();
//this.method_resetWindows();
SettingsFile.Create(path);
this.method_3();
frmCopyright frmCopyright_0 = new frmCopyright(ref frmMain_0);
frmCopyright_0.ShowDialog();
frmCopyright_0.Dispose();
frmCopyright_0 = null;
}
internal void method_0(ref Class18 class18_1)
{
this.class18_0 = class18_1;
}
public bool method_1()
{
this.settingsKey_0 = SettingsFile.Settings["tuner/scaleRate"];
this.scaleRate = this.settingsKey_0.GetSetting("value", (float)100f);
this.settingsKey_0 = SettingsFile.Settings["tuner/ShownDockedMode"];
this.ShownDockedMode = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjFuelTableFv"];
this.float_2 = this.settingsKey_0.GetSetting("value", (float) 3f);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjFuelTablePercent"];
this.float_1 = this.settingsKey_0.GetSetting("value", (float) 1f);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjFuelTableFvSwitch"];
this.float_3 = this.settingsKey_0.GetSetting("value", 300);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjLambdaTable"];
this.float_4 = this.settingsKey_0.GetSetting("value", (float) 0.01f);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjIgnTable"];
this.float_0 = this.settingsKey_0.GetSetting("value", (float) 0.25f);
this.settingsKey_0 = SettingsFile.Settings["editor/AdjVeTable"];
this.float_5 = this.settingsKey_0.GetSetting("value", (float) 1f);
this.settingsKey_0 = SettingsFile.Settings["editor/Mru"];
for (int i = 0; i < this.string_0.Length; i++)
{
string setting = this.settingsKey_0.GetSetting("file" + i.ToString(), "");
if (setting != string.Empty) this.string_0[i] = setting;
else this.string_0[i] = string.Empty;
}
this.settingsKey_0 = SettingsFile.Settings["editor/Mruniversal"];
for (int i = 0; i < this.string_VW.Length; i++)
{
string setting = this.settingsKey_0.GetSetting("file" + i.ToString(), "");
if (setting != string.Empty) this.string_VW[i] = setting;
else this.string_VW[i] = string.Empty;
}
this.settingsKey_0 = SettingsFile.Settings["editor/MruniversalDEF"];
for (int i = 0; i < this.string_XDF.Length; i++)
{
string setting = this.settingsKey_0.GetSetting("file" + i.ToString(), "");
if (setting != string.Empty) this.string_XDF[i] = setting;
else this.string_XDF[i] = string.Empty;
}
//this.settingsKey_0 = SettingsFile.Settings["editor/ShowTables"];
//this.method_12(this.settingsKey_0.GetSetting("value", (byte) 20));
this.settingsKey_0 = SettingsFile.Settings["editor/graphShown"];
this.bool_6 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/playLogOnOpen"];
this.bool_7 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/recordOnConnection"];
this.bool_8 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/windowState"];
this.int_1 = this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["editor/GraphHorizontal"];
this.bool_15 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/smoothingThreshold"];
this.float_6 = this.settingsKey_0.GetSetting("value", (float) 0.03f);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsPreset"];
this.DatalogCurrentPreset = this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["editor/DatalogThreadEnabled"];
this.DatalogThreadEnabled = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreads"];
for (int i = 0; i < 7; i++) this.bool_ActiveDatalog[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.bool_ActiveDatalog[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsDelay"];
for (int i = 0; i < 7; i++) this.int_ActiveDatalog[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.int_ActiveDatalog[i]);
//presets
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreads_Preset1"];
for (int i = 0; i < 7; i++) this.bool_ActiveDatalog_Preset1[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.bool_ActiveDatalog_Preset1[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsDelay_Preset1"];
for (int i = 0; i < 7; i++) this.int_ActiveDatalog_Preset1[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.int_ActiveDatalog_Preset1[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreads_Preset2"];
for (int i = 0; i < 7; i++) this.bool_ActiveDatalog_Preset2[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.bool_ActiveDatalog_Preset2[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsDelay_Preset2"];
for (int i = 0; i < 7; i++) this.int_ActiveDatalog_Preset2[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.int_ActiveDatalog_Preset2[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreads_Preset3"];
for (int i = 0; i < 7; i++) this.bool_ActiveDatalog_Preset3[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.bool_ActiveDatalog_Preset3[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsDelay_Preset3"];
for (int i = 0; i < 7; i++) this.int_ActiveDatalog_Preset3[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.int_ActiveDatalog_Preset3[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreads_Preset4"];
for (int i = 0; i < 7; i++) this.bool_ActiveDatalog_Preset4[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.bool_ActiveDatalog_Preset4[i]);
this.settingsKey_0 = SettingsFile.Settings["editor/activeDatalogThreadsDelay_Preset4"];
for (int i = 0; i < 7; i++) this.int_ActiveDatalog_Preset4[i] = this.settingsKey_0.GetSetting("index" + i.ToString(), this.int_ActiveDatalog_Preset4[i]);
//#####
this.settingsKey_0 = SettingsFile.Settings["editor/followselected"];
this.bool_10 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["editor/selectedHeadersTrace"];
this.bool_11 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["editor/smoothRows"];
this.bool_12 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/rpmBlock"];
this.int_3 = this.settingsKey_0.GetSetting("value", 100);
this.settingsKey_0 = SettingsFile.Settings["editor/stacksize"];
this.int_36 = this.settingsKey_0.GetSetting("value", 25);
this.settingsKey_0 = SettingsFile.Settings["editor/stacksizevariance"];
this.int_41 = this.settingsKey_0.GetSetting("value", 5);
this.settingsKey_0 = SettingsFile.Settings["editor/rpmPlotTps"];
this.int_4 = this.settingsKey_0.GetSetting("value", 0x41);
this.settingsKey_0 = SettingsFile.Settings["editor/timePlotLength"];
this.int_5 = this.settingsKey_0.GetSetting("value", 200);
this.settingsKey_0 = SettingsFile.Settings["editor/GraphTypeSelected"];
this.int_2 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["editor/PlotTypeSelected"];
this.int_2_LivePlot = this.settingsKey_0.GetSetting("value", 2);
this.settingsKey_0 = SettingsFile.Settings["editor/TraceShowInterpolation"];
this.bool_21 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/GraphSelectType"];
this.mapGraphSelect_0 = (MapGraphSelect) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["units/mbarSeaLevel"];
this.int_6 = this.settingsKey_0.GetSetting("value", 0x3f5);
this.settingsKey_0 = SettingsFile.Settings["units/vacumn"];
this.mapSensorUnits_0 = (MapSensorUnits) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["units/boost"];
this.mapSensorUnits_1 = (MapSensorUnits) this.settingsKey_0.GetSetting("value", 4);
this.settingsKey_0 = SettingsFile.Settings["units/temp"];
this.temperatureUnits_0 = (TemperatureUnits) this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["units/vss"];
this.vssUnits_0 = (VssUnits) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["units/afr"];
this.airFuelUnits_0 = (AirFuelUnits) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["units/fuelCorr"];
this.correctionUnits_0 = (CorrectionUnits) this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["units/usePaSen"];
this.bool_23 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["wideband/offset"];
this.double_2 = this.settingsKey_0.GetSetting("value", (float) 0f);
this.settingsKey_0 = SettingsFile.Settings["wideband/index"];
this.int_8 = this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["wideband/widebandConversion"];
if (this.settingsKey_0.GetSettingNames().Length != 0)
{
this.double_0 = new double[this.settingsKey_0.GetSettingNames().Length];
for (int j = 0; j < this.settingsKey_0.GetSettingNames().Length; j++)
{
this.double_0[j] = this.settingsKey_0.GetSetting("index" + j.ToString(), this.double_0[j]);
}
}
else
{
for (int j = 0; j < this.double_0.Length; j++)
{
this.double_0[j] = this.settingsKey_0.GetSetting("index" + j.ToString(), this.double_0[j]);
}
}
this.method_30();
this.settingsKey_0 = SettingsFile.Settings["wideband/wbInput"];
this.wbinput_0 = (WBinput) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["wideband/stoichGas"];
this.double_3 = this.settingsKey_0.GetSetting("value", (double) 14.7);
this.settingsKey_0 = SettingsFile.Settings["wideband/stoichLstSel"];
this.int_9 = this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["wideband/WidebandSerialInput"];
this.bool_25 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["wideband/WidebandSerialType"];
this.wideband_Serial_0 = (Wideband_Serial) this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["wideband/WidebandSerialPortIndex"];
this.int_10 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["analog/ana1enable"];
this.bool_36 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["analog/ana1lbl"];
this.string_4 = this.settingsKey_0.GetSetting("value", "V");
this.settingsKey_0 = SettingsFile.Settings["analog/ana1tbl"];
if (this.settingsKey_0.GetSettingNames().Length > 0) this.double_4 = new double[this.settingsKey_0.GetSettingNames().Length];
for (int k = 0; k < this.double_4.Length; k++)
{
this.double_4[k] = this.settingsKey_0.GetSetting("index" + k.ToString(), this.double_4[k]);
}
this.settingsKey_0 = SettingsFile.Settings["analog/ana1dec"];
this.int_22 = this.settingsKey_0.GetSetting("value", 2);
this.settingsKey_0 = SettingsFile.Settings["analog/ana2enable"];
this.bool_38 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["analog/ana2lbl"];
this.string_5 = this.settingsKey_0.GetSetting("value", "V");
this.settingsKey_0 = SettingsFile.Settings["analog/ana2tbl"];
if (this.settingsKey_0.GetSettingNames().Length > 0) this.double_5 = new double[this.settingsKey_0.GetSettingNames().Length];
for (int m = 0; m < this.double_5.Length; m++)
{
this.double_5[m] = this.settingsKey_0.GetSetting("index" + m.ToString(), this.double_5[m]);
}
this.settingsKey_0 = SettingsFile.Settings["analog/ana2dec"];
this.int_23 = this.settingsKey_0.GetSetting("value", 2);
this.settingsKey_0 = SettingsFile.Settings["analog/ana3enable"];
this.bool_40 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["analog/ana3lbl"];
this.string_6 = this.settingsKey_0.GetSetting("value", "V");
this.settingsKey_0 = SettingsFile.Settings["analog/ana3tbl"];
if (this.settingsKey_0.GetSettingNames().Length > 0) this.double_6 = new double[this.settingsKey_0.GetSettingNames().Length];
for (int n = 0; n < this.double_6.Length; n++)
{
this.double_6[n] = this.settingsKey_0.GetSetting("index" + n.ToString(), this.double_6[n]);
}
this.settingsKey_0 = SettingsFile.Settings["analog/ana3dec"];
this.int_24 = this.settingsKey_0.GetSetting("value", 2);
this.settingsKey_0 = SettingsFile.Settings["editor/showWarningColor"];
this.bool_24 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["editor/dispTextPrim"];
this.float_7 = this.settingsKey_0.GetSetting("value", (float) 14.25f);
this.settingsKey_0 = SettingsFile.Settings["editor/dispTextSec"];
this.float_8 = this.settingsKey_0.GetSetting("value", (float) 8.25f);
this.settingsKey_0 = SettingsFile.Settings["color/TraceColor"];
this.color_Trace = this.settingsKey_0.GetColor("value", Color.FromArgb(128, 128, 255));
this.settingsKey_0 = SettingsFile.Settings["color/TrailColor"];
this.color_Trail = this.settingsKey_0.GetColor("value", Color.FromArgb(205, 205, 255));
this.settingsKey_0 = SettingsFile.Settings["color/selectedColor"];
this.color_2 = this.settingsKey_0.GetColor("value", Color.Blue);
this.settingsKey_0 = SettingsFile.Settings["color/dispBackColor"];
this.color_3 = this.settingsKey_0.GetColor("value", Color.FromArgb(75, 75, 75));
this.settingsKey_0 = SettingsFile.Settings["color/dispTextColor"];
this.color_4 = this.settingsKey_0.GetColor("value", Color.Black);
this.settingsKey_0 = SettingsFile.Settings["color/ledOnColor"];
this.color_On = this.settingsKey_0.GetColor("value", Color.FromArgb(190, 255, 190));
this.settingsKey_0 = SettingsFile.Settings["color/ledOnDarkColor"];
this.color_OnDark = this.settingsKey_0.GetColor("value", Color.FromArgb(0, 175, 0));
this.settingsKey_0 = SettingsFile.Settings["color/ledOffColor"];
this.color_Off = this.settingsKey_0.GetColor("value", Color.FromArgb(215, 120, 120));
this.settingsKey_0 = SettingsFile.Settings["color/BackColor2"];
this.color_7 = this.settingsKey_0.GetColor("value", Color.FromArgb(200, 230, 255));
this.settingsKey_0 = SettingsFile.Settings["color/BackColor3"];
this.color_8 = this.settingsKey_0.GetColor("value", Color.FromArgb(100, 205, 220));
this.settingsKey_0 = SettingsFile.Settings["color/RTPColor1"];
this.color_9 = this.settingsKey_0.GetColor("value", Color.LightCoral);
this.settingsKey_0 = SettingsFile.Settings["color/RTPColor2"];
this.color_10 = this.settingsKey_0.GetColor("value", Color.CornflowerBlue);
this.settingsKey_0 = SettingsFile.Settings["color/Text2D3D"];
this.color_11 = this.settingsKey_0.GetColor("value", Color.FromArgb(235, 235, 235));
this.settingsKey_0 = SettingsFile.Settings["color/PlotCol1"];
this.color_12 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 255, 100));
this.settingsKey_0 = SettingsFile.Settings["color/PlotCol2"];
this.color_13 = this.settingsKey_0.GetColor("value", Color.FromArgb(150, 255, 150));
this.settingsKey_0 = SettingsFile.Settings["color/Text2D3D_2"];
this.color_14 = this.settingsKey_0.GetColor("value", Color.FromArgb(175, 175, 175));
this.settingsKey_0 = SettingsFile.Settings["color/FuelColor1"];
this.color_20 = this.settingsKey_0.GetColor("value", Color.FromArgb(185, 255, 255));
this.settingsKey_0 = SettingsFile.Settings["color/FuelColor2"];
this.color_21 = this.settingsKey_0.GetColor("value", Color.FromArgb(200, 255, 200));
this.settingsKey_0 = SettingsFile.Settings["color/FuelColor3"];
this.color_22 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 255, 200));
this.settingsKey_0 = SettingsFile.Settings["color/FuelColor4"];
this.color_23 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 80, 80));
this.settingsKey_0 = SettingsFile.Settings["color/IgnColor1"];
this.color_30 = this.settingsKey_0.GetColor("value", Color.FromArgb(185, 255, 255));
this.settingsKey_0 = SettingsFile.Settings["color/IgnColor2"];
this.color_31 = this.settingsKey_0.GetColor("value", Color.FromArgb(200, 255, 200));
this.settingsKey_0 = SettingsFile.Settings["color/IgnColor3"];
this.color_32 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 255, 200));
this.settingsKey_0 = SettingsFile.Settings["color/IgnColor4"];
this.color_33 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 80, 80));
this.settingsKey_0 = SettingsFile.Settings["color/VEColor1"];
this.color_40 = this.settingsKey_0.GetColor("value", Color.FromArgb(255, 200, 200));
this.settingsKey_0 = SettingsFile.Settings["color/VEColor2"];
this.color_41 = this.settingsKey_0.GetColor("value", Color.FromArgb(200, 255, 255));
this.settingsKey_0 = SettingsFile.Settings["color/PercentColorFuel1"];
this.PercentColor1 = this.settingsKey_0.GetSetting("value", 8);
this.settingsKey_0 = SettingsFile.Settings["color/PercentColorFuel2"];
this.PercentColor2 = this.settingsKey_0.GetSetting("value", 38);
this.settingsKey_0 = SettingsFile.Settings["color/PercentColorIgn"];
this.PercentColorIgn = this.settingsKey_0.GetSetting("value", 50);
this.settingsKey_0 = SettingsFile.Settings["datalog/port"];
this.string_1 = this.settingsKey_0.GetSetting("value", "COM1");
this.settingsKey_0 = SettingsFile.Settings["datalog/baud"];
this.Datalog_Baud = this.settingsKey_0.GetSetting("value", 0x9600);
this.settingsKey_0 = SettingsFile.Settings["datalog/protocol"];
this.dataloggingMode_0 = (DataloggingMode) this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["datalog/AutoScan"];
this.bool_27 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["datalog/datalogLoadAfterRecord"];
this.bool_26 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["emulator/port"];
this.string_2 = this.settingsKey_0.GetSetting("value", "COM1");
this.settingsKey_0 = SettingsFile.Settings["emulator/baud"];
this.Emulator_Baud = this.settingsKey_0.GetSetting("value", 0xe1000);
this.settingsKey_0 = SettingsFile.Settings["emulator/type"];
this.emulatorMode_0 = (EmulatorMode)this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["emulator/retries"];
this.int_21 = this.settingsKey_0.GetSetting("value", 3);
this.settingsKey_0 = SettingsFile.Settings["emulator/timeout"];
this.int_20 = this.settingsKey_0.GetSetting("value", 500);
this.settingsKey_0 = SettingsFile.Settings["emulator/useDt"];
this.bool_31 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["emulator/RtUp"];
this.bool_32 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["emulator/UploadOnConnect"];
this.bool_33 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["emulator/AutoScan"];
this.Emu_AutoScan = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["emulator/chkEmuVendor"];
this.chkEmuVendor = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["emulator/CheckJ12"];
this.bool_CheckJ12 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["emulator/AlwaysRt"];
this.Emu_AlwaysRT = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["tuner/sampleRate"];
this.int_25 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["editor/followVtecTables"];
this.bool_42 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/followSecondaryMaps"];
this.bool_44 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/smartTrack"];
this.bool_45 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["tuner/STD"];
this.double_9 = this.settingsKey_0.GetSetting("value", (double)1.5);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrTargetLow"];
this.double_10 = this.settingsKey_0.GetSetting("value", (double) 1.0);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrTargetLowMbar"];
this.int_38 = this.settingsKey_0.GetSetting("value", 500);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrTargetMid"];
this.double_11 = this.settingsKey_0.GetSetting("value", (double) 0.9);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrTargetHigh"];
this.double_12 = this.settingsKey_0.GetSetting("value", (double) 0.8);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrTargetHighBar"];
this.int_39 = this.settingsKey_0.GetSetting("value", 900);
this.settingsKey_0 = SettingsFile.Settings["tuner/fuelAdjMin"];
this.double_13 = this.settingsKey_0.GetSetting("value", (double) 1.5);
this.settingsKey_0 = SettingsFile.Settings["tuner/fuelAdjMax"];
this.double_14 = this.settingsKey_0.GetSetting("value", 10);
this.settingsKey_0 = SettingsFile.Settings["tuner/fuelAdjP"];
this.double_15 = this.settingsKey_0.GetSetting("value", (double) 0.75);
this.settingsKey_0 = SettingsFile.Settings["tuner/fuelAdjPertageNeeded"];
this.int_40 = this.settingsKey_0.GetSetting("value", 1);
this.settingsKey_0 = SettingsFile.Settings["tuner/MapTrail"];
this.bool_43 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["tuner/FilterAuto"];
this.bool_49 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["tuner/tpsMin"];
this.int_26 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["tuner/tpsMax"];
this.int_27 = this.settingsKey_0.GetSetting("value", 0xff);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrMin"];
this.double_7 = this.settingsKey_0.GetSetting("value", (double)0.7);
this.settingsKey_0 = SettingsFile.Settings["tuner/afrMax"];
this.double_8 = this.settingsKey_0.GetSetting("value", (double)1.5);
this.settingsKey_0 = SettingsFile.Settings["tuner/mapMin"];
this.int_30 = this.settingsKey_0.GetSetting("value", 110);
this.settingsKey_0 = SettingsFile.Settings["tuner/mapMax"];
this.int_31 = this.settingsKey_0.GetSetting("value", 0xbb8);
this.settingsKey_0 = SettingsFile.Settings["tuner/rpmMin"];
this.int_28 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["tuner/rpmMax"];
this.int_29 = this.settingsKey_0.GetSetting("value", 0x2af8);
this.settingsKey_0 = SettingsFile.Settings["tuner/ectMin"];
this.int_32 = this.settingsKey_0.GetSetting("value", 0xff);
this.settingsKey_0 = SettingsFile.Settings["tuner/ectMax"];
this.int_33 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["tuner/iatMin"];
this.int_34 = this.settingsKey_0.GetSetting("value", 0xff);
this.settingsKey_0 = SettingsFile.Settings["tuner/iatMax"];
this.int_35 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["tuner/gear"];
for (int num7 = 0; num7 < 6; num7++)
{
this.bool_46[num7] = this.settingsKey_0.GetSetting("index" + num7.ToString(), true);
}
this.settingsKey_0 = SettingsFile.Settings["tuner/hitsDelay"];
this.int_37 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["tuner/lastSampleO2diff"];
this.bool_47 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["tuner/checkFuelCut"];
this.bool_48 = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["tuner/filterIsUse"];
this.bool_51 = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_egt_1"];
this.int_55 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_egt_2"];
this.int_56 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_egt_3"];
this.int_57 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_egt_4"];
this.int_58 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_egt_avg"];
this.int_59 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_BackPress"];
this.int_60 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_FuelPress"];
this.int_61 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_Iat"];
this.int_62 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["overlay/specialSensor_BackPress"];
this.int_60 = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["editor/SplitterDistance"];
this.SplitterDistance = this.settingsKey_0.GetSetting("value", 500);
this.settingsKey_0 = SettingsFile.Settings["editor/Password"];
this.Password = this.settingsKey_0.GetSetting("value", "");
this.settingsKey_0 = SettingsFile.Settings["editor/Protect"];
this.Protect = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/PasswordHiden"];
this.PasswordHiden = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["editor/CustomGraphSensor"];
this.int_GraphSensor = this.settingsKey_0.GetSetting("value", 0);
this.settingsKey_0 = SettingsFile.Settings["editor/CustomGraphColumns"];
this.int_GraphColumns = this.settingsKey_0.GetSetting("value", 14);
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs1_Names"];
this.Tabs1_Names = this.settingsKey_0.GetSetting("value", "Datalog,Debug Logs,");
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs2_Names"];
this.Tabs2_Names = this.settingsKey_0.GetSetting("value", "Tables,Parameters,Snapshots,");
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs3_Names"];
this.Tabs3_Names = this.settingsKey_0.GetSetting("value", "Graph,LivePlot,");
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs4_Names"];
this.Tabs4_Names = this.settingsKey_0.GetSetting("value", "CEL,Datalogs Threads,Dyno,");
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs5_Names"];
this.Tabs5_Names = this.settingsKey_0.GetSetting("value", "");
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs3_Show"];
this.Tabs3_Show = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs4_Show"];
this.Tabs4_Show = this.settingsKey_0.GetSetting("value", true);
this.settingsKey_0 = SettingsFile.Settings["pages/Tabs5_Show"];
this.Tabs5_Show = this.settingsKey_0.GetSetting("value", false);
this.settingsKey_0 = SettingsFile.Settings["pages/TabsLeft_Split"];
this.TabsLeft_Split = this.settingsKey_0.GetSetting("value", 252);
this.settingsKey_0 = SettingsFile.Settings["pages/TabsTop_Split"];
this.TabsTop_Split = this.settingsKey_0.GetSetting("value", 104);
this.settingsKey_0 = SettingsFile.Settings["pages/TabsBottom_Split"];
this.TabsBottom_Split = this.settingsKey_0.GetSetting("value", 432);
this.settingsKey_0 = SettingsFile.Settings["pages/TabsBottomLeft_Split"];