Add files via upload

This commit is contained in:
Bouletmarc 2022-11-04 08:57:57 -04:00 committed by GitHub
parent 87b84396ad
commit d7b7cc0c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
98 changed files with 96513 additions and 0 deletions

4431
FrmGridChart.cs Normal file

File diff suppressed because it is too large Load Diff

1832
FrmGridChart.resx Normal file

File diff suppressed because it is too large Load Diff

9350
FrmMain.cs Normal file

File diff suppressed because it is too large Load Diff

1817
FrmMain.resx Normal file

File diff suppressed because it is too large Load Diff

920
InjectorsLoading.cs Normal file
View File

@ -0,0 +1,920 @@
using Dal.Settings;
using Data;
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
internal class InjectorsLoading
{
private Class18 class18_0;
private Class24_u class24_u_0 = null;
public InjectorsLoading(ref Class18 class18_1)
{
class18_0 = class18_1;
LoadINJ();
}
private void ReloadINJ()
{
for (int i = 0; i < 7; i++)
{
class24_u_0.double_0[i] = this.class18_0.method_208(this.class18_0.method_209(float.Parse(class24_u_0.double_0[i].ToString())));
class24_u_0.double_1[i] = this.class18_0.method_224((int)((class24_u_0.double_1[i] * 1000.0) / 3.2));
}
this.class18_0.class24_u_0.Add(class24_u_0);
class24_u_0 = null;
}
private void LoadINJ()
{
class24_u_0 = new Class24_u
{
string_0 = "Acura Integra (92-96 VTEC) 240cc (23lb) 12ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.29, 0.29, 0.4, 0.56, 0.79, 1.22, 1.22 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (92-00 EX/SI) 240cc (23lb) 12ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.32, 0.33, 0.47, 0.62, 1.09, 2.05, 2.05 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (92-00 LX/DX/HX) 190cc (18lb) 12ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 13.0, 12.0, 10.0, 8.0 },
double_1 = new double[] { 0.31, 0.34, 0.46, 0.60, 0.80, 1.17, 1.82 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda All (86-91) 240cc (23lb) 3ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.25, 0.30, 0.35, 0.41, 0.48, 0.59, 1.83 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (01-Up LX/DX/HX) 215cc (20lb) 12ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 13.0, 12.0, 10.0, 8.0 },
double_1 = new double[] { 0.47, 0.50, 0.60, 0.72, 0.81, 1.18, 1.71 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (01-Up EX) 240cc (23lb) 11ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.36, 0.42, 0.47, 0.56, 0.66, 0.82, 1.81 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (03-Up SI) (CRV 02+) 290cc (28lb) 12ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.53, 0.61, 0.68, 0.79, 0.91, 1.06, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Civic (06-Up SI) 330cc (31lb) 10ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.42, 0.50, 0.57, 0.68, 0.82, 0.96, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Prelude (92-96 VTEC) 330cc (31lb) 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.21, 0.27, 0.35, 0.45, 0.56, 0.72, 1.12 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda Prelude (97-02) 290cc (28lb) 12ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.44, 0.63, 0.74, 0.85, 1.02, 1.24, 1.9 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda S2000 360cc 12ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.59, 0.71, 0.81, 0.95, 1.11, 1.27, 1.78 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Acura NSX 240cc (23lb) 2ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.25, 0.31, 0.36, 0.43, 0.51, 0.61, 1.60 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Acura RSX (02-04) 290cc (28lb) 12ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.43, 0.50, 0.58, 0.69, 0.83, 1.00, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Acura RSX Typs-S (02-04) 330cc (31lb) 12ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.05, 8.09, 0.0 },
double_1 = new double[] { 0.50, 0.56, 0.65, 0.77, 0.89, 1.06, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Acura RDX 440cc (31lb) 12ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.04, 1.10, 1.41, 1.80, 2.50, 2.50, 2.50 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Honda/Acura CL 240cc (23lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 13.0, 12.0, 10.0, 8.0 },
double_1 = new double[] { 0.22, 0.25, 0.36, 0.43, 0.52, 0.73, 0.98 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi DSM Black 450cc (90-94 Turbo) (43lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.3, 0.53, 0.67, 0.82, 0.95, 1.11, 1.54 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi DSM Blue 450cc (95-99 Turbo) (43lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.19, 0.45, 0.55, 0.67, 0.81, 1.0, 1.48 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi 3000GT 370cc (32lb) 3ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.48, 0.55, 0.63, 0.70, 0.78, 0.88, 1.88 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi Lancer (2.4L) 240cc (23lb) 15ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.47, 0.55, 0.64, 0.83, 1.05, 1.28, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi EVO3 510cc (@43psi) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.90, 1.02, 1.02, 1.19, 1.35, 1.54, 2.08 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mitsubishi EVO VIII 550cc (52lb) 3ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.52, 0.58, 0.64, 0.72, 0.80, 0.91, 1.90 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Audi S4/TT 340cc (32lb) 14ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.40, 0.47, 0.54, 0.63, 0.74, 0.88, 1.98 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Dodge 4.7 273cc (26lb) 12ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.61, 0.73, 0.89, 1.22, 1.75, 2.35, 2.35 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Dodge SRT-4 (2003) 525cc (50lb) 13ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.08, 0.13, 0.22, 0.50, 0.92, 1.45, 1.45 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Dodge SRT-4 (2004+) 577cc (55lb) 13ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.39, 0.48, 0.61, 1.00, 1.62, 2.33, 2.33 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Dodge Viper (96-2002) 336cc (32lb) 13ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.89, 0.96, 1.09, 1.50, 2.10, 3.00, 3.00 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Edelbrock 630cc (60lb) 12ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.01, 0.04, 0.15, 0.39, 0.76, 1.45, 1.45 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Motorsport 378cc (36lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.25, 0.32, 0.41, 0.69, 1.15, 2.32, 2.32 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Motorsport 441cc (42lb) 14ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.42, 0.49, 0.56, 0.75, 1.14, 2.15, 2.15 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Motorsport 809cc (77lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.89, 0.96, 1.05, 1.33, 1.78, 2.54, 2.54 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Motorsport 1600cc (152lb) 5ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.67, 0.72, 0.83, 1.11, 1.61, 2.31, 2.31 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Motorsport 1680cc (160lb) 5ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.70, 0.80, 0.94, 1.28, 1.80, 2.47, 2.47 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford mustang (84-95) 200cc (19lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.11, 0.20, 0.34, 0.56, 0.86, 1.52, 1.52 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ford Mustang Cobra 252cc (24lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.19, 0.25, 0.36, 0.59, 0.91, 1.57, 1.57 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mustang GT (96-03) 200cc (19lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.39, 0.46, 0.54, 0.80, 1.15, 1.88, 1.88 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Mustang Turbo 315cc (30lb) 15ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.16, 0.23, 0.33, 0.56, 0.88, 1.55, 1.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nismo 740cc (70lb) 11ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.39, 0.44, 0.55, 0.79, 0.79, 1.96, 1.96 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan 180sx(88-93)/Skyline(86-88) 270cc (26lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.38, 0.42, 0.49, 0.75, 1.11, 1.94, 1.94 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan Pulsar Gti-R 444cc (42lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.51, 0.54, 0.60, 0.83, 1.14, 2.01, 2.01 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan Sentra/200sx/NX/G20 (2.0L ONLY) 259cc (25lb) 11ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.37, 0.42, 0.47, 0.64, 0.90, 1.65, 1.65 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan Skyline GT-R 440cc (42lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.58, 0.65, 0.76, 0.96, 1.35, 2.25, 2.25 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan Skyline GTS-T 380cc (36lb) 11ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.36, 0.42, 0.52, 0.73, 1.10, 1.91, 1.91 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan 300zx(95-96)/SR20DET 370cc (35lb) 11ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.54, 0.57, 0.64, 0.86, 1.17, 2.11, 2.11 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan 240SX(89-90) 230cc (22lb) 12ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.39, 0.42, 0.47, 0.62, 0.94, 1.74, 1.74 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Nissan 240sx(91-98)/Altima(93-01) 250cc (24lb) 11ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.35, 0.40, 0.47, 0.69, 1.00, 1.78, 1.78 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "Blitz 850cc (81lb) 14ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.44, 0.52, 0.59, 0.70, 0.84, 1.04, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Bosch 1545cc (147lb) 5ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.61, 0.68, 0.76, 0.89, 1.04, 1.27, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Deatschwerks 600cc (57lb) ?ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.20, 1.30, 1.60, 2.00, 2.35, 2.35, 2.35 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Deatschwerks 800cc (47lb) ?ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.99, 1.11, 1.32, 1.55, 1.98, 1.98, 1.98 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Accel 578cc (55lb) 3ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.48, 0.55, 0.62, 0.71, 0.83, 0.97, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Accel 872cc (83lb) 3ohm",
double_0 = new double[] { 24.56, 16.08, 14.16, 12.13, 10.0, 8.09, 0.0 },
double_1 = new double[] { 0.53, 0.61, 0.70, 0.80, 0.93, 1.11, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "MSD 525cc (50lb) 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.34, 0.49, 0.61, 0.75, 0.94, 1.19, 2.1 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "MSD 750cc (71lb) 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.49, 0.69, 0.81, 0.97, 1.17, 1.4, 2.19 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "P&H DRIVER RC 750cc 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.24, 0.35, 0.42, 0.49, 0.56, 0.65, 0.95 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "P&H DRIVER RC 1200cc 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.13, 0.24, 0.31, 0.38, 0.48, 0.57, 0.92 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Ultimate Racing 440cc 16ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.04, 0.19, 0.3, 0.42, 0.57, 0.74, 1.3 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "HKS 1000cc 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.71, 0.89, 0.97, 1.04, 1.14, 1.31, 1.9 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Denso 550cc 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.47, 0.64, 0.75, 0.87, 1.04, 1.24, 1.91 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Denso 660cc 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.47, 0.64, 0.74, 0.86, 0.99, 1.15, 1.71 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Denso 720cc 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.6, 0.75, 0.86, 0.99, 1.14, 1.35, 1.99 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Fuel Injector Clinic 650cc (62lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.39, 0.45, 0.54, 0.78, 1.13, 1.89, 1.89 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Fuel Injector Clinic 850cc (81lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.38, 0.43, 0.51, 0.74, 1.02, 1.56, 1.56 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Fuel Injector Clinic 950cc (90lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.50, 0.57, 0.65, 0.88, 1.30, 2.05, 2.05 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Hahn Racecraft 625cc (60lb) 3ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.46, 0.50, 0.57, 0.79, 1.19, 1.92, 1.92 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Holley 788cc (75lb) 2ohm",
double_0 = new double[] { 16.0, 15.0, 14.0, 12.0, 10.0, 8.0, 8.0 },
double_1 = new double[] { 0.38, 0.44, 0.54, 0.71, 1.02, 1.68, 1.68 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "Precision Turbo 525cc (50lb) 12ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.38, 0.54, 0.66, 0.84, 1.05, 1.33, 2.47 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Precision Turbo 680cc (65lb) 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.89, 1.05, 1.13, 1.22, 1.36, 1.56, 2.22 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Precision Turbo 1000cc (95lb) 2ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.53, 0.7, 0.81, 0.96, 1.15, 1.38, 2.19 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 270cc (23lb) 16ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.15, 0.32, 0.49, 0.61, 0.76, 0.89, 1.47 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 310cc (30lb) 16ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.25, 0.43, 0.55, 0.72, 0.89, 1.14, 1.92 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 370cc (35lb) 16ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.04, 0.21, 0.35, 0.47, 0.64, 0.85, 1.5 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 440cc (42lb) 13ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.44, 0.63, 0.74, 0.91, 1.08, 1.27, 1.83 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 440cc (42lb) 16ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.0, 0.14, 0.29, 0.42, 0.56, 0.76, 1.31 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 550cc (52lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.3, 0.51, 0.59, 0.68, 0.81, 0.92, 1.46 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 550cc (52lb) 13ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.35, 0.55, 0.67, 0.78, 0.88, 1.07, 1.65 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 650cc (62lb) 12ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.22, 0.41, 0.54, 0.69, 0.86, 1.08, 1.85 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 720cc (69lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.83, 1.06, 1.16, 1.31, 1.48, 1.7, 2.46 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 750cc (71lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.01, 0.18, 0.32, 0.48, 0.66, 0.88, 1.6 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 750cc (71lb) 12ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.4, 0.63, 0.76, 0.92, 1.12, 1.36, 2.18 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 900cc (86lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.35, 0.55, 0.67, 0.78, 0.88, 1.07, 1.65 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 1000cc (95lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.83, 1.06, 1.16, 1.31, 1.48, 1.7, 2.46 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 1200cc (114lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 1.32, 1.62, 1.79, 2.0, 2.28, 2.55, 2.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "RC Engineering 1600cc (152lb) 3ohm",
double_0 = new double[] { 16.0, 14.0, 13.0, 12.0, 11.0, 10.0, 8.0 },
double_1 = new double[] { 0.7, 0.92, 1.05, 1.23, 1.46, 1.8, 2.55 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "ID725 @40Psi 690cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.66, 0.775, 1.03, 1.32, 1.91, 1.91, 1.91 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @43.5Psi 715cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.67, 0.795, 1.04, 1.35, 1.975, 1.975, 1.975 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @45Psi 730cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.68, 0.8, 1.045, 1.365, 2.005, 2.005, 2.005 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @50Psi 770cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.7, 0.83, 1.065, 1.42, 2.095, 2.095, 2.095 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @55Psi 810cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.72, 0.86, 1.09, 1.465, 2.185, 2.185, 2.185 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @60Psi 850cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.745, 0.895, 1.115, 1.52, 2.27, 2.27, 2.27 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @65Psi 890cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.765, 0.93, 1.14, 1.575, 2.35, 2.35, 2.35 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @70Psi 925cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.79, 0.97, 1.175, 1.63, 2.44, 2.44, 2.44 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @75Psi 960cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.815, 1.01, 1.215, 1.685, 2.545, 2.545, 2.545 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @80Psi 990cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.85, 1.045, 1.265, 1.74, 2.675, 2.675, 2.675 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @85Psi 1020cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.885, 1.075, 1.32, 1.79, 2.84, 2.84, 2.84 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @90Psi 1050cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.925, 1.1, 1.375, 1.845, 3.035, 3.035, 3.035 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @95Psi 1080cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.96, 1.125, 1.435, 1.9, 3.25, 3.25, 3.25 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @100Psi 1110cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 10.0, 10.0, 10.0 },
double_1 = new double[] { 0.995, 1.155, 1.49, 1.965, 1.965, 1.965, 1.965 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @105Psi 1140cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.02, 1.185, 1.54, 2.04, 2.04, 2.04, 2.04 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @110Psi 1170cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.04, 1.22, 1.58, 2.12, 2.12, 2.12, 2.12 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @115Psi 1200cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.055, 1.26, 1.615, 2.219, 2.219, 2.219, 2.219 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID725 @120Psi 1235cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.07, 1.3, 1.65, 2.3, 2.3, 2.3, 2.3 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @40Psi 980cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.8, 0.97, 1.21, 1.63, 2.485, 2.485, 2.485 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @43.5Psi 1015cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.805, 0.99, 1.24, 1.675, 2.6, 2.6, 2.6 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @45Psi 1035cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.81, 1.0, 1.295, 1.705, 2.72, 2.72, 2.72 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @50Psi 1085cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.85, 1.025, 1.355, 1.75, 2.855, 2.855, 2.855 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @55Psi 1135cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.82, 1.055, 1.4, 1.815, 3.015, 3.015, 3.015 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @60Psi 1180cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.845, 1.08, 1.44, 1.88, 3.195, 3.195, 3.195 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @65Psi 1225cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.88, 1.1, 1.485, 1.96, 3.37, 3.37, 3.37 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @70Psi 1265cc",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.925, 1.125, 1.53, 2.05, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @75Psi 1305cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.975, 1.155, 1.58, 2.155, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @80Psi 1345cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.02, 1.195, 1.625, 2.28, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @85Psi 1390cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.06, 1.245, 1.675, 2.435, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @90Psi 1435cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.095, 1.305, 1.725, 2.61, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @95Psi 1485cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 1.125, 1.37, 1.775, 2.8, 3.55, 3.55, 3.55 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "ID1000 @100Psi 1530cc require 10v",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 10.0, 10.0, 10.0 },
double_1 = new double[] { 1.155, 1.44, 1.855, 2.995, 3.55, 3.55, 3.55 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "Bosch EV14 1000cc @29Psi 12ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.48, 0.70, 1.01, 1.45, 2.01, 2.01, 2.01 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Bosch EV14 1000cc @43.5Psi 12ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.68, 0.88, 1.22, 1.72, 2.37, 2.37, 2.37 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Bosch EV14 1000cc @58Psi 12ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.78, 1.02, 1.41, 1.92, 2.57, 2.57, 2.57 }
};
ReloadINJ();
class24_u_0 = new Class24_u
{
string_0 = "Bosch EV14 1000cc @72.5Psi 12ohm",
double_0 = new double[] { 16.0, 14.0, 12.0, 10.0, 8.0, 8.0, 8.0 },
double_1 = new double[] { 0.91, 1.15, 1.52, 2.19, 2.91, 2.91, 2.91 }
};
ReloadINJ();
//# #####################################################################
//# #####################################################################
//# #####################################################################
class24_u_0 = new Class24_u
{
string_0 = "Custom",
double_0 = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
double_1 = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }
};
ReloadINJ();
}
}

BIN
Interop.MTSSDKLib.dll Normal file

Binary file not shown.

BIN
Led_Bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Led_Mid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Led_Top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

680
Mtss.cs Normal file
View File

@ -0,0 +1,680 @@
using System;
using System.Collections.Generic;
using System.Text;
internal class Mtss
{
public byte[] ThisBytes = new byte[] {
0x4D, 0x5A, 0x90, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00,
0xB8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
0x0E, 0x1F, 0xBA, 0x0E, 0x00, 0xB4, 0x09, 0xCD, 0x21, 0xB8, 0x01, 0x4C, 0xCD, 0x21, 0x54, 0x68,
0x69, 0x73, 0x20, 0x70, 0x72, 0x6F, 0x67, 0x72, 0x61, 0x6D, 0x20, 0x63, 0x61, 0x6E, 0x6E, 0x6F,
0x74, 0x20, 0x62, 0x65, 0x20, 0x72, 0x75, 0x6E, 0x20, 0x69, 0x6E, 0x20, 0x44, 0x4F, 0x53, 0x20,
0x6D, 0x6F, 0x64, 0x65, 0x2E, 0x0D, 0x0D, 0x0A, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x50, 0x45, 0x00, 0x00, 0x4C, 0x01, 0x03, 0x00, 0xD9, 0x0B, 0x6B, 0x47, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x0E, 0x21, 0x0B, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00,
0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xBE, 0x41, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xA0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x3C, 0xFE, 0x00, 0x00, 0x03, 0x00, 0x40, 0x05,
0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x68, 0x41, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x78, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x80, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2E, 0x74, 0x65, 0x78, 0x74, 0x00, 0x00, 0x00,
0xC4, 0x21, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x60,
0x2E, 0x72, 0x73, 0x72, 0x63, 0x00, 0x00, 0x00, 0x78, 0x03, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00,
0x00, 0x04, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x2E, 0x72, 0x65, 0x6C, 0x6F, 0x63, 0x00, 0x00,
0x0C, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x42,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xA0, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x02, 0x00, 0x05, 0x00,
0x9C, 0x28, 0x00, 0x00, 0xCC, 0x18, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x28, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x13, 0x30, 0x02, 0x00, 0x22, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x7B, 0x01, 0x00, 0x00, 0x04, 0x39, 0x13, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x01,
0x00, 0x00, 0x04, 0xFE, 0x09, 0x01, 0x00, 0x6F, 0x29, 0x00, 0x00, 0x06, 0x2A, 0x2A, 0x00, 0x00,
0x13, 0x30, 0x01, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x7B, 0x02, 0x00, 0x00, 0x04, 0x39, 0x0F, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x02,
0x00, 0x00, 0x04, 0x6F, 0x2B, 0x00, 0x00, 0x06, 0x2A, 0x2A, 0x00, 0x00, 0x13, 0x30, 0x01, 0x00,
0x1E, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x03, 0x00, 0x00,
0x04, 0x39, 0x0F, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x03, 0x00, 0x00, 0x04, 0x6F,
0x2D, 0x00, 0x00, 0x06, 0x2A, 0x2A, 0x00, 0x00, 0x13, 0x30, 0x04, 0x00, 0x36, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x0C, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x7D, 0x04, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x00, 0x00, 0x14,
0x7D, 0x01, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x00, 0x00, 0x14, 0x7D, 0x02, 0x00, 0x00, 0x04, 0xFE,
0x09, 0x00, 0x00, 0x14, 0x7D, 0x03, 0x00, 0x00, 0x04, 0x2A, 0x00, 0x00, 0x13, 0x30, 0x05, 0x00,
0x05, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x11, 0x14, 0x0A, 0x20, 0x10, 0x00, 0x00, 0x00, 0x8D,
0x14, 0x00, 0x00, 0x01, 0x0C, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0xAC, 0x00, 0x00, 0x00,
0x9C, 0x08, 0x20, 0x01, 0x00, 0x00, 0x00, 0x20, 0xA6, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x02,
0x00, 0x00, 0x00, 0x20, 0x8A, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x03, 0x00, 0x00, 0x00, 0x20,
0x4A, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x04, 0x00, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00,
0x9C, 0x08, 0x20, 0x05, 0x00, 0x00, 0x00, 0x20, 0xE1, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x06,
0x00, 0x00, 0x00, 0x20, 0x3E, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x07, 0x00, 0x00, 0x00, 0x20,
0x43, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x08, 0x00, 0x00, 0x00, 0x20, 0x88, 0x00, 0x00, 0x00,
0x9C, 0x08, 0x20, 0x09, 0x00, 0x00, 0x00, 0x20, 0x71, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x0A,
0x00, 0x00, 0x00, 0x20, 0xA2, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x0B, 0x00, 0x00, 0x00, 0x20,
0xF8, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x0C, 0x00, 0x00, 0x00, 0x20, 0xD2, 0x00, 0x00, 0x00,
0x9C, 0x08, 0x20, 0x0D, 0x00, 0x00, 0x00, 0x20, 0x41, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x0E,
0x00, 0x00, 0x00, 0x20, 0x3F, 0x00, 0x00, 0x00, 0x9C, 0x08, 0x20, 0x0F, 0x00, 0x00, 0x00, 0x20,
0x03, 0x00, 0x00, 0x00, 0x9C, 0x12, 0x01, 0x08, 0x28, 0x0D, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00,
0x00, 0x7B, 0x05, 0x00, 0x00, 0x04, 0x12, 0x01, 0x12, 0x00, 0x6F, 0x0E, 0x00, 0x00, 0x0A, 0xFE,
0x09, 0x00, 0x00, 0x06, 0x74, 0x12, 0x00, 0x00, 0x01, 0x7D, 0x07, 0x00, 0x00, 0x04, 0xFE, 0x09,
0x00, 0x00, 0x73, 0x0F, 0x00, 0x00, 0x0A, 0x7D, 0x06, 0x00, 0x00, 0x04, 0x2A, 0x00, 0x00, 0x00,
0x1B, 0x30, 0x06, 0x00, 0x74, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x3A, 0x09,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x49, 0x00, 0x00, 0x06, 0x73, 0x48, 0x00, 0x00,
0x06, 0x0A, 0x16, 0x0B, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01,
0x00, 0x00, 0x01, 0x12, 0x01, 0x6F, 0x11, 0x00, 0x00, 0x0A, 0x06, 0x07, 0x7D, 0x04, 0x00, 0x00,
0x04, 0x06, 0xFE, 0x09, 0x01, 0x00, 0x7D, 0x01, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x00, 0x00, 0x7B,
0x06, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01, 0x00, 0x00, 0x01, 0x6F, 0x12, 0x00, 0x00, 0x0A, 0x26,
0xDD, 0x0A, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0x60, 0x69, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x1B, 0x30, 0x06, 0x00, 0xF1, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x39, 0xCA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x6F, 0x14, 0x00, 0x00,
0x0A, 0x0A, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x20, 0x00, 0x00, 0x00, 0x00, 0x06, 0x3C, 0xAA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x07, 0x6F, 0x15, 0x00,
0x00, 0x0A, 0x74, 0x0A, 0x00, 0x00, 0x02, 0x0C, 0x08, 0x7B, 0x01, 0x00, 0x00, 0x04, 0x14, 0x3B,
0x7A, 0x00, 0x00, 0x00, 0x08, 0x7B, 0x01, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x01, 0x00, 0x74, 0x01,
0x00, 0x00, 0x01, 0x6F, 0x16, 0x00, 0x00, 0x0A, 0x20, 0xFF, 0x00, 0x00, 0x00, 0x5F, 0x20, 0x00,
0x00, 0x00, 0x00, 0x3B, 0x56, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00,
0x04, 0x07, 0x6F, 0x17, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04,
0x08, 0x7B, 0x04, 0x00, 0x00, 0x04, 0x6F, 0x18, 0x00, 0x00, 0x0A, 0x06, 0x20, 0x01, 0x00, 0x00,
0x00, 0x3D, 0x37, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x28,
0x19, 0x00, 0x00, 0x0A, 0x26, 0xFE, 0x09, 0x00, 0x00, 0x14, 0x7D, 0x07, 0x00, 0x00, 0x04, 0xFE,
0x09, 0x00, 0x00, 0x14, 0x7D, 0x06, 0x00, 0x00, 0x04, 0x38, 0x0F, 0x00, 0x00, 0x00, 0x07, 0x20,
0x01, 0x00, 0x00, 0x00, 0x58, 0x0B, 0x07, 0x06, 0x3F, 0x56, 0xFF, 0xFF, 0xFF, 0xDD, 0x0A, 0x00,
0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A, 0x00, 0x72, 0x00,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0xDD, 0xE6, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x1B, 0x30, 0x06, 0x00, 0x74, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x3A, 0x09,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x49, 0x00, 0x00, 0x06, 0x73, 0x48, 0x00, 0x00,
0x06, 0x0A, 0x16, 0x0B, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01,
0x00, 0x00, 0x01, 0x12, 0x01, 0x6F, 0x11, 0x00, 0x00, 0x0A, 0x06, 0x07, 0x7D, 0x04, 0x00, 0x00,
0x04, 0x06, 0xFE, 0x09, 0x01, 0x00, 0x7D, 0x02, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x00, 0x00, 0x7B,
0x06, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01, 0x00, 0x00, 0x01, 0x6F, 0x12, 0x00, 0x00, 0x0A, 0x26,
0xDD, 0x0A, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0x60, 0x69, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x1B, 0x30, 0x06, 0x00, 0xF1, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x39, 0xCA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x6F, 0x14, 0x00, 0x00,
0x0A, 0x0A, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x20, 0x00, 0x00, 0x00, 0x00, 0x06, 0x3C, 0xAA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x07, 0x6F, 0x15, 0x00,
0x00, 0x0A, 0x74, 0x0A, 0x00, 0x00, 0x02, 0x0C, 0x08, 0x7B, 0x02, 0x00, 0x00, 0x04, 0x14, 0x3B,
0x7A, 0x00, 0x00, 0x00, 0x08, 0x7B, 0x02, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x01, 0x00, 0x74, 0x01,
0x00, 0x00, 0x01, 0x6F, 0x16, 0x00, 0x00, 0x0A, 0x20, 0xFF, 0x00, 0x00, 0x00, 0x5F, 0x20, 0x00,
0x00, 0x00, 0x00, 0x3B, 0x56, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00,
0x04, 0x07, 0x6F, 0x17, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04,
0x08, 0x7B, 0x04, 0x00, 0x00, 0x04, 0x6F, 0x18, 0x00, 0x00, 0x0A, 0x06, 0x20, 0x01, 0x00, 0x00,
0x00, 0x3D, 0x37, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x28,
0x19, 0x00, 0x00, 0x0A, 0x26, 0xFE, 0x09, 0x00, 0x00, 0x14, 0x7D, 0x07, 0x00, 0x00, 0x04, 0xFE,
0x09, 0x00, 0x00, 0x14, 0x7D, 0x06, 0x00, 0x00, 0x04, 0x38, 0x0F, 0x00, 0x00, 0x00, 0x07, 0x20,
0x01, 0x00, 0x00, 0x00, 0x58, 0x0B, 0x07, 0x06, 0x3F, 0x56, 0xFF, 0xFF, 0xFF, 0xDD, 0x0A, 0x00,
0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A, 0x00, 0x70, 0x00,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0xDD, 0xE6, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x1B, 0x30, 0x06, 0x00, 0x74, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x3A, 0x09,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x49, 0x00, 0x00, 0x06, 0x73, 0x48, 0x00, 0x00,
0x06, 0x0A, 0x16, 0x0B, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01,
0x00, 0x00, 0x01, 0x12, 0x01, 0x6F, 0x11, 0x00, 0x00, 0x0A, 0x06, 0x07, 0x7D, 0x04, 0x00, 0x00,
0x04, 0x06, 0xFE, 0x09, 0x01, 0x00, 0x7D, 0x03, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x00, 0x00, 0x7B,
0x06, 0x00, 0x00, 0x04, 0x06, 0x74, 0x01, 0x00, 0x00, 0x01, 0x6F, 0x12, 0x00, 0x00, 0x0A, 0x26,
0xDD, 0x0A, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0x60, 0x69, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x1B, 0x30, 0x06, 0x00, 0xF1, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x39, 0xCA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x6F, 0x14, 0x00, 0x00,
0x0A, 0x0A, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x20, 0x00, 0x00, 0x00, 0x00, 0x06, 0x3C, 0xAA,
0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00, 0x04, 0x07, 0x6F, 0x15, 0x00,
0x00, 0x0A, 0x74, 0x0A, 0x00, 0x00, 0x02, 0x0C, 0x08, 0x7B, 0x03, 0x00, 0x00, 0x04, 0x14, 0x3B,
0x7A, 0x00, 0x00, 0x00, 0x08, 0x7B, 0x03, 0x00, 0x00, 0x04, 0xFE, 0x09, 0x01, 0x00, 0x74, 0x01,
0x00, 0x00, 0x01, 0x6F, 0x16, 0x00, 0x00, 0x0A, 0x20, 0xFF, 0x00, 0x00, 0x00, 0x5F, 0x20, 0x00,
0x00, 0x00, 0x00, 0x3B, 0x56, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x06, 0x00, 0x00,
0x04, 0x07, 0x6F, 0x17, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04,
0x08, 0x7B, 0x04, 0x00, 0x00, 0x04, 0x6F, 0x18, 0x00, 0x00, 0x0A, 0x06, 0x20, 0x01, 0x00, 0x00,
0x00, 0x3D, 0x37, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x28,
0x19, 0x00, 0x00, 0x0A, 0x26, 0xFE, 0x09, 0x00, 0x00, 0x14, 0x7D, 0x07, 0x00, 0x00, 0x04, 0xFE,
0x09, 0x00, 0x00, 0x14, 0x7D, 0x06, 0x00, 0x00, 0x04, 0x38, 0x0F, 0x00, 0x00, 0x00, 0x07, 0x20,
0x01, 0x00, 0x00, 0x00, 0x58, 0x0B, 0x07, 0x06, 0x3F, 0x56, 0xFF, 0xFF, 0xFF, 0xDD, 0x0A, 0x00,
0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A, 0x00, 0x69, 0x00,
0x01, 0x10, 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0xDD, 0xE6, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01,
0x13, 0x30, 0x04, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00,
0x28, 0x0C, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00, 0x00, 0xFE, 0x09, 0x01, 0x00, 0x74, 0x10, 0x00,
0x00, 0x01, 0x7D, 0x05, 0x00, 0x00, 0x04, 0x2A, 0x1B, 0x30, 0x05, 0x00, 0x99, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x10, 0x00, 0x00, 0x0A, 0xFE, 0x09, 0x00,
0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x39, 0x67, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B,
0x06, 0x00, 0x00, 0x04, 0x6F, 0x14, 0x00, 0x00, 0x0A, 0x0A, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0B,
0x20, 0x00, 0x00, 0x00, 0x00, 0x06, 0x3C, 0x38, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x7B,
0x06, 0x00, 0x00, 0x04, 0x07, 0x6F, 0x15, 0x00, 0x00, 0x0A, 0x74, 0x0A, 0x00, 0x00, 0x02, 0x0C,
0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x08, 0x7B, 0x04, 0x00, 0x00, 0x04, 0x6F,
0x18, 0x00, 0x00, 0x0A, 0x07, 0x20, 0x01, 0x00, 0x00, 0x00, 0x58, 0x0B, 0x07, 0x06, 0x3F, 0xC8,
0xFF, 0xFF, 0xFF, 0xFE, 0x09, 0x00, 0x00, 0x7B, 0x07, 0x00, 0x00, 0x04, 0x28, 0x19, 0x00, 0x00,
0x0A, 0x26, 0xDD, 0x06, 0x00, 0x00, 0x00, 0x26, 0xDD, 0x00, 0x00, 0x00, 0x00, 0xDD, 0x0A, 0x00,
0x00, 0x00, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x13, 0x00, 0x00, 0x0A, 0xDC, 0x2A, 0x00, 0x20, 0x00,
0x01, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x7A, 0x83, 0x00, 0x06, 0x19, 0x00, 0x00, 0x01,
0x02, 0x00, 0x09, 0x00, 0x85, 0x8E, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x01, 0x13, 0x30, 0x02, 0x00,
0x13, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0xFE, 0x09, 0x00, 0x00, 0x6F, 0x51, 0x00, 0x00,
0x06, 0xFE, 0x09, 0x00, 0x00, 0x28, 0x1A, 0x00, 0x00, 0x0A, 0x2A, 0x6B, 0xEB, 0x6D, 0x73, 0x2C,
0xC8, 0x1F, 0x40, 0x54, 0xFB, 0xB4, 0x19, 0x61, 0x8E, 0xA7, 0x6B, 0xA1, 0xD9, 0x4C, 0x67, 0x01,
0xBC, 0x75, 0xD6, 0x6D, 0xE3, 0xCC, 0xFC, 0x6B, 0x05, 0x1E, 0xA0, 0xEA, 0xCD, 0xED, 0x9E, 0x24,
0xDE, 0x58, 0x39, 0xB3, 0x5E, 0x74, 0x8E, 0x8F, 0x6C, 0xCC, 0xB8, 0xBE, 0x19, 0xDE, 0xB2, 0xE0,
0x5E, 0x9E, 0x27, 0xEB, 0xA1, 0x5F, 0xF8, 0x08, 0x8F, 0x78, 0xD6, 0xCB, 0xD1, 0x96, 0x36, 0x5B,
0x53, 0xE3, 0xFC, 0x3C, 0xED, 0x97, 0x99, 0xAD, 0x78, 0x0C, 0x1A, 0x02, 0x72, 0x45, 0x84, 0xCF,
0x37, 0x28, 0xE7, 0x91, 0x97, 0x43, 0xC7, 0x77, 0xE8, 0x22, 0x32, 0x0F, 0x04, 0x91, 0x76, 0x5C,
0x4A, 0x4A, 0xC5, 0x61, 0x99, 0xD2, 0x7C, 0xEC, 0x6A, 0xF4, 0x67, 0x74, 0x95, 0xFD, 0x57, 0x83,
0x59, 0x66, 0x18, 0x53, 0x50, 0xDC, 0xBF, 0x35, 0x6B, 0xE9, 0x8C, 0x00, 0x42, 0x53, 0x4A, 0x42,
0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x76, 0x32, 0x2E, 0x30,
0x2E, 0x35, 0x30, 0x37, 0x32, 0x37, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x6C, 0x00, 0x00, 0x00,
0x48, 0x0D, 0x00, 0x00, 0x23, 0x7E, 0x00, 0x00, 0xB4, 0x0D, 0x00, 0x00, 0x58, 0x07, 0x00, 0x00,
0x23, 0x53, 0x74, 0x72, 0x69, 0x6E, 0x67, 0x73, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x15, 0x00, 0x00,
0x08, 0x00, 0x00, 0x00, 0x23, 0x55, 0x53, 0x00, 0x14, 0x15, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
0x23, 0x47, 0x55, 0x49, 0x44, 0x00, 0x00, 0x00, 0x24, 0x15, 0x00, 0x00, 0xA8, 0x03, 0x00, 0x00,
0x23, 0x42, 0x6C, 0x6F, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x10,
0x57, 0x37, 0xB6, 0x03, 0x09, 0x00, 0x00, 0x00, 0x00, 0xFA, 0x01, 0x33, 0x00, 0x16, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
0x52, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00,
0x6E, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
0x06, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00,
0x1D, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x07,
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0xEE, 0x00, 0xF5, 0x00, 0x06, 0x00, 0xFC, 0x00,
0x0A, 0x01, 0x06, 0x00, 0x29, 0x01, 0x0A, 0x01, 0x06, 0x00, 0x3E, 0x01, 0x0A, 0x01, 0x06, 0x00,
0x55, 0x01, 0x0A, 0x01, 0x06, 0x00, 0x65, 0x01, 0x0A, 0x01, 0x06, 0x00, 0x79, 0x01, 0xF5, 0x00,
0x06, 0x00, 0x7E, 0x01, 0x0A, 0x01, 0x06, 0x00, 0x99, 0x01, 0xF5, 0x00, 0x06, 0x00, 0xAB, 0x01,
0x0A, 0x01, 0x06, 0x00, 0xBC, 0x01, 0x0A, 0x01, 0x06, 0x00, 0xD4, 0x01, 0x0A, 0x01, 0x06, 0x00,
0xF1, 0x01, 0x0A, 0x01, 0x06, 0x00, 0x02, 0x02, 0x0A, 0x01, 0x06, 0x00, 0x15, 0x02, 0xF5, 0x00,
0x06, 0x00, 0x21, 0x02, 0x3B, 0x02, 0x06, 0x00, 0x63, 0x02, 0x6D, 0x02, 0x06, 0x00, 0x80, 0x02,
0x3B, 0x02, 0x06, 0x00, 0x91, 0x02, 0xF5, 0x00, 0x06, 0x00, 0x96, 0x02, 0xF5, 0x00, 0x06, 0x00,
0x9B, 0x02, 0xA3, 0x02, 0x06, 0x00, 0xB4, 0x02, 0xF5, 0x00, 0x06, 0x00, 0xBD, 0x02, 0x0A, 0x01,
0x06, 0x00, 0xC5, 0x02, 0xF5, 0x00, 0x06, 0x00, 0xC8, 0x02, 0xF5, 0x00, 0x06, 0x00, 0xD2, 0x02,
0x0A, 0x01, 0x06, 0x00, 0xEF, 0x02, 0x0A, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0xA1, 0x10, 0x00, 0x00, 0x0A, 0x00, 0x16, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x00, 0x01, 0x10, 0x00, 0x00, 0x20, 0x00, 0x16, 0x00, 0x05, 0x00, 0x01, 0x00,
0x04, 0x00, 0xA1, 0x00, 0x00, 0x00, 0x29, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x00, 0x22, 0x00,
0x01, 0x01, 0x00, 0x00, 0x3B, 0x00, 0x16, 0x00, 0x25, 0x00, 0x01, 0x00, 0x28, 0x00, 0x01, 0x01,
0x00, 0x00, 0x63, 0x00, 0x16, 0x00, 0x25, 0x00, 0x01, 0x00, 0x2A, 0x00, 0x01, 0x01, 0x00, 0x00,
0x8B, 0x00, 0x16, 0x00, 0x25, 0x00, 0x01, 0x00, 0x2C, 0x00, 0xA1, 0x10, 0x00, 0x00, 0xAB, 0x00,
0x16, 0x00, 0x00, 0x00, 0x01, 0x00, 0x2E, 0x00, 0xA1, 0x10, 0x00, 0x00, 0xAF, 0x00, 0x16, 0x00,
0x00, 0x00, 0x01, 0x00, 0x2E, 0x00, 0x01, 0x01, 0x00, 0x00, 0xB4, 0x00, 0x16, 0x00, 0x05, 0x00,
0x01, 0x00, 0x45, 0x00, 0x00, 0x01, 0x00, 0x00, 0xCB, 0x00, 0x16, 0x00, 0x05, 0x00, 0x05, 0x00,
0x49, 0x00, 0x06, 0x00, 0x15, 0x06, 0x43, 0x00, 0x06, 0x00, 0x2F, 0x06, 0x47, 0x00, 0x06, 0x00,
0x49, 0x06, 0x4B, 0x00, 0x06, 0x00, 0x5B, 0x06, 0x4F, 0x00, 0x01, 0x00, 0x7C, 0x06, 0x57, 0x00,
0x01, 0x00, 0x97, 0x06, 0x5B, 0x00, 0x01, 0x00, 0xAB, 0x06, 0x5F, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x05, 0x07, 0x03, 0x0A, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x05, 0x1E, 0x03, 0x0F, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05,
0x2E, 0x03, 0x0F, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0x06, 0x18, 0x36, 0x03,
0x0F, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x3C, 0x03, 0x13, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x4A, 0x03, 0x13, 0x00, 0x02, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x5A, 0x03, 0x0A, 0x00, 0x02, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x6F, 0x03, 0x17, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x01, 0x7C, 0x03, 0x0F, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x01, 0x84, 0x03, 0x0F, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09,
0x8F, 0x03, 0x13, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x9E, 0x03,
0x13, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0xAF, 0x03, 0x0A, 0x00,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0xC0, 0x03, 0x17, 0x00, 0x05, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0xCE, 0x03, 0x17, 0x00, 0x06, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0xDC, 0x03, 0x17, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x09, 0xF0, 0x03, 0x13, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x09, 0x04, 0x04, 0x13, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09,
0x12, 0x04, 0x13, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x29, 0x04,
0x1B, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x40, 0x04, 0x1B, 0x00,
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x52, 0x04, 0x1B, 0x00, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x64, 0x04, 0x1B, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x09, 0x75, 0x04, 0x1B, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x09, 0x86, 0x04, 0x13, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x09, 0x96, 0x04, 0x13, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x01,
0xA8, 0x04, 0x0F, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x01, 0xB2, 0x04,
0x1F, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x01, 0xC6, 0x04, 0x1F, 0x00,
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x01, 0xDD, 0x04, 0x25, 0x00, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x01, 0xF1, 0x04, 0x25, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x01, 0x08, 0x05, 0x2B, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x01, 0x14, 0x05, 0x2B, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x05, 0xB2, 0x04, 0x1F, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05,
0xC6, 0x04, 0x1F, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05, 0xDD, 0x04,
0x25, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05, 0xF1, 0x04, 0x25, 0x00,
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05, 0x08, 0x05, 0x2B, 0x00, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05, 0x14, 0x05, 0x2B, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x00, 0x06, 0x18, 0x36, 0x03, 0x3D, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x00, 0x46, 0x00, 0x0E, 0x06, 0x0A, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
0x06, 0x18, 0x36, 0x03, 0x3D, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x46, 0x00,
0x0E, 0x06, 0x0F, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x06, 0x18, 0x36, 0x03,
0x3D, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x46, 0x00, 0x0E, 0x06, 0x0F, 0x00,
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x3C, 0x03, 0x13, 0x00, 0x09, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x4A, 0x03, 0x13, 0x00, 0x09, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x5A, 0x03, 0x0A, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x0D, 0x6F, 0x03, 0x17, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x05, 0x7C, 0x03, 0x0F, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05,
0x84, 0x03, 0x0F, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x8F, 0x03,
0x13, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x9E, 0x03, 0x13, 0x00,
0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0xAF, 0x03, 0x0A, 0x00, 0x0B, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0xC0, 0x03, 0x17, 0x00, 0x0C, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0xCE, 0x03, 0x17, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x0D, 0xDC, 0x03, 0x17, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x0D, 0xF0, 0x03, 0x13, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D,
0x04, 0x04, 0x13, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x12, 0x04,
0x13, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x29, 0x04, 0x1B, 0x00,
0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x40, 0x04, 0x1B, 0x00, 0x0F, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x52, 0x04, 0x1B, 0x00, 0x0F, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D, 0x64, 0x04, 0x1B, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0x10, 0xC6, 0x0D, 0x75, 0x04, 0x1B, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10,
0xC6, 0x0D, 0x86, 0x04, 0x13, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x0D,
0x96, 0x04, 0x13, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0xC6, 0x05, 0xA8, 0x04,
0x0F, 0x00, 0x0F, 0x00, 0x50, 0x20, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x07, 0x03, 0x0A, 0x00,
0x0F, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x1E, 0x03, 0x0F, 0x00, 0x0F, 0x00,
0xAC, 0x20, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x2E, 0x03, 0x0F, 0x00, 0x0F, 0x00, 0xD8, 0x20,
0x00, 0x00, 0x00, 0x00, 0x03, 0x18, 0x36, 0x03, 0x0F, 0x00, 0x0F, 0x00, 0x1C, 0x21, 0x00, 0x00,
0x00, 0x00, 0x01, 0x00, 0x66, 0x06, 0x0F, 0x00, 0x0F, 0x00, 0x30, 0x22, 0x00, 0x00, 0x00, 0x00,
0x46, 0x00, 0xB2, 0x04, 0x1F, 0x00, 0x0F, 0x00, 0xC0, 0x22, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00,
0xC6, 0x04, 0x1F, 0x00, 0x0F, 0x00, 0xD0, 0x23, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0xDD, 0x04,
0x25, 0x00, 0x0F, 0x00, 0x60, 0x24, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0xF1, 0x04, 0x25, 0x00,
0x0F, 0x00, 0x70, 0x25, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x08, 0x05, 0x2B, 0x00, 0x0F, 0x00,
0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x14, 0x05, 0x2B, 0x00, 0x0F, 0x00, 0x10, 0x27,
0x00, 0x00, 0x00, 0x00, 0x06, 0x18, 0x36, 0x03, 0x52, 0x00, 0x0F, 0x00, 0x38, 0x27, 0x00, 0x00,
0x00, 0x00, 0x46, 0x00, 0x6B, 0x06, 0x0F, 0x00, 0x0F, 0x00, 0xFC, 0x27, 0x00, 0x00, 0x00, 0x00,
0x46, 0x00, 0x74, 0x06, 0x0F, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x01, 0x00, 0x17, 0x03, 0x01, 0x00,
0x01, 0x00, 0x6A, 0x03, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x6A, 0x03,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x17, 0x03, 0x01, 0x00, 0x01, 0x00, 0x6A, 0x03, 0x00, 0x20,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x6A, 0x03, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x24, 0x00,
0x03, 0x00, 0x20, 0x00, 0x03, 0x00, 0x10, 0x00, 0x08, 0x00, 0x24, 0x00, 0x08, 0x00, 0x10, 0x00,
0x0A, 0x00, 0x08, 0x00, 0x0B, 0x00, 0x10, 0x00, 0x0B, 0x00, 0x3D, 0x00, 0x11, 0x00, 0x36, 0x03,
0x63, 0x00, 0x19, 0x00, 0x36, 0x03, 0x68, 0x00, 0x21, 0x00, 0x36, 0x03, 0x68, 0x00, 0x29, 0x00,
0x36, 0x03, 0x0A, 0x00, 0x31, 0x00, 0x36, 0x03, 0x6D, 0x00, 0x41, 0x00, 0x36, 0x03, 0x72, 0x00,
0x51, 0x00, 0x36, 0x03, 0x7A, 0x00, 0x59, 0x00, 0x36, 0x03, 0x68, 0x00, 0x61, 0x00, 0x36, 0x03,
0x63, 0x00, 0x19, 0x00, 0x36, 0x03, 0x80, 0x00, 0x59, 0x00, 0x36, 0x03, 0x86, 0x00, 0x09, 0x00,
0x36, 0x03, 0x0F, 0x00, 0x99, 0x00, 0x36, 0x03, 0x8C, 0x00, 0x81, 0x00, 0xBD, 0x06, 0x92, 0x00,
0x89, 0x00, 0x36, 0x03, 0x0F, 0x00, 0xA9, 0x00, 0xD1, 0x06, 0x9C, 0x00, 0x91, 0x00, 0xD7, 0x06,
0xA1, 0x00, 0x89, 0x00, 0xDE, 0x06, 0xA8, 0x00, 0xA9, 0x00, 0xE2, 0x06, 0x9C, 0x00, 0x89, 0x00,
0xE7, 0x06, 0x13, 0x00, 0x89, 0x00, 0xF1, 0x06, 0xAD, 0x00, 0xB1, 0x00, 0xFA, 0x06, 0xB2, 0x00,
0x89, 0x00, 0x01, 0x07, 0x0A, 0x00, 0x91, 0x00, 0x0A, 0x07, 0x0A, 0x00, 0xB9, 0x00, 0x13, 0x07,
0xB7, 0x00, 0xC1, 0x00, 0x24, 0x07, 0x9C, 0x00, 0xD1, 0x00, 0x36, 0x03, 0x63, 0x00, 0xD9, 0x00,
0x36, 0x03, 0xBC, 0x00, 0x20, 0x00, 0x23, 0x00, 0xB7, 0x01, 0x29, 0x00, 0x23, 0x00, 0xB7, 0x01,
0x2E, 0x00, 0xE3, 0x00, 0x9B, 0x03, 0x2E, 0x00, 0x0B, 0x00, 0x62, 0x03, 0x2E, 0x00, 0xDB, 0x00,
0x8C, 0x03, 0x40, 0x00, 0x23, 0x00, 0xC0, 0x01, 0x43, 0x00, 0x0B, 0x00, 0x7F, 0x01, 0x43, 0x00,
0x13, 0x00, 0xA9, 0x01, 0x43, 0x00, 0x1B, 0x00, 0xB0, 0x01, 0x49, 0x00, 0x23, 0x00, 0xC0, 0x01,
0x60, 0x00, 0x23, 0x00, 0xC9, 0x01, 0x63, 0x00, 0x13, 0x00, 0xB0, 0x01, 0x63, 0x00, 0x43, 0x00,
0x8C, 0x02, 0x63, 0x00, 0x0B, 0x00, 0xD2, 0x01, 0x63, 0x00, 0x4B, 0x00, 0x35, 0x03, 0x69, 0x00,
0x23, 0x00, 0xC9, 0x01, 0x83, 0x00, 0x33, 0x00, 0x09, 0x02, 0x83, 0x00, 0x13, 0x00, 0xFC, 0x01,
0x83, 0x00, 0x2B, 0x00, 0x03, 0x02, 0x89, 0x00, 0x23, 0x00, 0xA5, 0x02, 0xA0, 0x00, 0x23, 0x00,
0xB7, 0x01, 0xA3, 0x00, 0x2B, 0x00, 0x03, 0x02, 0xA3, 0x00, 0x13, 0x00, 0xFC, 0x01, 0xA9, 0x00,
0x23, 0x00, 0xAE, 0x02, 0xC0, 0x00, 0x23, 0x00, 0xC0, 0x01, 0xC3, 0x00, 0x2B, 0x00, 0x03, 0x02,
0xC3, 0x00, 0x13, 0x00, 0xFC, 0x01, 0xC9, 0x00, 0x23, 0x00, 0xB7, 0x02, 0xE0, 0x00, 0x23, 0x00,
0xC0, 0x01, 0xE3, 0x00, 0x13, 0x00, 0xFC, 0x01, 0xE3, 0x00, 0x2B, 0x00, 0x03, 0x02, 0xE9, 0x00,
0x23, 0x00, 0xC0, 0x02, 0x00, 0x01, 0x23, 0x00, 0xC9, 0x01, 0x03, 0x01, 0x0B, 0x00, 0x4A, 0x02,
0x03, 0x01, 0x3B, 0x00, 0x74, 0x02, 0x09, 0x01, 0x23, 0x00, 0xC9, 0x02, 0x20, 0x01, 0x23, 0x00,
0x93, 0x02, 0x23, 0x01, 0x0B, 0x00, 0x4A, 0x02, 0x23, 0x01, 0x13, 0x00, 0x52, 0x03, 0x29, 0x01,
0x23, 0x00, 0xD2, 0x02, 0x40, 0x01, 0x23, 0x00, 0x9C, 0x02, 0x43, 0x01, 0x53, 0x00, 0xFF, 0x02,
0x43, 0x01, 0x5B, 0x00, 0x59, 0x03, 0x49, 0x01, 0x23, 0x00, 0xDB, 0x02, 0x60, 0x01, 0x23, 0x00,
0xA5, 0x02, 0x69, 0x01, 0x23, 0x00, 0xE4, 0x02, 0x80, 0x01, 0x23, 0x00, 0xAE, 0x02, 0x89, 0x01,
0x23, 0x00, 0xED, 0x02, 0xA0, 0x01, 0x23, 0x00, 0xAE, 0x02, 0xA9, 0x01, 0x23, 0x00, 0xF6, 0x02,
0xC0, 0x01, 0x23, 0x00, 0xB7, 0x02, 0xC9, 0x01, 0x23, 0x00, 0xFF, 0x02, 0xE0, 0x01, 0x23, 0x00,
0xC0, 0x02, 0xE9, 0x01, 0x23, 0x00, 0x08, 0x03, 0x00, 0x02, 0x23, 0x00, 0xC9, 0x02, 0x09, 0x02,
0x23, 0x00, 0x11, 0x03, 0x20, 0x02, 0x23, 0x00, 0xD2, 0x02, 0x29, 0x02, 0x23, 0x00, 0x1A, 0x03,
0x40, 0x02, 0x23, 0x00, 0xDB, 0x02, 0x49, 0x02, 0x23, 0x00, 0x23, 0x03, 0x60, 0x02, 0x23, 0x00,
0xE4, 0x02, 0x69, 0x02, 0x23, 0x00, 0xB7, 0x01, 0x80, 0x02, 0x23, 0x00, 0xED, 0x02, 0x89, 0x02,
0x23, 0x00, 0xC0, 0x01, 0xA0, 0x02, 0x23, 0x00, 0xF6, 0x02, 0xA9, 0x02, 0x23, 0x00, 0xC9, 0x01,
0xC0, 0x02, 0x23, 0x00, 0xFF, 0x02, 0xC9, 0x02, 0x23, 0x00, 0xA5, 0x02, 0xE0, 0x02, 0x23, 0x00,
0x08, 0x03, 0xE9, 0x02, 0x23, 0x00, 0xAE, 0x02, 0x00, 0x03, 0x23, 0x00, 0x11, 0x03, 0x09, 0x03,
0x23, 0x00, 0xB7, 0x02, 0x20, 0x03, 0x23, 0x00, 0x1A, 0x03, 0x29, 0x03, 0x23, 0x00, 0xC0, 0x02,
0x40, 0x03, 0x23, 0x00, 0x23, 0x03, 0x49, 0x03, 0x23, 0x00, 0xC9, 0x02, 0x60, 0x03, 0x23, 0x00,
0x2C, 0x03, 0x69, 0x03, 0x23, 0x00, 0xD2, 0x02, 0x89, 0x03, 0x23, 0x00, 0xDB, 0x02, 0xA9, 0x03,
0x23, 0x00, 0xE4, 0x02, 0xC9, 0x03, 0x23, 0x00, 0xED, 0x02, 0xE9, 0x03, 0x23, 0x00, 0xF6, 0x02,
0x09, 0x04, 0x23, 0x00, 0xFF, 0x02, 0x29, 0x04, 0x23, 0x00, 0x08, 0x03, 0x49, 0x04, 0x23, 0x00,
0x11, 0x03, 0x69, 0x04, 0x23, 0x00, 0x1A, 0x03, 0x89, 0x04, 0x23, 0x00, 0x23, 0x03, 0xC0, 0x05,
0x23, 0x00, 0xB7, 0x01, 0xE0, 0x05, 0x23, 0x00, 0xC0, 0x01, 0x00, 0x06, 0x23, 0x00, 0xC0, 0x01,
0x20, 0x06, 0x23, 0x00, 0xC9, 0x01, 0x40, 0x06, 0x23, 0x00, 0x93, 0x02, 0x60, 0x06, 0x23, 0x00,
0x9C, 0x02, 0x80, 0x06, 0x23, 0x00, 0xA5, 0x02, 0xA0, 0x06, 0x23, 0x00, 0xAE, 0x02, 0xC0, 0x06,
0x23, 0x00, 0xAE, 0x02, 0xE0, 0x06, 0x23, 0x00, 0xB7, 0x02, 0x00, 0x07, 0x23, 0x00, 0xC0, 0x02,
0x20, 0x07, 0x23, 0x00, 0xC9, 0x02, 0x40, 0x07, 0x23, 0x00, 0xD2, 0x02, 0x60, 0x07, 0x23, 0x00,
0xDB, 0x02, 0x80, 0x07, 0x23, 0x00, 0xE4, 0x02, 0xA0, 0x07, 0x23, 0x00, 0xED, 0x02, 0xC0, 0x07,
0x23, 0x00, 0xF6, 0x02, 0xE0, 0x07, 0x23, 0x00, 0xFF, 0x02, 0x00, 0x08, 0x23, 0x00, 0x08, 0x03,
0x20, 0x08, 0x23, 0x00, 0x11, 0x03, 0x40, 0x08, 0x23, 0x00, 0x1A, 0x03, 0x60, 0x08, 0x23, 0x00,
0x23, 0x03, 0x80, 0x08, 0x23, 0x00, 0x2C, 0x03, 0x07, 0x00, 0xC2, 0x00, 0x0B, 0x00, 0xC2, 0x00,
0x0D, 0x00, 0xC2, 0x00, 0x0F, 0x00, 0xC2, 0x00, 0x15, 0x00, 0xC2, 0x00, 0x19, 0x00, 0xC2, 0x00,
0x1B, 0x00, 0xC2, 0x00, 0x1D, 0x00, 0xC2, 0x00, 0xC4, 0x00, 0xC7, 0x00, 0xD0, 0x00, 0xD6, 0x00,
0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x07, 0x03, 0x14, 0x00, 0x00, 0x00,
0x1E, 0x03, 0x18, 0x00, 0x00, 0x00, 0x2E, 0x03, 0x1C, 0x00, 0x00, 0x00, 0x07, 0x03, 0x14, 0x00,
0x00, 0x00, 0x1E, 0x03, 0x18, 0x00, 0x00, 0x00, 0x2E, 0x03, 0x1C, 0x00, 0x03, 0x00, 0x01, 0x00,
0x09, 0x00, 0x13, 0x00, 0x00, 0x00, 0x23, 0x05, 0x31, 0x00, 0x00, 0x00, 0x2D, 0x05, 0x31, 0x00,
0x00, 0x00, 0x39, 0x05, 0x35, 0x00, 0x00, 0x00, 0x42, 0x05, 0x31, 0x00, 0x00, 0x00, 0x4D, 0x05,
0x31, 0x00, 0x00, 0x00, 0x5A, 0x05, 0x35, 0x00, 0x00, 0x00, 0x64, 0x05, 0x35, 0x00, 0x00, 0x00,
0x6E, 0x05, 0x35, 0x00, 0x00, 0x00, 0x7E, 0x05, 0x31, 0x00, 0x00, 0x00, 0x8E, 0x05, 0x31, 0x00,
0x00, 0x00, 0x98, 0x05, 0x31, 0x00, 0x00, 0x00, 0xAB, 0x05, 0x39, 0x00, 0x00, 0x00, 0xBE, 0x05,
0x39, 0x00, 0x00, 0x00, 0xCC, 0x05, 0x39, 0x00, 0x00, 0x00, 0xDA, 0x05, 0x39, 0x00, 0x00, 0x00,
0xE7, 0x05, 0x39, 0x00, 0x00, 0x00, 0xF4, 0x05, 0x31, 0x00, 0x00, 0x00, 0x00, 0x06, 0x31, 0x00,
0x00, 0x00, 0x23, 0x05, 0x31, 0x00, 0x00, 0x00, 0x2D, 0x05, 0x31, 0x00, 0x00, 0x00, 0x39, 0x05,
0x35, 0x00, 0x00, 0x00, 0x42, 0x05, 0x31, 0x00, 0x00, 0x00, 0x4D, 0x05, 0x31, 0x00, 0x00, 0x00,
0x5A, 0x05, 0x35, 0x00, 0x00, 0x00, 0x64, 0x05, 0x35, 0x00, 0x00, 0x00, 0x6E, 0x05, 0x35, 0x00,
0x00, 0x00, 0x7E, 0x05, 0x31, 0x00, 0x00, 0x00, 0x8E, 0x05, 0x31, 0x00, 0x00, 0x00, 0x98, 0x05,
0x31, 0x00, 0x00, 0x00, 0xAB, 0x05, 0x39, 0x00, 0x00, 0x00, 0xBE, 0x05, 0x39, 0x00, 0x00, 0x00,
0xCC, 0x05, 0x39, 0x00, 0x00, 0x00, 0xDA, 0x05, 0x39, 0x00, 0x00, 0x00, 0xE7, 0x05, 0x39, 0x00,
0x00, 0x00, 0xF4, 0x05, 0x31, 0x00, 0x00, 0x00, 0x00, 0x06, 0x31, 0x00, 0x10, 0x00, 0x1D, 0x00,
0x02, 0x00, 0x08, 0x00, 0x1C, 0x00, 0x02, 0x00, 0x02, 0x00, 0x05, 0x00, 0x03, 0x00, 0x10, 0x00,
0x1F, 0x00, 0x04, 0x00, 0x08, 0x00, 0x1E, 0x00, 0x04, 0x00, 0x02, 0x00, 0x06, 0x00, 0x05, 0x00,
0x01, 0x00, 0x07, 0x00, 0x05, 0x00, 0x10, 0x00, 0x21, 0x00, 0x06, 0x00, 0x08, 0x00, 0x20, 0x00,
0x06, 0x00, 0x02, 0x00, 0x08, 0x00, 0x07, 0x00, 0x10, 0x00, 0x23, 0x00, 0x08, 0x00, 0x08, 0x00,
0x22, 0x00, 0x08, 0x00, 0x02, 0x00, 0x0B, 0x00, 0x09, 0x00, 0x08, 0x00, 0x24, 0x00, 0x0A, 0x00,
0x10, 0x00, 0x25, 0x00, 0x0A, 0x00, 0x02, 0x00, 0x0C, 0x00, 0x0B, 0x00, 0x01, 0x00, 0x0D, 0x00,
0x0B, 0x00, 0x08, 0x00, 0x26, 0x00, 0x0C, 0x00, 0x10, 0x00, 0x27, 0x00, 0x0C, 0x00, 0x02, 0x00,
0x0E, 0x00, 0x0D, 0x00, 0x02, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0x02, 0x00, 0x10, 0x00, 0x11, 0x00,
0x02, 0x00, 0x11, 0x00, 0x13, 0x00, 0x02, 0x00, 0x12, 0x00, 0x15, 0x00, 0x02, 0x00, 0x13, 0x00,
0x17, 0x00, 0x02, 0x00, 0x14, 0x00, 0x19, 0x00, 0x02, 0x00, 0x15, 0x00, 0x1B, 0x00, 0x02, 0x00,
0x16, 0x00, 0x1D, 0x00, 0x02, 0x00, 0x17, 0x00, 0x1F, 0x00, 0x02, 0x00, 0x18, 0x00, 0x21, 0x00,
0x02, 0x00, 0x19, 0x00, 0x23, 0x00, 0x02, 0x00, 0x1A, 0x00, 0x25, 0x00, 0x02, 0x00, 0x2E, 0x00,
0x27, 0x00, 0x02, 0x00, 0x2F, 0x00, 0x29, 0x00, 0x01, 0x00, 0x30, 0x00, 0x29, 0x00, 0x02, 0x00,
0x31, 0x00, 0x2B, 0x00, 0x02, 0x00, 0x34, 0x00, 0x2D, 0x00, 0x02, 0x00, 0x35, 0x00, 0x2F, 0x00,
0x01, 0x00, 0x36, 0x00, 0x2F, 0x00, 0x02, 0x00, 0x37, 0x00, 0x31, 0x00, 0x02, 0x00, 0x38, 0x00,
0x33, 0x00, 0x02, 0x00, 0x39, 0x00, 0x35, 0x00, 0x02, 0x00, 0x3A, 0x00, 0x37, 0x00, 0x02, 0x00,
0x3B, 0x00, 0x39, 0x00, 0x02, 0x00, 0x3C, 0x00, 0x3B, 0x00, 0x02, 0x00, 0x3D, 0x00, 0x3D, 0x00,
0x02, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x02, 0x00, 0x3F, 0x00, 0x41, 0x00, 0x02, 0x00, 0x40, 0x00,
0x43, 0x00, 0x02, 0x00, 0x41, 0x00, 0x45, 0x00, 0x02, 0x00, 0x42, 0x00, 0x47, 0x00, 0x02, 0x00,
0x43, 0x00, 0x49, 0x00, 0x03, 0x00, 0x0A, 0x00, 0x5C, 0x00, 0x03, 0x00, 0x0C, 0x00, 0x5E, 0x00,
0x03, 0x00, 0x0E, 0x00, 0x60, 0x00, 0x03, 0x00, 0x10, 0x00, 0x62, 0x00, 0x03, 0x00, 0x12, 0x00,
0x64, 0x00, 0x03, 0x00, 0x14, 0x00, 0x66, 0x00, 0x03, 0x00, 0x16, 0x00, 0x68, 0x00, 0x03, 0x00,
0x18, 0x00, 0x6A, 0x00, 0x03, 0x00, 0x1A, 0x00, 0x6C, 0x00, 0x03, 0x00, 0x1C, 0x00, 0x6E, 0x00,
0x03, 0x00, 0x1E, 0x00, 0x70, 0x00, 0x03, 0x00, 0x20, 0x00, 0x72, 0x00, 0x03, 0x00, 0x22, 0x00,
0x74, 0x00, 0x03, 0x00, 0x24, 0x00, 0x76, 0x00, 0x03, 0x00, 0x26, 0x00, 0x78, 0x00, 0x03, 0x00,
0x28, 0x00, 0x7A, 0x00, 0x03, 0x00, 0x2A, 0x00, 0x7C, 0x00, 0x03, 0x00, 0x2C, 0x00, 0x7E, 0x00,
0x03, 0x00, 0x2E, 0x00, 0x80, 0x00, 0x03, 0x00, 0x30, 0x00, 0x82, 0x00, 0x03, 0x00, 0x32, 0x00,
0x84, 0x00, 0x03, 0x00, 0x34, 0x00, 0x86, 0x00, 0x03, 0x00, 0x36, 0x00, 0x88, 0x00, 0x03, 0x00,
0x38, 0x00, 0x44, 0x00, 0x03, 0x00, 0x3A, 0x00, 0x46, 0x00, 0x03, 0x00, 0x3C, 0x00, 0x48, 0x00,
0x03, 0x00, 0x3E, 0x00, 0x4A, 0x00, 0x03, 0x00, 0x40, 0x00, 0x4C, 0x00, 0x03, 0x00, 0x42, 0x00,
0x4E, 0x00, 0x04, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
0x00, 0x00, 0xDD, 0x00, 0x35, 0x07, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0xE5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x3C, 0x4D, 0x6F, 0x64, 0x75, 0x6C, 0x65, 0x3E, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45,
0x76, 0x65, 0x6E, 0x74, 0x73, 0x00, 0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62, 0x00,
0x4D, 0x54, 0x53, 0x43, 0x6C, 0x61, 0x73, 0x73, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45, 0x76,
0x65, 0x6E, 0x74, 0x73, 0x5F, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53,
0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F,
0x6E, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x48, 0x61, 0x6E, 0x64, 0x6C,
0x65, 0x72, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F, 0x43,
0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x45, 0x72, 0x72, 0x6F, 0x72, 0x45, 0x76,
0x65, 0x6E, 0x74, 0x48, 0x61, 0x6E, 0x64, 0x6C, 0x65, 0x72, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53,
0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F, 0x4E, 0x65, 0x77, 0x44, 0x61, 0x74, 0x61, 0x45, 0x76,
0x65, 0x6E, 0x74, 0x48, 0x61, 0x6E, 0x64, 0x6C, 0x65, 0x72, 0x00, 0x4D, 0x54, 0x53, 0x00, 0x49,
0x4D, 0x54, 0x53, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F,
0x53, 0x69, 0x6E, 0x6B, 0x48, 0x65, 0x6C, 0x70, 0x65, 0x72, 0x00, 0x5F, 0x49, 0x4D, 0x54, 0x53,
0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x50, 0x72, 0x6F, 0x76,
0x69, 0x64, 0x65, 0x72, 0x00, 0x6D, 0x73, 0x63, 0x6F, 0x72, 0x6C, 0x69, 0x62, 0x00, 0x4F, 0x62,
0x6A, 0x65, 0x63, 0x74, 0x00, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x00, 0x47, 0x75, 0x69, 0x64,
0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D,
0x2E, 0x52, 0x75, 0x6E, 0x74, 0x69, 0x6D, 0x65, 0x2E, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x6F, 0x70,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x00, 0x54, 0x79, 0x70, 0x65, 0x4C, 0x69, 0x62,
0x54, 0x79, 0x70, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x49, 0x6E,
0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x00, 0x44, 0x69, 0x73, 0x70, 0x49, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x00, 0x43, 0x6F, 0x6D, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6C, 0x65, 0x41,
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x54, 0x79, 0x70, 0x65, 0x00, 0x43, 0x6F,
0x6D, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x41,
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x4D, 0x75, 0x6C, 0x74, 0x69, 0x63, 0x61,
0x73, 0x74, 0x44, 0x65, 0x6C, 0x65, 0x67, 0x61, 0x74, 0x65, 0x00, 0x43, 0x6F, 0x43, 0x6C, 0x61,
0x73, 0x73, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x43, 0x6C, 0x61, 0x73,
0x73, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
0x75, 0x74, 0x65, 0x00, 0x43, 0x6F, 0x6D, 0x53, 0x6F, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6E, 0x74,
0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
0x00, 0x54, 0x79, 0x70, 0x65, 0x4C, 0x69, 0x62, 0x54, 0x79, 0x70, 0x65, 0x46, 0x6C, 0x61, 0x67,
0x73, 0x00, 0x43, 0x6C, 0x61, 0x73, 0x73, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
0x54, 0x79, 0x70, 0x65, 0x00, 0x49, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x61, 0x62, 0x6C, 0x65,
0x00, 0x49, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x50, 0x6F, 0x69, 0x6E,
0x74, 0x43, 0x6F, 0x6E, 0x74, 0x61, 0x69, 0x6E, 0x65, 0x72, 0x00, 0x53, 0x79, 0x73, 0x74, 0x65,
0x6D, 0x2E, 0x52, 0x75, 0x6E, 0x74, 0x69, 0x6D, 0x65, 0x2E, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x6F,
0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2E, 0x43, 0x6F, 0x6D, 0x54, 0x79, 0x70,
0x65, 0x73, 0x00, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4C, 0x69, 0x73, 0x74, 0x00, 0x53, 0x79, 0x73,
0x74, 0x65, 0x6D, 0x2E, 0x43, 0x6F, 0x6C, 0x6C, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x73, 0x00,
0x49, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x50, 0x6F, 0x69, 0x6E, 0x74,
0x00, 0x47, 0x75, 0x69, 0x64, 0x00, 0x42, 0x79, 0x74, 0x65, 0x00, 0x4D, 0x6F, 0x6E, 0x69, 0x74,
0x6F, 0x72, 0x00, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x2E, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64,
0x69, 0x6E, 0x67, 0x00, 0x44, 0x65, 0x6C, 0x65, 0x67, 0x61, 0x74, 0x65, 0x00, 0x4D, 0x61, 0x72,
0x73, 0x68, 0x61, 0x6C, 0x00, 0x47, 0x43, 0x00, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6F,
0x6E, 0x00, 0x49, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x65, 0x64, 0x46, 0x72, 0x6F, 0x6D, 0x54, 0x79,
0x70, 0x65, 0x4C, 0x69, 0x62, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x54,
0x79, 0x70, 0x65, 0x4C, 0x69, 0x62, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x41, 0x74, 0x74,
0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F,
0x6E, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x00, 0x52, 0x65, 0x73, 0x75, 0x6C, 0x74, 0x00, 0x43, 0x6F,
0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x45, 0x72, 0x72, 0x6F, 0x72, 0x00, 0x4E, 0x65,
0x77, 0x44, 0x61, 0x74, 0x61, 0x00, 0x2E, 0x63, 0x74, 0x6F, 0x72, 0x00, 0x67, 0x65, 0x74, 0x5F,
0x50, 0x6F, 0x72, 0x74, 0x43, 0x6F, 0x75, 0x6E, 0x74, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x43, 0x75,
0x72, 0x72, 0x65, 0x6E, 0x74, 0x50, 0x6F, 0x72, 0x74, 0x00, 0x73, 0x65, 0x74, 0x5F, 0x43, 0x75,
0x72, 0x72, 0x65, 0x6E, 0x74, 0x50, 0x6F, 0x72, 0x74, 0x00, 0x70, 0x56, 0x61, 0x6C, 0x00, 0x67,
0x65, 0x74, 0x5F, 0x50, 0x6F, 0x72, 0x74, 0x4E, 0x61, 0x6D, 0x65, 0x00, 0x43, 0x6F, 0x6E, 0x6E,
0x65, 0x63, 0x74, 0x00, 0x44, 0x69, 0x73, 0x63, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x00, 0x67,
0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x43, 0x6F, 0x75, 0x6E, 0x74, 0x00, 0x67, 0x65,
0x74, 0x5F, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6E, 0x74, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x00, 0x73,
0x65, 0x74, 0x5F, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6E, 0x74, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x00,
0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4E, 0x61, 0x6D, 0x65, 0x00, 0x67, 0x65,
0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x55, 0x6E, 0x69, 0x74, 0x00, 0x67, 0x65, 0x74, 0x5F,
0x49, 0x6E, 0x70, 0x75, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4E, 0x61, 0x6D, 0x65, 0x00,
0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54,
0x79, 0x70, 0x65, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70,
0x65, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63,
0x65, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70,
0x75, 0x74, 0x41, 0x46, 0x52, 0x4D, 0x75, 0x6C, 0x74, 0x69, 0x70, 0x6C, 0x69, 0x65, 0x72, 0x00,
0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D, 0x69, 0x6E, 0x56, 0x61, 0x6C, 0x75,
0x65, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D, 0x61, 0x78, 0x56, 0x61,
0x6C, 0x75, 0x65, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D, 0x69, 0x6E,
0x56, 0x6F, 0x6C, 0x74, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D, 0x61,
0x78, 0x56, 0x6F, 0x6C, 0x74, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x53,
0x61, 0x6D, 0x70, 0x6C, 0x65, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x46,
0x75, 0x6E, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x00, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74,
0x61, 0x00, 0x61, 0x64, 0x64, 0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E,
0x45, 0x76, 0x65, 0x6E, 0x74, 0x00, 0x72, 0x65, 0x6D, 0x6F, 0x76, 0x65, 0x5F, 0x43, 0x6F, 0x6E,
0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x00, 0x61, 0x64, 0x64,
0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x45, 0x72, 0x72, 0x6F, 0x72,
0x00, 0x72, 0x65, 0x6D, 0x6F, 0x76, 0x65, 0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69,
0x6F, 0x6E, 0x45, 0x72, 0x72, 0x6F, 0x72, 0x00, 0x61, 0x64, 0x64, 0x5F, 0x4E, 0x65, 0x77, 0x44,
0x61, 0x74, 0x61, 0x00, 0x72, 0x65, 0x6D, 0x6F, 0x76, 0x65, 0x5F, 0x4E, 0x65, 0x77, 0x44, 0x61,
0x74, 0x61, 0x00, 0x50, 0x6F, 0x72, 0x74, 0x43, 0x6F, 0x75, 0x6E, 0x74, 0x00, 0x43, 0x75, 0x72,
0x72, 0x65, 0x6E, 0x74, 0x50, 0x6F, 0x72, 0x74, 0x00, 0x50, 0x6F, 0x72, 0x74, 0x4E, 0x61, 0x6D,
0x65, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x43, 0x6F, 0x75, 0x6E, 0x74, 0x00, 0x43, 0x75, 0x72,
0x72, 0x65, 0x6E, 0x74, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4E,
0x61, 0x6D, 0x65, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x55, 0x6E, 0x69, 0x74, 0x00, 0x49, 0x6E,
0x70, 0x75, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4E, 0x61, 0x6D, 0x65, 0x00, 0x49, 0x6E,
0x70, 0x75, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x00, 0x49, 0x6E,
0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x44, 0x65, 0x76,
0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74,
0x41, 0x46, 0x52, 0x4D, 0x75, 0x6C, 0x74, 0x69, 0x70, 0x6C, 0x69, 0x65, 0x72, 0x00, 0x49, 0x6E,
0x70, 0x75, 0x74, 0x4D, 0x69, 0x6E, 0x56, 0x61, 0x6C, 0x75, 0x65, 0x00, 0x49, 0x6E, 0x70, 0x75,
0x74, 0x4D, 0x61, 0x78, 0x56, 0x61, 0x6C, 0x75, 0x65, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D,
0x69, 0x6E, 0x56, 0x6F, 0x6C, 0x74, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x4D, 0x61, 0x78, 0x56,
0x6F, 0x6C, 0x74, 0x00, 0x49, 0x6E, 0x70, 0x75, 0x74, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x00,
0x49, 0x6E, 0x70, 0x75, 0x74, 0x46, 0x75, 0x6E, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x00, 0x49, 0x6E,
0x76, 0x6F, 0x6B, 0x65, 0x00, 0x6D, 0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F,
0x6E, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x44, 0x65, 0x6C, 0x65, 0x67, 0x61, 0x74, 0x65, 0x00, 0x6D,
0x5F, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x45, 0x72, 0x72, 0x6F, 0x72,
0x44, 0x65, 0x6C, 0x65, 0x67, 0x61, 0x74, 0x65, 0x00, 0x6D, 0x5F, 0x4E, 0x65, 0x77, 0x44, 0x61,
0x74, 0x61, 0x44, 0x65, 0x6C, 0x65, 0x67, 0x61, 0x74, 0x65, 0x00, 0x6D, 0x5F, 0x64, 0x77, 0x43,
0x6F, 0x6F, 0x6B, 0x69, 0x65, 0x00, 0x49, 0x6E, 0x69, 0x74, 0x00, 0x46, 0x69, 0x6E, 0x61, 0x6C,
0x69, 0x7A, 0x65, 0x00, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x65, 0x00, 0x6D, 0x5F, 0x43, 0x6F,
0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x43, 0x6F, 0x6E,
0x74, 0x61, 0x69, 0x6E, 0x65, 0x72, 0x00, 0x6D, 0x5F, 0x61, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x53,
0x69, 0x6E, 0x6B, 0x48, 0x65, 0x6C, 0x70, 0x65, 0x72, 0x73, 0x00, 0x6D, 0x5F, 0x43, 0x6F, 0x6E,
0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x00, 0x46, 0x69, 0x6E,
0x64, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x50, 0x6F, 0x69, 0x6E, 0x74,
0x00, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x00, 0x41, 0x64,
0x64, 0x00, 0x45, 0x78, 0x69, 0x74, 0x00, 0x67, 0x65, 0x74, 0x5F, 0x43, 0x6F, 0x75, 0x6E, 0x74,
0x00, 0x67, 0x65, 0x74, 0x5F, 0x49, 0x74, 0x65, 0x6D, 0x00, 0x45, 0x71, 0x75, 0x61, 0x6C, 0x73,
0x00, 0x52, 0x65, 0x6D, 0x6F, 0x76, 0x65, 0x41, 0x74, 0x00, 0x55, 0x6E, 0x61, 0x64, 0x76, 0x69,
0x73, 0x65, 0x00, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x43, 0x6F, 0x6D, 0x4F, 0x62, 0x6A,
0x65, 0x63, 0x74, 0x00, 0x53, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6E, 0x61,
0x6C, 0x69, 0x7A, 0x65, 0x00, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x6F, 0x70, 0x2E, 0x4D, 0x54, 0x53,
0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62, 0x00, 0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62,
0x2E, 0x64, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00,
0x3F, 0x72, 0xF9, 0xD4, 0x12, 0x9C, 0xBA, 0x45, 0x9D, 0xD1, 0xA8, 0x07, 0xBC, 0x00, 0x48, 0x92,
0x00, 0x08, 0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89, 0x04, 0x20, 0x01, 0x01, 0x08, 0x03,
0x20, 0x00, 0x01, 0x03, 0x20, 0x00, 0x08, 0x03, 0x20, 0x00, 0x0E, 0x03, 0x20, 0x00, 0x0C, 0x05,
0x20, 0x01, 0x01, 0x12, 0x14, 0x05, 0x20, 0x01, 0x01, 0x12, 0x18, 0x05, 0x20, 0x01, 0x01, 0x12,
0x1C, 0x03, 0x08, 0x00, 0x08, 0x03, 0x08, 0x00, 0x0E, 0x03, 0x08, 0x00, 0x0C, 0x05, 0x20, 0x02,
0x01, 0x1C, 0x19, 0x03, 0x06, 0x12, 0x14, 0x03, 0x06, 0x12, 0x18, 0x03, 0x06, 0x12, 0x1C, 0x02,
0x06, 0x08, 0x04, 0x20, 0x01, 0x01, 0x1C, 0x03, 0x06, 0x12, 0x41, 0x03, 0x06, 0x12, 0x45, 0x03,
0x06, 0x12, 0x49, 0x04, 0x20, 0x01, 0x01, 0x0E, 0x04, 0x20, 0x01, 0x01, 0x06, 0x04, 0x20, 0x01,
0x01, 0x02, 0x07, 0x20, 0x02, 0x01, 0x12, 0x1D, 0x12, 0x1D, 0x05, 0x20, 0x01, 0x01, 0x12, 0x1D,
0x05, 0x20, 0x01, 0x01, 0x11, 0x35, 0x05, 0x20, 0x01, 0x01, 0x11, 0x39, 0x05, 0x20, 0x01, 0x01,
0x1D, 0x05, 0x09, 0x20, 0x02, 0x01, 0x10, 0x11, 0x4D, 0x10, 0x12, 0x49, 0x04, 0x00, 0x01, 0x01,
0x1C, 0x06, 0x20, 0x02, 0x01, 0x1C, 0x10, 0x08, 0x04, 0x20, 0x01, 0x08, 0x1C, 0x04, 0x20, 0x01,
0x1C, 0x08, 0x04, 0x20, 0x01, 0x02, 0x1C, 0x04, 0x00, 0x01, 0x08, 0x1C, 0x05, 0x20, 0x02, 0x01,
0x08, 0x08, 0x01, 0x13, 0x02, 0x07, 0x00, 0x08, 0x07, 0x03, 0x12, 0x49, 0x11, 0x4D, 0x1D, 0x05,
0x05, 0x07, 0x02, 0x12, 0x28, 0x08, 0x06, 0x07, 0x03, 0x08, 0x08, 0x12, 0x28, 0x80, 0xA0, 0x00,
0x24, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0x06, 0x02, 0x00, 0x00, 0x00,
0x24, 0x00, 0x00, 0x52, 0x53, 0x41, 0x31, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0xD7,
0xD8, 0xC2, 0x64, 0x0C, 0x8A, 0xA7, 0x14, 0x0A, 0x72, 0x1E, 0xA0, 0x37, 0x65, 0x27, 0xB8, 0xF2,
0x92, 0xC7, 0x3F, 0x93, 0xB1, 0xBC, 0xC8, 0xD7, 0x4E, 0x06, 0xFC, 0x7A, 0xEC, 0x6B, 0x96, 0x4C,
0x37, 0x39, 0x1A, 0xA8, 0x80, 0xAE, 0x50, 0xBA, 0x94, 0x70, 0x66, 0x47, 0x99, 0x7F, 0xA5, 0x90,
0xEE, 0x7D, 0x6F, 0x03, 0x97, 0xB5, 0x00, 0xA0, 0x8C, 0x11, 0x73, 0xCE, 0x96, 0xF6, 0xC0, 0x70,
0x8C, 0xC9, 0x54, 0xB1, 0x2B, 0x7B, 0x80, 0xB5, 0x54, 0xA2, 0xAF, 0xC3, 0x40, 0x89, 0x4F, 0xF1,
0xFE, 0x02, 0x27, 0xA8, 0x5E, 0xED, 0xE5, 0xBD, 0xAE, 0xBC, 0x2A, 0xFB, 0xD6, 0x18, 0xFF, 0x9A,
0xE1, 0x51, 0x7C, 0xEB, 0x33, 0x30, 0xA2, 0xE9, 0xD0, 0x9E, 0x1A, 0x46, 0x73, 0x3A, 0x18, 0x48,
0x31, 0x26, 0xAB, 0x76, 0xAC, 0x2C, 0x37, 0x7C, 0x37, 0xFA, 0xE1, 0x0D, 0x78, 0x2E, 0xDD, 0x29,
0x01, 0x00, 0x24, 0x34, 0x41, 0x38, 0x41, 0x41, 0x36, 0x41, 0x43, 0x2D, 0x45, 0x31, 0x38, 0x30,
0x2D, 0x34, 0x33, 0x33, 0x45, 0x2D, 0x38, 0x38, 0x37, 0x31, 0x2D, 0x41, 0x32, 0x46, 0x38, 0x44,
0x32, 0x34, 0x31, 0x33, 0x46, 0x30, 0x33, 0x00, 0x00, 0x06, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00,
0x06, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00,
0x00, 0x00, 0x29, 0x01, 0x00, 0x24, 0x37, 0x34, 0x30, 0x38, 0x37, 0x41, 0x34, 0x45, 0x2D, 0x34,
0x41, 0x46, 0x31, 0x2D, 0x34, 0x46, 0x38, 0x43, 0x2D, 0x42, 0x41, 0x43, 0x42, 0x2D, 0x33, 0x39,
0x35, 0x39, 0x43, 0x32, 0x31, 0x32, 0x41, 0x41, 0x44, 0x32, 0x00, 0x00, 0x06, 0x01, 0x00, 0x10,
0x00, 0x00, 0x00, 0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x16, 0x4D, 0x54, 0x53,
0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62, 0x2E, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45, 0x76, 0x65, 0x6E,
0x74, 0x73, 0x00, 0x24, 0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62, 0x2E, 0x5F, 0x49,
0x4D, 0x54, 0x53, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x5F, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x50,
0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00, 0x00, 0x00, 0x29, 0x01, 0x00, 0x24, 0x46, 0x43,
0x45, 0x33, 0x44, 0x41, 0x33, 0x46, 0x2D, 0x31, 0x31, 0x30, 0x43, 0x2D, 0x34, 0x37, 0x38, 0x31,
0x2D, 0x42, 0x37, 0x35, 0x31, 0x2D, 0x41, 0x42, 0x44, 0x43, 0x30, 0x33, 0x39, 0x42, 0x43, 0x46,
0x31, 0x38, 0x00, 0x00, 0x17, 0x01, 0x00, 0x12, 0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C, 0x69,
0x62, 0x2E, 0x4D, 0x54, 0x53, 0x43, 0x6C, 0x61, 0x73, 0x73, 0x00, 0x00, 0x06, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x05,
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01,
0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x0A, 0x00, 0x00, 0x00,
0x00, 0x00, 0x08, 0x01, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x0C, 0x00,
0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00,
0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00,
0x00, 0x08, 0x01, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x13, 0x00, 0x00,
0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x15,
0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x01, 0x00, 0x17, 0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C,
0x69, 0x62, 0x2E, 0x5F, 0x49, 0x4D, 0x54, 0x53, 0x45, 0x76, 0x65, 0x6E, 0x74, 0x73, 0x00, 0x00,
0x00, 0x00, 0x06, 0x01, 0x00, 0x40, 0x10, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x29, 0x01, 0x00, 0x24, 0x32, 0x31, 0x64, 0x61, 0x35, 0x32, 0x31, 0x38, 0x2D, 0x30,
0x61, 0x36, 0x63, 0x2D, 0x34, 0x32, 0x34, 0x30, 0x2D, 0x39, 0x34, 0x38, 0x36, 0x2D, 0x64, 0x36,
0x62, 0x66, 0x64, 0x34, 0x66, 0x61, 0x38, 0x33, 0x66, 0x63, 0x00, 0x00, 0x0E, 0x01, 0x00, 0x09,
0x4D, 0x54, 0x53, 0x53, 0x44, 0x4B, 0x4C, 0x69, 0x62, 0x00, 0x00, 0x0C, 0x01, 0x00, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xAE, 0x41, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xA0, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x43, 0x6F, 0x72, 0x44, 0x6C, 0x6C, 0x4D, 0x61, 0x69, 0x6E, 0x00, 0x6D, 0x73,
0x63, 0x6F, 0x72, 0x65, 0x65, 0x2E, 0x64, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x25,
0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
0x10, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x58, 0x60, 0x00, 0x00, 0x1C, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x03, 0x34, 0x00, 0x00, 0x00, 0x56, 0x00,
0x53, 0x00, 0x5F, 0x00, 0x56, 0x00, 0x45, 0x00, 0x52, 0x00, 0x53, 0x00, 0x49, 0x00, 0x4F, 0x00,
0x4E, 0x00, 0x5F, 0x00, 0x49, 0x00, 0x4E, 0x00, 0x46, 0x00, 0x4F, 0x00, 0x00, 0x00, 0x00, 0x00,
0xBD, 0x04, 0xEF, 0xFE, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x01, 0x00, 0x56, 0x00, 0x61, 0x00, 0x72, 0x00,
0x46, 0x00, 0x69, 0x00, 0x6C, 0x00, 0x65, 0x00, 0x49, 0x00, 0x6E, 0x00, 0x66, 0x00, 0x6F, 0x00,
0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x04, 0x00, 0x00, 0x00, 0x54, 0x00, 0x72, 0x00, 0x61, 0x00,
0x6E, 0x00, 0x73, 0x00, 0x6C, 0x00, 0x61, 0x00, 0x74, 0x00, 0x69, 0x00, 0x6F, 0x00, 0x6E, 0x00,
0x00, 0x00, 0x00, 0x00, 0x7F, 0x00, 0xB0, 0x04, 0x7C, 0x02, 0x00, 0x00, 0x01, 0x00, 0x53, 0x00,
0x74, 0x00, 0x72, 0x00, 0x69, 0x00, 0x6E, 0x00, 0x67, 0x00, 0x46, 0x00, 0x69, 0x00, 0x6C, 0x00,
0x65, 0x00, 0x49, 0x00, 0x6E, 0x00, 0x66, 0x00, 0x6F, 0x00, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00,
0x01, 0x00, 0x30, 0x00, 0x30, 0x00, 0x37, 0x00, 0x66, 0x00, 0x30, 0x00, 0x34, 0x00, 0x62, 0x00,
0x30, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x02, 0x00, 0x01, 0x00, 0x43, 0x00, 0x6F, 0x00, 0x6D, 0x00,
0x6D, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x73, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
0x24, 0x00, 0x02, 0x00, 0x01, 0x00, 0x43, 0x00, 0x6F, 0x00, 0x6D, 0x00, 0x70, 0x00, 0x61, 0x00,
0x6E, 0x00, 0x79, 0x00, 0x4E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00,
0x20, 0x00, 0x00, 0x00, 0x2C, 0x00, 0x02, 0x00, 0x01, 0x00, 0x46, 0x00, 0x69, 0x00, 0x6C, 0x00,
0x65, 0x00, 0x44, 0x00, 0x65, 0x00, 0x73, 0x00, 0x63, 0x00, 0x72, 0x00, 0x69, 0x00, 0x70, 0x00,
0x74, 0x00, 0x69, 0x00, 0x6F, 0x00, 0x6E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
0x30, 0x00, 0x08, 0x00, 0x01, 0x00, 0x46, 0x00, 0x69, 0x00, 0x6C, 0x00, 0x65, 0x00, 0x56, 0x00,
0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6F, 0x00, 0x6E, 0x00, 0x00, 0x00, 0x00, 0x00,
0x31, 0x00, 0x2E, 0x00, 0x30, 0x00, 0x2E, 0x00, 0x30, 0x00, 0x2E, 0x00, 0x30, 0x00, 0x00, 0x00,
0x44, 0x00, 0x12, 0x00, 0x01, 0x00, 0x49, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00,
0x6E, 0x00, 0x61, 0x00, 0x6C, 0x00, 0x4E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00,
0x49, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6F, 0x00, 0x70, 0x00, 0x2E, 0x00,
0x4D, 0x00, 0x54, 0x00, 0x53, 0x00, 0x53, 0x00, 0x44, 0x00, 0x4B, 0x00, 0x4C, 0x00, 0x69, 0x00,
0x62, 0x00, 0x00, 0x00, 0x28, 0x00, 0x02, 0x00, 0x01, 0x00, 0x4C, 0x00, 0x65, 0x00, 0x67, 0x00,
0x61, 0x00, 0x6C, 0x00, 0x43, 0x00, 0x6F, 0x00, 0x70, 0x00, 0x79, 0x00, 0x72, 0x00, 0x69, 0x00,
0x67, 0x00, 0x68, 0x00, 0x74, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x2C, 0x00, 0x02, 0x00,
0x01, 0x00, 0x4C, 0x00, 0x65, 0x00, 0x67, 0x00, 0x61, 0x00, 0x6C, 0x00, 0x54, 0x00, 0x72, 0x00,
0x61, 0x00, 0x64, 0x00, 0x65, 0x00, 0x6D, 0x00, 0x61, 0x00, 0x72, 0x00, 0x6B, 0x00, 0x73, 0x00,
0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x54, 0x00, 0x16, 0x00, 0x01, 0x00, 0x4F, 0x00,
0x72, 0x00, 0x69, 0x00, 0x67, 0x00, 0x69, 0x00, 0x6E, 0x00, 0x61, 0x00, 0x6C, 0x00, 0x46, 0x00,
0x69, 0x00, 0x6C, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00,
0x49, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6F, 0x00, 0x70, 0x00, 0x2E, 0x00,
0x4D, 0x00, 0x54, 0x00, 0x53, 0x00, 0x53, 0x00, 0x44, 0x00, 0x4B, 0x00, 0x4C, 0x00, 0x69, 0x00,
0x62, 0x00, 0x2E, 0x00, 0x64, 0x00, 0x6C, 0x00, 0x6C, 0x00, 0x00, 0x00, 0x84, 0x00, 0x31, 0x00,
0x01, 0x00, 0x50, 0x00, 0x72, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x75, 0x00, 0x63, 0x00, 0x74, 0x00,
0x4E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x73, 0x00,
0x73, 0x00, 0x65, 0x00, 0x6D, 0x00, 0x62, 0x00, 0x6C, 0x00, 0x79, 0x00, 0x20, 0x00, 0x69, 0x00,
0x6D, 0x00, 0x70, 0x00, 0x6F, 0x00, 0x72, 0x00, 0x74, 0x00, 0x65, 0x00, 0x64, 0x00, 0x20, 0x00,
0x66, 0x00, 0x72, 0x00, 0x6F, 0x00, 0x6D, 0x00, 0x20, 0x00, 0x74, 0x00, 0x79, 0x00, 0x70, 0x00,
0x65, 0x00, 0x20, 0x00, 0x6C, 0x00, 0x69, 0x00, 0x62, 0x00, 0x72, 0x00, 0x61, 0x00, 0x72, 0x00,
0x79, 0x00, 0x20, 0x00, 0x27, 0x00, 0x4D, 0x00, 0x54, 0x00, 0x53, 0x00, 0x53, 0x00, 0x44, 0x00,
0x4B, 0x00, 0x4C, 0x00, 0x69, 0x00, 0x62, 0x00, 0x27, 0x00, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00,
0x34, 0x00, 0x08, 0x00, 0x01, 0x00, 0x50, 0x00, 0x72, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x75, 0x00,
0x63, 0x00, 0x74, 0x00, 0x56, 0x00, 0x65, 0x00, 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6F, 0x00,
0x6E, 0x00, 0x00, 0x00, 0x31, 0x00, 0x2E, 0x00, 0x30, 0x00, 0x2E, 0x00, 0x30, 0x00, 0x2E, 0x00,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x40, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0xC0, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
}

BIN
Packages.zip Normal file

Binary file not shown.

665
frmDownloadBaserom.cs Normal file
View File

@ -0,0 +1,665 @@
using Data;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Collections.Generic;
using System.Windows.Forms;
internal class frmDownloadBaserom : Form
{
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
private Label label2;
private TextBox textBox1;
private TextBox textBox2;
private Label label3;
private TextBox textBox3;
private Label label4;
private TextBox textBox4;
private Label label6;
private Panel panel1;
private Panel panel2;
private Panel panel3;
private Label label7;
private TextBox textBox5;
private ComboBox comboBox2;
private ComboBox comboBox1;
private string string_11_2 = "https://raw.githubusercontent.com/bouletmarc/BMTune_Server/master/";
private string IPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\";
private List<string> IList = new List<string>();
private DataGridView dataGridView1;
private Button button1;
int TCount = 0;
bool InitFiles = true;
string UThis = "";
private int IndexOfLastSelectedFile = 0;
private TextBox textBox6;
private Label label5;
private DataGridViewTextBoxColumn ID;
private DataGridViewTextBoxColumn Filename;
private DataGridViewTextBoxColumn Description;
private DataGridViewTextBoxColumn Owner;
private DataGridViewTextBoxColumn Column1;
private DataGridViewTextBoxColumn Column2;
private string DPath = Application.StartupPath + @"\Online\";
private Class18 class18_0;
public frmDownloadBaserom(ref Class18 class18_1)
{
this.InitializeComponent();
class18_0 = class18_1;
this.comboBox1.SelectedIndex = 0;
this.comboBox2.SelectedIndex = 0;
textBox6.Text = "";
label1.Text = "Getting Files...";
LoopTimer.Interval = 1000;
LoopTimer.Tick += DoThisAllTheTime;
LoopTimer.Start();
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
void DoThisAllTheTime(object sender, EventArgs e)
{
LoopTimer.Stop();
if (InitFiles)
{
InitFiles = false;
UpdateFiles("FilesList.txt");
}
else
{
UpdateFiles(UThis);
}
}
void ReturnBack(string path)
{
this.class18_0.method_60();
this.class18_0.method_26_SetFilename(path);
this.class18_0.method_24(Path.GetFileName(path));
this.class18_0.method_5_SetSelectedTable(SelectedTable.fuel1_lo);
this.class18_0.method_9(TableOverlay.none);
int length;
FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read);
if (stream.CanRead)
{
length = (int)stream.Length;
//this.class18_0.byte_0 = new byte[length];
this.class18_0.SetByteSize(length);
byte[] Byte_XX = new byte[length];
stream.Read(Byte_XX, 0, length);
this.class18_0.SetAllByte(Byte_XX);
}
stream.Dispose();
stream = null;
length = 0;
this.class18_0.method_90();
if (this.class18_0.method_30_HasFileLoadedInBMTune()) this.class18_0.method_54();
this.class18_0.class10_settings_0.method_28(path);
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
void UpdateFiles(string Filename)
{
try
{
label1.Text = "Downloading...";
string TPath = "";
if (Filename == "FilesList.txt") {
TPath = IPath + Filename;
if (!Directory.Exists(IPath)) Directory.CreateDirectory(IPath);
}
else
{
string SaveFName = textBox1.Text;
if (SaveFName.Length > 4 && SaveFName.Substring(SaveFName.Length - 4) != ".bin") SaveFName += ".bin";
if (!Directory.Exists(DPath)) Directory.CreateDirectory(DPath);
TPath = DPath + SaveFName;
}
WebClient webClient = new WebClient();
webClient.DownloadProgressChanged += delegate (object sender, DownloadProgressChangedEventArgs e) { this.progressBar1.Value = e.ProgressPercentage; };
webClient.DownloadFileAsync(new Uri(string_11_2 + Filename), TPath);
while (webClient.IsBusy) { Application.DoEvents(); }
this.progressBar1.Value = 0;
label1.Text = "";
if (Filename == "FilesList.txt") SpawnSearch(false);
else ReturnBack(TPath);
}
catch
{
label1.Text = "Not Connected";
}
}
private void SpawnSearch(bool Search)
{
IList.Clear();
dataGridView1.Rows.Clear();
label1.Text = "Searching...";
string[] AllText = File.ReadAllLines(IPath + "FilesList.txt");
if (AllText.Length > 0)
{
TCount = 0;
for (int i = 0; i < AllText.Length; i++)
{
if (AllText[i].Contains("|"))
{
//0 = filename
//1 = desc
//2 = owner
//3 = engine serie
//4 = baserom version
string[] SplitCMD = AllText[i].Split('|');
if (!Search)
{
AddThis(AllText[i], i);
}
else
{
if (comboBox1.SelectedIndex == 0)
{
if (SplitCMD[0].ToLower().Contains(textBox5.Text) || SplitCMD[1].ToLower().Contains(textBox5.Text) || SplitCMD[2].ToLower().Contains(textBox5.Text))
if (IsSerie(SplitCMD[3])) AddThis(AllText[i], i);
}
if (comboBox1.SelectedIndex == 1)
{
if (SplitCMD[0].ToLower().Contains(textBox5.Text))
if (IsSerie(SplitCMD[3])) AddThis(AllText[i], i);
}
if (comboBox1.SelectedIndex == 2)
{
if (SplitCMD[1].ToLower().Contains(textBox5.Text))
if (IsSerie(SplitCMD[3])) AddThis(AllText[i], i);
}
if (comboBox1.SelectedIndex == 3)
{
if (SplitCMD[2].ToLower().Contains(textBox5.Text))
if (IsSerie(SplitCMD[3])) AddThis(AllText[i], i);
}
}
}
}
panel1.Enabled = true;
panel2.Enabled = true;
panel3.Enabled = true;
dataGridView1.Enabled = true;
label1.Text = TCount + "Found Results";
}
}
bool IsSerie(string Serie)
{
bool IsSerie = false;
if (comboBox2.SelectedIndex == 0) IsSerie = true;
if (comboBox2.SelectedIndex == 1 && Serie == "Serie B") IsSerie = true;
if (comboBox2.SelectedIndex == 2 && Serie == "Serie D") IsSerie = true;
if (comboBox2.SelectedIndex == 3 && Serie == "Serie H") IsSerie = true;
if (comboBox2.SelectedIndex == 4 && Serie == "Serie F") IsSerie = true;
if (comboBox2.SelectedIndex == 5 && Serie == "Customs") IsSerie = true;
return IsSerie;
}
void AddThis(string ALL, int TIndex)
{
string[] SplitCMD = ALL.Split('|');
IList.Add(ALL);
dataGridView1.Rows.Add(TIndex, SplitCMD[0], SplitCMD[1], SplitCMD[2], SplitCMD[3], SplitCMD[4]);
TCount++;
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDownloadBaserom));
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Filename = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Owner = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(754, 22);
this.label1.TabIndex = 28;
this.label1.Text = "UPDATING !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 530);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(754, 11);
this.progressBar1.TabIndex = 29;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(58, 14);
this.label2.TabIndex = 31;
this.label2.Text = "Filename:";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(92, 7);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(274, 20);
this.textBox1.TabIndex = 32;
//
// textBox2
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.Location = new System.Drawing.Point(92, 29);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(274, 20);
this.textBox2.TabIndex = 34;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 32);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(73, 14);
this.label3.TabIndex = 33;
this.label3.Text = "Description:";
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.Location = new System.Drawing.Point(467, 7);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(274, 20);
this.textBox3.TabIndex = 36;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(382, 10);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(46, 14);
this.label4.TabIndex = 35;
this.label4.Text = "Owner:";
//
// textBox4
//
this.textBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox4.Location = new System.Drawing.Point(467, 29);
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(274, 20);
this.textBox4.TabIndex = 39;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(381, 32);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(78, 14);
this.label6.TabIndex = 38;
this.label6.Text = "Engine Serie:";
//
// panel1
//
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.textBox4);
this.panel1.Controls.Add(this.textBox1);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.textBox2);
this.panel1.Controls.Add(this.textBox3);
this.panel1.Controls.Add(this.label4);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Enabled = false;
this.panel1.Location = new System.Drawing.Point(10, 32);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(754, 54);
this.panel1.TabIndex = 40;
//
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.ControlLight;
this.panel2.Controls.Add(this.comboBox2);
this.panel2.Controls.Add(this.comboBox1);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.textBox5);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Enabled = false;
this.panel2.Location = new System.Drawing.Point(10, 86);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(754, 34);
this.panel2.TabIndex = 41;
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"All Engines",
"Serie B",
"Serie D",
"Serie F",
"Serie H",
"Customs"});
this.comboBox2.Location = new System.Drawing.Point(568, 6);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(173, 22);
this.comboBox2.TabIndex = 38;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Everything",
"Filename",
"Description",
"Owner"});
this.comboBox1.Location = new System.Drawing.Point(385, 6);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(167, 22);
this.comboBox1.TabIndex = 36;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(7, 9);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(48, 14);
this.label7.TabIndex = 33;
this.label7.Text = "Search:";
//
// textBox5
//
this.textBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox5.Location = new System.Drawing.Point(92, 6);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(274, 20);
this.textBox5.TabIndex = 34;
this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
//
// panel3
//
this.panel3.Controls.Add(this.textBox6);
this.panel3.Controls.Add(this.label5);
this.panel3.Controls.Add(this.button1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Enabled = false;
this.panel3.Location = new System.Drawing.Point(10, 490);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(754, 40);
this.panel3.TabIndex = 42;
//
// textBox6
//
this.textBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox6.Location = new System.Drawing.Point(109, 10);
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.Size = new System.Drawing.Size(41, 20);
this.textBox6.TabIndex = 41;
this.textBox6.Text = "1.00";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(3, 13);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(100, 14);
this.label5.TabIndex = 40;
this.label5.Text = "Baserom Version:";
//
// button1
//
this.button1.Enabled = false;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Blue;
this.button1.Location = new System.Drawing.Point(251, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(213, 28);
this.button1.TabIndex = 0;
this.button1.Text = "Download File";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ID,
this.Filename,
this.Description,
this.Owner,
this.Column1,
this.Column2});
this.dataGridView1.Enabled = false;
this.dataGridView1.Location = new System.Drawing.Point(10, 120);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(754, 370);
this.dataGridView1.TabIndex = 43;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
//
// ID
//
this.ID.HeaderText = "ID";
this.ID.Name = "ID";
this.ID.ReadOnly = true;
this.ID.Width = 40;
//
// Filename
//
this.Filename.HeaderText = "Filename";
this.Filename.Name = "Filename";
this.Filename.ReadOnly = true;
this.Filename.Width = 190;
//
// Description
//
this.Description.HeaderText = "Description";
this.Description.Name = "Description";
this.Description.ReadOnly = true;
this.Description.Width = 215;
//
// Owner
//
this.Owner.HeaderText = "Owner";
this.Owner.Name = "Owner";
this.Owner.ReadOnly = true;
this.Owner.Width = 120;
//
// Column1
//
this.Column1.HeaderText = "Engine Serie";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
//
// Column2
//
this.Column2.HeaderText = "Version";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 60;
//
// frmDownloadBaserom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(774, 551);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmDownloadBaserom";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Baserom Downloader";
this.Load += new System.EventHandler(this.frmAboutBox_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
void Respawn()
{
if (textBox5.Text == "") SpawnSearch(false);
else SpawnSearch(true);
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
Respawn();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Respawn();
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
Respawn();
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
textBox1.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[1].Value.ToString();
textBox2.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[2].Value.ToString();
textBox3.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[3].Value.ToString();
textBox4.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[4].Value.ToString();
textBox6.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[5].Value.ToString();
IndexOfLastSelectedFile = dataGridView1.SelectedRows[0].Index;
button1.Enabled = true;
}
private void button1_Click(object sender, EventArgs e)
{
string[] AllText = File.ReadAllLines(IPath + "FilesList.txt");
if (AllText.Length > 0)
{
if (AllText[IndexOfLastSelectedFile].Contains("|"))
{
string[] SplitCMD = AllText[IndexOfLastSelectedFile].Split('|');
UThis = SplitCMD[0];
LoopTimer.Start();
}
}
}
}

1805
frmDownloadBaserom.resx Normal file

File diff suppressed because it is too large Load Diff

153
frmDownloadFile.cs Normal file
View File

@ -0,0 +1,153 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using IWshRuntimeLibrary;
internal class frmDownloadFile : Form
{
private PictureBox pictureBox1;
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
string String_Url = "";
string String_Name = "";
public frmDownloadFile(string FileURL, string Filename)
{
this.InitializeComponent();
String_Url = FileURL;
String_Name = Filename;
label1.Text = "DOWNLOADING " + String_Name;
LoopTimer.Interval = 1000;
LoopTimer.Tick += DoThisAllTheTime;
LoopTimer.Start();
/*foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}*/
}
void UpdateFiles()
{
try
{
WebClient webClient = new WebClient();
webClient.Credentials = new NetworkCredential("bouletmarc", "2f5dc911fb114c165bf46dd4964d3b4b45bff8e0");
webClient.DownloadProgressChanged += delegate (object sender, DownloadProgressChangedEventArgs e) { this.progressBar1.Value = e.ProgressPercentage; };
webClient.DownloadFileAsync(new Uri(String_Url), Application.StartupPath + @"\" + String_Name);
while (webClient.IsBusy) { Application.DoEvents(); }
this.DialogResult = DialogResult.OK;
this.Close();
}
catch(Exception mess)
{
//Console.WriteLine("error downloading file: " + mess);
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
void DoThisAllTheTime(object sender, EventArgs e)
{
LoopTimer.Stop();
UpdateFiles();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDownloadFile));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = global::Properties.Resources.BMTune_Logo_150x901;
this.pictureBox1.Location = new System.Drawing.Point(10, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(376, 187);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 197);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(376, 26);
this.label1.TabIndex = 28;
this.label1.Text = "DOWNLOADING !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 225);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(376, 23);
this.progressBar1.TabIndex = 29;
//
// frmDownloadFile
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(396, 258);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmDownloadFile";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Updating";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
}

1787
frmDownloadFile.resx Normal file

File diff suppressed because it is too large Load Diff

309
frmDownloadUpdate.cs Normal file
View File

@ -0,0 +1,309 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using IWshRuntimeLibrary;
internal class frmDownloadUpdate : Form
{
public ProgressBar progressBar1;
private IContainer icontainer_0;
private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
private Class15 Class15_0;
private FrmMain FrmMain_0;
string String_00 = "";
private Label label1;
private PictureBox pictureBox3;
private PictureBox pictureBox2;
private PictureBox pictureBox4;
bool DownloadingFromGithub = false;
public frmDownloadUpdate(ref FrmMain FrmMain_1, ref Class15 Class15_1)
{
this.InitializeComponent();
FrmMain_0 = FrmMain_1;
Class15_0 = Class15_1;
LoopTimer.Interval = 100;
LoopTimer.Tick += DoThisAllTheTime;
LoopTimer.Start();
}
private string DLStringFromURL(WebClient webpage, string ThisURL)
{
string ThisStr = "";
try
{
ThisStr = webpage.DownloadString(ThisURL);
}
catch { }
return ThisStr;
}
private void GetUpdate()
{
bool BMTuneUpdated = true;
double LastVersion = 0;
double CurrentVersion = double.Parse(this.Class15_0.CurrentBMTuneVersion.Substring(1).Replace(".", ""));
if (CurrentVersion > 1000) CurrentVersion = CurrentVersion / 10;
//############################################################################
//Getting Normal Version
try
{
using (var webpage = new WebClient())
{
webpage.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0; WOW64) Gecko/20100101 Firefox/25.0 AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2");
if (String_00 == "") String_00 = DLStringFromURL(webpage, "https://raw.githubusercontent.com/MarcDevs/bmbuild/master/Version.txt");
if (String_00 != "") DownloadingFromGithub = true;
if (String_00 == "") String_00 = DLStringFromURL(webpage, "http://www.bmtune.com/build/Version.txt");
webpage.Dispose();
}
LastVersion = double.Parse(String_00.Substring(1).Replace(".", ""));
if (LastVersion > 1000) LastVersion = LastVersion / 10;
}
catch
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
if (CurrentVersion < LastVersion) BMTuneUpdated = false;
if (!BMTuneUpdated) label1.Text = "UPDATING to " + String_00;
this.Refresh();
}
/*private class WebClient : System.Net.WebClient
{
public int Timeout { get; set; }
protected override WebRequest GetWebRequest(Uri uri)
{
if (Timeout < 300) Timeout = 6000;
WebRequest lWebRequest = base.GetWebRequest(uri);
lWebRequest.Timeout = Timeout;
((HttpWebRequest)lWebRequest).ReadWriteTimeout = Timeout;
return lWebRequest;
}
}*/
private void UpdateFiles()
{
try
{
string DLink = "http://www.bmtune.com/build/BMTune.zip";
if (DownloadingFromGithub) DLink = "https://github.com/MarcDevs/bmbuild/raw/master/BMTune.exe";
if (System.IO.File.Exists(Application.StartupPath + @"\BMTune.zip")) System.IO.File.Delete(Application.StartupPath + @"\BMTune.zip");
//#############################################################
//#############################################################
//#############################################################
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
WebClient webClient = new WebClient();
webClient.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)");
using (Stream webStream = webClient.OpenRead(DLink))
using (FileStream fileStream = new FileStream(Application.StartupPath + @"\BMTuneUpdate.exe", FileMode.Create))
{
var buffer = new byte[32768];
int bytesRead;
Int64 bytesReadComplete = 0; // Use Int64 for files larger than 2 gb
Int64 bytesTotal = Convert.ToInt64(webClient.ResponseHeaders["Content-Length"]);
while ((bytesRead = webStream.Read(buffer, 0, buffer.Length)) > 0)
{
bytesReadComplete += bytesRead;
fileStream.Write(buffer, 0, bytesRead);
this.progressBar1.Value = (int)((bytesReadComplete * 100.0) / bytesTotal);
}
}
//#############################################################
/*WebClient webClient = new WebClient();
webClient.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)");
webClient.DownloadProgressChanged += delegate (object sender, DownloadProgressChangedEventArgs e) { this.progressBar1.Value = e.ProgressPercentage; };
//webClient.Timeout = 6000;
//Download the File
if (!DownloadingFromGithub)
{
webClient.DownloadFileAsync(new Uri(DLink), Application.StartupPath + @"\BMTune.zip");
}
else
{
webClient.DownloadFileAsync(new Uri(DLink), Application.StartupPath + @"\BMTuneUpdate.exe");
}
while (webClient.IsBusy) { Application.DoEvents(); }*/
//#############################################################
//#############################################################
//#############################################################
//Unzip
if (!DownloadingFromGithub)
{
if (System.IO.File.Exists(Application.StartupPath + @"\BMTuneUpdate" + ".exe")) System.IO.File.Delete(Application.StartupPath + @"\BMTuneUpdate" + ".exe");
this.FrmMain_0.Class34_Zip_0.UnZipFileFromThisZIP("BMTuneUpdate" + ".exe", Application.StartupPath + @"\BMTune.zip");
if (System.IO.File.Exists(Application.StartupPath + @"\BMTune.zip")) System.IO.File.Delete(Application.StartupPath + @"\BMTune.zip");
}
//Launch BMTuneUpdate.exe
if (System.IO.File.Exists(Application.StartupPath + @"\BMTuneUpdate" + ".exe"))
{
Process.Start(Application.StartupPath + @"\BMTuneUpdate" + ".exe");
Environment.Exit(0);
}
else
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
catch (Exception mess)
{
//MessageBox.Show("Cant update BMTune with error:" + mess, "ERROR");
//Console.WriteLine("Cant update BMTune with error:" + mess);
if (System.IO.File.Exists(Application.StartupPath + @"\BMTuneUpdate" + ".exe")) System.IO.File.Delete(Application.StartupPath + @"\BMTuneUpdate" + ".exe");
if (System.IO.File.Exists(Application.StartupPath + @"\BMTune.zip")) System.IO.File.Delete(Application.StartupPath + @"\BMTune.zip");
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
void DoThisAllTheTime(object sender, EventArgs e)
{
LoopTimer.Stop();
GetUpdate();
UpdateFiles();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDownloadUpdate));
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
this.SuspendLayout();
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 147);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(351, 10);
this.progressBar1.TabIndex = 29;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 121);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(351, 26);
this.label1.TabIndex = 30;
this.label1.Text = "UPDATING !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox3
//
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox3.Image = global::Properties.Resources.BMTune_Logo_150x901;
this.pictureBox3.Location = new System.Drawing.Point(68, 0);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(234, 119);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox3.TabIndex = 38;
this.pictureBox3.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox2.Image = global::Properties.Resources.Piston_Animation_Small;
this.pictureBox2.Location = new System.Drawing.Point(0, 0);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(69, 119);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 37;
this.pictureBox2.TabStop = false;
//
// pictureBox4
//
this.pictureBox4.BackColor = System.Drawing.Color.Transparent;
this.pictureBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox4.Image = global::Properties.Resources.Piston_Animation_Small;
this.pictureBox4.Location = new System.Drawing.Point(301, 0);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(69, 119);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox4.TabIndex = 36;
this.pictureBox4.TabStop = false;
//
// frmDownloadUpdate
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(371, 167);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox4);
this.Controls.Add(this.label1);
this.Controls.Add(this.progressBar1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmDownloadUpdate";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Updating";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
this.ResumeLayout(false);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
}

1787
frmDownloadUpdate.resx Normal file

File diff suppressed because it is too large Load Diff

225
frmDynoControl.cs Normal file
View File

@ -0,0 +1,225 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmDynoControl : Form
{
private Class18 class18_0;
private ToolStripMenuItem clearErrorCodesToolStripMenuItem;
private ContextMenuStrip contextMenuStrip1;
private FrmMain frmMain_0;
private IContainer icontainer_0;
private IContainer components;
private Panel panel1;
public Button button1;
public Button button2;
private SaveFileDialog saveFileDialog1;
private Timer LoopTimer = new Timer();
public bool loading = true;
private ToolStripMenuItem copyToolStripMenuItem;
private ToolStripSeparator toolStripSeparator1;
public Button button3;
private Class10_settings class10_settings_0;
public static string BrakeA = "0000";
internal frmDynoControl()
{
this.InitializeComponent();
}
private void Button1_Click(object sender, EventArgs e)
{
if (this.frmMain_0.class29_Dyno_0.ComPort.IsOpen)
{
this.frmMain_0.class29_Dyno_0.ComPort.Write(this.frmMain_0.class29_Dyno_0.DynoBRAKE, 0, 1);
}
}
private void Button2_Click(object sender, EventArgs e)
{
if (this.frmMain_0.class29_Dyno_0.ComPort.IsOpen)
{
this.frmMain_0.class29_Dyno_0.ComPort.Write(this.frmMain_0.class29_Dyno_0.DynoRPMUP, 0, 1);
}
}
private void Button3_Click(object sender, EventArgs e)
{
if (this.frmMain_0.class29_Dyno_0.ComPort.IsOpen)
{
this.frmMain_0.class29_Dyno_0.ComPort.Write(this.frmMain_0.class29_Dyno_0.DynoRPMDOWN, 0, 1);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void DoThisAllTheTime(object sender, EventArgs e)
{
bool isOpen = this.frmMain_0.class29_Dyno_0.ComPort.IsOpen;
this.button1.Enabled = isOpen;
this.button2.Enabled = isOpen;
this.button3.Enabled = isOpen;
this.button1.Text = "Brake (" + BrakeA + ")";
}
private void frmFormClosed(object sender, FormClosedEventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode)
{
this.class18_0.class10_settings_0.Debug_Location = base.Location;
}
this.frmMain_0.frmDynoControl_0.Dispose();
this.frmMain_0.frmDynoControl_0 = null;
}
private void frmFormClosing(object sender, FormClosingEventArgs e)
{
}
private void frmLoad(object sender, EventArgs e)
{
if ((this.class18_0 != null) && (this.class18_0.class10_settings_0 != null))
{
if (!this.class18_0.class10_settings_0.WindowedMode)
{
base.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
else
{
base.FormBorderStyle = FormBorderStyle.Sizable;
this.Dock = DockStyle.None;
base.Location = this.class18_0.class10_settings_0.DynoC_Location;
base.Size = this.class18_0.class10_settings_0.DynoC_Size;
}
}
this.loading = false;
}
private void frmResize(object sender, EventArgs e)
{
if (((this.class18_0 != null) && ((this.class18_0.class10_settings_0 != null) && this.class18_0.class10_settings_0.WindowedMode)) && !this.loading)
{
if (base.WindowState == FormWindowState.Normal)
{
this.class18_0.class10_settings_0.DynoC_Size = base.Size;
}
this.class18_0.class10_settings_0.DynoC_Location = base.Location;
}
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(frmDynoControl));
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
this.copyToolStripMenuItem = new ToolStripMenuItem();
this.toolStripSeparator1 = new ToolStripSeparator();
this.clearErrorCodesToolStripMenuItem = new ToolStripMenuItem();
this.panel1 = new Panel();
this.button3 = new Button();
this.button2 = new Button();
this.button1 = new Button();
this.saveFileDialog1 = new SaveFileDialog();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
base.SuspendLayout();
this.contextMenuStrip1.ImageScalingSize = new Size(0x1c, 0x1c);
ToolStripItem[] toolStripItems = new ToolStripItem[] { this.copyToolStripMenuItem, this.toolStripSeparator1, this.clearErrorCodesToolStripMenuItem };
this.contextMenuStrip1.Items.AddRange(toolStripItems);
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new Size(0x86, 0x52);
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
this.copyToolStripMenuItem.Size = new Size(0x85, 0x24);
this.copyToolStripMenuItem.Text = "Copy";
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new Size(130, 6);
this.clearErrorCodesToolStripMenuItem.Name = "clearErrorCodesToolStripMenuItem";
this.clearErrorCodesToolStripMenuItem.Size = new Size(0x85, 0x24);
this.panel1.ContextMenuStrip = this.contextMenuStrip1;
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.button1);
this.panel1.Dock = DockStyle.Top;
this.panel1.Location = new Point(0, 0);
this.panel1.Margin = new Padding(6);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(0xff, 180);
this.panel1.TabIndex = 1;
this.button3.FlatStyle = FlatStyle.Flat;
this.button3.Location = new Point(0x23, 0x41);
this.button3.Margin = new Padding(6);
this.button3.Name = "button3";
this.button3.Size = new Size(0xb8, 0x2a);
this.button3.TabIndex = 2;
this.button3.Text = "RPM Down";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new EventHandler(this.Button3_Click);
this.button2.FlatStyle = FlatStyle.Flat;
this.button2.Location = new Point(0x23, 11);
this.button2.Margin = new Padding(6);
this.button2.Name = "button2";
this.button2.Size = new Size(0xb8, 0x2a);
this.button2.TabIndex = 1;
this.button2.Text = "RPM Up";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new EventHandler(this.Button2_Click);
this.button1.FlatStyle = FlatStyle.Flat;
this.button1.ForeColor = Color.Red;
this.button1.Location = new Point(0x23, 0x77);
this.button1.Margin = new Padding(6);
this.button1.Name = "button1";
this.button1.Size = new Size(0xb8, 0x2a);
this.button1.TabIndex = 0;
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new EventHandler(this.Button1_Click);
this.saveFileDialog1.DefaultExt = "txt";
this.saveFileDialog1.Filter = "Log Text File|*.txt";
this.saveFileDialog1.Title = "Save Debug Log";
base.AutoScaleDimensions = new SizeF(11f, 24f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(0xff, 0xc4);
base.Controls.Add(this.panel1);
base.Margin = new Padding(6);
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "frmDynoC";
this.Text = "Dyno Control";
base.FormClosing += new FormClosingEventHandler(this.frmFormClosing);
base.FormClosed += new FormClosedEventHandler(this.frmFormClosed);
base.Load += new EventHandler(this.frmLoad);
base.Resize += new EventHandler(this.frmResize);
this.contextMenuStrip1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
base.ResumeLayout(false);
}
internal void method_0(ref Class18 class18_1, ref FrmMain frmMain_1)
{
this.class18_0 = class18_1;
this.frmMain_0 = frmMain_1;
if (this.frmMain_0.class29_Dyno_0 == null)
{
this.frmMain_0.class29_Dyno_0 = new Class29_Dyno(ref this.class18_0);
}
this.LoopTimer.Interval = 0x3e8;
this.LoopTimer.Tick += new EventHandler(this.DoThisAllTheTime);
this.LoopTimer.Start();
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
}

561
frmDynoSetup.cs Normal file
View File

@ -0,0 +1,561 @@
using Properties;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO.Ports;
using System.Windows.Forms;
internal class frmDynoSetup : Form
{
private Label labelDLCom;
public ComboBox comboBoxDLCOM;
private Label label1;
private Label label2;
private Label label7;
private Label label6;
private Label label5;
private Label label10;
private ComboBox comboBox1;
private ComboBox comboBox2;
private ComboBox comboBox3;
private MaskedTextBox maskedTextBox1;
private MaskedTextBox maskedTextBox4;
private MaskedTextBox maskedTextBox5;
private MaskedTextBox maskedTextBox6;
private MaskedTextBox maskedTextBox7;
private MaskedTextBox maskedTextBox8;
private MaskedTextBox maskedTextBox9;
private MaskedTextBox maskedTextBox10;
private MaskedTextBox maskedTextBox11;
private MaskedTextBox maskedTextBox12;
private MaskedTextBox maskedTextBox13;
private MaskedTextBox maskedTextBox14;
private Label label8;
private Label label9;
private Label label11;
private Label label12;
private Class10_settings class10_settings_0;
private Button buttonRefreshDLCom;
public static bool Dyno_Connected;
public frmDynoSetup(ref Class10_settings class10_1)
{
this.InitializeComponent();
class10_settings_0 = class10_1;
this.RefreshPorts();
this.comboBoxDLCOM.Text = class10_settings_0.Dyno_COMPORTDyno;
this.comboBox1.Text = class10_settings_0.Dyno_AUX1Type;
this.comboBox2.Text = class10_settings_0.Dyno_AUX2Type;
this.comboBox3.Text = class10_settings_0.Dyno_AUX3Type;
this.maskedTextBox1.Text = class10_settings_0.Dyno_AUXMIN1V;
this.maskedTextBox7.Text = class10_settings_0.Dyno_AUXMIN2V;
this.maskedTextBox11.Text = class10_settings_0.Dyno_AUXMIN3V;
this.maskedTextBox4.Text = class10_settings_0.Dyno_AUXMAX1V;
this.maskedTextBox8.Text = class10_settings_0.Dyno_AUXMAX2V;
this.maskedTextBox12.Text = class10_settings_0.Dyno_AUXMAX3V;
this.maskedTextBox5.Text = class10_settings_0.Dyno_AUXMIN1O;
this.maskedTextBox9.Text = class10_settings_0.Dyno_AUXMIN2O;
this.maskedTextBox13.Text = class10_settings_0.Dyno_AUXMIN3O;
this.maskedTextBox6.Text = class10_settings_0.Dyno_AUXMAX1O;
this.maskedTextBox10.Text = class10_settings_0.Dyno_AUXMAX2O;
this.maskedTextBox14.Text = class10_settings_0.Dyno_AUXMAX3O;
/*foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}*/
}
private void AUX1Change(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUX1Type = this.comboBox1.Text;
}
private void AUX2Change(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUX2Type = this.comboBox2.Text;
}
private void AUX3Change(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUX3Type = this.comboBox3.Text;
}
private void AUXMAX1O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX1O = this.maskedTextBox6.Text;
}
private void AUXMAX1V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX1V = this.maskedTextBox4.Text;
}
private void AUXMAX2O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX2O = this.maskedTextBox10.Text;
}
private void AUXMAX2V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX2V = this.maskedTextBox8.Text;
}
private void AUXMAX3O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX3O = this.maskedTextBox14.Text;
}
private void AUXMAX3V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMAX3V = this.maskedTextBox12.Text;
}
private void AUXMIN1O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN1O = this.maskedTextBox5.Text;
}
private void AUXMIN1V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN1V = this.maskedTextBox1.Text;
}
private void AUXMIN2O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN2O = this.maskedTextBox9.Text;
}
private void AUXMIN2V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN2V = this.maskedTextBox7.Text;
}
private void AUXMIN3O(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN3O = this.maskedTextBox13.Text;
}
private void AUXMIN3V(object sender, EventArgs e)
{
class10_settings_0.Dyno_AUXMIN3V = this.maskedTextBox11.Text;
}
private void ButtonRefreshDLCom_Click(object sender, EventArgs e)
{
this.RefreshPorts();
}
private void ChangeCOMPort(object sender, EventArgs e)
{
class10_settings_0.Dyno_COMPort = this.comboBoxDLCOM.Text;
class10_settings_0.Dyno_COMPORTDyno = class10_settings_0.Dyno_COMPort;
}
private void FrmDyno_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDynoSetup));
this.maskedTextBox14 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox13 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox12 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox11 = new System.Windows.Forms.MaskedTextBox();
this.label10 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.maskedTextBox7 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox8 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox9 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox10 = new System.Windows.Forms.MaskedTextBox();
this.label2 = new System.Windows.Forms.Label();
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox4 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox5 = new System.Windows.Forms.MaskedTextBox();
this.maskedTextBox6 = new System.Windows.Forms.MaskedTextBox();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.labelDLCom = new System.Windows.Forms.Label();
this.comboBoxDLCOM = new System.Windows.Forms.ComboBox();
this.buttonRefreshDLCom = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// maskedTextBox14
//
this.maskedTextBox14.Location = new System.Drawing.Point(322, 241);
this.maskedTextBox14.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox14.Mask = "0000";
this.maskedTextBox14.Name = "maskedTextBox14";
this.maskedTextBox14.Size = new System.Drawing.Size(78, 20);
this.maskedTextBox14.TabIndex = 30;
this.maskedTextBox14.Text = "100";
this.maskedTextBox14.TextChanged += new System.EventHandler(this.AUXMAX3O);
//
// maskedTextBox13
//
this.maskedTextBox13.Location = new System.Drawing.Point(243, 241);
this.maskedTextBox13.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox13.Mask = "0000";
this.maskedTextBox13.Name = "maskedTextBox13";
this.maskedTextBox13.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox13.TabIndex = 29;
this.maskedTextBox13.Text = "0";
this.maskedTextBox13.TextChanged += new System.EventHandler(this.AUXMIN3O);
//
// maskedTextBox12
//
this.maskedTextBox12.Location = new System.Drawing.Point(164, 241);
this.maskedTextBox12.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox12.Mask = "0.00";
this.maskedTextBox12.Name = "maskedTextBox12";
this.maskedTextBox12.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox12.TabIndex = 28;
this.maskedTextBox12.Text = "500";
this.maskedTextBox12.TextChanged += new System.EventHandler(this.AUXMAX3V);
//
// maskedTextBox11
//
this.maskedTextBox11.Location = new System.Drawing.Point(85, 241);
this.maskedTextBox11.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox11.Mask = "0.00";
this.maskedTextBox11.Name = "maskedTextBox11";
this.maskedTextBox11.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox11.TabIndex = 27;
this.maskedTextBox11.Text = "000";
this.maskedTextBox11.TextChanged += new System.EventHandler(this.AUXMIN3V);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(11, 244);
this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(61, 13);
this.label10.TabIndex = 13;
this.label10.Text = "Aux3 Scale";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(11, 219);
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(61, 13);
this.label5.TabIndex = 12;
this.label5.Text = "Aux2 Scale";
//
// maskedTextBox7
//
this.maskedTextBox7.Location = new System.Drawing.Point(85, 217);
this.maskedTextBox7.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox7.Mask = "0.00";
this.maskedTextBox7.Name = "maskedTextBox7";
this.maskedTextBox7.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox7.TabIndex = 23;
this.maskedTextBox7.Text = "000";
this.maskedTextBox7.TextChanged += new System.EventHandler(this.AUXMIN2V);
//
// maskedTextBox8
//
this.maskedTextBox8.Location = new System.Drawing.Point(164, 217);
this.maskedTextBox8.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox8.Mask = "0.00";
this.maskedTextBox8.Name = "maskedTextBox8";
this.maskedTextBox8.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox8.TabIndex = 24;
this.maskedTextBox8.Text = "500";
this.maskedTextBox8.TextChanged += new System.EventHandler(this.AUXMAX2V);
//
// maskedTextBox9
//
this.maskedTextBox9.Location = new System.Drawing.Point(243, 217);
this.maskedTextBox9.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox9.Mask = "0000";
this.maskedTextBox9.Name = "maskedTextBox9";
this.maskedTextBox9.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox9.TabIndex = 25;
this.maskedTextBox9.Text = "0";
this.maskedTextBox9.TextChanged += new System.EventHandler(this.AUXMIN2O);
//
// maskedTextBox10
//
this.maskedTextBox10.Location = new System.Drawing.Point(322, 217);
this.maskedTextBox10.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox10.Mask = "0000";
this.maskedTextBox10.Name = "maskedTextBox10";
this.maskedTextBox10.Size = new System.Drawing.Size(78, 20);
this.maskedTextBox10.TabIndex = 26;
this.maskedTextBox10.Text = "100";
this.maskedTextBox10.TextChanged += new System.EventHandler(this.AUXMAX2O);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(11, 196);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(61, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Aux1 Scale";
//
// maskedTextBox1
//
this.maskedTextBox1.Location = new System.Drawing.Point(85, 193);
this.maskedTextBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox1.Mask = "0.00";
this.maskedTextBox1.Name = "maskedTextBox1";
this.maskedTextBox1.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox1.TabIndex = 19;
this.maskedTextBox1.Text = "000";
this.maskedTextBox1.TextChanged += new System.EventHandler(this.AUXMIN1V);
//
// maskedTextBox4
//
this.maskedTextBox4.Location = new System.Drawing.Point(164, 193);
this.maskedTextBox4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox4.Mask = "0.00";
this.maskedTextBox4.Name = "maskedTextBox4";
this.maskedTextBox4.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox4.TabIndex = 20;
this.maskedTextBox4.Text = "500";
this.maskedTextBox4.TextChanged += new System.EventHandler(this.AUXMAX1V);
//
// maskedTextBox5
//
this.maskedTextBox5.Location = new System.Drawing.Point(243, 193);
this.maskedTextBox5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox5.Mask = "0000";
this.maskedTextBox5.Name = "maskedTextBox5";
this.maskedTextBox5.Size = new System.Drawing.Size(75, 20);
this.maskedTextBox5.TabIndex = 21;
this.maskedTextBox5.Text = "10";
this.maskedTextBox5.TextChanged += new System.EventHandler(this.AUXMIN1O);
//
// maskedTextBox6
//
this.maskedTextBox6.Location = new System.Drawing.Point(322, 193);
this.maskedTextBox6.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.maskedTextBox6.Mask = "0000";
this.maskedTextBox6.Name = "maskedTextBox6";
this.maskedTextBox6.Size = new System.Drawing.Size(78, 20);
this.maskedTextBox6.TabIndex = 22;
this.maskedTextBox6.Text = "20";
this.maskedTextBox6.TextChanged += new System.EventHandler(this.AUXMAX1O);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(126, 178);
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(34, 13);
this.label8.TabIndex = 31;
this.label8.Text = "Min V";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(202, 178);
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(37, 13);
this.label9.TabIndex = 32;
this.label9.Text = "Max V";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(95, 94);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(61, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Aux1 Type:";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Voltage",
"AFR",
"MAP",
"Percent"});
this.comboBox1.Location = new System.Drawing.Point(175, 90);
this.comboBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(129, 21);
this.comboBox1.TabIndex = 15;
this.comboBox1.Text = "AFR";
this.comboBox1.TextChanged += new System.EventHandler(this.AUX1Change);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(95, 119);
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(61, 13);
this.label7.TabIndex = 6;
this.label7.Text = "Aux2 Type:";
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Voltage",
"AFR",
"MAP",
"Percent"});
this.comboBox2.Location = new System.Drawing.Point(175, 115);
this.comboBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(129, 21);
this.comboBox2.TabIndex = 16;
this.comboBox2.Text = "Voltage";
this.comboBox2.TextChanged += new System.EventHandler(this.AUX2Change);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(95, 144);
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 13);
this.label6.TabIndex = 8;
this.label6.Text = "Aux3 Type:";
//
// comboBox3
//
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"Voltage",
"AFR",
"MAP",
"Percent"});
this.comboBox3.Location = new System.Drawing.Point(175, 140);
this.comboBox3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(129, 21);
this.comboBox3.TabIndex = 17;
this.comboBox3.Text = "Voltage";
this.comboBox3.TextChanged += new System.EventHandler(this.AUX3Change);
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(259, 178);
this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(59, 13);
this.label11.TabIndex = 33;
this.label11.Text = "Min Output";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(338, 178);
this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(62, 13);
this.label12.TabIndex = 34;
this.label12.Text = "Max Output";
//
// labelDLCom
//
this.labelDLCom.AutoSize = true;
this.labelDLCom.Location = new System.Drawing.Point(95, 16);
this.labelDLCom.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelDLCom.Name = "labelDLCom";
this.labelDLCom.Size = new System.Drawing.Size(56, 13);
this.labelDLCom.TabIndex = 0;
this.labelDLCom.Text = "COM Port:";
//
// comboBoxDLCOM
//
this.comboBoxDLCOM.FormattingEnabled = true;
this.comboBoxDLCOM.Location = new System.Drawing.Point(175, 13);
this.comboBoxDLCOM.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.comboBoxDLCOM.Name = "comboBoxDLCOM";
this.comboBoxDLCOM.Size = new System.Drawing.Size(129, 21);
this.comboBoxDLCOM.TabIndex = 1;
this.comboBoxDLCOM.TextChanged += new System.EventHandler(this.ChangeCOMPort);
//
// buttonRefreshDLCom
//
this.buttonRefreshDLCom.Location = new System.Drawing.Point(135, 42);
this.buttonRefreshDLCom.Margin = new System.Windows.Forms.Padding(2);
this.buttonRefreshDLCom.Name = "buttonRefreshDLCom";
this.buttonRefreshDLCom.Size = new System.Drawing.Size(130, 22);
this.buttonRefreshDLCom.TabIndex = 8;
this.buttonRefreshDLCom.Text = "Refresh Ports";
this.buttonRefreshDLCom.UseVisualStyleBackColor = true;
//
// frmDyno
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(419, 275);
this.Controls.Add(this.maskedTextBox14);
this.Controls.Add(this.buttonRefreshDLCom);
this.Controls.Add(this.maskedTextBox13);
this.Controls.Add(this.labelDLCom);
this.Controls.Add(this.maskedTextBox12);
this.Controls.Add(this.maskedTextBox11);
this.Controls.Add(this.comboBoxDLCOM);
this.Controls.Add(this.label10);
this.Controls.Add(this.label5);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.maskedTextBox7);
this.Controls.Add(this.comboBox3);
this.Controls.Add(this.maskedTextBox8);
this.Controls.Add(this.label6);
this.Controls.Add(this.maskedTextBox9);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.maskedTextBox10);
this.Controls.Add(this.label7);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.maskedTextBox1);
this.Controls.Add(this.label12);
this.Controls.Add(this.maskedTextBox4);
this.Controls.Add(this.label11);
this.Controls.Add(this.maskedTextBox5);
this.Controls.Add(this.label9);
this.Controls.Add(this.maskedTextBox6);
this.Controls.Add(this.label8);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmDyno";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Dyno Setup";
this.Load += new System.EventHandler(this.FrmDyno_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
private void RefreshPorts()
{
this.comboBoxDLCOM.Items.Clear();
foreach (string str in SerialPort.GetPortNames())
{
this.comboBoxDLCOM.Items.Add(str);
}
}
}

1787
frmDynoSetup.resx Normal file

File diff suppressed because it is too large Load Diff

113
frmEbcDutyErrorInput.cs Normal file
View File

@ -0,0 +1,113 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmEbcDutyErrorInput : Form
{
private Button btnOk;
private Button button2;
private Class18 class18_0;
private float float_0;
private IContainer icontainer_0;
private Label label1;
private Label label2;
private TextBox textBox1;
internal frmEbcDutyErrorInput()
{
this.InitializeComponent();
}
private void btnOk_Click(object sender, EventArgs e)
{
this.class18_0.method_155("EBC Duty Input Error Settings");
float num = this.class18_0.method_244(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_274));
this.float_0 = float.Parse(this.textBox1.Text);
if (num > this.float_0)
{
MessageBox.Show(Form.ActiveForm, "Deadband error cannot be larger then this table. Deadband error will be set to value:" + this.textBox1.Text + ".");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_274, this.class18_0.method_210(this.float_0));
}
base.Tag = this.float_0;
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.label1 = new Label();
this.textBox1 = new TextBox();
this.btnOk = new Button();
this.button2 = new Button();
this.label2 = new Label();
base.SuspendLayout();
this.label1.AutoSize = true;
this.label1.Location = new Point(-2, 12);
this.label1.Name = "label1";
this.label1.Size = new Size(0x6a, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Maximum Load Error:";
this.textBox1.Location = new Point(110, 9);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(0x25, 20);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "4";
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Location = new Point(12, 0x23);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new Size(0x4b, 0x17);
this.btnOk.TabIndex = 2;
this.btnOk.Text = "Ok";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new EventHandler(this.btnOk_Click);
this.button2.DialogResult = DialogResult.Cancel;
this.button2.Location = new Point(0x5f, 0x23);
this.button2.Name = "button2";
this.button2.Size = new Size(0x4b, 0x17);
this.button2.TabIndex = 3;
this.button2.Text = "Cancel";
this.button2.UseVisualStyleBackColor = true;
this.label2.AutoSize = true;
this.label2.Location = new Point(0x99, 12);
this.label2.Name = "label2";
this.label2.Size = new Size(20, 13);
this.label2.TabIndex = 4;
this.label2.Text = "psi";
base.AcceptButton = this.btnOk;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(0xb6, 0x43);
base.Controls.Add(this.label2);
base.Controls.Add(this.button2);
base.Controls.Add(this.btnOk);
base.Controls.Add(this.textBox1);
base.Controls.Add(this.label1);
base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
base.Name = "frmEbcDutyErrorInput";
base.StartPosition = FormStartPosition.CenterParent;
this.Text = "Input";
base.ResumeLayout(false);
base.PerformLayout();
}
internal void method_0(ref Class18 class18_1)
{
this.class18_0 = class18_1;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
}

436
frmErrorCodes.cs Normal file
View File

@ -0,0 +1,436 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmErrorCodes : Form
{
private BackgroundWorker backgroundWorker_0 = new BackgroundWorker();
private Class17 class17_0;
private Class18 class18_0;
private ToolStripMenuItem clearErrorCodesToolStripMenuItem;
private ContextMenuStrip contextMenuStrip1;
private FrmMain frmMain_0;
private DataGridView grid;
private IContainer icontainer_0;
private IContainer components;
private Panel panel1;
public Button button1;
private DataGridViewTextBoxColumn Column1;
private DataGridViewTextBoxColumn Column3;
private Struct20 struct20_0 = new Struct20();
public bool loading = true;
internal frmErrorCodes()
{
this.InitializeComponent();
this.backgroundWorker_0.WorkerReportsProgress = false;
this.backgroundWorker_0.WorkerSupportsCancellation = false;
this.backgroundWorker_0.DoWork += new DoWorkEventHandler(this.backgroundWorker_0_DoWork);
}
private void backgroundWorker_0_DoWork(object sender, DoWorkEventArgs e)
{
this.method_2((Struct20) e.Argument);
}
private void clearErrorCodesToolStripMenuItem_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Clear CEL Codes");
this.class17_0.method_30();
}
private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
{
this.clearErrorCodesToolStripMenuItem.Enabled = this.class17_0.method_34_GetConnected();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmErrorCodes_FormClosed(object sender, FormClosedEventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode) this.class18_0.class10_settings_0.errorCodes_Location = base.Location;
this.frmMain_0.frmErrorCodes_0.Dispose();
this.frmMain_0.frmErrorCodes_0 = null;
}
private void frmErrorCodes_Load(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode)
{
this.FormBorderStyle = FormBorderStyle.Sizable;
this.Dock = DockStyle.None;
base.Location = this.class18_0.class10_settings_0.errorCodes_Location;
base.Size = this.class18_0.class10_settings_0.errorCodes_Size;
}
else
{
this.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
}
}
loading = false;
this.grid.Rows.Clear();
((VScrollBar)this.grid.Controls[1]).Enabled = true;
((VScrollBar)this.grid.Controls[1]).Visible = true;
((HScrollBar)this.grid.Controls[0]).Enabled = true;
((HScrollBar)this.grid.Controls[0]).Visible = true;
this.method_2(this.struct20_0);
}
private void frmErrorCodes_Move(object sender, EventArgs e)
{
}
private void frmErrorCodes_Resize(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode && !loading)
{
if (base.WindowState == FormWindowState.Normal)
{
this.class18_0.class10_settings_0.errorCodes_Size = base.Size;
}
this.class18_0.class10_settings_0.errorCodes_Location = base.Location;
}
}
}
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmErrorCodes));
this.grid = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.clearErrorCodesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// grid
//
this.grid.AllowUserToAddRows = false;
this.grid.AllowUserToDeleteRows = false;
this.grid.AllowUserToResizeColumns = false;
this.grid.AllowUserToResizeRows = false;
this.grid.BackgroundColor = System.Drawing.SystemColors.Window;
this.grid.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.Disable;
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column3});
this.grid.ContextMenuStrip = this.contextMenuStrip1;
this.grid.Dock = System.Windows.Forms.DockStyle.Fill;
this.grid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.grid.Location = new System.Drawing.Point(0, 0);
this.grid.MultiSelect = false;
this.grid.Name = "grid";
this.grid.ReadOnly = true;
this.grid.RowHeadersVisible = false;
this.grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.ShowCellErrors = false;
this.grid.ShowCellToolTips = false;
this.grid.ShowEditingIcon = false;
this.grid.ShowRowErrors = false;
this.grid.Size = new System.Drawing.Size(342, 167);
this.grid.TabIndex = 0;
//
// Column1
//
this.Column1.FillWeight = 70F;
this.Column1.HeaderText = "CEL Code";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 70;
//
// Column3
//
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Column3.HeaderText = "Description";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.clearErrorCodesToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(102, 26);
this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
//
// clearErrorCodesToolStripMenuItem
//
this.clearErrorCodesToolStripMenuItem.Name = "clearErrorCodesToolStripMenuItem";
this.clearErrorCodesToolStripMenuItem.Size = new System.Drawing.Size(101, 22);
this.clearErrorCodesToolStripMenuItem.Text = "Clear";
this.clearErrorCodesToolStripMenuItem.Click += new System.EventHandler(this.clearErrorCodesToolStripMenuItem_Click);
//
// panel1
//
this.panel1.Controls.Add(this.button1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 140);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(342, 27);
this.panel1.TabIndex = 1;
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(3, 2);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(69, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Clear CEL";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// frmErrorCodes
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(342, 167);
this.Controls.Add(this.panel1);
this.Controls.Add(this.grid);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmErrorCodes";
this.Text = "Error Codes";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmErrorCodes_FormClosed);
this.Load += new System.EventHandler(this.frmErrorCodes_Load);
this.Move += new System.EventHandler(this.frmErrorCodes_Move);
this.Resize += new System.EventHandler(this.frmErrorCodes_Resize);
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
this.contextMenuStrip1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
internal void method_0(ref Class18 class18_1, ref Class17 class17_1, ref FrmMain frmMain_1)
{
this.class18_0 = class18_1;
this.frmMain_0 = frmMain_1;
this.class17_0 = class17_1;
this.class17_0.delegate45_0 += new Class17.Delegate45(this.method_1);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1(Struct20 struct20_1)
{
if (((struct20_1.byte_0 != this.struct20_0.byte_0) || (struct20_1.byte_1 != this.struct20_0.byte_1)) || ((struct20_1.byte_2 != this.struct20_0.byte_2) || (struct20_1.byte_3 != this.struct20_0.byte_3)))
{
this.struct20_0 = struct20_1;
this.grid.Rows.Clear();
this.backgroundWorker_0.RunWorkerAsync(this.struct20_0);
}
}
private void method_2(Struct20 struct20_1)
{
if (this.class18_0 != null)
{
int num = 0;
for (int i = 1; i <= 8; i++)
{
num++;
if (this.class18_0.method_258(struct20_1.byte_0, i - 1))
{
this.method_5(this.method_3(i), this.method_4(this.method_3(i)));
}
}
for (int j = 1; j <= 8; j++)
{
num++;
if (this.class18_0.method_258(struct20_1.byte_1, j - 1))
{
this.method_5(this.method_3(j + 8), this.method_4(this.method_3(j + 8)));
}
}
for (int k = 1; k <= 8; k++)
{
num++;
if (this.class18_0.method_258(struct20_1.byte_2, k - 1))
{
this.method_5(this.method_3((k + 8) + 8), this.method_4(this.method_3((k + 8) + 8)));
}
}
for (int m = 1; m <= 8; m++)
{
num++;
if (this.class18_0.method_258(struct20_1.byte_3, m - 1))
{
this.method_5(this.method_3(((m + 8) + 8) + 8), this.method_4(this.method_3(((m + 8) + 8) + 8)));
}
}
}
}
private int method_3(int int_0)
{
switch (int_0)
{
case 24:
return 30;
case 25:
return 31;
case 26:
return 36;
case 27:
return 41;
case 28:
return 43;
case 29:
return 45;
}
if (int_0 > 29)
{
this.class18_0.class17_0.frmMain_0.LogThis("Error: Bitlocation did not convert to errorcode");
//throw new Exception("Bitlocation did not convert to errorcode");
}
return int_0;
}
private string method_4(int int_0)
{
switch (int_0)
{
case 1:
return "O2A - Oxygen Sensor #1";
case 2:
return "O2B - Oxygen Sensor #2";
case 3:
return "MAP - Manifold Absolute Pressure Sensor";
case 4:
return "CKP - Crank Position Sensor";
case 5:
return "MAP - Manifold Absolute Pressure Sensor";
case 6:
return "ECT - Engine Coolant Sensor";
case 7:
return "TPS - Throttle Position Sensor";
case 8:
return "TDC - Top Dead Center Sensor";
case 9:
return "CYP - Cylinder/Cam Sensor";
case 10:
return "IAT - Intake Air Temperature Sensor";
case 12:
return "EGR - Exhaust Gas Recirculation Lift Valve";
case 13:
return "BARO - Atmospheric Pressure Sensor";
case 14:
return "IAC - Idle Air Control Valve";
case 15:
return "ICM - Ignition Control Module";
case 16:
return "Fuel Injectors";
case 17:
return "VSS - Vehicule Speed Sensor";
case 19:
return "Automatic Transmission Lockup Control Valve";
case 20:
return "ELD - Electrical Load Detector";
case 21:
return "VTS - VTEC Solenoid";
case 22:
return "VTP - VTEC Pressure Valve";
case 23:
return "Knock Sensor";
case 30:
return "Automatic Transmission A Signal";
case 31:
return "Automatic Transmission B Signal";
case 36:
return "Traction Control";
case 41:
return "PO2H - Primary Oxygen Sensor Heater";
case 43:
return "Fuel Supply System";
case 45:
return "Fuel System too Rich or Lean";
}
return "Unknow error";
}
private void method_5(int int_0, string string_0)
{
if (this.grid.ColumnCount != 0)
{
this.grid.Rows.Add();
this.grid.Rows[this.grid.Rows.Count - 1].Cells[0].Value = int_0;
this.grid.Rows[this.grid.Rows.Count - 1].Cells[1].Value = string_0;
this.grid.Rows[this.grid.Rows.Count - 1].Height = 0x12;
this.grid.Invalidate();
}
}
private void button1_Click(object sender, EventArgs e)
{
this.class17_0.method_30();
}
}

1790
frmErrorCodes.resx Normal file

File diff suppressed because it is too large Load Diff

656
frmGaugesEditor.cs Normal file
View File

@ -0,0 +1,656 @@
using Data;
using Controls;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
internal class frmGaugesEditor : Form
{
private Class18 class18_0;
private FrmMain frmMain_0;
private IContainer icontainer_0;
private IContainer components;
private NumericUpDown numericSizeY;
private NumericUpDown numericSizeX;
private Label label2;
private NumericUpDown numericPosY;
private NumericUpDown numericPosX;
private Button buttonRestore;
private ComboBox comboBoxSensors;
private Label label3;
private Label label4;
private ComboBox comboBoxDisplayType;
private Label label1;
private CtrlDisplayItemText CtrlDisplayItemText_0;
private bool Loading = true;
private Point DefaultPos = new Point();
private Size DefaultSize = new Size();
private int Default_DataDisplayType;
private int Default_SensorType;
private int Default_WarnMin = -789;
private int Default_WarnMax = -789;
private int Default_SensorMin = -789;
private int Default_SensorMax = -789;
private Label label5;
private TextBox txtbValueMax;
private TextBox txtbValueMin;
private Label label7;
private TextBox txtbWarnMax;
private TextBox txtbWarnMin;
private GroupBox groupBoxRange;
private Label label11;
private Label label6;
private ErrorProvider errorProvider_0;
internal frmGaugesEditor(ref FrmMain frmMain_1, ref Class18 class18_1, ref CtrlDisplayItemText CtrlDisplayItemText_1)
{
this.InitializeComponent();
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
frmMain_0 = frmMain_1;
class18_0 = class18_1;
CtrlDisplayItemText_0 = CtrlDisplayItemText_1;
DefaultPos = this.CtrlDisplayItemText_0.Location;
DefaultSize = this.CtrlDisplayItemText_0.Size;
int DataDisplayType = this.CtrlDisplayItemText_0.DataDisplayType;
Default_DataDisplayType = DataDisplayType;
int SensorType = 0;
if (DataDisplayType == 1) SensorType = (int)this.CtrlDisplayItemText_0.TypeLED;
else if (DataDisplayType == 4) SensorType = (int)this.CtrlDisplayItemText_0.TypeALL;
else if (DataDisplayType == 5) SensorType = (int)this.CtrlDisplayItemText_0.TypeBUTTON;
else SensorType = (int)this.CtrlDisplayItemText_0.Type;
Default_SensorType = SensorType;
this.comboBoxDisplayType.SelectedIndex = DataDisplayType;
this.numericPosX.Maximum = this.frmMain_0.frmDataDisplay_0.Size.Width - this.CtrlDisplayItemText_0.Size.Width;
this.numericPosY.Maximum = this.frmMain_0.frmDataDisplay_0.Size.Height - this.CtrlDisplayItemText_0.Size.Height;
this.numericSizeX.Minimum = this.CtrlDisplayItemText_0.MinimumSize.Width;
this.numericSizeY.Minimum = this.CtrlDisplayItemText_0.MinimumSize.Height;
this.numericSizeX.Maximum = this.CtrlDisplayItemText_0.MaximumSize.Width;
this.numericSizeY.Maximum = this.CtrlDisplayItemText_0.MaximumSize.Height;
this.numericPosX.Value = DefaultPos.X;
this.numericPosY.Value = DefaultPos.Y;
this.numericSizeX.Value = DefaultSize.Width;
this.numericSizeY.Value = DefaultSize.Height;
ReloadSensorList();
Loading = false;
}
private void ReloadSensorList()
{
int DataDisplayType = this.CtrlDisplayItemText_0.DataDisplayType;
int SensorType = 0;
if (DataDisplayType == 1) SensorType = (int)this.CtrlDisplayItemText_0.TypeLED;
else if (DataDisplayType == 4) SensorType = (int)this.CtrlDisplayItemText_0.TypeALL;
else if (DataDisplayType == 5) SensorType = (int)this.CtrlDisplayItemText_0.TypeBUTTON;
else SensorType = (int)this.CtrlDisplayItemText_0.Type;
this.comboBoxSensors.Items.Clear();
if (DataDisplayType == 0 || DataDisplayType == 2 || DataDisplayType == 3 || DataDisplayType == 4)
{
groupBoxRange.Enabled = true;
comboBoxDisplayType.Enabled = true;
if (DataDisplayType != 4)
{
for (int i = 1; i < 26; i++) if (addDisplayTolist((DatalogDisplayTypes)i)) this.comboBoxSensors.Items.Add(((DatalogDisplayTypes)i).ToString());
}
else
{
for (int i = 0; i < this.class18_0.class10_settings_0.int_0; i++) this.comboBoxSensors.Items.Add(((SensorsX)i).ToString());
}
//load range
try
{
this.txtbWarnMin.Text = this.frmMain_0.class10_settings_0.method_20(GetTheSensor()).ToString();
this.txtbWarnMax.Text = this.frmMain_0.class10_settings_0.method_22(GetTheSensor()).ToString();
this.txtbValueMin.Text = this.frmMain_0.class10_settings_0.method_20_Min(GetTheSensor()).ToString();
this.txtbValueMax.Text = this.frmMain_0.class10_settings_0.method_22_Max(GetTheSensor()).ToString();
Default_WarnMin = this.frmMain_0.class10_settings_0.method_20(GetTheSensor());
Default_WarnMax = this.frmMain_0.class10_settings_0.method_22(GetTheSensor());
Default_SensorMin = this.frmMain_0.class10_settings_0.method_20_Min(GetTheSensor());
Default_SensorMax = this.frmMain_0.class10_settings_0.method_22_Max(GetTheSensor());
}
catch { }
}
else if (DataDisplayType == 1)
{
groupBoxRange.Enabled = false;
comboBoxDisplayType.Enabled = false;
for (int i = 1; i < (0x17 + 26); i++)
{
this.comboBoxSensors.Items.Add(((DatalogLedTypes)i).ToString());
}
}
else if (DataDisplayType == 5)
{
groupBoxRange.Enabled = false;
comboBoxDisplayType.Enabled = false;
try
{
for (int i = 0; i < 250; i++)
{
this.comboBoxSensors.Items.Add(((DatalogButtonsTypes)i).ToString());
}
}
catch { }
}
this.comboBoxSensors.SelectedIndex = (SensorType - 1);
}
private bool addDisplayTolist(DatalogDisplayTypes typ)
{
switch (typ)
{
case DatalogDisplayTypes.nEw:
return true;
case DatalogDisplayTypes.rpm:
return true;
case DatalogDisplayTypes.map:
return true;
case DatalogDisplayTypes.boost:
return true;
case DatalogDisplayTypes.O2:
return true;
case DatalogDisplayTypes.tps:
return true;
case DatalogDisplayTypes.inj:
return true;
case DatalogDisplayTypes.ign:
return true;
case DatalogDisplayTypes.iat:
return true;
case DatalogDisplayTypes.ect:
return true;
case DatalogDisplayTypes.bat:
return true;
case DatalogDisplayTypes.bstctrl:
return true;
case DatalogDisplayTypes.vss:
return true;
case DatalogDisplayTypes.gear:
return true;
case DatalogDisplayTypes.o2Trim:
return true;
case DatalogDisplayTypes.analog1:
return true;
case DatalogDisplayTypes.analog2:
return true;
case DatalogDisplayTypes.analog3:
return true;
case DatalogDisplayTypes.accelTime:
return true;
case DatalogDisplayTypes.fuelUsage:
return true;
case DatalogDisplayTypes.flexFuel:
return true;
}
return false;
}
private SensorsX GetTheSensor()
{
if (this.CtrlDisplayItemText_0.DataDisplayType == 0 && this.CtrlDisplayItemText_0.DataDisplayType == 2 && this.CtrlDisplayItemText_0.DataDisplayType == 3)
{
return this.CtrlDisplayItemText_0.ConvertDisplayTypeToSensor();
}
else if (this.CtrlDisplayItemText_0.DataDisplayType == 4)
{
return this.CtrlDisplayItemText_0.TypeALL;
}
else
{
return SensorsX.test0;
}
}
private void ApplySensorsSettings()
{
if (GetTheSensor() != SensorsX.test0)
{
if ((this.txtbWarnMax.Text != string.Empty) && (this.txtbWarnMin.Text != string.Empty))
{
this.frmMain_0.class10_settings_0.method_21(GetTheSensor(), int.Parse(this.txtbWarnMin.Text));
this.frmMain_0.class10_settings_0.method_23(GetTheSensor(), int.Parse(this.txtbWarnMax.Text));
}
if ((this.txtbValueMin.Text != string.Empty) && (this.txtbValueMax.Text != string.Empty))
{
this.frmMain_0.class10_settings_0.method_21_Min(GetTheSensor(), int.Parse(this.txtbValueMin.Text));
this.frmMain_0.class10_settings_0.method_23_Max(GetTheSensor(), int.Parse(this.txtbValueMax.Text));
}
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmDebug_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGaugesEditor));
this.label1 = new System.Windows.Forms.Label();
this.numericPosX = new System.Windows.Forms.NumericUpDown();
this.numericPosY = new System.Windows.Forms.NumericUpDown();
this.numericSizeY = new System.Windows.Forms.NumericUpDown();
this.numericSizeX = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label();
this.buttonRestore = new System.Windows.Forms.Button();
this.comboBoxSensors = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.comboBoxDisplayType = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.txtbValueMax = new System.Windows.Forms.TextBox();
this.txtbValueMin = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txtbWarnMax = new System.Windows.Forms.TextBox();
this.txtbWarnMin = new System.Windows.Forms.TextBox();
this.groupBoxRange = new System.Windows.Forms.GroupBox();
this.label11 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
((System.ComponentModel.ISupportInitialize)(this.numericPosX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericPosY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericSizeY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericSizeX)).BeginInit();
this.groupBoxRange.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(38, 59);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Position:";
//
// numericPosX
//
this.numericPosX.Location = new System.Drawing.Point(99, 57);
this.numericPosX.Name = "numericPosX";
this.numericPosX.Size = new System.Drawing.Size(65, 20);
this.numericPosX.TabIndex = 1;
this.numericPosX.ValueChanged += new System.EventHandler(this.NumericPosX_ValueChanged);
//
// numericPosY
//
this.numericPosY.Location = new System.Drawing.Point(167, 57);
this.numericPosY.Name = "numericPosY";
this.numericPosY.Size = new System.Drawing.Size(65, 20);
this.numericPosY.TabIndex = 2;
this.numericPosY.ValueChanged += new System.EventHandler(this.NumericPosX_ValueChanged);
//
// numericSizeY
//
this.numericSizeY.Location = new System.Drawing.Point(167, 79);
this.numericSizeY.Name = "numericSizeY";
this.numericSizeY.Size = new System.Drawing.Size(65, 20);
this.numericSizeY.TabIndex = 5;
this.numericSizeY.ValueChanged += new System.EventHandler(this.NumericSizeX_ValueChanged);
//
// numericSizeX
//
this.numericSizeX.Location = new System.Drawing.Point(99, 79);
this.numericSizeX.Name = "numericSizeX";
this.numericSizeX.Size = new System.Drawing.Size(65, 20);
this.numericSizeX.TabIndex = 4;
this.numericSizeX.ValueChanged += new System.EventHandler(this.NumericSizeX_ValueChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(55, 81);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(30, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Size:";
//
// buttonRestore
//
this.buttonRestore.ForeColor = System.Drawing.Color.Red;
this.buttonRestore.Location = new System.Drawing.Point(71, 189);
this.buttonRestore.Name = "buttonRestore";
this.buttonRestore.Size = new System.Drawing.Size(134, 23);
this.buttonRestore.TabIndex = 8;
this.buttonRestore.Text = "Restore Changes";
this.buttonRestore.UseVisualStyleBackColor = true;
this.buttonRestore.Click += new System.EventHandler(this.ButtonRestore_Click);
//
// comboBoxSensors
//
this.comboBoxSensors.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSensors.FormattingEnabled = true;
this.comboBoxSensors.Location = new System.Drawing.Point(99, 9);
this.comboBoxSensors.Name = "comboBoxSensors";
this.comboBoxSensors.Size = new System.Drawing.Size(133, 21);
this.comboBoxSensors.TabIndex = 6;
this.comboBoxSensors.SelectedIndexChanged += new System.EventHandler(this.ComboBoxSensors_SelectedIndexChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(42, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(43, 13);
this.label3.TabIndex = 7;
this.label3.Text = "Sensor:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(51, 36);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(34, 13);
this.label4.TabIndex = 10;
this.label4.Text = "Type:";
//
// comboBoxDisplayType
//
this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxDisplayType.FormattingEnabled = true;
this.comboBoxDisplayType.Items.AddRange(new object[] {
"Data",
"LED",
"Bar Graph",
"Gauge",
"Sensor"});
this.comboBoxDisplayType.Location = new System.Drawing.Point(99, 33);
this.comboBoxDisplayType.Name = "comboBoxDisplayType";
this.comboBoxDisplayType.Size = new System.Drawing.Size(133, 21);
this.comboBoxDisplayType.TabIndex = 9;
this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.ComboBoxDisplayType_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(159, 26);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(19, 13);
this.label5.TabIndex = 39;
this.label5.Text = "to:";
//
// txtbValueMax
//
this.txtbValueMax.Location = new System.Drawing.Point(184, 23);
this.txtbValueMax.Name = "txtbValueMax";
this.txtbValueMax.Size = new System.Drawing.Size(69, 20);
this.txtbValueMax.TabIndex = 37;
this.txtbValueMax.Validating += new System.ComponentModel.CancelEventHandler(this.TxtbValueMin_Validating);
this.txtbValueMax.Validated += new System.EventHandler(this.TxtbValueMin_Validated);
//
// txtbValueMin
//
this.txtbValueMin.Location = new System.Drawing.Point(84, 23);
this.txtbValueMin.Name = "txtbValueMin";
this.txtbValueMin.Size = new System.Drawing.Size(69, 20);
this.txtbValueMin.TabIndex = 36;
this.txtbValueMin.Validating += new System.ComponentModel.CancelEventHandler(this.TxtbValueMin_Validating);
this.txtbValueMin.Validated += new System.EventHandler(this.TxtbValueMin_Validated);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 26);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(65, 13);
this.label7.TabIndex = 35;
this.label7.Text = "Range from:";
//
// txtbWarnMax
//
this.txtbWarnMax.Location = new System.Drawing.Point(184, 49);
this.txtbWarnMax.Name = "txtbWarnMax";
this.txtbWarnMax.Size = new System.Drawing.Size(69, 20);
this.txtbWarnMax.TabIndex = 32;
this.txtbWarnMax.Validating += new System.ComponentModel.CancelEventHandler(this.TxtbValueMin_Validating);
this.txtbWarnMax.Validated += new System.EventHandler(this.TxtbValueMin_Validated);
//
// txtbWarnMin
//
this.txtbWarnMin.Location = new System.Drawing.Point(84, 49);
this.txtbWarnMin.Name = "txtbWarnMin";
this.txtbWarnMin.Size = new System.Drawing.Size(69, 20);
this.txtbWarnMin.TabIndex = 31;
this.txtbWarnMin.Validating += new System.ComponentModel.CancelEventHandler(this.TxtbValueMin_Validating);
this.txtbWarnMin.Validated += new System.EventHandler(this.TxtbValueMin_Validated);
//
// groupBoxRange
//
this.groupBoxRange.Controls.Add(this.label11);
this.groupBoxRange.Controls.Add(this.label6);
this.groupBoxRange.Controls.Add(this.label7);
this.groupBoxRange.Controls.Add(this.label5);
this.groupBoxRange.Controls.Add(this.txtbValueMin);
this.groupBoxRange.Controls.Add(this.txtbWarnMax);
this.groupBoxRange.Controls.Add(this.txtbValueMax);
this.groupBoxRange.Controls.Add(this.txtbWarnMin);
this.groupBoxRange.Location = new System.Drawing.Point(7, 106);
this.groupBoxRange.Name = "groupBoxRange";
this.groupBoxRange.Size = new System.Drawing.Size(260, 77);
this.groupBoxRange.TabIndex = 40;
this.groupBoxRange.TabStop = false;
this.groupBoxRange.Text = "Sensors Warnings/Range";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(159, 52);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(19, 13);
this.label11.TabIndex = 41;
this.label11.Text = "to:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 52);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(73, 13);
this.label6.TabIndex = 40;
this.label6.Text = "Warning from:";
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// frmGaugesEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(271, 217);
this.Controls.Add(this.groupBoxRange);
this.Controls.Add(this.label4);
this.Controls.Add(this.comboBoxDisplayType);
this.Controls.Add(this.label3);
this.Controls.Add(this.buttonRestore);
this.Controls.Add(this.comboBoxSensors);
this.Controls.Add(this.numericSizeY);
this.Controls.Add(this.numericPosY);
this.Controls.Add(this.numericSizeX);
this.Controls.Add(this.label1);
this.Controls.Add(this.label2);
this.Controls.Add(this.numericPosX);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmGaugesEditor";
this.Text = "Gauges Editor";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmGaugesEditor_FormClosed);
this.Load += new System.EventHandler(this.frmDebug_Load);
((System.ComponentModel.ISupportInitialize)(this.numericPosX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericPosY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericSizeY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericSizeX)).EndInit();
this.groupBoxRange.ResumeLayout(false);
this.groupBoxRange.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void SetPos()
{
this.CtrlDisplayItemText_0.Location = new Point((int) this.numericPosX.Value, (int) this.numericPosY.Value);
this.CtrlDisplayItemText_0.Invalidate();
}
private void SetSize()
{
this.CtrlDisplayItemText_0.Size = new Size((int)this.numericSizeX.Value, (int)this.numericSizeY.Value);
this.CtrlDisplayItemText_0.Invalidate();
}
private void NumericPosX_ValueChanged(object sender, EventArgs e)
{
if (!Loading) SetPos();
}
private void NumericSizeX_ValueChanged(object sender, EventArgs e)
{
if (!Loading) SetSize();
}
private void ComboBoxSensors_SelectedIndexChanged(object sender, EventArgs e)
{
if (!Loading)
{
if (this.CtrlDisplayItemText_0.DataDisplayType == 1) this.CtrlDisplayItemText_0.TypeLED = (DatalogLedTypes) (comboBoxSensors.SelectedIndex + 1);
else if (this.CtrlDisplayItemText_0.DataDisplayType == 4) this.CtrlDisplayItemText_0.TypeALL = (SensorsX) comboBoxSensors.SelectedIndex;
else this.CtrlDisplayItemText_0.Type = (DatalogDisplayTypes) (comboBoxSensors.SelectedIndex + 1);
//if (this.CtrlDisplayItemText_0.DataDisplayType == 4) this.CtrlDisplayItemText_0.SetSensorData();
if (this.CtrlDisplayItemText_0.DataDisplayType == 4) this.CtrlDisplayItemText_0.ResetSensorData();
this.CtrlDisplayItemText_0.Invalidate();
}
}
private void ComboBoxDisplayType_SelectedIndexChanged(object sender, EventArgs e)
{
if (!Loading)
{
if (this.CtrlDisplayItemText_0.DataDisplayType != 1 && comboBoxDisplayType.SelectedIndex == 1) comboBoxDisplayType.SelectedIndex = 0;
this.CtrlDisplayItemText_0.DataDisplayType = comboBoxDisplayType.SelectedIndex;
ReloadSensorList();
this.CtrlDisplayItemText_0.Invalidate();
}
}
private void ButtonRestore_Click(object sender, EventArgs e)
{
Loading = true;
comboBoxSensors.SelectedIndex = Default_SensorType;
comboBoxDisplayType.SelectedIndex = Default_DataDisplayType;
if (Default_DataDisplayType == 1) this.CtrlDisplayItemText_0.TypeLED = (DatalogLedTypes)Default_SensorType;
else if (Default_DataDisplayType == 4) this.CtrlDisplayItemText_0.TypeALL = (SensorsX)Default_SensorType;
else if (Default_DataDisplayType == 5) this.CtrlDisplayItemText_0.TypeBUTTON = (DatalogButtonsTypes)Default_SensorType;
else this.CtrlDisplayItemText_0.Type = (DatalogDisplayTypes)Default_SensorType;
this.CtrlDisplayItemText_0.DataDisplayType = Default_DataDisplayType;
this.CtrlDisplayItemText_0.Location = new Point(DefaultPos.X, DefaultPos.Y);
this.CtrlDisplayItemText_0.Size = new Size(DefaultSize.Width, DefaultSize.Height);
if (GetTheSensor() != SensorsX.test0)
{
if ((this.Default_WarnMin != -789) && (this.Default_WarnMax != -789))
{
this.frmMain_0.class10_settings_0.method_21(GetTheSensor(), this.Default_WarnMin);
this.frmMain_0.class10_settings_0.method_23(GetTheSensor(), this.Default_WarnMax);
}
if ((this.Default_SensorMin != -789) && (this.Default_SensorMax != -789))
{
this.frmMain_0.class10_settings_0.method_21_Min(GetTheSensor(), this.Default_SensorMin);
this.frmMain_0.class10_settings_0.method_23_Max(GetTheSensor(), this.Default_SensorMax);
}
}
this.CtrlDisplayItemText_0.Invalidate();
Loading = false;
}
private void FrmGaugesEditor_FormClosed(object sender, FormClosedEventArgs e)
{
this.CtrlDisplayItemText_0.frmGaugesEditor_0 = null;
}
private void TxtbValueMin_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox)sender;
if (!this.class18_0.method_252(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void TxtbValueMin_Validated(object sender, EventArgs e)
{
ApplySensorsSettings();
}
}

1790
frmGaugesEditor.resx Normal file

File diff suppressed because it is too large Load Diff

711
frmGearLearn.cs Normal file
View File

@ -0,0 +1,711 @@
using Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmGearLearn : Form
{
private bool bool_0;
private Button btnAdvance;
private Button btnCancel;
private Button btnG1;
private Button btnG2;
private Button btnG3;
private Button btnG4;
private Button btnNext;
private Button btnOK;
private Button btnPrev;
private Button btnReset;
private Class17 class17_0;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private GroupBox groupBox1;
private GroupBox grpCustomRatio;
private IContainer icontainer_0;
private int int_0;
private int int_1;
private Label label1;
private Label label10;
private Label label2;
private Label label3;
private Label label4;
private Label label5;
private Label label6;
private Label label8;
private Label lblGear;
private Label lblMSG;
private Label lblRaw;
private Label lblRawMax;
private Label lblRpm;
private Label lblVss;
private TextBox textBox1;
private TextBox textBox2;
private TextBox textBox3;
private IContainer components;
private TextBox textBox4;
private DateTime LastCheck = DateTime.Now;
internal frmGearLearn()
{
this.InitializeComponent();
}
private void btnAdvance_Click(object sender, EventArgs e)
{
this.bool_0 = !this.bool_0;
this.btnPrev.Enabled = !this.bool_0;
this.btnNext.Enabled = !this.bool_0;
this.grpCustomRatio.Enabled = this.bool_0;
this.method_3(0, this.bool_0);
this.btnNext.Text = "Start";
}
private void btnG1_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Gear Learn (Gear1) Settings");
this.class18_0.method_151(this.class18_0.class13_u_0.long_63, (long) this.int_1);
this.int_1 = 0;
this.lblRawMax.Text = "0";
this.frmGearLearn_Load(null, null);
}
private void btnG2_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Gear Learn (Gear2) Settings");
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 2L, (long) this.int_1);
this.int_1 = 0;
this.lblRawMax.Text = "0";
this.frmGearLearn_Load(null, null);
}
private void btnG3_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Gear Learn (Gear3) Settings");
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 4L, (long) (this.int_1 + 6));
this.int_1 = 0;
this.lblRawMax.Text = "0";
this.frmGearLearn_Load(null, null);
}
private void btnG4_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Gear Learn (Gear4) Settings");
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 6L, (long) (this.int_1 + 6));
this.int_1 = 0;
this.lblRawMax.Text = "0";
this.frmGearLearn_Load(null, null);
}
private void btnNext_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Gear Learn Settings");
if ((this.int_0 == 1) && (this.int_1 != 0))
{
this.class18_0.method_151(this.class18_0.class13_u_0.long_63, (long) this.int_1);
}
else if ((this.int_0 == 2) && (this.int_1 != 0))
{
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 2L, (long) this.int_1);
}
else if ((this.int_0 == 3) && (this.int_1 != 0))
{
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 4L, (long) this.int_1);
}
else if ((this.int_0 == 4) && (this.int_1 != 0))
{
this.class18_0.method_151(this.class18_0.class13_u_0.long_63 + 6L, (long) this.int_1);
}
this.frmGearLearn_Load(null, null);
if (this.int_0 < 5)
{
this.int_0++;
}
this.method_3(this.int_0, false);
}
private void btnPrev_Click(object sender, EventArgs e)
{
if (this.int_0 == 5)
{
this.int_0 = 0;
this.method_3(this.int_0, false);
}
else
{
if (this.int_0 > 0)
{
this.int_0--;
}
this.method_3(this.int_0, false);
}
}
private void btnReset_Click(object sender, EventArgs e)
{
this.int_1 = 0;
this.lblRawMax.Text = "0";
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmGearLearn_FormClosing(object sender, FormClosingEventArgs e)
{
this.class18_0.method_153();
}
private void frmGearLearn_Load(object sender, EventArgs e)
{
bool flag = this.class17_0.method_34_GetConnected();
if (!this.bool_0)
{
this.grpCustomRatio.Enabled = flag;
this.btnAdvance.Enabled = flag;
this.btnNext.Enabled = flag;
this.btnPrev.Enabled = flag;
this.btnOK.Enabled = flag;
this.btnReset.Enabled = flag;
}
this.grpCustomRatio.Enabled = this.bool_0;
if (!flag)
{
this.lblMSG.Text = "Datalogging not connected";
this.lblGear.Text = "";
this.lblMSG.ForeColor = Color.Red;
}
else
{
this.textBox1.Text = this.class18_0.method_152(this.class18_0.class13_u_0.long_63).ToString();
this.textBox2.Text = this.class18_0.method_152(this.class18_0.class13_u_0.long_63 + 2L).ToString();
this.textBox3.Text = this.class18_0.method_152(this.class18_0.class13_u_0.long_63 + 4L).ToString();
this.textBox4.Text = this.class18_0.method_152(this.class18_0.class13_u_0.long_63 + 6L).ToString();
if (!this.bool_0)
{
this.method_3(0, false);
this.btnNext.Text = "Start";
}
else
{
this.method_3(0, true);
}
}
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGearLearn));
this.lblMSG = new System.Windows.Forms.Label();
this.lblGear = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lblRaw = new System.Windows.Forms.Label();
this.btnPrev = new System.Windows.Forms.Button();
this.grpCustomRatio = new System.Windows.Forms.GroupBox();
this.btnG4 = new System.Windows.Forms.Button();
this.btnG3 = new System.Windows.Forms.Button();
this.btnG2 = new System.Windows.Forms.Button();
this.btnG1 = new System.Windows.Forms.Button();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.lblRpm = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lblVss = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.btnNext = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.lblRawMax = new System.Windows.Forms.Label();
this.btnAdvance = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.btnReset = new System.Windows.Forms.Button();
this.grpCustomRatio.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// lblMSG
//
this.lblMSG.Font = new System.Drawing.Font("Lucida Sans", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMSG.Location = new System.Drawing.Point(14, 42);
this.lblMSG.Name = "lblMSG";
this.lblMSG.Size = new System.Drawing.Size(285, 29);
this.lblMSG.TabIndex = 0;
this.lblMSG.Text = "Drive in gear 1 and press \"Next Gear\"";
this.lblMSG.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblGear
//
this.lblGear.Font = new System.Drawing.Font("Lucida Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblGear.Location = new System.Drawing.Point(14, 7);
this.lblGear.Name = "lblGear";
this.lblGear.Size = new System.Drawing.Size(198, 32);
this.lblGear.TabIndex = 1;
this.lblGear.Text = "Learning Gear: 1";
this.lblGear.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(59, 14);
this.label1.TabIndex = 2;
this.label1.Text = "Raw ratio:";
//
// lblRaw
//
this.lblRaw.AutoSize = true;
this.lblRaw.Location = new System.Drawing.Point(95, 20);
this.lblRaw.Name = "lblRaw";
this.lblRaw.Size = new System.Drawing.Size(14, 14);
this.lblRaw.TabIndex = 3;
this.lblRaw.Text = "0";
//
// btnPrev
//
this.btnPrev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnPrev.Location = new System.Drawing.Point(194, 147);
this.btnPrev.Name = "btnPrev";
this.btnPrev.Size = new System.Drawing.Size(105, 25);
this.btnPrev.TabIndex = 4;
this.btnPrev.Text = "Prev Gear";
this.btnPrev.UseVisualStyleBackColor = true;
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
//
// grpCustomRatio
//
this.grpCustomRatio.Controls.Add(this.btnG4);
this.grpCustomRatio.Controls.Add(this.btnG3);
this.grpCustomRatio.Controls.Add(this.btnG2);
this.grpCustomRatio.Controls.Add(this.btnG1);
this.grpCustomRatio.Controls.Add(this.textBox4);
this.grpCustomRatio.Controls.Add(this.label5);
this.grpCustomRatio.Controls.Add(this.textBox3);
this.grpCustomRatio.Controls.Add(this.label4);
this.grpCustomRatio.Controls.Add(this.textBox2);
this.grpCustomRatio.Controls.Add(this.label3);
this.grpCustomRatio.Controls.Add(this.textBox1);
this.grpCustomRatio.Controls.Add(this.label6);
this.grpCustomRatio.Enabled = false;
this.grpCustomRatio.Location = new System.Drawing.Point(14, 141);
this.grpCustomRatio.Name = "grpCustomRatio";
this.grpCustomRatio.Size = new System.Drawing.Size(174, 119);
this.grpCustomRatio.TabIndex = 10;
this.grpCustomRatio.TabStop = false;
this.grpCustomRatio.Text = "Ratio\'s Raw";
//
// btnG4
//
this.btnG4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnG4.Location = new System.Drawing.Point(117, 88);
this.btnG4.Name = "btnG4";
this.btnG4.Size = new System.Drawing.Size(47, 22);
this.btnG4.TabIndex = 23;
this.btnG4.Text = "Set";
this.btnG4.UseVisualStyleBackColor = true;
this.btnG4.Click += new System.EventHandler(this.btnG4_Click);
//
// btnG3
//
this.btnG3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnG3.Location = new System.Drawing.Point(117, 64);
this.btnG3.Name = "btnG3";
this.btnG3.Size = new System.Drawing.Size(47, 22);
this.btnG3.TabIndex = 22;
this.btnG3.Text = "Set";
this.btnG3.UseVisualStyleBackColor = true;
this.btnG3.Click += new System.EventHandler(this.btnG3_Click);
//
// btnG2
//
this.btnG2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnG2.Location = new System.Drawing.Point(117, 40);
this.btnG2.Name = "btnG2";
this.btnG2.Size = new System.Drawing.Size(47, 22);
this.btnG2.TabIndex = 21;
this.btnG2.Text = "Set";
this.btnG2.UseVisualStyleBackColor = true;
this.btnG2.Click += new System.EventHandler(this.btnG2_Click);
//
// btnG1
//
this.btnG1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnG1.Location = new System.Drawing.Point(117, 16);
this.btnG1.Name = "btnG1";
this.btnG1.Size = new System.Drawing.Size(47, 22);
this.btnG1.TabIndex = 20;
this.btnG1.Text = "Set";
this.btnG1.UseVisualStyleBackColor = true;
this.btnG1.Click += new System.EventHandler(this.btnG1_Click);
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(60, 90);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(48, 20);
this.textBox4.TabIndex = 7;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 94);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(44, 14);
this.label5.TabIndex = 18;
this.label5.Text = "gear 4:";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(60, 66);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(48, 20);
this.textBox3.TabIndex = 6;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(7, 70);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 14);
this.label4.TabIndex = 16;
this.label4.Text = "gear 3:";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(60, 42);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(48, 20);
this.textBox2.TabIndex = 5;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(7, 46);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(44, 14);
this.label3.TabIndex = 14;
this.label3.Text = "gear 2:";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(60, 18);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(48, 20);
this.textBox1.TabIndex = 4;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(7, 22);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(44, 14);
this.label6.TabIndex = 12;
this.label6.Text = "gear 1:";
//
// lblRpm
//
this.lblRpm.AutoSize = true;
this.lblRpm.Location = new System.Drawing.Point(252, 41);
this.lblRpm.Name = "lblRpm";
this.lblRpm.Size = new System.Drawing.Size(14, 14);
this.lblRpm.TabIndex = 12;
this.lblRpm.Text = "0";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(165, 41);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(33, 14);
this.label8.TabIndex = 11;
this.label8.Text = "Rpm:";
//
// lblVss
//
this.lblVss.AutoSize = true;
this.lblVss.Location = new System.Drawing.Point(252, 21);
this.lblVss.Name = "lblVss";
this.lblVss.Size = new System.Drawing.Size(14, 14);
this.lblVss.TabIndex = 14;
this.lblVss.Text = "0";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(165, 22);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(53, 14);
this.label10.TabIndex = 13;
this.label10.Text = "VSS raw:";
//
// btnNext
//
this.btnNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNext.Location = new System.Drawing.Point(194, 175);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(105, 25);
this.btnNext.TabIndex = 15;
this.btnNext.Text = "Next Gear";
this.btnNext.UseVisualStyleBackColor = true;
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnOK
//
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOK.Location = new System.Drawing.Point(160, 268);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(105, 25);
this.btnOK.TabIndex = 16;
this.btnOK.Text = "Finished";
this.btnOK.UseVisualStyleBackColor = true;
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Location = new System.Drawing.Point(48, 268);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(105, 25);
this.btnCancel.TabIndex = 17;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.lblRawMax);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.lblRaw);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.lblRpm);
this.groupBox1.Controls.Add(this.lblVss);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Location = new System.Drawing.Point(14, 73);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(285, 62);
this.groupBox1.TabIndex = 19;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Datas";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(8, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(82, 14);
this.label2.TabIndex = 15;
this.label2.Text = "Raw avg ratio:";
//
// lblRawMax
//
this.lblRawMax.AutoSize = true;
this.lblRawMax.Location = new System.Drawing.Point(95, 39);
this.lblRawMax.Name = "lblRawMax";
this.lblRawMax.Size = new System.Drawing.Size(14, 14);
this.lblRawMax.TabIndex = 16;
this.lblRawMax.Text = "0";
//
// btnAdvance
//
this.btnAdvance.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAdvance.Location = new System.Drawing.Point(194, 232);
this.btnAdvance.Name = "btnAdvance";
this.btnAdvance.Size = new System.Drawing.Size(105, 25);
this.btnAdvance.TabIndex = 20;
this.btnAdvance.Text = "Advance";
this.btnAdvance.UseVisualStyleBackColor = true;
this.btnAdvance.Click += new System.EventHandler(this.btnAdvance_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// btnReset
//
this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnReset.Location = new System.Drawing.Point(194, 203);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(105, 25);
this.btnReset.TabIndex = 21;
this.btnReset.Text = "Reset Current";
this.btnReset.UseVisualStyleBackColor = true;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// frmGearLearn
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(312, 303);
this.Controls.Add(this.btnReset);
this.Controls.Add(this.btnAdvance);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnNext);
this.Controls.Add(this.grpCustomRatio);
this.Controls.Add(this.btnPrev);
this.Controls.Add(this.lblGear);
this.Controls.Add(this.lblMSG);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmGearLearn";
this.Text = "Gear Learn Tool";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmGearLearn_FormClosing);
this.Load += new System.EventHandler(this.frmGearLearn_Load);
this.grpCustomRatio.ResumeLayout(false);
this.grpCustomRatio.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
}
internal void method_0(ref Class18 class18_1, ref Class17 class17_1)
{
this.class18_0 = class18_1;
this.class18_0.method_156("Gear learn tool", true);
this.class17_0 = class17_1;
this.class17_0.delegate54_0 += new Class17.Delegate54(this.method_1);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1(Struct12 struct12_0)
{
if ((DateTime.Now - LastCheck).TotalMilliseconds >= this.class18_0.class10_settings_0.int_ActiveDatalog[4])
{
LastCheck = DateTime.Now;
if (this.class17_0.method_34_GetConnected() && ((this.int_0 != 0) || this.bool_0))
{
int num = struct12_0.byte_14_E16;
int num2 = this.class18_0.method_218((long)struct12_0.ushort_0_E6_7);
this.lblRpm.Text = num2.ToString();
this.lblVss.Text = num.ToString();
this.lblRaw.Text = this.method_4((double)num, (double)num2).ToString();
if (this.int_1 == 0)
{
this.int_1 = this.method_4((double)num, (double)num2);
}
else
{
this.int_1 = (this.int_1 + this.method_4((double)num, (double)num2)) / 2;
}
this.lblRawMax.Text = this.int_1.ToString();
if (this.bool_0)
{
this.lblRaw.Text = this.lblRaw.Text + "/" + ((this.method_4((double)num, (double)num2) + 6)).ToString();
this.lblRawMax.Text = this.lblRawMax.Text + "/" + ((this.int_1 + 6)).ToString();
}
}
}
}
private void method_2(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (this.class18_0.class10_settings_0.correctionUnits_0 == CorrectionUnits.percentage)
{
if (!this.class18_0.method_255(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, Interger required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
else if (!this.class18_0.method_254(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, double positive required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void method_3(int int_2, bool bool_1)
{
this.int_1 = 0;
if (!bool_1)
{
this.btnPrev.Text = "Prev Gear";
if (int_2 == 0)
{
this.lblGear.Text = "";
this.lblMSG.Text = "Press start to start gear learning";
this.btnPrev.Enabled = false;
}
else if (int_2 <= 4)
{
this.btnPrev.Enabled = true;
this.btnNext.Text = "Next Gear";
this.lblGear.Text = "Learning gear: " + int_2.ToString();
this.lblMSG.Text = "Drive in gear " + int_2.ToString() + " and press \"Next Gear\"";
this.lblMSG.ForeColor = Color.Black;
}
else
{
this.btnPrev.Enabled = true;
this.lblGear.Text = "";
this.lblMSG.Text = "Gear learning finished";
this.btnPrev.Text = "Restart";
}
this.btnNext.Enabled = int_2 != 5;
}
else
{
this.lblMSG.Text = "";
this.lblGear.Text = "Advance mode";
}
}
private int method_4(double double_0, double double_1)
{
double num = 0.0;
if (this.bool_0)
{
num = Math.Floor((double) ((((double_0 * 256.0) * (1875000.0 / double_1)) / 65535.0) + 14.0));
}
else if ((this.int_0 == 1) || (this.int_0 == 2))
{
num = Math.Floor((double) ((((double_0 * 256.0) * (1875000.0 / double_1)) / 65535.0) + 14.0));
}
else
{
if ((this.int_0 != 3) && (this.int_0 != 4))
{
return 0;
}
num = Math.Floor((double) ((((double_0 * 256.0) * (1875000.0 / double_1)) / 65535.0) + 20.0));
}
return (int) num;
}
}

1790
frmGearLearn.resx Normal file

File diff suppressed because it is too large Load Diff

432
frmGridSelectionAdj.cs Normal file
View File

@ -0,0 +1,432 @@
using Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmGridSelectionAdj : Form
{
private bool bool_0;
private bool bool_1;
private bool bool_2;
private Button btnCancel;
private Button btnOk;
private Class10_settings class10_settings_0;
private Class12_afrT class12_afrT_0;
private Class18 class18_0;
private DataGridViewSelectedCellCollection dataGridViewSelectedCellCollection_0;
private double double_0;
private double double_1;
private double double_2;
private double double_3;
private double double_4;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private int[] int_0;
private int int_1;
private object object_0;
private object object_1;
private RadioButton rbAdd;
private RadioButton rbPercent;
private RadioButton rbSet;
private TextBox txtbAdd;
private TextBox txtbPercent;
private IContainer components;
private TextBox txtbSet;
internal frmGridSelectionAdj(int[] _selborders, ref DataGridViewSelectedCellCollection sel, ref Class10_settings cfg, ref Class18 rom, bool isTargetAfr, ref Class12_afrT te)
{
this.InitializeComponent();
this.dataGridViewSelectedCellCollection_0 = sel;
this.int_0 = _selborders;
this.class18_0 = rom;
this.class10_settings_0 = cfg;
this.bool_2 = isTargetAfr;
this.class12_afrT_0 = te;
if (this.bool_2)
{
this.rbPercent.Enabled = false;
this.txtbPercent.Enabled = false;
}
else if (!this.class18_0.method_40())
{
for (int i = 0; i < sel.Count; i++)
{
this.object_0 = this.class12_afrT_0.method_17(sel[i].ColumnIndex, sel[i].RowIndex);
if (this.class10_settings_0.bool_49)
{
this.class12_afrT_0.method_6(sel[i].ColumnIndex, sel[i].RowIndex);
}
this.object_1 = this.class12_afrT_0.method_16(sel[i].ColumnIndex, sel[i].RowIndex);
if (((this.object_0 != null) && (this.object_0.ToString() != "-")) && ((this.object_1 != null) && (this.object_1.ToString() != "-")))
{
this.double_0 += (double) this.object_0;
this.double_2 += (double) this.object_1;
this.int_1++;
}
}
if ((this.int_1 > 0) && ((((double) this.int_1) / ((double) sel.Count)) >= (((double) this.class10_settings_0.int_40) / 100.0)))
{
this.double_1 = this.double_0 / ((double) this.int_1);
this.double_3 = this.double_2 / ((double) this.int_1);
this.double_4 = -this.double_3 * this.class10_settings_0.double_15;
this.bool_0 = true;
this.txtbPercent.Text = "0";
if ((Math.Abs(this.double_4) >= this.class10_settings_0.double_13) && (Math.Abs(this.double_4) <= this.class10_settings_0.double_14))
{
//this.txtbPercent.Text = this.double_4.ToString("0.00");
this.bool_1 = true;
}
else if (Math.Abs(this.double_4) > this.class10_settings_0.double_14)
{
if (this.double_4 >= 0.0)
{
//this.txtbPercent.Text = this.class10_settings_0.double_14.ToString();
this.bool_1 = true;
}
else if (this.double_4 < 0.0)
{
//this.txtbPercent.Text = (-1.0 * this.class10_settings_0.double_14).ToString();
this.bool_1 = true;
}
}
}
}
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.txtbAdd.Text = "0";
this.txtbPercent.Text = "0";
this.txtbSet.Text = "0";
this.dataGridViewSelectedCellCollection_0 = null;
this.double_4 = 0.0;
GC.Collect(3);
}
private void btnOk_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Grid Selection Adjustement");
byte rowIndex;
byte columnIndex;
float num3 = 0f;
double num4 = 0.0;
int num5 = this.int_0[0];
int num7 = this.int_0[1];
int num6 = this.int_0[2];
int num8 = this.int_0[3];
this.class18_0.method_163((byte) num5);
this.class18_0.method_163((byte) num6);
this.class18_0.method_159((byte) num7);
this.class18_0.method_159((byte) num8);
if (this.rbPercent.Checked)
{
if (this.txtbPercent.Text == string.Empty)
{
return;
}
string[] strArray = new string[] { this.class18_0.method_4().ToString(), " percent: ", this.txtbPercent.Text, "@ col ", (num5 + 1).ToString(), " to ", (num6 + 1).ToString(), " & row ", (num7 + 1).ToString(), " to ", (num8 + 1).ToString() };
this.class18_0.method_155(string.Concat(strArray));
for (int i = 0; i < this.dataGridViewSelectedCellCollection_0.Count; i++)
{
columnIndex = (byte) this.dataGridViewSelectedCellCollection_0[i].ColumnIndex;
rowIndex = (byte) this.dataGridViewSelectedCellCollection_0[i].RowIndex;
num3 = this.class18_0.method_174(columnIndex, rowIndex);
this.class18_0.method_176(columnIndex, rowIndex, num3 + ((num3 / 100f) * float.Parse(this.txtbPercent.Text)));
if (this.bool_1)
{
this.class12_afrT_0.method_4(columnIndex, rowIndex);
}
}
this.class18_0.method_153();
}
else if (this.rbAdd.Checked)
{
if (this.txtbAdd.Text == string.Empty)
{
return;
}
string[] strArray3 = new string[] { this.class18_0.method_4().ToString(), " add: ", this.txtbAdd.Text, "@ col ", (num5 + 1).ToString(), " to ", (num6 + 1).ToString(), " & row ", (num7 + 1).ToString(), " to ", (num8 + 1).ToString() };
this.class18_0.method_155(string.Concat(strArray3));
for (int k = 0; k < this.dataGridViewSelectedCellCollection_0.Count; k++)
{
columnIndex = (byte) this.dataGridViewSelectedCellCollection_0[k].ColumnIndex;
rowIndex = (byte) this.dataGridViewSelectedCellCollection_0[k].RowIndex;
if (!this.bool_2)
{
num3 = this.class18_0.method_174(columnIndex, rowIndex);
this.class18_0.method_176(columnIndex, rowIndex, num3 + float.Parse(this.txtbAdd.Text));
}
else
{
num3 = (float) this.class12_afrT_0.method_13(columnIndex, rowIndex);
if (this.class10_settings_0.airFuelUnits_0 == AirFuelUnits.afr)
{
num4 = this.class18_0.method_240(double.Parse(this.txtbAdd.Text));
}
else
{
num4 = double.Parse(this.txtbAdd.Text);
}
this.class12_afrT_0.method_15(columnIndex, rowIndex, num3 + num4);
}
}
this.class18_0.method_153();
}
else if (this.rbSet.Checked)
{
if (this.txtbSet.Text == string.Empty)
{
return;
}
string[] strArray4 = new string[] { this.class18_0.method_4().ToString(), " set: ", this.txtbSet.Text, "@ col ", (num5 + 1).ToString(), " to ", (num6 + 1).ToString(), " & row ", (num7 + 1).ToString(), " to ", (num8 + 1).ToString() };
this.class18_0.method_155(string.Concat(strArray4));
for (int m = 0; m < this.dataGridViewSelectedCellCollection_0.Count; m++)
{
columnIndex = (byte) this.dataGridViewSelectedCellCollection_0[m].ColumnIndex;
rowIndex = (byte) this.dataGridViewSelectedCellCollection_0[m].RowIndex;
if (!this.bool_2)
{
this.class18_0.method_176(columnIndex, rowIndex, float.Parse(this.txtbSet.Text));
}
else
{
if (this.class10_settings_0.airFuelUnits_0 == AirFuelUnits.afr)
{
num4 = this.class18_0.method_240(double.Parse(this.txtbSet.Text));
}
else
{
num4 = double.Parse(this.txtbSet.Text);
}
this.class12_afrT_0.method_15(columnIndex, rowIndex, num4);
}
}
this.class18_0.method_153();
}
this.dataGridViewSelectedCellCollection_0 = null;
this.double_4 = 0.0;
num3 = 0f;
this.class18_0.method_53();
GC.Collect(3);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmGridSelectionAdj_FormClosed(object sender, FormClosedEventArgs e)
{
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGridSelectionAdj));
this.txtbSet = new System.Windows.Forms.TextBox();
this.txtbAdd = new System.Windows.Forms.TextBox();
this.txtbPercent = new System.Windows.Forms.TextBox();
this.rbSet = new System.Windows.Forms.RadioButton();
this.rbAdd = new System.Windows.Forms.RadioButton();
this.rbPercent = new System.Windows.Forms.RadioButton();
this.btnOk = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// txtbSet
//
this.txtbSet.Location = new System.Drawing.Point(140, 62);
this.txtbSet.Name = "txtbSet";
this.txtbSet.Size = new System.Drawing.Size(49, 20);
this.txtbSet.TabIndex = 7;
this.txtbSet.Text = "0";
this.txtbSet.Enter += new System.EventHandler(this.txtbSet_Enter);
this.txtbSet.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbPercent_KeyPress);
this.txtbSet.Validating += new System.ComponentModel.CancelEventHandler(this.txtbPercent_Validating);
//
// txtbAdd
//
this.txtbAdd.Location = new System.Drawing.Point(140, 38);
this.txtbAdd.Name = "txtbAdd";
this.txtbAdd.Size = new System.Drawing.Size(49, 20);
this.txtbAdd.TabIndex = 6;
this.txtbAdd.Text = "0";
this.txtbAdd.Enter += new System.EventHandler(this.txtbAdd_Enter);
this.txtbAdd.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbPercent_KeyPress);
this.txtbAdd.Validating += new System.ComponentModel.CancelEventHandler(this.txtbPercent_Validating);
//
// txtbPercent
//
this.txtbPercent.Location = new System.Drawing.Point(141, 13);
this.txtbPercent.Name = "txtbPercent";
this.txtbPercent.Size = new System.Drawing.Size(49, 20);
this.txtbPercent.TabIndex = 5;
this.txtbPercent.Text = "0";
this.txtbPercent.Enter += new System.EventHandler(this.txtbPercent_Enter);
this.txtbPercent.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbPercent_KeyPress);
this.txtbPercent.Validating += new System.ComponentModel.CancelEventHandler(this.txtbPercent_Validating);
//
// rbSet
//
this.rbSet.AutoSize = true;
this.rbSet.Location = new System.Drawing.Point(14, 62);
this.rbSet.Name = "rbSet";
this.rbSet.Size = new System.Drawing.Size(94, 18);
this.rbSet.TabIndex = 3;
this.rbSet.TabStop = true;
this.rbSet.Text = "Direct Value:";
this.rbSet.UseVisualStyleBackColor = true;
this.rbSet.Click += new System.EventHandler(this.rbSet_Click);
//
// rbAdd
//
this.rbAdd.AutoSize = true;
this.rbAdd.Location = new System.Drawing.Point(14, 38);
this.rbAdd.Name = "rbAdd";
this.rbAdd.Size = new System.Drawing.Size(107, 18);
this.rbAdd.TabIndex = 2;
this.rbAdd.TabStop = true;
this.rbAdd.Text = "Add Value (+/-):";
this.rbAdd.UseVisualStyleBackColor = true;
this.rbAdd.Click += new System.EventHandler(this.rbAdd_Click);
//
// rbPercent
//
this.rbPercent.AutoSize = true;
this.rbPercent.Location = new System.Drawing.Point(14, 13);
this.rbPercent.Name = "rbPercent";
this.rbPercent.Size = new System.Drawing.Size(115, 18);
this.rbPercent.TabIndex = 1;
this.rbPercent.TabStop = true;
this.rbPercent.Text = "Percentage (+/-):";
this.rbPercent.UseVisualStyleBackColor = true;
this.rbPercent.Click += new System.EventHandler(this.rbPercent_Click);
//
// btnOk
//
this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOk.Location = new System.Drawing.Point(105, 90);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(85, 25);
this.btnOk.TabIndex = 2;
this.btnOk.Text = "OK";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Location = new System.Drawing.Point(13, 90);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(85, 25);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// frmGridSelectionAdj
//
this.AcceptButton = this.btnOk;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(199, 126);
this.Controls.Add(this.txtbSet);
this.Controls.Add(this.txtbAdd);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.txtbPercent);
this.Controls.Add(this.btnOk);
this.Controls.Add(this.rbSet);
this.Controls.Add(this.rbPercent);
this.Controls.Add(this.rbAdd);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmGridSelectionAdj";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Set Adjustments";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmGridSelectionAdj_FormClosed);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void rbAdd_Click(object sender, EventArgs e)
{
this.txtbAdd.Focus();
}
private void rbPercent_Click(object sender, EventArgs e)
{
this.txtbPercent.Focus();
}
private void rbSet_Click(object sender, EventArgs e)
{
this.txtbSet.Focus();
}
private void txtbAdd_Enter(object sender, EventArgs e)
{
this.rbAdd.Checked = true;
}
private void txtbPercent_Enter(object sender, EventArgs e)
{
this.rbPercent.Checked = true;
}
private void txtbPercent_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\x001b')
{
TextBox box = (TextBox) sender;
box.Text = "0";
}
}
private void txtbPercent_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (control.Text != string.Empty)
{
if (!this.class18_0.method_252(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}
private void txtbSet_Enter(object sender, EventArgs e)
{
this.rbSet.Checked = true;
}
}

1790
frmGridSelectionAdj.resx Normal file

File diff suppressed because it is too large Load Diff

1244
frmHC05.cs Normal file

File diff suppressed because it is too large Load Diff

1790
frmHC05.resx Normal file

File diff suppressed because it is too large Load Diff

235
frmHints.cs Normal file
View File

@ -0,0 +1,235 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using IWshRuntimeLibrary;
internal class frmHints : Form
{
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
string String_Url = "";
private Label labelHint;
private Button buttonOk;
private Panel panel1;
private Panel panel2;
private PictureBox pictureBoxLeft;
private PictureBox pictureBoxRight;
int HintShownTime = -1;
int CurrentTime = 0;
public frmHints(string ThisHint, bool IsLeft, int ShownTime, Point ThisLocation)
{
this.InitializeComponent();
this.labelHint.Text = ThisHint;
if (IsLeft)
{
this.pictureBoxLeft.Visible = true;
this.pictureBoxRight.Visible = false;
}
else
{
this.pictureBoxLeft.Visible = false;
this.pictureBoxRight.Visible = true;
}
this.Location = new Point(ThisLocation.X, ThisLocation.Y);
HintShownTime = ShownTime * 60;
if (HintShownTime > 0)
{
LoopTimer.Interval = 1;
LoopTimer.Tick += DoThisAllTheTime;
LoopTimer.Start();
}
else
{
this.progressBar1.Visible = false;
}
/*foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}*/
}
void DoThisAllTheTime(object sender, EventArgs e)
{
int Progress = (int)((CurrentTime * 100) / HintShownTime);
if (Progress < 0) Progress = 0;
else if (Progress > 100) Progress = 100;
this.progressBar1.Value = Progress;
this.Invalidate(true);
//this.Refresh();
//this.PerformLayout();
//Application.DoEvents();
if (Progress >= 100)
{
this.DialogResult = DialogResult.Cancel;
//this.DialogResult = DialogResult.OK;
this.Close();
}
CurrentTime++;
}
private void buttonOk_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmHints));
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.labelHint = new System.Windows.Forms.Label();
this.buttonOk = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBoxLeft = new System.Windows.Forms.PictureBox();
this.pictureBoxRight = new System.Windows.Forms.PictureBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxLeft)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(4, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(388, 22);
this.label1.TabIndex = 28;
this.label1.Text = "Did you know?\r\n";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(4, 96);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(388, 10);
this.progressBar1.TabIndex = 29;
//
// labelHint
//
this.labelHint.Dock = System.Windows.Forms.DockStyle.Top;
this.labelHint.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelHint.Location = new System.Drawing.Point(4, 26);
this.labelHint.Name = "labelHint";
this.labelHint.Size = new System.Drawing.Size(388, 29);
this.labelHint.TabIndex = 30;
this.labelHint.Text = "You can Customize the gauges layout\r\nline#2";
this.labelHint.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// buttonOk
//
this.buttonOk.Location = new System.Drawing.Point(149, 1);
this.buttonOk.Name = "buttonOk";
this.buttonOk.Size = new System.Drawing.Size(75, 23);
this.buttonOk.TabIndex = 31;
this.buttonOk.Text = "Ok";
this.buttonOk.UseVisualStyleBackColor = true;
this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click);
//
// panel1
//
this.panel1.Controls.Add(this.buttonOk);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(4, 71);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(388, 25);
this.panel1.TabIndex = 32;
//
// panel2
//
this.panel2.BackgroundImage = global::Properties.Resources.Help_symbol;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel2.Location = new System.Drawing.Point(105, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(24, 24);
this.panel2.TabIndex = 33;
//
// pictureBoxLeft
//
this.pictureBoxLeft.BackgroundImage = global::Properties.Resources.control_180;
this.pictureBoxLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBoxLeft.Location = new System.Drawing.Point(0, 0);
this.pictureBoxLeft.Name = "pictureBoxLeft";
this.pictureBoxLeft.Size = new System.Drawing.Size(32, 32);
this.pictureBoxLeft.TabIndex = 34;
this.pictureBoxLeft.TabStop = false;
//
// pictureBoxRight
//
this.pictureBoxRight.BackgroundImage = global::Properties.Resources.control;
this.pictureBoxRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBoxRight.Location = new System.Drawing.Point(364, 0);
this.pictureBoxRight.Name = "pictureBoxRight";
this.pictureBoxRight.Size = new System.Drawing.Size(32, 32);
this.pictureBoxRight.TabIndex = 35;
this.pictureBoxRight.TabStop = false;
//
// frmHints
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(396, 110);
this.Controls.Add(this.pictureBoxRight);
this.Controls.Add(this.pictureBoxLeft);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.labelHint);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmHints";
this.Padding = new System.Windows.Forms.Padding(4);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Hints";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBoxLeft)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).EndInit();
this.ResumeLayout(false);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
}

1787
frmHints.resx Normal file

File diff suppressed because it is too large Load Diff

202
frmIgnCutModWarning.cs Normal file
View File

@ -0,0 +1,202 @@
using Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmIgnCutModWarning : Form
{
private Button btnApply;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private IContainer components;
private ComboBox comboBox1;
private Label label35;
private PictureBox pictureBox1;
private Label label1;
private Label label2;
private CheckBox checkBox1;
private Panel panel1;
public bool InstallMod = false;
public frmIgnCutModWarning(ref Class18 class18_1)
{
this.class18_0 = class18_1;
this.InitializeComponent();
comboBox1.SelectedIndex = 0;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void btnApply_Click(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex == 1) InstallMod = true;
if (checkBox1.Checked)
{
if (comboBox1.SelectedIndex == 0) this.class18_0.class10_settings_0.ICutModInstall = "false";
else if (comboBox1.SelectedIndex == 1) this.class18_0.class10_settings_0.ICutModInstall = "true";
}
base.DialogResult = DialogResult.OK;
base.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmIgnCutModWarningNa_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.btnApply = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.label35 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel1 = new System.Windows.Forms.Panel();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// btnApply
//
this.btnApply.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnApply.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnApply.Location = new System.Drawing.Point(107, 325);
this.btnApply.Name = "btnApply";
this.btnApply.Size = new System.Drawing.Size(76, 25);
this.btnApply.TabIndex = 4;
this.btnApply.Text = "Ok";
this.btnApply.UseVisualStyleBackColor = true;
this.btnApply.Click += new System.EventHandler(this.btnApply_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// label35
//
this.label35.AutoSize = true;
this.label35.Location = new System.Drawing.Point(42, 216);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(77, 14);
this.label35.TabIndex = 34;
this.label35.Text = "Include Mod:";
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"No",
"Yes"});
this.comboBox1.Location = new System.Drawing.Point(124, 211);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(130, 22);
this.comboBox1.TabIndex = 35;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(41, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(227, 54);
this.label1.TabIndex = 36;
this.label1.Text = "Do you want the\r\nIgnition Cut Mod\r\nInstalled on this baserom ?";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// pictureBox1
//
this.pictureBox1.Image = global::Properties.Resources.BMTune_IGNCut_Mod;
this.pictureBox1.Location = new System.Drawing.Point(1, 1);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(269, 130);
this.pictureBox1.TabIndex = 37;
this.pictureBox1.TabStop = false;
//
// panel1
//
this.panel1.BackColor = System.Drawing.SystemColors.ControlDark;
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Location = new System.Drawing.Point(12, 73);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(271, 132);
this.panel1.TabIndex = 38;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(41, 233);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(241, 18);
this.checkBox1.TabIndex = 39;
this.checkBox1.Text = "Don\'t show again this box (save choice)";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.Visible = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Red;
this.label2.Location = new System.Drawing.Point(12, 254);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(264, 56);
this.label2.TabIndex = 40;
this.label2.Text = "Including the mod on this baserom version can\r\nprobably create unwanted result. I" +
" would install\r\nonly if you want 2step (ignition cut) and add\r\nsome customizatio" +
"n to the ignition cut feature.";
//
// frmIgnCutModWarning
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(297, 358);
this.Controls.Add(this.label2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label35);
this.Controls.Add(this.btnApply);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmIgnCutModWarning";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Install Ignition Cut Mod?";
this.Load += new System.EventHandler(this.frmIgnCutModWarningNa_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
}

123
frmIgnCutModWarning.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

299
frmIgnitionSync.cs Normal file
View File

@ -0,0 +1,299 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Timers;
using System.Windows.Forms;
internal class frmIgnitionSync : Form
{
private bool bool_0;
private bool bool_1;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private Label label2;
private Label label4;
private Label label5;
private Label lblStatus;
private System.Timers.Timer timer_0 = new System.Timers.Timer(150.0);
private TextBox txtbBase;
private IContainer components;
private Button btnSync;
private CheckBox chkCust;
private TextBox txtbSync;
internal frmIgnitionSync()
{
this.InitializeComponent();
this.timer_0.AutoReset = true;
this.timer_0.Elapsed += new ElapsedEventHandler(this.timer_0_Elapsed);
}
private void btnSync_Click(object sender, EventArgs e)
{
this.bool_0 = !this.bool_0;
if (this.bool_0)
{
this.timer_0.Start();
this.btnSync.Text = "End Sync";
this.lblStatus.Visible = true;
this.lblStatus.Text = "Ignition lock at " + this.txtbSync.Text + "\x00b0";
this.class18_0.method_155("Ignition Sync Start");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_100, 0xff);
this.class18_0.method_153();
}
else
{
this.timer_0.Stop();
this.btnSync.Text = "Sync";
this.lblStatus.Visible = false;
this.class18_0.method_155("Ignition Sync End");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_100, 0);
this.class18_0.method_153();
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmIgnitionSync_FormClosing(object sender, FormClosingEventArgs e)
{
if (this.bool_0)
{
e.Cancel = true;
MessageBox.Show(Form.ActiveForm, "Can't close while syncing ignition");
}
}
private void frmIgnitionSync_Load(object sender, EventArgs e)
{
this.bool_1 = true;
if ((this.class18_0.class13_u_0.long_102 == 0L) || (this.class18_0.class13_u_0.long_101 == 0L))
{
base.Close();
}
this.class18_0.method_155("Ignition Sync First Time");
if ((this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_102) == 0) || (this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_102) == 0xff))
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_102, 0x58);
}
if ((this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_101) == 0) || (this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_101) == 0xff))
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_101, 90);
}
this.class18_0.method_153();
this.txtbBase.Text = ((this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_102) * 0.25f) - 6f).ToString();
this.txtbSync.Text = ((this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_101) * 0.25f) - 6f).ToString();
if (this.class18_0.class13_u_0.long_116 != 0L) this.chkCust.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_116) != 0;
this.chkCust.Enabled = this.class18_0.class13_u_0.long_116 != 0L;
this.bool_1 = false;
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmIgnitionSync));
this.lblStatus = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtbBase = new System.Windows.Forms.TextBox();
this.txtbSync = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.btnSync = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.chkCust = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// lblStatus
//
this.lblStatus.AutoSize = true;
this.lblStatus.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblStatus.ForeColor = System.Drawing.Color.IndianRed;
this.lblStatus.Location = new System.Drawing.Point(0, 34);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(174, 24);
this.lblStatus.TabIndex = 0;
this.lblStatus.Text = "Ignition lock at 16.5°";
this.lblStatus.Visible = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 7);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 13);
this.label2.TabIndex = 1;
this.label2.Text = "Base Timing:";
//
// txtbBase
//
this.txtbBase.Location = new System.Drawing.Point(79, 4);
this.txtbBase.Name = "txtbBase";
this.txtbBase.Size = new System.Drawing.Size(39, 20);
this.txtbBase.TabIndex = 2;
this.txtbBase.Text = "16";
this.txtbBase.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbSync_KeyPress);
this.txtbBase.Leave += new System.EventHandler(this.txtbSync_Leave);
this.txtbBase.Validating += new System.ComponentModel.CancelEventHandler(this.txtbSync_Validating);
//
// txtbSync
//
this.txtbSync.Location = new System.Drawing.Point(261, 4);
this.txtbSync.Name = "txtbSync";
this.txtbSync.Size = new System.Drawing.Size(39, 20);
this.txtbSync.TabIndex = 4;
this.txtbSync.Text = "16.5";
this.txtbSync.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbSync_KeyPress);
this.txtbSync.Leave += new System.EventHandler(this.txtbSync_Leave);
this.txtbSync.Validating += new System.ComponentModel.CancelEventHandler(this.txtbSync_Validating);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(123, 7);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(11, 13);
this.label4.TabIndex = 5;
this.label4.Text = "°";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(303, 7);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(11, 13);
this.label5.TabIndex = 6;
this.label5.Text = "°";
//
// btnSync
//
this.btnSync.BackColor = System.Drawing.SystemColors.ButtonFace;
this.btnSync.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSync.Location = new System.Drawing.Point(235, 32);
this.btnSync.Name = "btnSync";
this.btnSync.Size = new System.Drawing.Size(75, 23);
this.btnSync.TabIndex = 7;
this.btnSync.Text = "Sync";
this.btnSync.UseVisualStyleBackColor = false;
this.btnSync.Click += new System.EventHandler(this.btnSync_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// chkCust
//
this.chkCust.AutoSize = true;
this.chkCust.Location = new System.Drawing.Point(155, 6);
this.chkCust.Name = "chkCust";
this.chkCust.Size = new System.Drawing.Size(102, 17);
this.chkCust.TabIndex = 8;
this.chkCust.Text = "Lock Ignition at:";
this.chkCust.UseVisualStyleBackColor = true;
this.chkCust.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// frmIgnitionSync
//
this.AcceptButton = this.btnSync;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(317, 58);
this.Controls.Add(this.chkCust);
this.Controls.Add(this.btnSync);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.txtbSync);
this.Controls.Add(this.txtbBase);
this.Controls.Add(this.label2);
this.Controls.Add(this.lblStatus);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmIgnitionSync";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Sync Ignition";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmIgnitionSync_FormClosing);
this.Load += new System.EventHandler(this.frmIgnitionSync_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
internal void method_0(ref Class18 class18_1)
{
this.class18_0 = class18_1;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1()
{
if (!this.bool_1)
{
this.class18_0.method_155("Ignition Sync Settings");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_101, (byte) ((float.Parse(this.txtbSync.Text) + 6f) * 4f));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_102, (byte) ((float.Parse(this.txtbBase.Text) + 6f) * 4f));
if (this.chkCust.Checked) this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_116, 0xff);
else this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_116, 0);
this.class18_0.method_153();
}
}
private void timer_0_Elapsed(object sender, ElapsedEventArgs e)
{
this.lblStatus.Visible = !this.lblStatus.Visible;
}
private void txtbSync_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
this.method_1();
this.frmIgnitionSync_Load(null, null);
this.class18_0.method_53();
}
}
private void txtbSync_Leave(object sender, EventArgs e)
{
this.method_1();
}
private void txtbSync_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (!this.class18_0.method_252(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, double required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
this.method_1();
}
}

1790
frmIgnitionSync.resx Normal file

File diff suppressed because it is too large Load Diff

312
frmInjectorOverallCalc.cs Normal file
View File

@ -0,0 +1,312 @@
using Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmInjectorOverallCalc : Form
{
private Button btnOk;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private Label label1;
private Label label2;
private Label label3;
private Label label4;
private TextBox txtbPresNew;
private IContainer components;
private Label label5;
private Label label6;
private TextBox txtbPresOld;
public bool IsLastDisplacement = false;
public bool ChangeDone = false;
/* public int FuelPressureStart = 45;
public int FuelPressureEnd = 45;
public int DisplacementStart = 1595;
public int DisplacementEnd = 1595;*/
private ComboBox comboBox1;
private ComboBox comboBox2;
internal frmInjectorOverallCalc()
{
this.InitializeComponent();
}
private void btnOk_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Injector Overall Calculation");
double num = 0.0;
if (!IsLastDisplacement && ChangeDone)
{
num = Math.Sqrt(double.Parse(this.txtbPresNew.Text) / double.Parse(this.txtbPresOld.Text));
if (this.class18_0.class10_settings_0.correctionUnits_0 == CorrectionUnits.multi)
{
num--;
num = 1.0 - num;
num *= 1.015;
num = Math.Round(num, 2);
}
else
{
num--;
num *= 100.0;
num *= -1.0;
num *= 0.85;
num = Math.Floor(num);
}
}
else if (IsLastDisplacement && ChangeDone)
{
num = Math.Sqrt(double.Parse(comboBox2.Text) / double.Parse(comboBox1.Text));
}
else
{
num = double.Parse(this.class18_0.method_203(this.class18_0.method_152(this.class18_0.class13_u_0.long_39), Enum6.const_0).ToString(""));
}
base.Tag = num.ToString();
/*FuelPressureStart = int.Parse(txtbPresOld.Text);
FuelPressureEnd = int.Parse(txtbPresNew.Text);
DisplacementStart = int.Parse(comboBox1.Text);
DisplacementEnd = int.Parse(comboBox2.Text);*/
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label1 = new System.Windows.Forms.Label();
this.txtbPresOld = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txtbPresNew = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btnOk = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(108, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Fuel Pressure (psi):";
//
// txtbPresOld
//
this.txtbPresOld.Location = new System.Drawing.Point(23, 27);
this.txtbPresOld.Name = "txtbPresOld";
this.txtbPresOld.Size = new System.Drawing.Size(58, 20);
this.txtbPresOld.TabIndex = 1;
this.txtbPresOld.Text = "45";
this.txtbPresOld.TextChanged += new System.EventHandler(this.txtbPresOld_TextChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(87, 31);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(26, 14);
this.label2.TabIndex = 2;
this.label2.Text = "Old";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(87, 55);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(31, 14);
this.label3.TabIndex = 5;
this.label3.Text = "New";
//
// txtbPresNew
//
this.txtbPresNew.Location = new System.Drawing.Point(23, 52);
this.txtbPresNew.Name = "txtbPresNew";
this.txtbPresNew.Size = new System.Drawing.Size(58, 20);
this.txtbPresNew.TabIndex = 4;
this.txtbPresNew.Text = "45";
this.txtbPresNew.TextChanged += new System.EventHandler(this.txtbPresNew_TextChanged);
this.txtbPresNew.Validating += new System.ComponentModel.CancelEventHandler(this.txtbPresNew_Validating);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 84);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(107, 14);
this.label4.TabIndex = 6;
this.label4.Text = "Displacement (cc):";
//
// btnOk
//
this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOk.Location = new System.Drawing.Point(23, 164);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(91, 25);
this.btnOk.TabIndex = 9;
this.btnOk.Text = "OK";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(86, 131);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(31, 14);
this.label5.TabIndex = 12;
this.label5.Text = "New";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(86, 104);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(26, 14);
this.label6.TabIndex = 11;
this.label6.Text = "Old";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"1595",
"1678",
"1797",
"1834",
"1972"});
this.comboBox1.Location = new System.Drawing.Point(23, 101);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(58, 22);
this.comboBox1.TabIndex = 13;
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"1595",
"1678",
"1797",
"1834",
"1972"});
this.comboBox2.Location = new System.Drawing.Point(23, 128);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(58, 22);
this.comboBox2.TabIndex = 14;
//
// frmInjectorOverallCalc
//
this.AcceptButton = this.btnOk;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(136, 195);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label6);
this.Controls.Add(this.btnOk);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtbPresNew);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtbPresOld);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmInjectorOverallCalc";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Overall Fuel Trim";
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
//internal void method_0(ref Class18_file class18_1, int FOld, int FNew, int DOld, int DNew)
internal void method_0(ref Class18 class18_1)
{
this.class18_0 = class18_1;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
/*txtbPresOld.Text = FOld.ToString();
txtbPresNew.Text = FNew.ToString();
comboBox1.Text = DOld.ToString();
comboBox2.Text = DNew.ToString();*/
comboBox1.SelectedIndex = 0;
comboBox2.SelectedIndex = 0;
}
private void txtbPresNew_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (!this.class18_0.method_252(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, double required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void txtbPresOld_TextChanged(object sender, EventArgs e)
{
IsLastDisplacement = false;
ChangeDone = true;
}
private void txtbPresNew_TextChanged(object sender, EventArgs e)
{
IsLastDisplacement = false;
ChangeDone = true;
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
IsLastDisplacement = true;
ChangeDone = true;
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
IsLastDisplacement = true;
ChangeDone = true;
}
}

123
frmInjectorOverallCalc.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

226
frmLivePSetting.cs Normal file
View File

@ -0,0 +1,226 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
internal class frmLivePSetting : Form
{
private Button btnOk;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private Label lblAdj;
private IContainer components;
private GroupBox groupBox2;
private Label label1;
private TextBox txtbRpmPlotMinTps;
private Label label4;
private TextBox txtbRpmBlock;
private Label label2;
private GroupBox groupBox1;
private Label label3;
private TextBox txtbTimePlotLength;
private Class18 class18_0;
internal frmLivePSetting()
{
this.InitializeComponent();
}
internal void method_0(ref Class18 rm)
{
this.class18_0 = rm;
this.txtbTimePlotLength.Text = this.class18_0.class10_settings_0.int_5.ToString();
this.txtbRpmPlotMinTps.Text = this.class18_0.class10_settings_0.int_4.ToString();
this.txtbRpmBlock.Text = this.class18_0.class10_settings_0.int_3.ToString();
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void btnOk_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Live Plots Settings");
this.class18_0.class10_settings_0.int_5 = int.Parse(this.txtbTimePlotLength.Text);
this.class18_0.class10_settings_0.int_4 = int.Parse(this.txtbRpmPlotMinTps.Text);
this.class18_0.class10_settings_0.int_3 = int.Parse(this.txtbRpmBlock.Text);
this.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmAdvTableAdd_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmLivePSetting));
this.btnOk = new System.Windows.Forms.Button();
this.txtbTimePlotLength = new System.Windows.Forms.TextBox();
this.lblAdj = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.label1 = new System.Windows.Forms.Label();
this.txtbRpmPlotMinTps = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtbRpmBlock = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// btnOk
//
this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOk.Location = new System.Drawing.Point(111, 142);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(87, 25);
this.btnOk.TabIndex = 2;
this.btnOk.Text = "Apply";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// txtbTimePlotLength
//
this.txtbTimePlotLength.Location = new System.Drawing.Point(93, 21);
this.txtbTimePlotLength.Name = "txtbTimePlotLength";
this.txtbTimePlotLength.Size = new System.Drawing.Size(34, 20);
this.txtbTimePlotLength.TabIndex = 1;
this.txtbTimePlotLength.Text = "200";
//
// lblAdj
//
this.lblAdj.AutoSize = true;
this.lblAdj.Location = new System.Drawing.Point(6, 24);
this.lblAdj.Name = "lblAdj";
this.lblAdj.Size = new System.Drawing.Size(77, 14);
this.lblAdj.TabIndex = 0;
this.lblAdj.Text = "Time Length:";
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(52, 14);
this.label1.TabIndex = 3;
this.label1.Text = "Min TPS:";
//
// txtbRpmPlotMinTps
//
this.txtbRpmPlotMinTps.Location = new System.Drawing.Point(93, 21);
this.txtbRpmPlotMinTps.Name = "txtbRpmPlotMinTps";
this.txtbRpmPlotMinTps.Size = new System.Drawing.Size(34, 20);
this.txtbRpmPlotMinTps.TabIndex = 4;
this.txtbRpmPlotMinTps.Text = "0";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 50);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(71, 14);
this.label2.TabIndex = 5;
this.label2.Text = "RPM blocks:";
//
// txtbRpmBlock
//
this.txtbRpmBlock.Location = new System.Drawing.Point(93, 47);
this.txtbRpmBlock.Name = "txtbRpmBlock";
this.txtbRpmBlock.Size = new System.Drawing.Size(34, 20);
this.txtbRpmBlock.TabIndex = 6;
this.txtbRpmBlock.Text = "50";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(135, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 14);
this.label3.TabIndex = 7;
this.label3.Text = "Frames";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(135, 24);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(14, 14);
this.label4.TabIndex = 8;
this.label4.Text = "%";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lblAdj);
this.groupBox1.Controls.Add(this.txtbTimePlotLength);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Location = new System.Drawing.Point(11, 7);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(187, 48);
this.groupBox1.TabIndex = 9;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Time vs Afr";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label1);
this.groupBox2.Controls.Add(this.txtbRpmPlotMinTps);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.txtbRpmBlock);
this.groupBox2.Controls.Add(this.label2);
this.groupBox2.Location = new System.Drawing.Point(11, 61);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(187, 75);
this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "RPM vs Afr/Boost";
//
// LivePlots
//
this.AcceptButton = this.btnOk;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(209, 175);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnOk);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "LivePlots";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Live Plots Settings";
this.Load += new System.EventHandler(this.frmAdvTableAdd_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
}

1790
frmLivePSetting.resx Normal file

File diff suppressed because it is too large Load Diff

427
frmLivePlot.cs Normal file
View File

@ -0,0 +1,427 @@
using Data;
using Controls;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Threading;
using System.Windows.Forms;
internal class frmLivePlot : Form
{
private ctrlPlotGraph ctrlMapGraph1;
private frmLivePSetting frmLivePSetting_0;
private Class18 class18_0;
private FrmMain frmMain_0;
//private Struct17 struct17_0;
private IContainer icontainer_0;
private IContainer components;
private ToolStrip toolStrip1;
private ToolStripSeparator toolStripSeparator6;
private ToolStripDropDownButton toolStripDropDownButton1;
private ToolStripMenuItem timeVsAfrToolStripMenuItem;
private ToolStripMenuItem rpmVsAfrBoostToolStripMenuItem;
private ToolStripDropDownButton toolStripDropDownButton2;
private ToolStripMenuItem editLivePlotsToolStripMenuItem;
public bool loading = true;
//private BackgroundWorker backgroundWorker1;
//private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
private DateTime LastCheck = DateTime.Now;
internal frmLivePlot()
{
this.InitializeComponent();
/*this.backgroundWorker1.WorkerSupportsCancellation = true;
this.backgroundWorker1.WorkerReportsProgress = false;
this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
this.backgroundWorker1.RunWorkerAsync();*/
//LoopTimer.Interval = 50;
//LoopTimer.Tick += DoThisAllTheTime;
//LoopTimer.Start();
}
//void DoThisAllTheTime(object sender, EventArgs e)
//{
/*private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
BackgroundWorker worker = (BackgroundWorker)sender;
while (!worker.CancellationPending)
{
if (this.ctrlMapGraph1 != null && class18_0 != null)
{
if (base.WindowState == FormWindowState.Normal)
if (this.class18_0.class17_0.method_34() || this.class18_0.class17_0.method_63())
{
this.ctrlMapGraph1.Invalidate();
//this.ctrlMapGraph1.Refresh();
}
}
Thread.Sleep(50);
}
}*/
internal void method_0(ref Class18 class18_1, ref FrmMain frmMain_1)
{
this.class18_0 = class18_1;
this.frmMain_0 = frmMain_1;
//SetTimeVSAFR();
/*if (this.ctrlMapGraph1 != null)
{
this.ctrlMapGraph1.Dispose();
this.ctrlMapGraph1 = null;
}*/
//this.ctrlMapGraph1 = new ctrlPlotGraph();
this.ctrlMapGraph1.method_0(ref this.class18_0, ref this.class18_0.class10_settings_0);
this.class18_0.class17_0.delegate54_0 += new Class17.Delegate54(this.method_4);
this.class18_0.class17_0.delegate47_0 += new Class17.Delegate47(this.method_6);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmDebug_FormClosed(object sender, FormClosedEventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode) this.class18_0.class10_settings_0.LivePlot_Location = base.Location;
if (this.ctrlMapGraph1 != null)
{
this.ctrlMapGraph1.Dispose();
this.ctrlMapGraph1 = null;
}
if (this.frmMain_0.frmLivePlot_0 != null)
{
this.frmMain_0.frmLivePlot_0.Dispose();
this.frmMain_0.frmLivePlot_0 = null;
}
}
public void RefreshPage()
{
if (base.WindowState == FormWindowState.Normal)
{
this.Refresh();
this.ctrlMapGraph1.Refresh();
//this.Invalidate();
//this.ctrlMapGraph1.Invalidate();
}
}
private void method_4(Struct12 struct12_0)
{
if (!this.class18_0.class10_settings_0.DatalogThreadEnabled || (this.class18_0.class10_settings_0.DatalogThreadEnabled && (DateTime.Now - LastCheck).TotalMilliseconds >= this.class18_0.class10_settings_0.int_ActiveDatalog[5]))
{
LastCheck = DateTime.Now;
if (!this.class18_0.class10_settings_0.DatalogThreadEnabled || (this.class18_0.class10_settings_0.DatalogThreadEnabled && this.class18_0.class10_settings_0.bool_ActiveDatalog[5]))
{
try
{
base.Invoke(new Delegate6(this.method_5), new object[] { struct12_0 });
}
catch { }
}
}
}
private void method_5(Struct12 struct12_0)
{
if (!this.class18_0.class10_settings_0.DatalogThreadEnabled || (this.class18_0.class10_settings_0.DatalogThreadEnabled && this.class18_0.class10_settings_0.bool_ActiveDatalog[2]))
{
if ((this.ctrlMapGraph1 != null) && (this.ctrlMapGraph1.mapGraphType_0 == MapGraphType.timePlot || this.ctrlMapGraph1.mapGraphType_0 == MapGraphType.custom))
{
this.ctrlMapGraph1.method_19(struct12_0);
}
}
}
private void method_6(Struct17 struct17_1)
{
try
{
base.Invoke(new Delegate7(this.method_7), new object[] { struct17_1 });
}
catch { }
}
private void method_7(Struct17 struct17_1)
{
if (this.ctrlMapGraph1.mapGraphType_0 == MapGraphType.rpmPlot)
{
this.ctrlMapGraph1.method_20(struct17_1);
}
}
private void frmDebug_Load(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode)
{
this.FormBorderStyle = FormBorderStyle.Sizable;
this.Dock = DockStyle.None;
base.Location = this.class18_0.class10_settings_0.LivePlot_Location;
base.Size = this.class18_0.class10_settings_0.LivePlot_Size;
}
else
{
this.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
}
}
this.ctrlMapGraph1.mapGraphType_0 = (MapGraphType) this.class18_0.class10_settings_0.int_2_LivePlot;
this.timeVsAfrToolStripMenuItem.Checked = false;
this.rpmVsAfrBoostToolStripMenuItem.Checked = false;
//this.customVsTimeToolStripMenuItem.Checked = false;
switch (this.ctrlMapGraph1.mapGraphType_0)
{
case MapGraphType.rpmPlot:
this.rpmVsAfrBoostToolStripMenuItem.Checked = true;
break;
case MapGraphType.timePlot:
this.timeVsAfrToolStripMenuItem.Checked = true;
break;
case MapGraphType.custom:
//this.customVsTimeToolStripMenuItem.Checked = true;
break;
}
this.ctrlMapGraph1.Refresh();
loading = false;
}
private void frmDebug_Move(object sender, EventArgs e)
{
}
private void frmDebug_Resize(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode && !loading)
{
if (base.WindowState == FormWindowState.Normal)
{
this.class18_0.class10_settings_0.LivePlot_Size = base.Size;
}
this.class18_0.class10_settings_0.LivePlot_Location = base.Location;
}
}
}
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmLivePlot));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
this.timeVsAfrToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.rpmVsAfrBoostToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton();
this.editLivePlotsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
//this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.ctrlMapGraph1 = new ctrlPlotGraph();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripDropDownButton1,
this.toolStripSeparator6,
this.toolStripDropDownButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.toolStrip1.Size = new System.Drawing.Size(541, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripDropDownButton1
//
this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.timeVsAfrToolStripMenuItem,
this.rpmVsAfrBoostToolStripMenuItem});
this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(45, 22);
this.toolStripDropDownButton1.Text = "Style";
//
// timeVsAfrToolStripMenuItem
//
this.timeVsAfrToolStripMenuItem.CheckOnClick = true;
this.timeVsAfrToolStripMenuItem.Name = "timeVsAfrToolStripMenuItem";
this.timeVsAfrToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.F7)));
this.timeVsAfrToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
this.timeVsAfrToolStripMenuItem.Text = "Afr vs Time";
this.timeVsAfrToolStripMenuItem.Click += new System.EventHandler(this.timeVsAfrToolStripMenuItem_Click);
//
// rpmVsAfrBoostToolStripMenuItem
//
this.rpmVsAfrBoostToolStripMenuItem.CheckOnClick = true;
this.rpmVsAfrBoostToolStripMenuItem.Name = "rpmVsAfrBoostToolStripMenuItem";
this.rpmVsAfrBoostToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.F8)));
this.rpmVsAfrBoostToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
this.rpmVsAfrBoostToolStripMenuItem.Text = "Map/Afr vs Rpm";
this.rpmVsAfrBoostToolStripMenuItem.Click += new System.EventHandler(this.rpmVsAfrBoostToolStripMenuItem_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25);
//
// toolStripDropDownButton2
//
this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.editLivePlotsToolStripMenuItem});
this.toolStripDropDownButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton2.Image")));
this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton2.Name = "toolStripDropDownButton2";
this.toolStripDropDownButton2.Size = new System.Drawing.Size(40, 22);
this.toolStripDropDownButton2.Text = "Edit";
//
// editLivePlotsToolStripMenuItem
//
this.editLivePlotsToolStripMenuItem.Name = "editLivePlotsToolStripMenuItem";
this.editLivePlotsToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
this.editLivePlotsToolStripMenuItem.Text = "Time/Rpm vs Afr";
this.editLivePlotsToolStripMenuItem.Click += new System.EventHandler(this.editLivePlotsToolStripMenuItem_Click);
//
// ctrlMapGraph1
//
this.ctrlMapGraph1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctrlMapGraph1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ctrlMapGraph1.Location = new System.Drawing.Point(0, 0);
this.ctrlMapGraph1.Name = "ctrlMapGraph1";
this.ctrlMapGraph1.Size = new System.Drawing.Size(541, 429);
this.ctrlMapGraph1.TabIndex = 1;
//
// frmLivePlot
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(541, 429);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.ctrlMapGraph1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmLivePlot";
this.Text = "Live Plots";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmLivePlot_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmDebug_FormClosed);
this.Load += new System.EventHandler(this.frmDebug_Load);
this.ResizeEnd += new System.EventHandler(this.frmLivePlot_ResizeEnd);
this.Click += new System.EventHandler(this.FrmLivePlot_Click);
this.Move += new System.EventHandler(this.frmDebug_Move);
this.Resize += new System.EventHandler(this.frmDebug_Resize);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
private void frmLivePlot_ResizeEnd(object sender, EventArgs e)
{
RefreshPage();
}
private void editLivePlotsToolStripMenuItem_Click(object sender, EventArgs e)
{
this.frmLivePSetting_0 = new frmLivePSetting();
this.frmLivePSetting_0.method_0(ref this.class18_0);
this.frmLivePSetting_0.ShowDialog();
this.frmLivePSetting_0.Close();
this.frmLivePSetting_0.Dispose();
this.frmLivePSetting_0 = null;
}
private void SetTimeVSAFR()
{
this.timeVsAfrToolStripMenuItem.Checked = true;
this.rpmVsAfrBoostToolStripMenuItem.Checked = false;
//this.customVsTimeToolStripMenuItem.Checked = false;
this.ctrlMapGraph1.mapGraphType_0 = MapGraphType.timePlot;
this.class18_0.class10_settings_0.int_2_LivePlot = (int)this.ctrlMapGraph1.mapGraphType_0;
this.ctrlMapGraph1.Refresh();
}
private void timeVsAfrToolStripMenuItem_Click(object sender, EventArgs e)
{
SetTimeVSAFR();
}
private void rpmVsAfrBoostToolStripMenuItem_Click(object sender, EventArgs e)
{
this.timeVsAfrToolStripMenuItem.Checked = false;
this.rpmVsAfrBoostToolStripMenuItem.Checked = true;
//this.customVsTimeToolStripMenuItem.Checked = false;
this.ctrlMapGraph1.mapGraphType_0 = MapGraphType.rpmPlot;
this.class18_0.class10_settings_0.int_2_LivePlot = (int)this.ctrlMapGraph1.mapGraphType_0;
this.ctrlMapGraph1.Refresh();
}
private void customVsTimeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.timeVsAfrToolStripMenuItem.Checked = false;
this.rpmVsAfrBoostToolStripMenuItem.Checked = false;
//this.customVsTimeToolStripMenuItem.Checked = true;
this.ctrlMapGraph1.mapGraphType_0 = MapGraphType.custom;
this.class18_0.class10_settings_0.int_2_LivePlot = (int)this.ctrlMapGraph1.mapGraphType_0;
this.ctrlMapGraph1.Refresh();
}
private delegate void Delegate6(Struct12 struct12_0);
private delegate void Delegate7(Struct17 struct17_0);
private void frmLivePlot_FormClosing(object sender, FormClosingEventArgs e)
{
/*if (this.backgroundWorker1 != null)
{
if (this.backgroundWorker1.IsBusy) this.backgroundWorker1.CancelAsync();
this.backgroundWorker1.Dispose();
this.backgroundWorker1 = null;
}*/
}
private void FrmLivePlot_Click(object sender, EventArgs e)
{
}
}

1823
frmLivePlot.resx Normal file

File diff suppressed because it is too large Load Diff

255
frmLoading.cs Normal file
View File

@ -0,0 +1,255 @@
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
internal class frmLoading : Form
{
public ProgressBar progressBar1;
private IContainer icontainer_0;
private Label label1;
private PictureBox pictureBox1;
private PictureBox pictureBox2;
private PictureBox pictureBox3;
//private System.Windows.Forms.Timer LoopTimer = new System.Windows.Forms.Timer();
private List<string> InfoList = new List<string>();
public frmLoading()
{
this.InitializeComponent();
//this.Location = new Point(this.Location.X, this.Location.Y / 2);
InfoList.Add("Realtime Tuning");
InfoList.Add("Chip Burning");
InfoList.Add("Read Chip");
InfoList.Add("Write Chip");
InfoList.Add("Erase Chip");
InfoList.Add("Upload to Emulator");
InfoList.Add("Download from Emulator");
InfoList.Add("Datalog Engine Datas");
InfoList.Add("Antitheft Protection");
InfoList.Add("Popcorn Mod");
InfoList.Add("Ajustable Launch Control");
InfoList.Add("Full Throttle Shift");
InfoList.Add("Rolling Antilag (FTS)");
InfoList.Add("Ignition Cut Mod");
InfoList.Add("Closeloop with Wideband");
InfoList.Add("Air/Fuel Target");
InfoList.Add("Record Datalog");
InfoList.Add("Save Tunes as .bin");
InfoList.Add("Unlimited Tunes");
InfoList.Add("Premade Calibrations");
InfoList.Add("Internet Calibrations");
InfoList.Add("Biggest List of Baseroms");
InfoList.Add("CEL Shift Light");
InfoList.Add("Injectors Selection");
InfoList.Add("Wideband Selection");
InfoList.Add("TPS Calibration");
InfoList.Add("Ignition Sync");
InfoList.Add("Realtime Datalog");
InfoList.Add("Map Tracing");
InfoList.Add("2D Tables Graph");
InfoList.Add("3D Tables Graph");
InfoList.Add("Injectors Phasing");
InfoList.Add("Password Protection");
InfoList.Add("ECT Temp Protection");
InfoList.Add("Friendly user GUI");
InfoList.Add("Debug Logging");
InfoList.Add("Create new basemap");
InfoList.Add("Gauges Display");
InfoList.Add("Graph Display");
InfoList.Add("Datas Display");
InfoList.Add("Customize Graph");
InfoList.Add("Customize Gauge");
InfoList.Add("Customize Layout");
InfoList.Add("Customize Color");
InfoList.Add("Full Analogs Gesture");
InfoList.Add("Electronic Boost Control");
InfoList.Add("Boost Cut Protection");
InfoList.Add("Fuel cut on Decel");
InfoList.Add("Moates Ostrich2.0");
InfoList.Add("Moates Ostrich1.0");
InfoList.Add("Moates Demon1");
InfoList.Add("Moates Demon2");
InfoList.Add("Moates Hulog");
InfoList.Add("Bluetooth Datalog");
InfoList.Add("Bluetooth HC05");
InfoList.Add("FTDI FT232RL");
InfoList.Add("RS232 USB to TLL");
InfoList.Add("EasyRTP Emulator");
InfoList.Add("BMBurner");
InfoList.Add("BMLogger");
InfoList.Add("BM2Step");
InfoList.Add("BMulator");
InfoList.Add("BM2Timer"); ;
InfoList.Add("BMSimulator");
InfoList.Add("BMDatalogger");
InfoList.Add("BMulator");
InfoList.Add("BMCOP");
InfoList.Add("BMFlexFuel");
InfoList.Add("BMDevs");
InfoList.Add("ISR Datalog Protocol");
InfoList.Add("OBD1 Ecu Tuning");
//InfoList.Add("OBD0-1-2 Ecu Tuning");
InfoList.Add("Honda/Acura Tuning Software");
//InfoList.Add("Made by Bouletmarc");
//InfoList.Add("Made by BMDevs");
InfoList.Add("Universal Baserom Editor");
InfoList.Add("XDF/XML File Editor");
InfoList.Add("Bosch Motronic Ecu Tuning");
InfoList.Add("ME7.X Ecu Tuning");
InfoList.Add("Volks/Audi Tuning Software");
InfoList.Add("Realtime Datalogging");
//InfoList.Add("J2334 OBDII Interface");
//InfoList.Add("CanBUS Interface");
InfoList.Add("B-D-F-H Serie Ecu Tuning");
InfoList.Add("Created in 2017");
InfoList.Add("Live Graphing");
//InfoList.Add("");
/*LoopTimer.Interval = 50;
LoopTimer.Tick += DoThisAllTheTime;
LoopTimer.Start();*/
}
void DoThisAllTheTime(object sender, EventArgs e)
{
/*Random rnd = new Random();
this.label1.Text = InfoList[rnd.Next(0, InfoList.Count - 1)];
this.Refresh();*/
}
public void SetPercent(int Percent)
{
this.progressBar1.Value = Percent;
Random rnd = new Random();
this.label1.Text = InfoList[rnd.Next(0, InfoList.Count - 1)];
this.Refresh();
if (Percent == 100) this.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmLoading));
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 154);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(355, 11);
this.progressBar1.TabIndex = 29;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 123);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(355, 31);
this.label1.TabIndex = 32;
this.label1.Text = "LOADING !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Image = global::Properties.Resources.Piston_Animation_Small;
this.pictureBox1.Location = new System.Drawing.Point(303, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(69, 119);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 33;
this.pictureBox1.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox2.Image = global::Properties.Resources.Piston_Animation_Small;
this.pictureBox2.Location = new System.Drawing.Point(2, 2);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(69, 119);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 34;
this.pictureBox2.TabStop = false;
//
// pictureBox3
//
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox3.Image = global::Properties.Resources.BMTune_Logo_150x901;
this.pictureBox3.Location = new System.Drawing.Point(70, 2);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(234, 119);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox3.TabIndex = 35;
this.pictureBox3.TabStop = false;
//
// frmLoading
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(375, 175);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.progressBar1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmLoading";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Updating";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
}
}

1787
frmLoading.resx Normal file

File diff suppressed because it is too large Load Diff

1749
frmMapScalar.cs Normal file

File diff suppressed because it is too large Load Diff

123
frmMapScalar.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

914
frmOnboard.cs Normal file
View File

@ -0,0 +1,914 @@
using Data;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
public class frmOnboard : Form
{
public Button button1;
public ComboBox comboBox1;
public Button button3;
public Button button5;
public Button button4;
public Button button2;
public static bool bool_0;
private Class17 class17_0;
private static Class17 class17_2;
private Class10_settings class10_0;
public int int_0;
private Label label8;
private Label label5;
private Label label4;
private Label label3;
private Label label2;
private Label label1;
public Button button8;
private ProgressBar ProgressBar1;
private ListView listView1;
private ColumnHeader columnHeader_0;
private ColumnHeader columnHeader_1;
private ColumnHeader columnHeader_2;
private ColumnHeader columnHeader_3;
private ColumnHeader columnHeader_4;
public bool bool_1;
public string[] string_0 = new string[0xff];
private IContainer icontainer_0;
private System.Timers.Timer timer_0;
internal frmOnboard(ref Class17 class11_1, ref Class10_settings class10_1 )
{
this.class17_0 = class11_1;
this.class10_0 = class10_1;
this.InitializeComponent();
class17_2 = class17_0;
this.timer_0 = new System.Timers.Timer();
this.timer_0.Interval = 10;
//this.ProgressBar1.String_0 = "";
//this.ProgressBar1.Color_1 = Color.LightGreen;
//this.ProgressBar1.Color_0 = Color.Black;
//this.ProgressBar1.Font_0 = new Font("Times New Roman", 11f, FontStyle.Italic | FontStyle.Bold);
//this.ProgressBar1.GEnum19_0 = GEnum19.CurrProgress;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class10_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void button1_Click(object sender, EventArgs e)
{
this.button1.Enabled = false;
this.method_7();
this.button1.Enabled = true;
}
private void button2_Click(object sender, EventArgs e)
{
if (class17_0.serialPort_0.IsOpen)
{
this.method_6(true);
}
}
private void button3_Click(object sender, EventArgs e)
{
this.method_8();
}
private void button4_Click(object sender, EventArgs e)
{
this.method_3();
}
private void button5_Click(object sender, EventArgs e)
{
this.method_4();
}
private void frmOnboard_Load(object sender, EventArgs e)
{
bool flag = false;
if (class10_0.emulatorMode_0 != EmulatorMode.Demon)
{
MessageBox.Show("This only works when connected to Moates Demon", "BMTune");
base.Close();
}
else
{
try
{
/*if (class17_0.serialPort_0.IsOpen)
{
this.ProgressBar1.GEnum19_0 = GEnum19.CustomText;
}*/
flag = true;
}
catch
{
MessageBox.Show("This only works when connected to Moates Demon", "BMTune");
base.Close();
}
}
if (flag)
{
this.method_1();
}
}
private void InitializeComponent()
{
this.icontainer_0 = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(frmOnboard));
this.button1 = new Button();
this.comboBox1 = new ComboBox();
this.button3 = new Button();
this.button5 = new Button();
this.button4 = new Button();
this.button2 = new Button();
this.label8 = new Label();
this.label5 = new Label();
this.label4 = new Label();
this.label3 = new Label();
this.label2 = new Label();
this.label1 = new Label();
this.button8 = new Button();
this.listView1 = new ListView();
this.columnHeader_0 = new ColumnHeader();
this.columnHeader_1 = new ColumnHeader();
this.columnHeader_2 = new ColumnHeader();
this.columnHeader_3 = new ColumnHeader();
this.columnHeader_4 = new ColumnHeader();
this.ProgressBar1 = new ProgressBar();
base.SuspendLayout();
this.button1.Location = new Point(0x39b, 0x18e);
this.button1.Margin = new Padding(2);
this.button1.Name = "button1";
this.button1.Size = new Size(0x9a, 0x3e);
this.button1.TabIndex = 70;
this.button1.Text = "Dump";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new EventHandler(this.button1_Click);
this.comboBox1.FormattingEnabled = true;
object[] items = new object[] { "20ms (8min)", "40ms (16min)", "80ms (32min)", "100ms (40min)", "125ms (50min)" };
this.comboBox1.Items.AddRange(items);
this.comboBox1.Location = new Point(0x39f, 0xc5);
this.comboBox1.Margin = new Padding(2);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new Size(150, 0x20);
this.comboBox1.TabIndex = 0x44;
this.comboBox1.Text = "20ms (8min)";
this.button3.Location = new Point(0x39f, 11);
this.button3.Margin = new Padding(6);
this.button3.Name = "button3";
this.button3.Size = new Size(150, 0x2e);
this.button3.TabIndex = 0x42;
this.button3.Text = "Scan";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new EventHandler(this.button3_Click);
this.button5.Location = new Point(0x39b, 0xf4);
this.button5.Margin = new Padding(2);
this.button5.Name = "button5";
this.button5.Size = new Size(0x9a, 0x30);
this.button5.TabIndex = 0x3a;
this.button5.Text = "Erase";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new EventHandler(this.button5_Click);
this.button4.Location = new Point(0x39f, 0x41);
this.button4.Margin = new Padding(2);
this.button4.Name = "button4";
this.button4.Size = new Size(150, 0x34);
this.button4.TabIndex = 0x39;
this.button4.Text = "Compression";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new EventHandler(this.button4_Click);
this.button2.Location = new Point(0x39f, 0x80);
this.button2.Margin = new Padding(2);
this.button2.Name = "button2";
this.button2.Size = new Size(150, 0x37);
this.button2.TabIndex = 0x38;
this.button2.Text = "Enable OB";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new EventHandler(this.button2_Click);
this.label8.AutoSize = true;
this.label8.Location = new Point(0x28c, 0x1b0);
this.label8.Margin = new Padding(2, 0, 2, 0);
this.label8.Name = "label8";
this.label8.Size = new Size(0x86, 0x19);
this.label8.TabIndex = 0x4c;
this.label8.Text = "Compression:";
this.label5.AutoSize = true;
this.label5.Location = new Point(0x296, 0x18b);
this.label5.Margin = new Padding(2, 0, 2, 0);
this.label5.Name = "label5";
this.label5.Size = new Size(0x7c, 0x19);
this.label5.TabIndex = 0x4b;
this.label5.Text = "Total Space:";
this.label4.AutoSize = true;
this.label4.Location = new Point(0x151, 0x1b0);
this.label4.Margin = new Padding(2, 0, 2, 0);
this.label4.Name = "label4";
this.label4.Size = new Size(160, 0x19);
this.label4.TabIndex = 0x4a;
this.label4.Text = "Space Available:";
this.label3.AutoSize = true;
this.label3.Location = new Point(0x173, 0x18b);
this.label3.Margin = new Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new Size(0x7e, 0x19);
this.label3.TabIndex = 0x49;
this.label3.Text = "Space Used:";
this.label2.AutoSize = true;
this.label2.Location = new Point(0x20, 0x1b0);
this.label2.Margin = new Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new Size(0x92, 0x19);
this.label2.TabIndex = 0x48;
this.label2.Text = "Logs Available:";
this.label1.AutoSize = true;
this.label1.Location = new Point(0x1c, 0x18b);
this.label1.Margin = new Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new Size(150, 0x19);
this.label1.TabIndex = 0x47;
this.label1.Text = "Recorded Logs:";
this.button8.Location = new Point(0x39b, 0x131);
this.button8.Margin = new Padding(2);
this.button8.Name = "button8";
this.button8.Size = new Size(0x9a, 0x30);
this.button8.TabIndex = 0x4d;
this.button8.Text = "Write";
this.button8.UseVisualStyleBackColor = true;
ColumnHeader[] values = new ColumnHeader[] { this.columnHeader_0, this.columnHeader_1, this.columnHeader_2, this.columnHeader_3, this.columnHeader_4 };
this.listView1.Columns.AddRange(values);
this.listView1.HideSelection = false;
this.listView1.Location = new Point(0x12, 11);
this.listView1.Margin = new Padding(2);
this.listView1.Name = "listView1";
this.listView1.Size = new Size(0x37c, 0x176);
this.listView1.TabIndex = 0x4f;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = View.Details;
this.listView1.DoubleClick += new EventHandler(this.listView1_DoubleClick);
this.columnHeader_0.Text = "LOG#";
this.columnHeader_0.Width = 0x84;
this.columnHeader_1.Text = "Size";
this.columnHeader_1.Width = 80;
this.columnHeader_2.Text = "Samples";
this.columnHeader_2.Width = 80;
this.columnHeader_3.Text = "Duration";
this.columnHeader_3.Width = 90;
this.columnHeader_4.Text = "Compressed";
this.columnHeader_4.Width = 0x66;
this.ProgressBar1.Location = new Point(0x12, 0x1dc);
this.ProgressBar1.Name = "ProgressBar1";
this.ProgressBar1.Size = new Size(0x423, 0x29);
this.ProgressBar1.TabIndex = 0x4e;
base.AutoScaleDimensions = new SizeF(11f, 24f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(0x445, 0x214);
base.Controls.Add(this.listView1);
base.Controls.Add(this.ProgressBar1);
base.Controls.Add(this.button8);
base.Controls.Add(this.label8);
base.Controls.Add(this.label5);
base.Controls.Add(this.label4);
base.Controls.Add(this.label3);
base.Controls.Add(this.label2);
base.Controls.Add(this.label1);
base.Controls.Add(this.button1);
base.Controls.Add(this.comboBox1);
base.Controls.Add(this.button3);
base.Controls.Add(this.button5);
base.Controls.Add(this.button4);
base.Controls.Add(this.button2);
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.Margin = new Padding(4);
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "frmOnboard";
this.Text = "Onboard Datalogging";
base.Load += new EventHandler(this.frmOnboard_Load);
base.ResumeLayout(false);
base.PerformLayout();
}
private void listView1_DoubleClick(object sender, EventArgs e)
{
this.method_9();
}
public byte[] method_0(byte[] byte_0)
{
byte num = 0;
foreach (byte num3 in byte_0)
{
num = (byte) (num + num3);
}
byte[] buffer = new byte[byte_0.Length + 1];
byte_0.CopyTo(buffer, 0);
buffer[buffer.Length - 1] = num;
return buffer;
}
public void method_1()
{
class17_0.serialPort_0.DiscardInBuffer();
class17_0.serialPort_0.DiscardOutBuffer();
byte[] buffer = new byte[0x20];
byte[] buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 0x4e });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(20);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
byte[] buffer3 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 110 });
class17_0.serialPort_0.Write(buffer3, 0, buffer3.Length);
Thread.Sleep(20);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
byte[] buffer4 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 0x49 });
class17_0.serialPort_0.Write(buffer4, 0, buffer4.Length);
Thread.Sleep(20);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
byte num = buffer[1];
byte num2 = buffer[2];
byte num3 = buffer[3];
byte num14 = buffer[14];
byte num15 = buffer[15];
this.bool_1 = buffer[12] == 0x59;
int num17 = 0;
if (num15 == 0)
{
num17 = 0x100;
}
else if (num15 == 1)
{
num17 = 0x200;
}
else if (num15 == 3)
{
num17 = 0x200;
}
if (num14 == 7)
{
this.int_0 = 0xfa000;
}
else if (num14 == 15)
{
this.int_0 = 0x3e8000;
}
else if (num14 == 0x1f)
{
this.int_0 = 0x3e8000;
}
float num18 = ((float) (((num2 << 8) | num3) * num17)) / 1000f;
this.label1.Text = "Recorded Logs: " + num.ToString();
this.label2.Text = "Logs Available: " + (0xff - num).ToString();
this.label3.Text = "Space Used: " + num18.ToString() + "KB";
this.label4.Text = "Space Available: " + ((this.int_0 / 0x3e8) - num18).ToString() + "KB";
this.label5.Text = "Total Space: " + (this.int_0 / 0x3e8).ToString() + "KB";
this.label8.Text = "Compression: " + this.bool_1.ToString();
if ((num != 0) && (MessageBox.Show("New Onboard Datalogs," + Environment.NewLine + "Do you want to scan them?", "Onboard", MessageBoxButtons.YesNo) == DialogResult.Yes))
{
this.method_8();
}
}
}
}
private void method_10(object sender, ProgressChangedEventArgs e)
{
float num2 = (((float) int.Parse(e.ProgressPercentage.ToString())) / ((float) this.int_0)) * 100f;
//this.ProgressBar1.String_0 = "Dumping Rom: " + num2.ToString() + " %";
this.Text = "Onboard Datalogging - Dumping Rom: " + num2.ToString() + " % ";
this.ProgressBar1.Value = (int) num2;
}
private byte[] method_2(params byte[][] byte_0)
{
byte[] buffer = new byte[byte_0.Sum<byte[]>(TestOnBoardClass.TestInt ?? (TestOnBoardClass.TestInt = new Func<byte[], int>(frmOnboard.TestOnBoardClass.TestValue.method_0)))];
int num = 0;
foreach (byte[] buffer2 in byte_0)
{
Buffer.BlockCopy(buffer2, 0, buffer, num, buffer2.Length);
num += buffer2.Length;
}
return buffer;
}
public void method_3()
{
if (class17_0.serialPort_0.IsOpen)
{
class17_0.serialPort_0.DiscardInBuffer();
class17_0.serialPort_0.DiscardOutBuffer();
byte[] buffer = new byte[0x40];
DialogResult dialogResult = MessageBox.Show(string.Concat(new string[]
{
"Compression is set to ",
this.bool_1.ToString(),
Environment.NewLine,
"Do you want to set it to ",
(!this.bool_1).ToString()
}), "Onboard Compression", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
if (this.bool_1)
{
byte[] buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x43, 0x4e });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(20);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
}
else
{
byte[] buffer3 = this.method_0(new byte[] { 0x44, 0x4f, 0x43, 0x59 });
class17_0.serialPort_0.Write(buffer3, 0, buffer3.Length);
Thread.Sleep(20);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
}
if (buffer[0] == 0x4f)
{
MessageBox.Show("Change Set.");
this.method_1();
}
}
}
}
public void method_4()
{
if (class17_0.serialPort_0.IsOpen)
{
byte[] buffer = new byte[0x40];
string[] textArray1 = new string[] { "Do you want to erase all onboard logs?", Environment.NewLine, "**** Warning ****", Environment.NewLine, "It takes 10 sec for memory to be erase" };
if (MessageBox.Show(string.Concat(textArray1), "Onboard Erase", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
byte[] buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x45 });
class17_0.serialPort_0.DiscardInBuffer();
class17_0.serialPort_0.DiscardOutBuffer();
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
for (byte i = 0; (buffer[0] == 0) && (i <= 12); i = (byte) (i + 1))
{
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
MessageBox.Show("Onboard erased.");
this.method_1();
return;
}
Thread.Sleep(0x3e8);
}
}
}
}
public int method_5(int int_1, int int_2)
{
while (int_2 != 0)
{
int num = ~int_1 & int_2;
int_1 ^= int_2;
int_2 = num << 1;
}
return int_1;
}
private void method_6(bool bool_2)
{
byte[] buffer = new byte[0x20];
byte[] buffer2 = new byte[8];
if (bool_2)
{
buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 0x59 });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(50);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 0x79 });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(50);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
this.button2.Text = "Disable OB";
}
}
}
else
{
buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 0x4e });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(50);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
buffer2 = this.method_0(new byte[] { 0x44, 0x4f, 0x4c, 110 });
class17_0.serialPort_0.Write(buffer2, 0, buffer2.Length);
Thread.Sleep(50);
class17_0.serialPort_0.Read(buffer, 0, class17_0.serialPort_0.BytesToRead);
if (buffer[0] == 0x4f)
{
this.button2.Text = "Enable OB";
}
}
}
}
private void method_7()
{
if (class17_0.serialPort_0.IsOpen)
{
Class45 class2 = new Class45 {
frmOnboard_0 = this,
byte_0 = new byte[1]
};
if (MessageBox.Show("Do you want to dump the complete onboard memory of your demon?", "Dump Demon", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
class2.dialogResult_0 = MessageBox.Show("Only dump written zones?", "Dump Demon", MessageBoxButtons.YesNo);
class2.int_0 = 0;
BackgroundWorker worker = new BackgroundWorker {
WorkerReportsProgress = true
};
worker.DoWork += new DoWorkEventHandler(class2.method_0);
worker.ProgressChanged += new ProgressChangedEventHandler(this.method_10);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(class2.method_1);
worker.RunWorkerAsync();
}
}
}
private void method_8()
{
Class46 class2 = new Class46 {
frmOnboard_0 = this
};
this.listView1.Items.Clear();
class2.byte_0 = new byte[1];
if (class17_0.serialPort_0.IsOpen)
{
Class47 class3 = new Class47 {
class46_0 = class2,
int_0 = 0
};
BackgroundWorker worker = new BackgroundWorker {
WorkerReportsProgress = true
};
worker.DoWork += new DoWorkEventHandler(class3.method_0);
worker.ProgressChanged += new ProgressChangedEventHandler(class3.class46_0.method_0);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(class3.class46_0.method_1);
worker.RunWorkerAsync();
}
}
private void method_9()
{
int index = this.listView1.SelectedIndices[0] + 1;
SaveFileDialog dialog = new SaveFileDialog {
Filter = "Demon Datalog|*.log",
Title = "Save Demon Onboard Datalog"
};
dialog.ShowDialog();
if (dialog.FileName != "")
{
if (File.Exists(dialog.FileName))
{
File.Delete(dialog.FileName);
}
using (Stream stream = (Stream) File.OpenWrite(dialog.FileName))
{
byte[] buffer = smethod_0(this.string_0[index]);
stream.Write(buffer, 0, buffer.Length);
}
}
}
public static byte[] smethod_0(string string_1)
{
int length = string_1.Length;
byte[] buffer = new byte[length / 2];
for (int i = 0; i < length; i += 2)
{
buffer[i / 2] = Convert.ToByte(string_1.Substring(i, 2), 0x10);
}
return buffer;
}
public static string smethod_1(byte[] byte_0)
{
return BitConverter.ToString(byte_0).Replace("-", "");
}
private sealed class TestOnBoardClass
{
public static readonly frmOnboard.TestOnBoardClass TestValue = new frmOnboard.TestOnBoardClass();
public static Func<byte[], int> TestInt;
internal int method_0(byte[] byte_0)
{
return byte_0.Length;
}
}
private sealed class Class45
{
public byte[] byte_0;
public DialogResult dialogResult_0;
public int int_0;
public frmOnboard frmOnboard_0;
internal void method_0(object sender, DoWorkEventArgs e)
{
BackgroundWorker backgroundWorker = sender as BackgroundWorker;
Stopwatch stopwatch = Stopwatch.StartNew();
bool flag = false;
byte[] array = new byte[2];
bool flag2 = false;
while (this.byte_0.Length <= this.frmOnboard_0.int_0 && !flag2)
{
frmOnboard frmOnboard = this.frmOnboard_0;
byte[] array2 = new byte[]
{
68,
79,
82,
0,
0,
5
};
array2[3] = array[0];
array2[4] = array[1];
byte[] array3 = frmOnboard.method_0(array2);
switch (array[1])
{
case 251:
flag = true;
break;
case 252:
flag = true;
break;
case 253:
flag = true;
break;
case 254:
flag = true;
break;
case 255:
flag = true;
break;
}
byte[] array4 = array;
int num = 1;
array4[num] += 5;
if (flag)
{
byte[] array5 = array;
int num2 = 0;
array5[num2] += 1;
flag = false;
}
class17_2.serialPort_0.Write(array3, 0, array3.Length);
Thread.Sleep(45);
byte[] array6 = new byte[this.frmOnboard_0.method_5(class17_2.serialPort_0.BytesToRead, 1)];
byte[] array7 = new byte[array6.Length + 1];
class17_2.serialPort_0.Read(array7, 0, array7.Length);
byte b = 0;
int num3 = 0;
foreach (byte b2 in array7)
{
num3++;
if (num3 != array7.Length)
{
b += b2;
}
}
if (b == array7[array6.Length])
{
Array.Copy(array7, array6, array6.Length);
this.byte_0 = this.frmOnboard_0.method_2(new byte[][]
{
this.byte_0,
array6
});
backgroundWorker.ReportProgress(this.byte_0.Length);
}
else
{
MessageBox.Show("Checksum fault!", "error");
flag2 = true;
}
if (this.dialogResult_0 == DialogResult.Yes && array6[2] == 255 && array6[3] == 255 && array6[4] == 255 && array6[5] == 255 && array6[6] == 255 && array6[array6.Length - 8] == 255 && array6[array6.Length - 4] == 255 && array6[array6.Length - 2] == 255)
{
byte[] array9 = new byte[this.frmOnboard_0.int_0 - this.byte_0.Length];
for (int j = 0; j < array9.Length; j++)
{
array9[j] = byte.MaxValue;
}
this.byte_0 = this.frmOnboard_0.method_2(new byte[][]
{
this.byte_0,
array9
});
flag2 = true;
}
}
this.int_0 = (int)stopwatch.ElapsedMilliseconds / 1000;
stopwatch.Stop();
}
internal void method_1(object sender, RunWorkerCompletedEventArgs e)
{
string str = (this.int_0 / 60).ToString() + ":" + (this.int_0 % 60).ToString();
//this.frmOnboard_0.ProgressBar1.String_0 = "Completed in: " + str;
this.frmOnboard_0.Text = "Onboard Datalogging - Completed in: " + str;
SaveFileDialog dialog = new SaveFileDialog {
Filter = "Demon Dump|*.DD",
Title = "Save Demon Onboard Memory"
};
dialog.ShowDialog();
if (dialog.FileName != "")
{
if (File.Exists(dialog.FileName))
{
File.Delete(dialog.FileName);
}
using (Stream stream = (Stream) File.OpenWrite(dialog.FileName))
{
stream.Write(this.byte_0, 0, this.byte_0.Length);
}
}
}
}
private sealed class Class46
{
public frmOnboard frmOnboard_0;
public byte[] byte_0;
internal void method_0(object sender, ProgressChangedEventArgs e)
{
float num2 = (((float) int.Parse(e.ProgressPercentage.ToString())) / ((float) this.frmOnboard_0.int_0)) * 100f;
//this.frmOnboard_0.ProgressBar1.String_0 = "Scanning Dataloggs Total Rom Read: " + num2.ToString() + " %";
this.frmOnboard_0.Text = "Onboard Datalogging - Scanning Dataloggs Total Rom Read: " + num2.ToString() + " %";
this.frmOnboard_0.ProgressBar1.Value = (int) num2;
}
internal void method_1(object sender, RunWorkerCompletedEventArgs e)
{
//this.frmOnboard_0.ProgressBar1.String_0 = "Finished Scanning.";
this.frmOnboard_0.Text = "Onboard Datalogging - Finished Scanning.";
string @string = Encoding.UTF8.GetString(this.byte_0);
string[] array = @string.Split(new string[]
{
"<S>"
}, StringSplitOptions.None);
this.frmOnboard_0.string_0 = frmOnboard.smethod_1(this.byte_0).Replace("3C2F533E", "").Split(new string[]
{
"3C533E"
}, StringSplitOptions.None);
int num = 1;
int num2 = 50;
foreach (string text in array)
{
try
{
if (!text.Substring(0, 2).Contains("\0"))
{
string[] array3 = text.Split(new string[]
{
"<D>"
}, StringSplitOptions.None);
TimeSpan timeSpan = TimeSpan.FromSeconds((double)(num2 * array3.Length / 1000));
string[] array4 = new string[5];
array4[0] = "Onboard Log " + num++.ToString();
array4[1] = (array3.Length * 71 / 1000).ToString() + " KB";
array4[2] = array3.Length.ToString();
array4[3] = timeSpan.ToString();
if (array4[1] == "0 KB")
{
array4[4] = "True";
}
else
{
array4[4] = "False";
}
ListViewItem value = new ListViewItem(array4);
this.frmOnboard_0.listView1.Items.Add(value);
}
}
catch
{
}
}
}
}
private sealed class Class47
{
public int int_0;
public frmOnboard.Class46 class46_0;
internal void method_0(object sender, DoWorkEventArgs e)
{
BackgroundWorker backgroundWorker = sender as BackgroundWorker;
Stopwatch stopwatch = Stopwatch.StartNew();
bool flag = false;
byte[] array = new byte[2];
bool flag2 = true;
while (flag2)
{
frmOnboard frmOnboard_ = this.class46_0.frmOnboard_0;
byte[] array2 = new byte[]
{
68,
79,
82,
0,
0,
5
};
array2[3] = array[0];
array2[4] = array[1];
byte[] array3 = frmOnboard_.method_0(array2);
switch (array[1])
{
case 251:
flag = true;
break;
case 252:
flag = true;
break;
case 253:
flag = true;
break;
case 254:
flag = true;
break;
case 255:
flag = true;
break;
}
byte[] array4 = array;
int num = 1;
array4[num] += 5;
if (flag)
{
byte[] array5 = array;
int num2 = 0;
array5[num2] += 1;
flag = false;
}
class17_2.serialPort_0.Write(array3, 0, array3.Length);
Thread.Sleep(45);
byte[] array6 = new byte[this.class46_0.frmOnboard_0.method_5(class17_2.serialPort_0.BytesToRead, 1)];
byte[] array7 = new byte[array6.Length + 1];
class17_2.serialPort_0.Read(array7, 0, array7.Length);
byte b = 0;
int num3 = 0;
foreach (byte b2 in array7)
{
num3++;
if (num3 != array7.Length)
{
b += b2;
}
}
if (b == array7[array6.Length])
{
Array.Copy(array7, array6, array6.Length);
this.class46_0.byte_0 = this.class46_0.frmOnboard_0.method_2(new byte[][]
{
this.class46_0.byte_0,
array6
});
backgroundWorker.ReportProgress(this.class46_0.byte_0.Length);
}
else
{
flag2 = false;
}
if (array6[2] == 255 && array6[3] == 255 && array6[4] == 255 && array6[5] == 255 && array6[6] == 255 && array6[array6.Length - 8] == 255 && array6[array6.Length - 4] == 255 && array6[array6.Length - 2] == 255)
{
flag2 = false;
}
}
this.int_0 = ((int) stopwatch.ElapsedMilliseconds) / 0x3e8;
stopwatch.Stop();
}
}
}

1790
frmOnboard.resx Normal file

File diff suppressed because it is too large Load Diff

562
frmOstrichInfo.cs Normal file
View File

@ -0,0 +1,562 @@
using Data;
using System;
using System.Linq;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmOstrichInfo : Form
{
private Button btnClose;
private Button btnReset;
private Class18 class18_0;
private Class25 class25_0;
private GroupBox grpInfo;
private IContainer icontainer_0;
private Label label1;
private Label labelEmulatorName;
private Label label3;
private Label label4;
private Label label6;
private Label lblFirmVersion;
private Label lblNotConnected;
private TextBox lblSerial;
private Button ReloadInfos;
private GroupBox groupBoxAdvanced;
private TextBox textBoxSerialID;
private Label label5;
private Label label7;
private Button buttonResetSerial;
private NumericUpDown numericVendorID;
private ErrorProvider errorProvider_0;
private IContainer components;
private Label label2;
private Label lblVendorId;
internal frmOstrichInfo()
{
this.InitializeComponent();
}
private void ButtonReloadInfo_Click(object sender, EventArgs e)
{
this.class18_0.class17_0.SetDemonDatalogCheck(false);
this.class25_0.method_1(true);
this.method_2();
}
private void ButtonResetSerial_Click(object sender, EventArgs e)
{
try
{
//this.textBoxSerialID.Text = "FFFFF FFFFF FFFFF F";
if (this.textBoxSerialID.Text.Length == 16)
{
byte[] NewID = StringToByteArray(textBoxSerialID.Text);
if (NewID.Length == 8)
{
if (MessageBox.Show(Form.ActiveForm, "This will reset your Serial ID, vendorID will remain the same\nThis will remove all data on emulator!\nDo you want to continue?", "BMTune", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
if (!this.class25_0.GetConnected())
{
this.class25_0.method_1(true);
}
this.class25_0.ResetSerial(NewID);
this.method_2();
}
}
else
{
MessageBox.Show(Form.ActiveForm, "The Serial ID aren't correct!", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
else
{
MessageBox.Show(Form.ActiveForm, "The Serial ID aren't correct in lenght!\nThe serial ID need 16x characters", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
catch (Exception exception)
{
MessageBox.Show(Form.ActiveForm, exception.Message);
}
}
private byte[] StringToByteArray(string hex)
{
try
{
return Enumerable.Range(0, hex.Length).Where(x => x % 2 == 0).Select(x => Convert.ToByte(hex.Substring(x, 2), 16)).ToArray();
}
catch
{
return new byte[] { };
}
}
private void btnReset_Click(object sender, EventArgs e)
{
try
{
if (MessageBox.Show(Form.ActiveForm, "This will reset your vendorID, serialID will remain the same\nThis will remove all data on emulator!\nDo you want to continue?", "BMTune", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
if ((this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Ostrich && numericVendorID.Value != 0)
|| (this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Demon && numericVendorID.Value != 1))
{
MessageBox.Show(Form.ActiveForm, "Take note that when using a not compatible emulator vendor ID for\nBMTune, BMTune will give you warning and offer you to reset the\nvendor ID to a compatible one", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
if (!this.class25_0.GetConnected())
{
this.class25_0.method_1(true);
}
this.class25_0.ResetVendorUnknown((byte) numericVendorID.Value);
this.method_2();
}
}
catch (Exception exception)
{
MessageBox.Show(Form.ActiveForm, exception.Message);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmOstrichInfo_Load(object sender, EventArgs e)
{
this.method_2();
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmOstrichInfo));
this.grpInfo = new System.Windows.Forms.GroupBox();
this.ReloadInfos = new System.Windows.Forms.Button();
this.lblSerial = new System.Windows.Forms.TextBox();
this.labelEmulatorName = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.lblVendorId = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lblFirmVersion = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lblNotConnected = new System.Windows.Forms.Label();
this.btnReset = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.groupBoxAdvanced = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.numericVendorID = new System.Windows.Forms.NumericUpDown();
this.buttonResetSerial = new System.Windows.Forms.Button();
this.textBoxSerialID = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.grpInfo.SuspendLayout();
this.groupBoxAdvanced.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericVendorID)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// grpInfo
//
this.grpInfo.Controls.Add(this.ReloadInfos);
this.grpInfo.Controls.Add(this.lblSerial);
this.grpInfo.Controls.Add(this.labelEmulatorName);
this.grpInfo.Controls.Add(this.label4);
this.grpInfo.Controls.Add(this.label6);
this.grpInfo.Controls.Add(this.lblVendorId);
this.grpInfo.Controls.Add(this.label3);
this.grpInfo.Controls.Add(this.lblFirmVersion);
this.grpInfo.Controls.Add(this.label1);
this.grpInfo.Location = new System.Drawing.Point(12, 12);
this.grpInfo.Name = "grpInfo";
this.grpInfo.Size = new System.Drawing.Size(259, 152);
this.grpInfo.TabIndex = 0;
this.grpInfo.TabStop = false;
this.grpInfo.Text = "Emulator Infos";
//
// ReloadInfos
//
this.ReloadInfos.Location = new System.Drawing.Point(39, 117);
this.ReloadInfos.Name = "ReloadInfos";
this.ReloadInfos.Size = new System.Drawing.Size(173, 25);
this.ReloadInfos.TabIndex = 19;
this.ReloadInfos.Text = "Reload Info (try connect)";
this.ReloadInfos.UseVisualStyleBackColor = true;
this.ReloadInfos.Click += new System.EventHandler(this.ButtonReloadInfo_Click);
//
// lblSerial
//
this.lblSerial.Location = new System.Drawing.Point(90, 90);
this.lblSerial.Name = "lblSerial";
this.lblSerial.ReadOnly = true;
this.lblSerial.Size = new System.Drawing.Size(160, 20);
this.lblSerial.TabIndex = 20;
//
// labelEmulatorName
//
this.labelEmulatorName.AutoSize = true;
this.labelEmulatorName.Location = new System.Drawing.Point(87, 22);
this.labelEmulatorName.Name = "labelEmulatorName";
this.labelEmulatorName.Size = new System.Drawing.Size(15, 14);
this.labelEmulatorName.TabIndex = 19;
this.labelEmulatorName.Text = "#";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(13, 69);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(63, 14);
this.label4.TabIndex = 18;
this.label4.Text = "Vendor ID:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(13, 93);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(54, 14);
this.label6.TabIndex = 13;
this.label6.Text = "Serial ID:";
//
// lblVendorId
//
this.lblVendorId.AutoSize = true;
this.lblVendorId.Location = new System.Drawing.Point(87, 69);
this.lblVendorId.Name = "lblVendorId";
this.lblVendorId.Size = new System.Drawing.Size(15, 14);
this.lblVendorId.TabIndex = 3;
this.lblVendorId.Text = "#";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 22);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 14);
this.label3.TabIndex = 2;
this.label3.Text = "Emulator:";
//
// lblFirmVersion
//
this.lblFirmVersion.AutoSize = true;
this.lblFirmVersion.Location = new System.Drawing.Point(87, 45);
this.lblFirmVersion.Name = "lblFirmVersion";
this.lblFirmVersion.Size = new System.Drawing.Size(15, 14);
this.lblFirmVersion.TabIndex = 1;
this.lblFirmVersion.Text = "#";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 45);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(58, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Firmware:";
//
// lblNotConnected
//
this.lblNotConnected.AutoSize = true;
this.lblNotConnected.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNotConnected.ForeColor = System.Drawing.Color.Red;
this.lblNotConnected.Location = new System.Drawing.Point(37, 212);
this.lblNotConnected.Name = "lblNotConnected";
this.lblNotConnected.Size = new System.Drawing.Size(201, 20);
this.lblNotConnected.TabIndex = 0;
this.lblNotConnected.Text = "Emulator not connected";
//
// btnReset
//
this.btnReset.Enabled = false;
this.btnReset.ForeColor = System.Drawing.Color.Red;
this.btnReset.Location = new System.Drawing.Point(6, 81);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(119, 25);
this.btnReset.TabIndex = 17;
this.btnReset.Text = "Reset Vendor ID";
this.btnReset.UseVisualStyleBackColor = true;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// btnClose
//
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Abort;
this.btnClose.Location = new System.Drawing.Point(186, 289);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(87, 25);
this.btnClose.TabIndex = 2;
this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true;
//
// groupBoxAdvanced
//
this.groupBoxAdvanced.Controls.Add(this.label2);
this.groupBoxAdvanced.Controls.Add(this.numericVendorID);
this.groupBoxAdvanced.Controls.Add(this.buttonResetSerial);
this.groupBoxAdvanced.Controls.Add(this.textBoxSerialID);
this.groupBoxAdvanced.Controls.Add(this.label5);
this.groupBoxAdvanced.Controls.Add(this.label7);
this.groupBoxAdvanced.Controls.Add(this.btnReset);
this.groupBoxAdvanced.Location = new System.Drawing.Point(12, 170);
this.groupBoxAdvanced.Name = "groupBoxAdvanced";
this.groupBoxAdvanced.Size = new System.Drawing.Size(259, 112);
this.groupBoxAdvanced.TabIndex = 18;
this.groupBoxAdvanced.TabStop = false;
this.groupBoxAdvanced.Text = "Advanced Tools";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Lucida Sans", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(163, 14);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(85, 30);
this.label2.TabIndex = 27;
this.label2.Text = "BMTune Vendor:\r\nMoates Ostrich=0\r\nMoates Demon=1";
//
// numericVendorID
//
this.numericVendorID.Location = new System.Drawing.Point(90, 27);
this.numericVendorID.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.numericVendorID.Name = "numericVendorID";
this.numericVendorID.Size = new System.Drawing.Size(55, 20);
this.numericVendorID.TabIndex = 26;
//
// buttonResetSerial
//
this.buttonResetSerial.Enabled = false;
this.buttonResetSerial.ForeColor = System.Drawing.Color.Red;
this.buttonResetSerial.Location = new System.Drawing.Point(129, 81);
this.buttonResetSerial.Name = "buttonResetSerial";
this.buttonResetSerial.Size = new System.Drawing.Size(119, 25);
this.buttonResetSerial.TabIndex = 25;
this.buttonResetSerial.Text = "Reset Serial ID";
this.buttonResetSerial.UseVisualStyleBackColor = true;
this.buttonResetSerial.Click += new System.EventHandler(this.ButtonResetSerial_Click);
//
// textBoxSerialID
//
this.textBoxSerialID.Location = new System.Drawing.Point(90, 51);
this.textBoxSerialID.Name = "textBoxSerialID";
this.textBoxSerialID.Size = new System.Drawing.Size(160, 20);
this.textBoxSerialID.TabIndex = 23;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(13, 30);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(63, 14);
this.label5.TabIndex = 22;
this.label5.Text = "Vendor ID:";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(13, 54);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(54, 14);
this.label7.TabIndex = 21;
this.label7.Text = "Serial ID:";
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// frmOstrichInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(283, 320);
this.Controls.Add(this.groupBoxAdvanced);
this.Controls.Add(this.lblNotConnected);
this.Controls.Add(this.grpInfo);
this.Controls.Add(this.btnClose);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmOstrichInfo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Emulator Infos";
this.Load += new System.EventHandler(this.frmOstrichInfo_Load);
this.grpInfo.ResumeLayout(false);
this.grpInfo.PerformLayout();
this.groupBoxAdvanced.ResumeLayout(false);
this.groupBoxAdvanced.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericVendorID)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
internal void method_0(ref Class18 class18_1, ref Class25 class25_1)
{
this.class18_0 = class18_1;
this.class25_0 = class25_1;
class25_1.delegate65_0 += new Class25.Delegate65(this.method_1);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1(EmulatorState emulatorState_0, int int_0, bool bool_0)
{
if (emulatorState_0 == EmulatorState.Connected)
{
SetConnectedMenu(true);
}
else
{
SetConnectedMenu(false);
}
}
private void SetConnectedMenu(bool IsConnected)
{
if (IsConnected)
{
this.btnReset.Enabled = true;
this.buttonResetSerial.Enabled = true;
this.lblNotConnected.Visible = false;
this.groupBoxAdvanced.Visible = true;
}
else
{
this.btnReset.Enabled = false;
this.buttonResetSerial.Enabled = false;
this.lblNotConnected.Visible = true;
this.groupBoxAdvanced.Visible = false;
}
}
private void method_2()
{
Label_0005:
this.lblNotConnected.Visible = false;
this.btnReset.Enabled = this.class25_0.GetConnected();
if (this.class25_0.method_13() != EmulatorState.Connected)
{
SetConnectedMenu(false);
lblNotConnected.Text = "Emulator not connected";
}
else
{
SetConnectedMenu(true);
if (((this.class25_0.Vendor_ID != 1) && (this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Demon)) && (MessageBox.Show(Form.ActiveForm, "Demon VendorID is not set to BMTune. Do you want to set it to BMTune?\nThis will remove all data from demon!", "BMTune", MessageBoxButtons.YesNo) == DialogResult.Yes))
{
this.class25_0.ResetVendor(false);
goto Label_0005;
}
if ((this.class25_0.emulatorMoatesType_0 != EmulatorMoatesType.ostrich_1) || (this.class25_0.emulatorMoatesType_0 == EmulatorMoatesType.ostrich_1 && this.class25_0.int_2 >= 15))
{
if (((this.class25_0.Vendor_ID != 0) && (this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Ostrich)) && (MessageBox.Show(Form.ActiveForm, "Ostrich VendorID is not set to BMTune. Do you want to set it to BMTune?\nThis will remove all data from ostrich!", "BMTune", MessageBoxButtons.YesNo) == DialogResult.Yes))
{
this.class25_0.ResetVendor(true);
goto Label_0005;
}
}
if ((((this.class18_0.class10_settings_0.emulatorMode_0 != EmulatorMode.Ostrich) && (this.class18_0.class10_settings_0.emulatorMode_0 != EmulatorMode.Demon))
&& (((this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Ostrich) && (this.class25_0.emulatorMoatesType_0 == EmulatorMoatesType.ostrich_1)) && (this.class25_0.int_2 < 15)))
&& (((this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Ostrich) && (this.class25_0.emulatorMoatesType_0 == EmulatorMoatesType.ostrich_2)) && (this.class25_0.int_2 < 4)))
{
SetConnectedMenu(false);
lblNotConnected.Text = "Emulator not compatible";
}
else
{
if (this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Demon) this.lblVendorId.Text = ((EmulatorVendorDemon)this.class25_0.Vendor_ID).ToString();
else if (this.class18_0.class10_settings_0.emulatorMode_0 == EmulatorMode.Ostrich) this.lblVendorId.Text = ((EmulatorVendorOstrich)this.class25_0.Vendor_ID).ToString();
this.numericVendorID.Value = this.class25_0.Vendor_ID;
this.lblVendorId.Text += " " + (int) this.class25_0.Vendor_ID + "(" + this.class25_0.Vendor_ID.ToString("X2") + ")";
string str = string.Empty;
bool flag = true;
for (int i = 0; i < 8; i++)
{
if (this.class25_0.Serial_ID[i] != 0xff)
{
flag = false;
break;
}
}
for (int j = 0; j < 8; j++)
{
if ((this.class25_0.Serial_ID[0] == 0xff) && (this.class25_0.Serial_ID[1] == 0xff))
{
str = str + "FF";
}
else
{
str = str + this.class25_0.Serial_ID[j].ToString("X2");
}
}
if (flag)
{
this.lblSerial.Text = "FFFFFFFFFFFFFFFF";
this.textBoxSerialID.Text = "FFFFFFFFFFFFFFFF";
}
else
{
this.lblSerial.Text = str;
this.textBoxSerialID.Text = str;
}
}
this.lblFirmVersion.Text = "V" + this.class25_0.int_1 + "." + this.class25_0.int_2 + "." + this.class25_0.string_0;
this.labelEmulatorName.Text = this.class25_0.EmulatorName;
}
}
private void txtbTpsMinRpm_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown)sender;
this.groupBoxAdvanced.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_2();
}
control.Focus();
}
}
private void txtbTpsMinRpm_Validated(object sender, EventArgs e)
{
this.method_2();
}
private void txtbTpsMinRpm_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown)sender;
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, double required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}

1790
frmOstrichInfo.resx Normal file

File diff suppressed because it is too large Load Diff

690
frmParameters.cs Normal file
View File

@ -0,0 +1,690 @@
//using PropertiesRes;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmParameters : Form
{
private Class18 class18_0;
private FrmMain frmMain_0;
private IContainer icontainer_0;
public SplitContainer splitContainer1;
private TreeView treeView;
private UserControl userControl_0;
public bool loading = true;
public frmParameters()
{
this.InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmParameters_FormClosed(object sender, FormClosedEventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode) this.class18_0.class10_settings_0.parameters_Location = base.Location;
this.frmMain_0.frmParameters_0.Dispose();
this.frmMain_0.frmParameters_0 = null;
}
private void frmParameters_Load(object sender, EventArgs e)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode)
{
//this.FormBorderStyle = FormBorderStyle.Sizable;
//this.Dock = DockStyle.None;
base.Location = this.class18_0.class10_settings_0.parameters_Location;
base.Size = this.class18_0.class10_settings_0.parameters_Size;
}
else
{
this.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
}
loading = false;
try
{
if (((this.class18_0.class10_settings_0.parameterNode != null) && (this.class18_0 != null)) && this.class18_0.method_30_HasFileLoadedInBMTune())
{
string parameterNode = this.class18_0.class10_settings_0.parameterNode;
foreach (TreeNode node in this.treeView.Nodes.Find(parameterNode, true))
{
this.treeView.SelectedNode = node;
this.treeView.SelectedNode.EnsureVisible();
}
}
}
catch (Exception exception)
{
MessageBox.Show(Form.ActiveForm, exception.Message);
}
if (this.class18_0 == null)
{
this.treeView.Enabled = false;
this.splitContainer1.Panel2.Enabled = false;
this.Text = "Parameters";
}
else if (!this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.treeView.Enabled = false;
this.splitContainer1.Panel2.Enabled = false;
this.Text = "Parameters";
}
else
{
this.treeView.Enabled = true;
this.splitContainer1.Panel2.Enabled = true;
this.Text = "Parameters";
if (this.userControl_0 != null)
{
this.userControl_0.Dock = DockStyle.Fill;
this.splitContainer1.Panel2.Controls.Add(this.userControl_0);
}
}
}
private void frmParameters_ResizeEnd(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode && !loading)
{
if (base.WindowState == FormWindowState.Normal)
{
try
{
if (frmMain_0.frmGridChart_0 != null) frmMain_0.frmGridChart_0.RefreshPage();
}
catch { }
this.class18_0.class10_settings_0.parameters_Size = base.Size;
}
this.class18_0.class10_settings_0.parameters_Location = base.Location;
}
}
}
}
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Options/Sensors");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("Idle Settings");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("VTEC Settings");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Rev Limits");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("MIL ShiftLight");
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("Close Loop");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("Map Sensor");
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("TPS Sensor");
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("Fan Control");
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("Transmission");
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("Main Settings", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4,
treeNode5,
treeNode6,
treeNode7,
treeNode8,
treeNode9,
treeNode10});
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("Injector Calibration");
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("Individual Cyl Trims");
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("Cranking Fuel");
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("ECT Corrections");
System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("IAT Corrections");
System.Windows.Forms.TreeNode treeNode17 = new System.Windows.Forms.TreeNode("Idle Ignition Corrections");
System.Windows.Forms.TreeNode treeNode18 = new System.Windows.Forms.TreeNode("Tip-In Ignition Corrections");
System.Windows.Forms.TreeNode treeNode19 = new System.Windows.Forms.TreeNode("TPS Tip In&Out Corrections");
System.Windows.Forms.TreeNode treeNode20 = new System.Windows.Forms.TreeNode("Gear Corrections");
System.Windows.Forms.TreeNode treeNode21 = new System.Windows.Forms.TreeNode("Ignition Dwell");
System.Windows.Forms.TreeNode treeNode22 = new System.Windows.Forms.TreeNode("Fuel/Ignition Corrections", new System.Windows.Forms.TreeNode[] {
treeNode12,
treeNode13,
treeNode14,
treeNode15,
treeNode16,
treeNode17,
treeNode18,
treeNode19,
treeNode20,
treeNode21});
System.Windows.Forms.TreeNode treeNode23 = new System.Windows.Forms.TreeNode("Launch Control");
System.Windows.Forms.TreeNode treeNode24 = new System.Windows.Forms.TreeNode("Full Throttle Shift");
System.Windows.Forms.TreeNode treeNode25 = new System.Windows.Forms.TreeNode("Burnout Control");
System.Windows.Forms.TreeNode treeNode26 = new System.Windows.Forms.TreeNode("3-Step Settings", new System.Windows.Forms.TreeNode[] {
treeNode23,
treeNode24,
treeNode25});
System.Windows.Forms.TreeNode treeNode27 = new System.Windows.Forms.TreeNode("Boost Cut");
System.Windows.Forms.TreeNode treeNode28 = new System.Windows.Forms.TreeNode("Boost Controller");
System.Windows.Forms.TreeNode treeNode29 = new System.Windows.Forms.TreeNode("PWM Setup");
System.Windows.Forms.TreeNode treeNode30 = new System.Windows.Forms.TreeNode("PWM Targets");
System.Windows.Forms.TreeNode treeNode31 = new System.Windows.Forms.TreeNode("PWM Corrections");
System.Windows.Forms.TreeNode treeNode32 = new System.Windows.Forms.TreeNode("PWM Closeloop");
System.Windows.Forms.TreeNode treeNode33 = new System.Windows.Forms.TreeNode("Boost Settings", new System.Windows.Forms.TreeNode[] {
treeNode27,
treeNode28,
treeNode29,
treeNode30,
treeNode31,
treeNode32});
System.Windows.Forms.TreeNode treeNode34 = new System.Windows.Forms.TreeNode("Adjustments");
System.Windows.Forms.TreeNode treeNode35 = new System.Windows.Forms.TreeNode("Output 1", new System.Windows.Forms.TreeNode[] {
treeNode34});
System.Windows.Forms.TreeNode treeNode36 = new System.Windows.Forms.TreeNode("Adjustments");
System.Windows.Forms.TreeNode treeNode37 = new System.Windows.Forms.TreeNode("Output 2", new System.Windows.Forms.TreeNode[] {
treeNode36});
System.Windows.Forms.TreeNode treeNode38 = new System.Windows.Forms.TreeNode("Adjustments");
System.Windows.Forms.TreeNode treeNode39 = new System.Windows.Forms.TreeNode("Output 3", new System.Windows.Forms.TreeNode[] {
treeNode38});
System.Windows.Forms.TreeNode treeNode40 = new System.Windows.Forms.TreeNode("Outputs Settings", new System.Windows.Forms.TreeNode[] {
treeNode35,
treeNode37,
treeNode39});
System.Windows.Forms.TreeNode treeNode41 = new System.Windows.Forms.TreeNode("Anti-Theft");
System.Windows.Forms.TreeNode treeNode42 = new System.Windows.Forms.TreeNode("ECT/Overheat");
System.Windows.Forms.TreeNode treeNode43 = new System.Windows.Forms.TreeNode("Knock Protection");
System.Windows.Forms.TreeNode treeNode44 = new System.Windows.Forms.TreeNode("Lean Protection");
System.Windows.Forms.TreeNode treeNode45 = new System.Windows.Forms.TreeNode("Baserom Password");
System.Windows.Forms.TreeNode treeNode46 = new System.Windows.Forms.TreeNode("Protections Settings", new System.Windows.Forms.TreeNode[] {
treeNode41,
treeNode42,
treeNode43,
treeNode44,
treeNode45});
System.Windows.Forms.TreeNode treeNode47 = new System.Windows.Forms.TreeNode("Extras");
System.Windows.Forms.TreeNode treeNode48 = new System.Windows.Forms.TreeNode("Coil on Plug Retrofit");
System.Windows.Forms.TreeNode treeNode49 = new System.Windows.Forms.TreeNode("AC Cutoff");
System.Windows.Forms.TreeNode treeNode50 = new System.Windows.Forms.TreeNode("Fuel Cut Decel");
System.Windows.Forms.TreeNode treeNode51 = new System.Windows.Forms.TreeNode("Popcorn Mod");
System.Windows.Forms.TreeNode treeNode52 = new System.Windows.Forms.TreeNode("Flex Fuel");
System.Windows.Forms.TreeNode treeNode53 = new System.Windows.Forms.TreeNode("Secondary Map");
System.Windows.Forms.TreeNode treeNode54 = new System.Windows.Forms.TreeNode("Maps Indexing");
System.Windows.Forms.TreeNode treeNode55 = new System.Windows.Forms.TreeNode("IAB Activation");
System.Windows.Forms.TreeNode treeNode56 = new System.Windows.Forms.TreeNode("Comments");
System.Windows.Forms.TreeNode treeNode57 = new System.Windows.Forms.TreeNode("Extras Options", new System.Windows.Forms.TreeNode[] {
treeNode47,
treeNode48,
treeNode49,
treeNode50,
treeNode51,
treeNode52,
treeNode53,
treeNode54,
treeNode55,
treeNode56});
System.Windows.Forms.TreeNode treeNode58 = new System.Windows.Forms.TreeNode("On Board Logging");
System.Windows.Forms.TreeNode treeNode59 = new System.Windows.Forms.TreeNode("Onboard Datalogging", new System.Windows.Forms.TreeNode[] {
treeNode58});
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmParameters));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.treeView = new System.Windows.Forms.TreeView();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.treeView);
this.splitContainer1.Size = new System.Drawing.Size(567, 477);
this.splitContainer1.SplitterDistance = 178;
this.splitContainer1.TabIndex = 0;
this.splitContainer1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitContainer1_SplitterMoved);
//
// treeView
//
this.treeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.treeView.CausesValidation = false;
this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeView.Font = new System.Drawing.Font("Lucida Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.treeView.FullRowSelect = true;
this.treeView.Indent = 15;
this.treeView.Location = new System.Drawing.Point(0, 0);
this.treeView.Name = "treeView";
treeNode1.Name = "nRomOptions";
treeNode1.Text = "Options/Sensors";
treeNode2.Name = "nIdle";
treeNode2.Text = "Idle Settings";
treeNode3.Name = "nVtec";
treeNode3.Text = "VTEC Settings";
treeNode4.Name = "nRevLimit";
treeNode4.Text = "Rev Limits";
treeNode5.Name = "nMilShift";
treeNode5.Text = "MIL ShiftLight";
treeNode6.Name = "nCloseLoop";
treeNode6.Text = "Close Loop";
treeNode7.Name = "nBoostMapSensor";
treeNode7.Text = "Map Sensor";
treeNode8.Name = "nTpsSensor";
treeNode8.Text = "TPS Sensor";
treeNode9.Name = "nFan";
treeNode9.Text = "Fan Control";
treeNode10.Name = "nTrans";
treeNode10.Text = "Transmission";
treeNode11.Name = "Nœud0";
treeNode11.Text = "Main Settings";
treeNode12.Name = "nInjector";
treeNode12.Text = "Injector Calibration";
treeNode13.Name = "nCylinder";
treeNode13.Text = "Individual Cyl Trims";
treeNode14.Name = "nCrank";
treeNode14.Text = "Cranking Fuel";
treeNode15.Name = "nEct";
treeNode15.Text = "ECT Corrections";
treeNode16.Name = "nIat";
treeNode16.Text = "IAT Corrections";
treeNode17.Name = "nIdleIgn";
treeNode17.Text = "Idle Ignition Corrections";
treeNode18.Name = "nTpsRetard";
treeNode18.Text = "Tip-In Ignition Corrections";
treeNode19.Name = "nTpsFuel";
treeNode19.Text = "TPS Tip In&Out Corrections";
treeNode20.Name = "nGear";
treeNode20.Text = "Gear Corrections";
treeNode21.Name = "nIgnRpm";
treeNode21.Text = "Ignition Dwell";
treeNode22.Name = "Node1";
treeNode22.Text = "Fuel/Ignition Corrections";
treeNode23.Name = "nFtl";
treeNode23.Text = "Launch Control";
treeNode24.Name = "nFts";
treeNode24.Text = "Full Throttle Shift";
treeNode25.Name = "nBurnOut";
treeNode25.Text = "Burnout Control";
treeNode26.Name = "Node10";
treeNode26.Text = "3-Step Settings";
treeNode27.Name = "nBoostCut";
treeNode27.Text = "Boost Cut";
treeNode28.Name = "nBstManual";
treeNode28.Text = "Boost Controller";
treeNode29.Name = "nEbcSettings";
treeNode29.Text = "PWM Setup";
treeNode30.Name = "nEbcDutyLookup";
treeNode30.Text = "PWM Targets";
treeNode31.Name = "nEbcComp";
treeNode31.Text = "PWM Corrections";
treeNode32.Name = "nEbcClose";
treeNode32.Text = "PWM Closeloop";
treeNode33.Name = "Node30";
treeNode33.Text = "Boost Settings";
treeNode34.Name = "nGpo1Adj";
treeNode34.Text = "Adjustments";
treeNode35.Name = "nGpo1";
treeNode35.Text = "Output 1";
treeNode36.Name = "nGpo2Adj";
treeNode36.Text = "Adjustments";
treeNode37.Name = "nGpo2";
treeNode37.Text = "Output 2";
treeNode38.Name = "nGpo3Adj";
treeNode38.Text = "Adjustments";
treeNode39.Name = "nGpo3";
treeNode39.Text = "Output 3";
treeNode40.Name = "nOutputs";
treeNode40.Text = "Outputs Settings";
treeNode41.Name = "nAntitheft";
treeNode41.Text = "Anti-Theft";
treeNode42.Name = "nOverheatEct";
treeNode42.Text = "ECT/Overheat";
treeNode43.Name = "Nœknock";
treeNode43.Text = "Knock Protection";
treeNode44.Name = "nLeanProtect";
treeNode44.Text = "Lean Protection";
treeNode45.Name = "nFileProtect";
treeNode45.Text = "Baserom Password";
treeNode46.Name = "Nœud1";
treeNode46.Text = "Protections Settings";
treeNode47.Name = "nSCC";
treeNode47.Text = "Extras";
treeNode48.Name = "nCPR";
treeNode48.Text = "Coil on Plug Retrofit";
treeNode49.Name = "nAc";
treeNode49.Text = "AC Cutoff";
treeNode50.Name = "nFuelCut";
treeNode50.Text = "Fuel Cut Decel";
treeNode51.Name = "nPopcorn";
treeNode51.Text = "Popcorn Mod";
treeNode52.Name = "nFlexFuel";
treeNode52.Text = "Flex Fuel";
treeNode53.Name = "nDualMap";
treeNode53.Text = "Secondary Map";
treeNode54.Name = "nMap";
treeNode54.Text = "Maps Indexing";
treeNode55.Name = "nIab";
treeNode55.Text = "IAB Activation";
treeNode56.Name = "nComments";
treeNode56.Text = "Comments";
treeNode57.Name = "Node14";
treeNode57.Text = "Extras Options";
treeNode58.Name = "nOBL";
treeNode58.Text = "On Board Logging";
treeNode59.Name = "Nœud0";
treeNode59.Text = "Onboard Datalogging";
this.treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode11,
treeNode22,
treeNode26,
treeNode33,
treeNode40,
treeNode46,
treeNode57,
treeNode59});
this.treeView.Size = new System.Drawing.Size(174, 473);
this.treeView.TabIndex = 1;
this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterSelect);
//
// frmParameters
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(567, 477);
this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmParameters";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Parameters";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmParameters_FormClosed);
this.Load += new System.EventHandler(this.frmParameters_Load);
this.ResizeEnd += new System.EventHandler(this.frmParameters_ResizeEnd);
this.splitContainer1.Panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
}
internal void method_0(ref Class18 class18_1, ref FrmMain frmMain_1)
{
this.frmMain_0 = frmMain_1;
this.class18_0 = class18_1;
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_1);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.treeView.Enabled = true;
this.splitContainer1.Panel2.Enabled = true;
this.Text = "Parameters";
base.Invalidate();
}
else
{
this.treeView.Enabled = false;
this.splitContainer1.Panel2.Enabled = false;
base.Invalidate();
}
}
private void treeView_AfterSelect(object sender, TreeViewEventArgs e)
{
SelectPage(e.Node.Name, e.Node.Text);
}
public void SelectPage(string NodeName, string PageName)
{
this.Text = "Parameters - " + PageName;
if (this.userControl_0 != null)
{
this.userControl_0.Dispose();
this.userControl_0 = null;
}
this.class18_0.class10_settings_0.parameterNode = NodeName;
switch (NodeName)
{
case "nComments":
this.userControl_0 = new parmComments(ref this.class18_0);
break;
case "nRomOptions":
this.userControl_0 = new parmRomOptions(ref this.class18_0);
break;
case "nMap":
this.userControl_0 = new parmMap(ref this.class18_0);
break;
case "nRevLimit":
this.userControl_0 = new parmRevLimit(ref this.class18_0);
break;
case "nInjector":
this.userControl_0 = new parmInjector(ref this.class18_0);
break;
case "nVtec":
this.userControl_0 = new parmVtec(ref this.class18_0);
break;
case "nCloseLoop":
this.userControl_0 = new parmCloseLoop(ref this.class18_0);
break;
case "nIdle":
this.userControl_0 = new parmIdleMain(ref this.class18_0);
break;
case "nFuelCut":
this.userControl_0 = new parmFuelCut(ref this.class18_0);
break;
case "nIab":
this.userControl_0 = new parmIAB(ref this.class18_0);
break;
case "nTpsSensor":
this.userControl_0 = new parmTpsSensor(ref this.class18_0, ref this.class18_0.class17_0);
break;
case "nIat":
this.userControl_0 = new parmIATcorr(ref this.class18_0);
break;
case "nEct":
this.userControl_0 = new parmEctCorr(ref this.class18_0);
break;
case "nBoostMapSensor":
this.userControl_0 = new parmBoostMapSensor(ref this.class18_0);
break;
case "nCrank":
this.userControl_0 = new parmCrankFuel(ref this.class18_0);
break;
case "nCylinder":
this.userControl_0 = new parmCylCorr(ref this.class18_0);
break;
case "nGear":
this.userControl_0 = new parmGearCorr(ref this.class18_0);
break;
case "nSCC":
this.userControl_0 = new parmSCC(ref this.class18_0);
break;
case "nFtl":
this.userControl_0 = new parmFtl(ref this.class18_0);
break;
case "nFts":
this.userControl_0 = new parmFts(ref this.class18_0);
break;
case "nAc":
this.userControl_0 = new parmAc(ref this.class18_0);
break;
//case "nAntiLag":
// this.userControl_0 = new parmAntiLag(ref this.class18_0);
// break;
case "nMilShift":
this.userControl_0 = new parmMilShift(ref this.class18_0);
break;
case "nBoostCut":
this.userControl_0 = new parmBoostCut(ref this.class18_0);
break;
case "nIgnRpm":
this.userControl_0 = new parmDwell(ref this.class18_0);
break;
case "nEbcSettings":
this.userControl_0 = new parmEbcSettings(ref this.class18_0);
break;
case "nDualMap":
this.userControl_0 = new parmDualMap(ref this.class18_0);
break;
case "nFan":
this.userControl_0 = new parmFanControl(ref this.class18_0);
break;
case "nGpo1":
this.userControl_0 = new parmGPO1_a(ref this.class18_0);
break;
case "nGpo2":
this.userControl_0 = new parmGPO2_a(ref this.class18_0);
break;
case "nGpo3":
this.userControl_0 = new parmGPO3_a(ref this.class18_0);
break;
case "nBstManual":
this.userControl_0 = new parmBstManual(ref this.class18_0);
break;
case "nGpo1Adj":
this.userControl_0 = new parmGPO1_if(ref this.class18_0);
break;
case "nGpo2Adj":
this.userControl_0 = new parmGPO2_if(ref this.class18_0);
break;
case "nGpo3Adj":
this.userControl_0 = new parmGPO3_if(ref this.class18_0);
break;
case "nEbcDutyLookup":
this.userControl_0 = new parmEbcDutyLook(ref this.class18_0);
break;
case "nOverheatEct":
this.userControl_0 = new parmEctProtection(ref this.class18_0);
break;
case "nLeanProtect":
this.userControl_0 = new parmLeanProtection(ref this.class18_0);
break;
case "nEbcComp":
this.userControl_0 = new parmEbcCompensation(ref this.class18_0);
break;
case "nEbcClose":
this.userControl_0 = new parmEbcCloseloop(ref this.class18_0);
break;
case "nTpsRetard":
this.userControl_0 = new parmTpsRetard(ref this.class18_0);
break;
case "nIdleIgn":
this.userControl_0 = new parmIdleIgnCorr(ref this.class18_0);
break;
case "nTrans":
this.userControl_0 = new parmTransmission(ref this.class18_0);
break;
case "nBurnOut":
this.userControl_0 = new parmBurnOut(ref this.class18_0);
break;
case "nAntitheft":
this.userControl_0 = new parmAntiStart(ref this.class18_0);
break;
case "nFileProtect":
this.userControl_0 = new parmFileProtection(ref this.class18_0);
break;
case "nTpsFuel":
this.userControl_0 = new parmTipInOut(ref this.class18_0);
break;
case "nFlexFuel":
this.userControl_0 = new parmFlexFuel(ref this.class18_0);
break;
case "nPopcorn":
this.userControl_0 = new parmPopcorn(ref this.class18_0);
break;
case "Nœknock":
this.userControl_0 = new parmKnockProtection(ref this.class18_0);
break;
case "nOBL":
this.userControl_0 = new parmOBL(ref this.class18_0);
break;
case "nCPR":
this.userControl_0 = new parmCPR(ref this.class18_0);
break;
default:
return;
}
if (this.userControl_0 != null)
{
this.userControl_0.Dock = DockStyle.Fill;
this.splitContainer1.Panel2.Controls.Clear();
this.splitContainer1.Panel2.Controls.Add(this.userControl_0);
this.splitContainer1.Refresh();
}
}
private void splitContainer1_SplitterMoved(object sender, SplitterEventArgs e)
{
this.class18_0.class10_settings_0.Parameter_Splitter = splitContainer1.SplitterDistance;
}
}

1787
frmParameters.resx Normal file

File diff suppressed because it is too large Load Diff

121
frmPassword.cs Normal file
View File

@ -0,0 +1,121 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmPassword : Form
{
private Class18 class18_0;
private IContainer icontainer_0;
private IContainer components;
private TextBox textBox1;
private Label label1;
public Button button1;
internal frmPassword()
{
this.InitializeComponent();
}
internal void method_0(ref Class18 class18_1)
{
this.class18_0 = class18_1;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmPassword_FormClosed(object sender, FormClosedEventArgs e)
{
SetPassword();
}
private void frmPassword_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPassword));
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(63, 62);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Ok";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 34);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(175, 20);
this.textBox1.TabIndex = 1;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(45, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(105, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Enter the Password :";
//
// frmPassword
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(197, 97);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmPassword";
this.Text = "Password";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmPassword_FormClosed);
this.Load += new System.EventHandler(this.frmPassword_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
void SetPassword() {
string ThisReseted = textBox1.Text;
if (textBox1.Text.Length > 16)
for (int i = 0; i < 16; i++)
ThisReseted += textBox1.Text.Substring(i, 1);
this.class18_0.class10_settings_0.Password = ThisReseted;
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
SetPassword();
}
}

1787
frmPassword.resx Normal file

File diff suppressed because it is too large Load Diff

313
frmProtocolInfos.cs Normal file
View File

@ -0,0 +1,313 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmProtocolInfos : Form
{
private IContainer icontainer_0;
private Label label1;
private Label label2;
private DataGridView dataGridView1;
private DataGridViewTextBoxColumn Column1;
private DataGridViewTextBoxColumn Column2;
private DataGridViewTextBoxColumn Column3;
private DataGridView dataGridView2;
private DataGridViewTextBoxColumn Column4;
private DataGridViewTextBoxColumn Column5;
private DataGridViewTextBoxColumn Column6;
public Button button1;
internal frmProtocolInfos()
{
this.InitializeComponent();
this.dataGridView1.Rows.Clear();
this.dataGridView1.Rows.Add("Get All Sensors Datas", "Send 1 Byte -> 0x30", "Receive 52 Bytes as responce");
this.dataGridView1.Rows.Add("Reset MIL Codes", "Send 1 Byte -> 0x50", "Receive 1 Byte as responce -> 0x50");
this.dataGridView1.Rows.Add("Get J12/J4 Resistor Cut", "Send 1 Byte -> 0x10", "Receive 1 Byte as responce -> 0xCD");
this.dataGridView2.Rows.Clear();
this.dataGridView2.Rows.Add("0", "ECT", "0D9h");
this.dataGridView2.Rows.Add("1", "IAT", "003CCh");
this.dataGridView2.Rows.Add("2", "O2", "003CAh");
this.dataGridView2.Rows.Add("3", "BARO", "0BCh");
this.dataGridView2.Rows.Add("4", "MAP", "0BBh");
this.dataGridView2.Rows.Add("5", "TPS", "003A4h");
this.dataGridView2.Rows.Add("6", "RPM BYTE1", "0C4h");
this.dataGridView2.Rows.Add("7", "RPM BYTE2", "0C4h");
this.dataGridView2.Rows.Add("8", "ACTIVE OPTIONS #1", "003B1h");
this.dataGridView2.Rows.Add(" .0", "POST FUEL", "003B1h.0");
this.dataGridView2.Rows.Add(" .1", "SCC CHECKER", "003B1h.1");
this.dataGridView2.Rows.Add(" .2", "IGNITION CUT", "003B1h.2");
this.dataGridView2.Rows.Add(" .3", "VTEC MAP SWITCH(VTSM)", "003B1h.3");
this.dataGridView2.Rows.Add(" .4", "FUEL CUT #1", "003B1h.4");
this.dataGridView2.Rows.Add(" .5", "FUEL CUT #2", "003B1h.5");
this.dataGridView2.Rows.Add(" .6", "AT TRANS SHIFT1", "003B1h.6");
this.dataGridView2.Rows.Add(" .7", "AT TRANS SHIFT2", "003B1h.7");
this.dataGridView2.Rows.Add("9", "COLUMN RELATED", "001E7h");
this.dataGridView2.Rows.Add("10", "ROW RELATED", "001E8h");
this.dataGridView2.Rows.Add("11", "COL/ROW RELATED", "001DFh");
this.dataGridView2.Rows.Add("12", "MIL BYTE1", "0011Ah");
this.dataGridView2.Rows.Add("13", "MIL BYTE2", "0011Bh");
this.dataGridView2.Rows.Add("14", "MIL BYTE3", "0011Ch");
this.dataGridView2.Rows.Add("15", "MIL BYTE4", "0011Dh");
this.dataGridView2.Rows.Add("16", "VSS", "0CCh");
this.dataGridView2.Rows.Add("17", "INJ BYTE1", "0019Eh");
this.dataGridView2.Rows.Add("18", "INJ BYTE2", "0019Eh");
this.dataGridView2.Rows.Add("19", "IGN FINAL", "0035Bh");
this.dataGridView2.Rows.Add("20", "IGN TABLE", "00246h");
this.dataGridView2.Rows.Add("21", "INPUTS #2", "003B0h");
this.dataGridView2.Rows.Add(" .0", "PARK NEUTRAL", "003B0h.0");
this.dataGridView2.Rows.Add(" .1", "BRAKE SWITCH", "003B0h.1");
this.dataGridView2.Rows.Add(" .2", "ACC SWITCH", "003B0h.2");
this.dataGridView2.Rows.Add(" .3", "VTEC PRESSURE SWITCH", "003B0h.3");
this.dataGridView2.Rows.Add(" .4", "STARTER SIGNAL", "003B0h.4");
this.dataGridView2.Rows.Add(" .5", "SCC", "003B0h.5");
this.dataGridView2.Rows.Add(" .6", "VTEC FEEDBACK", "003B0h.6");
this.dataGridView2.Rows.Add(" .7", "POWER STEERING PRESSURE SWITCH", "003B0h.7");
this.dataGridView2.Rows.Add("22", "OUTPUTS #1", "003B2h");
this.dataGridView2.Rows.Add(" .0", "FUEL PUMP(MAIN RELAY)", "003B2h.0");
this.dataGridView2.Rows.Add(" .1", "", "003B2h.1"); //#################################
this.dataGridView2.Rows.Add(" .2", "INTAKE AIR BUTTERFLY(IAB)", "003B2h.2");
this.dataGridView2.Rows.Add(" .3", "", "003B2h.3"); //#################################
this.dataGridView2.Rows.Add(" .4", "FAN CONTROL(FANC)", "003B2h.4");
this.dataGridView2.Rows.Add(" .5", "ALTERNATOR CONTROL(ALTC)", "003B2h.5");
this.dataGridView2.Rows.Add(" .6", "PURGE VALVE", "003B2h.6");
this.dataGridView2.Rows.Add(" .7", "AC CONTROL", "003B2h.7");
this.dataGridView2.Rows.Add("23", "ACTIVE OPTIONS #2", "003B3h");
this.dataGridView2.Rows.Add(" .0", "", "003B3h.0"); //#################################
this.dataGridView2.Rows.Add(" .1", "", "003B3h.1"); //#################################
this.dataGridView2.Rows.Add(" .2", "", "003B3h.2"); //#################################
this.dataGridView2.Rows.Add(" .3", "", "003B3h.3"); //#################################
this.dataGridView2.Rows.Add(" .4", "", "003B3h.4"); //#################################
this.dataGridView2.Rows.Add(" .5", "MALFUNCTION INDICATOR LIGHT(MIL)", "003B3h.5");
this.dataGridView2.Rows.Add(" .6", "O2 HEATER", "003B3h.6");
this.dataGridView2.Rows.Add(" .7", "VTEC SENSOR", "003B3h.7");
this.dataGridView2.Rows.Add("24", "ELD VOLT", "003D2h");
this.dataGridView2.Rows.Add("25", "BATTERY VOLT", "003D1h");
this.dataGridView2.Rows.Add("26", "ECT FUEL CORRECTION", "00168h");
this.dataGridView2.Rows.Add("27", "O2 SHORT BYTE1", "00158h");
this.dataGridView2.Rows.Add("28", "O2 SHORT BYTE2", "00158h");
this.dataGridView2.Rows.Add("29", "O2 LONG BYTE1", "00304h");
this.dataGridView2.Rows.Add("30", "O2 LONG BYTE2", "00304h");
this.dataGridView2.Rows.Add("31", "IAT FUEL CORRECTION BYTE1", "0015Ch");
this.dataGridView2.Rows.Add("32", "IAT FUEL CORRECTION BYTE2", "0015Ch");
this.dataGridView2.Rows.Add("33", "VE FUEL CORRECTION", "00162h");
this.dataGridView2.Rows.Add("34", "ECT IGNITION CORRECTION", "00412h");
this.dataGridView2.Rows.Add("35", "IAT IGNITION CORRECTION", "00252h");
this.dataGridView2.Rows.Add("36", "GEAR IGNITION CORRECTION", "00253h");
this.dataGridView2.Rows.Add("37", "GEAR FUEL CORRECTION", "0023Bh");
this.dataGridView2.Rows.Add("38", "INPUTS ACTIVE #1", "00408h");
this.dataGridView2.Rows.Add(" .0", "LAUNCH CONTROL", "00408h.0");
this.dataGridView2.Rows.Add(" .1", "FULL THROTTLE SHIFT", "00408h.1");
this.dataGridView2.Rows.Add(" .2", "ELECTRONIC BOOST CONTROLLER", "00408h.2");
this.dataGridView2.Rows.Add(" .3", "ELECTRONIC BOOST CONTROLLER HI", "00408h.3");
this.dataGridView2.Rows.Add(" .4", "GENERAL PURPOSE OUTPUT #1(GPO1)", "00408h.4");
this.dataGridView2.Rows.Add(" .5", "GENERAL PURPOSE OUTPUT #2(GPO2)", "00408h.5");
this.dataGridView2.Rows.Add(" .6", "GENERAL PURPOSE OUTPUT #3(GPO3)", "00408h.6");
this.dataGridView2.Rows.Add(" .7", "MANUAL BOOST CONTROLLER", "00408h.7");
this.dataGridView2.Rows.Add("39", "ACTIVE OPTIONS #3", "00409h");
this.dataGridView2.Rows.Add(" .0", "LAUNCH CONTROL", "00409h.0");
this.dataGridView2.Rows.Add(" .1", "ANTILAG", "00409h.1");
this.dataGridView2.Rows.Add(" .2", "FULL THROTTLE SHIFT", "00409h.2");
this.dataGridView2.Rows.Add(" .3", "BOOST CUT", "00409h.3");
this.dataGridView2.Rows.Add(" .4", "ELECTRONIC BOOST CONTROLLER", "00409h.4");
this.dataGridView2.Rows.Add(" .5", "SECONDARY MAPS", "00409h.5");
this.dataGridView2.Rows.Add(" .6", "FAN CONTROL", "00409h.6");
this.dataGridView2.Rows.Add(" .7", "MANUAL BOOST CONTROLLER", "00409h.7");
this.dataGridView2.Rows.Add("40", "ELECTRONIC BOOST CONTROLLER BASE DUTY", "0041Bh");
this.dataGridView2.Rows.Add("41", "ELECTRONIC BOOST CONTROLLER DUTY", "0041Ch");
this.dataGridView2.Rows.Add("42", "ELECTRONIC BOOST CONTROLLER TARGET", "0041Ah");
this.dataGridView2.Rows.Add("43", "ACTIVE OPTIONS #4", "00410h");
this.dataGridView2.Rows.Add(" .0", "GENERAL PURPOSE OUTPUT #1(GPO1)", "00410h.0");
this.dataGridView2.Rows.Add(" .1", "GENERAL PURPOSE OUTPUT #2(GPO2)", "00410h.1");
this.dataGridView2.Rows.Add(" .2", "GENERAL PURPOSE OUTPUT #3(GPO3)", "00410h.2");
this.dataGridView2.Rows.Add(" .3", "MANUAL BOOST CONTROLLER STAGE2", "00410h.3");
this.dataGridView2.Rows.Add(" .4", "MANUAL BOOST CONTROLLER STAGE3", "00410h.4");
this.dataGridView2.Rows.Add(" .5", "MANUAL BOOST CONTROLLER STAGE4", "00410h.5");
this.dataGridView2.Rows.Add(" .6", "OVERHEAT PROTECTION", "00410h.6");
this.dataGridView2.Rows.Add(" .7", "LEAN PROTECTION", "00410h.7");
this.dataGridView2.Rows.Add("44", "EGR VOLT", "0067h");
this.dataGridView2.Rows.Add("45", "B6 VOLT", "003D5h");
this.dataGridView2.Rows.Add("46", "", "001EAh"); //#################################
this.dataGridView2.Rows.Add("47", "", "001ECh"); //#################################
this.dataGridView2.Rows.Add("48", "", "001E2h"); //#################################
this.dataGridView2.Rows.Add("49", "IACV DUTY BYTE1", "00382h");
this.dataGridView2.Rows.Add("50", "IACV DUTY BYTE2", "00382h");
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmProtocolInfos_FormClosed(object sender, FormClosedEventArgs e)
{
}
private void frmProtocolInfos_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmProtocolInfos));
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(211, 588);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Ok";
this.button1.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(128, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(264, 16);
this.label1.TabIndex = 2;
this.label1.Text = "ISR V3 Datalog Protocol Informations";
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.Color.Red;
this.label2.Location = new System.Drawing.Point(106, 38);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(300, 52);
this.label2.TabIndex = 3;
this.label2.Text = resources.GetString("label2.Text");
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeRows = false;
this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3});
this.dataGridView1.Location = new System.Drawing.Point(12, 102);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.Size = new System.Drawing.Size(492, 88);
this.dataGridView1.TabIndex = 4;
//
// Column1
//
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Column1.HeaderText = "Command Name";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 150;
//
// Column2
//
this.Column2.HeaderText = "Send";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 57;
//
// Column3
//
this.Column3.HeaderText = "Receive";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 72;
//
// dataGridView2
//
this.dataGridView2.AllowUserToAddRows = false;
this.dataGridView2.AllowUserToDeleteRows = false;
this.dataGridView2.AllowUserToResizeRows = false;
this.dataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dataGridView2.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column4,
this.Column5,
this.Column6});
this.dataGridView2.Location = new System.Drawing.Point(12, 196);
this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.ReadOnly = true;
this.dataGridView2.RowHeadersVisible = false;
this.dataGridView2.Size = new System.Drawing.Size(492, 389);
this.dataGridView2.TabIndex = 5;
//
// Column4
//
this.Column4.HeaderText = "Byte";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 53;
//
// Column5
//
this.Column5.HeaderText = "Reference";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Width = 82;
//
// Column6
//
this.Column6.HeaderText = "Code in .bin";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.Width = 88;
//
// frmProtocolInfos
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(518, 615);
this.Controls.Add(this.dataGridView2);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmProtocolInfos";
this.Text = "ISR V3 Datalog Protocol Informations";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmProtocolInfos_FormClosed);
this.Load += new System.EventHandler(this.frmProtocolInfos_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
}

1811
frmProtocolInfos.resx Normal file

File diff suppressed because it is too large Load Diff

184
frmQuickAdjust.cs Normal file
View File

@ -0,0 +1,184 @@
using eCtune.Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmQuickAdjust : Form
{
private Class18 class18_0;
private Enum12 enum12_0;
private IContainer icontainer_0;
private TextBox textBox1;
internal frmQuickAdjust()
{
this.InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmQuickAdjust_KeyDown(object sender, KeyEventArgs e)
{
if (((e.KeyData == Keys.Up) || (e.KeyData == Keys.Right)) || (e.KeyData == Keys.PageUp))
{
if (this.method_0() != Enum12.const_0)
{
if (this.method_0() == Enum12.const_1)
{
double num3 = double.Parse(this.textBox1.Text) + 0.5;
this.textBox1.Text = num3.ToString();
if (this.class18_0.class13_0.long_34 != 0L)
{
this.class18_0.method_151(this.class18_0.class13_0.long_34, (long) (num3 * 8.0));
}
}
}
else
{
double num = double.Parse(this.textBox1.Text);
double num2 = 1.99;
if (this.class18_0.class10_0.correctionUnits_0 == CorrectionUnits.percentage)
{
num2 = 100.0;
}
if (num < num2)
{
if (this.class18_0.class10_0.correctionUnits_0 == CorrectionUnits.percentage)
{
num++;
}
else
{
num += 0.01;
}
this.textBox1.Text = num.ToString();
if (this.class18_0.class13_0.long_39 != 0L)
{
this.class18_0.method_151(this.class18_0.class13_0.long_39, this.class18_0.method_231(num, Enum6.const_0));
}
}
}
}
else if (((e.KeyData == Keys.Down) || (e.KeyData == Keys.Left)) || (e.KeyData == Keys.Next))
{
if (this.method_0() != Enum12.const_0)
{
if (this.method_0() == Enum12.const_1)
{
double num6 = double.Parse(this.textBox1.Text);
if (num6 > 0.0)
{
num6 -= 0.5;
this.textBox1.Text = num6.ToString();
if (this.class18_0.class13_0.long_34 != 0L)
{
this.class18_0.method_151(this.class18_0.class13_0.long_34, (long) (num6 * 8.0));
}
}
}
}
else
{
double num4 = double.Parse(this.textBox1.Text);
double num5 = 0.0;
if (this.class18_0.class10_0.correctionUnits_0 == CorrectionUnits.percentage)
{
num5 = -100.0;
}
if (num4 > num5)
{
if (this.class18_0.class10_0.correctionUnits_0 == CorrectionUnits.percentage)
{
num4--;
}
else
{
num4 -= 0.01;
}
this.textBox1.Text = num4.ToString();
if (this.class18_0.class13_0.long_39 != 0L)
{
this.class18_0.method_151(this.class18_0.class13_0.long_39, this.class18_0.method_231(num4, Enum6.const_0));
}
}
}
}
else if ((e.KeyData == Keys.Enter) || (e.KeyData == Keys.Escape))
{
base.Close();
this.class18_0.method_153();
this.class18_0.method_3();
}
}
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Enabled = false;
this.textBox1.Location = new System.Drawing.Point(0, 0);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(74, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "0";
//
// frmQuickAdjust
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(74, 19);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "frmQuickAdjust";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "frmQuickAdjust";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.frmQuickAdjust_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
internal Enum12 method_0()
{
return this.enum12_0;
}
internal void method_1(Enum12 enum12_1)
{
this.enum12_0 = enum12_1;
this.class18_0.method_155(this.method_0().ToString() + " quick adjustment");
if (enum12_1 == Enum12.const_1)
{
this.Text = "Offset";
if (this.class18_0.class13_0.long_34 != 0L)
{
this.textBox1.Text = (((double) this.class18_0.method_152(this.class18_0.class13_0.long_34)) / 8.0).ToString("0.00");
}
}
else
{
this.Text = "Overall";
this.textBox1.Text = this.class18_0.method_203(this.class18_0.method_152(this.class18_0.class13_0.long_39), Enum6.const_0).ToString("");
}
}
internal void method_2(ref Class18 class18_1)
{
this.class18_0 = class18_1;
}
}

120
frmQuickAdjust.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

121
frmQuickSaveDesc.cs Normal file
View File

@ -0,0 +1,121 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmQuickSaveDesc : Form
{
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private Label label1;
private IContainer components;
private Label label2;
private TextBox txtbDesc;
public frmQuickSaveDesc()
{
this.InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmQuickSaveDesc_Load(object sender, EventArgs e)
{
this.txtbDesc.Focus();
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label1 = new System.Windows.Forms.Label();
this.txtbDesc = new System.Windows.Forms.TextBox();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(2, 46);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(38, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Desc:";
//
// txtbDesc
//
this.txtbDesc.Location = new System.Drawing.Point(50, 43);
this.txtbDesc.Name = "txtbDesc";
this.txtbDesc.Size = new System.Drawing.Size(168, 20);
this.txtbDesc.TabIndex = 1;
this.txtbDesc.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbDesc_KeyPress);
this.txtbDesc.Validating += new System.ComponentModel.CancelEventHandler(this.txtbDesc_Validating);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.label2.Location = new System.Drawing.Point(56, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(113, 24);
this.label2.TabIndex = 2;
this.label2.Text = "Add a description\r\nfor your snapshot";
//
// frmQuickSaveDesc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(223, 67);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtbDesc);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "frmQuickSaveDesc";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Snapshot Description";
this.Load += new System.EventHandler(this.frmQuickSaveDesc_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void txtbDesc_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
base.Tag = this.txtbDesc.Text;
base.DialogResult = DialogResult.OK;
base.Close();
}
}
private void txtbDesc_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (control.Text == string.Empty)
{
this.errorProvider_0.SetError(control, "Please enter description");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}

123
frmQuickSaveDesc.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

297
frmQuickSaveMain.cs Normal file
View File

@ -0,0 +1,297 @@
using Data;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmQuickSaveMain : Form
{
private ToolStripButton btnClear;
private ToolStripButton btnLoad;
private ToolStripButton btnSave;
private Class18 class18_0;
private Class21_snap class21_snap_0;
private DataGridViewTextBoxColumn Column1;
private DataGridViewTextBoxColumn Column2;
private DataGridView grid;
private IContainer icontainer_0;
private ToolStrip toolStrip1;
public bool loading = true;
public frmQuickSaveMain()
{
this.InitializeComponent();
}
private void btnClear_Click(object sender, EventArgs e)
{
this.class21_snap_0.method_3();
}
private void btnLoad_Click(object sender, EventArgs e)
{
if (this.grid.SelectedCells.Count > 0)
{
this.class21_snap_0.method_6((int) this.grid.SelectedCells[0].Tag);
}
}
private void btnSave_Click(object sender, EventArgs e)
{
this.class21_snap_0.method_2();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmQuickSave_FormClosed(object sender, FormClosedEventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode) this.class18_0.class10_settings_0.snapShots_Location = base.Location;
}
private void frmQuickSave_Load(object sender, EventArgs e)
{
if (this.class18_0.class10_settings_0.WindowedMode)
{
this.FormBorderStyle = FormBorderStyle.Sizable;
this.Dock = DockStyle.None;
base.Location = this.class18_0.class10_settings_0.snapShots_Location;
}
else
{
this.FormBorderStyle = FormBorderStyle.None;
this.Dock = DockStyle.Fill;
}
this.grid.Rows.Clear();
((VScrollBar) this.grid.Controls[1]).Enabled = false;
((VScrollBar) this.grid.Controls[1]).Visible = false;
((HScrollBar) this.grid.Controls[0]).Enabled = true;
((HScrollBar) this.grid.Controls[0]).Visible = true;
this.method_2();
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.method_4();
}
loading = false;
}
private void frmQuickSave_Move(object sender, EventArgs e)
{
}
private void frmQuickSave_Resize(object sender, EventArgs e)
{
if (this.class18_0 != null)
{
if (this.class18_0.class10_settings_0 != null)
{
if (this.class18_0.class10_settings_0.WindowedMode && !loading)
{
this.class18_0.class10_settings_0.snapShots_Location = base.Location;
}
}
}
}
private void grid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
try
{
if (this.grid.SelectedCells.Count > 0)
{
this.class21_snap_0.method_6((int) this.grid[this.grid.SelectedCells[0].ColumnIndex, this.grid.SelectedCells[0].RowIndex].Tag);
}
}
catch (Exception exception)
{
MessageBox.Show(Form.ActiveForm, exception.Message);
}
}
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmQuickSaveMain));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.btnSave = new System.Windows.Forms.ToolStripButton();
this.btnLoad = new System.Windows.Forms.ToolStripButton();
this.btnClear = new System.Windows.Forms.ToolStripButton();
this.grid = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Left;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnSave,
this.btnLoad,
this.btnClear});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(39, 137);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// btnSave
//
this.btnSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.btnSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(36, 19);
this.btnSave.Text = "Save";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// btnLoad
//
this.btnLoad.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.btnLoad.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnLoad.Name = "btnLoad";
this.btnLoad.Size = new System.Drawing.Size(36, 19);
this.btnLoad.Text = "Load";
this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
//
// btnClear
//
this.btnClear.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.btnClear.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(36, 19);
this.btnClear.Text = "Clear";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// grid
//
this.grid.AllowUserToAddRows = false;
this.grid.AllowUserToDeleteRows = false;
this.grid.AllowUserToResizeColumns = false;
this.grid.AllowUserToResizeRows = false;
this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2});
this.grid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.grid.Location = new System.Drawing.Point(47, 0);
this.grid.Name = "grid";
this.grid.ReadOnly = true;
this.grid.RowHeadersVisible = false;
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.ShowCellErrors = false;
this.grid.ShowCellToolTips = false;
this.grid.ShowEditingIcon = false;
this.grid.ShowRowErrors = false;
this.grid.Size = new System.Drawing.Size(334, 137);
this.grid.TabIndex = 2;
this.grid.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grid_CellDoubleClick);
//
// Column1
//
this.Column1.FillWeight = 120F;
this.Column1.HeaderText = "Date/Time";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 120;
//
// Column2
//
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.Column2.DefaultCellStyle = dataGridViewCellStyle1;
this.Column2.FillWeight = 139F;
this.Column2.HeaderText = "Description";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// frmQuickSave
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(381, 137);
this.Controls.Add(this.grid);
this.Controls.Add(this.toolStrip1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "frmQuickSave";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Snapshot List";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmQuickSave_FormClosed);
this.Load += new System.EventHandler(this.frmQuickSave_Load);
this.Move += new System.EventHandler(this.frmQuickSave_Move);
this.Resize += new System.EventHandler(this.frmQuickSave_Resize);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
internal void method_0(ref Class21_snap class21_snap_1, ref Class18 class18_1)
{
this.class21_snap_0 = class21_snap_1;
this.class21_snap_0.delegate63_0 += new Class21_snap.Delegate63(this.method_3);
this.class18_0 = class18_1;
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_2);
this.class18_0.class11_u_0.delegate32_0 += new Class11_u.Delegate32(this.method_1);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1()
{
}
private void method_2()
{
this.btnClear.Enabled = this.class18_0.method_30_HasFileLoadedInBMTune();
this.btnLoad.Enabled = this.class18_0.method_30_HasFileLoadedInBMTune();
this.btnSave.Enabled = this.class18_0.method_30_HasFileLoadedInBMTune();
this.grid.Enabled = this.class18_0.method_30_HasFileLoadedInBMTune();
}
private void method_3()
{
if (this.grid.ColumnCount > 0)
{
this.method_4();
}
}
private void method_4()
{
this.grid.Rows.Clear();
Collection<QuickSaveItem> QuickSaveItem_1 = this.class21_snap_0.method_5();
for (int i = QuickSaveItem_1.Count - 1; i >= 0; i--)
{
this.grid.Rows.Add();
this.grid.Rows[this.grid.Rows.Count - 1].Cells[0].Value = QuickSaveItem_1[i].time.ToShortTimeString();
this.grid.Rows[this.grid.Rows.Count - 1].Cells[0].Tag = i;
this.grid.Rows[this.grid.Rows.Count - 1].Cells[1].Value = QuickSaveItem_1[i].description;
this.grid.Rows[this.grid.Rows.Count - 1].Height = 0x10;
}
}
}

1790
frmQuickSaveMain.resx Normal file

File diff suppressed because it is too large Load Diff

143
frmReset.cs Normal file
View File

@ -0,0 +1,143 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
internal class frmReset : Form
{
private IContainer icontainer_0;
private LinkLabel linkBMTune;
private LinkLabel linkForum;
private Button okButton;
private Label label1;
private TextBox textBoxDescription;
public frmReset()
{
this.InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmReset));
this.linkBMTune = new System.Windows.Forms.LinkLabel();
this.okButton = new System.Windows.Forms.Button();
this.textBoxDescription = new System.Windows.Forms.TextBox();
this.linkForum = new System.Windows.Forms.LinkLabel();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// linkBMTune
//
this.linkBMTune.AutoSize = true;
this.linkBMTune.Location = new System.Drawing.Point(16, 302);
this.linkBMTune.Name = "linkBMTune";
this.linkBMTune.Size = new System.Drawing.Size(50, 14);
this.linkBMTune.TabIndex = 29;
this.linkBMTune.TabStop = true;
this.linkBMTune.Text = "Website";
this.linkBMTune.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkBMTune_LinkClicked);
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.AutoSize = true;
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(326, 297);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(87, 25);
this.okButton.TabIndex = 24;
this.okButton.Text = "&Close";
//
// textBoxDescription
//
this.textBoxDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxDescription.Location = new System.Drawing.Point(10, 47);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(7, 3, 3, 3);
this.textBoxDescription.Multiline = true;
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxDescription.Size = new System.Drawing.Size(403, 245);
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = resources.GetString("textBoxDescription.Text");
//
// linkForum
//
this.linkForum.AutoSize = true;
this.linkForum.Location = new System.Drawing.Point(99, 302);
this.linkForum.Name = "linkForum";
this.linkForum.Size = new System.Drawing.Size(89, 14);
this.linkForum.TabIndex = 30;
this.linkForum.TabStop = true;
this.linkForum.Text = "Facebook Page";
this.linkForum.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkForum_LinkClicked);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(72, 10);
this.label1.Margin = new System.Windows.Forms.Padding(7, 0, 3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(276, 24);
this.label1.TabIndex = 31;
this.label1.Text = "* IMPORTANT *\r\nPLEASE READ THE RESET REQUEST CAREFULLY\r\n";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// frmReset
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(419, 327);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBoxDescription);
this.Controls.Add(this.linkBMTune);
this.Controls.Add(this.okButton);
this.Controls.Add(this.linkForum);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmReset";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Registration Reset Request";
this.Load += new System.EventHandler(this.frmAboutBox_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
private void linkBMTune_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("http://www.bmtune.com/");
}
private void linkForum_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://www.facebook.com/BMTuneSoftware/");
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
}

1805
frmReset.resx Normal file

File diff suppressed because it is too large Load Diff

159
frmSelectMode.cs Normal file
View File

@ -0,0 +1,159 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmSelectMode : Form
{
private Class10_settings class10_0;
private IContainer icontainer_0;
private Button btnOK;
private RadioButton radioWindowed;
private RadioButton radioDocked;
private TextBox tbDescription;
private PictureBox pbWindowed;
private PictureBox pbDocked;
public frmSelectMode()
{
this.InitializeComponent();
}
public frmSelectMode(ref Class10_settings class6_1)
{
this.InitializeComponent();
this.class10_0 = class6_1;
}
private void btnOK_Click(object sender, EventArgs e)
{
MessageBox.Show("You can always change the layout later by selecting Tools->Windowed Mode", "Notification", MessageBoxButtons.OK);
if (this.radioDocked.Checked)
{
this.class10_0.WindowedMode = false;
}
else if (this.radioWindowed.Checked)
{
this.class10_0.WindowedMode = true;
}
this.class10_0.ShownDockedMode = true;
base.Close();
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSelectMode));
this.btnOK = new System.Windows.Forms.Button();
this.radioWindowed = new System.Windows.Forms.RadioButton();
this.radioDocked = new System.Windows.Forms.RadioButton();
this.tbDescription = new System.Windows.Forms.TextBox();
this.pbWindowed = new System.Windows.Forms.PictureBox();
this.pbDocked = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pbWindowed)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbDocked)).BeginInit();
this.SuspendLayout();
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(864, 375);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(96, 37);
this.btnOK.TabIndex = 11;
this.btnOK.Text = "Accept";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// radioWindowed
//
this.radioWindowed.AutoSize = true;
this.radioWindowed.Location = new System.Drawing.Point(494, 384);
this.radioWindowed.Name = "radioWindowed";
this.radioWindowed.Size = new System.Drawing.Size(106, 17);
this.radioWindowed.TabIndex = 10;
this.radioWindowed.Text = "Windowed Mode";
this.radioWindowed.UseVisualStyleBackColor = true;
//
// radioDocked
//
this.radioDocked.AutoSize = true;
this.radioDocked.Checked = true;
this.radioDocked.Location = new System.Drawing.Point(12, 384);
this.radioDocked.Name = "radioDocked";
this.radioDocked.Size = new System.Drawing.Size(93, 17);
this.radioDocked.TabIndex = 9;
this.radioDocked.TabStop = true;
this.radioDocked.Text = "Docked Mode";
this.radioDocked.UseVisualStyleBackColor = true;
//
// tbDescription
//
this.tbDescription.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tbDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tbDescription.ForeColor = System.Drawing.SystemColors.WindowText;
this.tbDescription.Location = new System.Drawing.Point(2, 4);
this.tbDescription.Multiline = true;
this.tbDescription.Name = "tbDescription";
this.tbDescription.ReadOnly = true;
this.tbDescription.Size = new System.Drawing.Size(958, 65);
this.tbDescription.TabIndex = 8;
this.tbDescription.Text = "Thank you for choosing BMTune\r\nBefore we get started Which layout would you like " +
"to use?\r\n\r\n";
this.tbDescription.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// pbWindowed
//
this.pbWindowed.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pbWindowed.Image = global::Properties.Resources.windowed_mode;
this.pbWindowed.Location = new System.Drawing.Point(494, 69);
this.pbWindowed.Name = "pbWindowed";
this.pbWindowed.Size = new System.Drawing.Size(466, 294);
this.pbWindowed.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbWindowed.TabIndex = 7;
this.pbWindowed.TabStop = false;
//
// pbDocked
//
this.pbDocked.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pbDocked.Image = global::Properties.Resources.docked_mode;
this.pbDocked.Location = new System.Drawing.Point(12, 69);
this.pbDocked.Name = "pbDocked";
this.pbDocked.Size = new System.Drawing.Size(466, 294);
this.pbDocked.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbDocked.TabIndex = 6;
this.pbDocked.TabStop = false;
//
// frmSelectMode
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(973, 417);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.radioWindowed);
this.Controls.Add(this.radioDocked);
this.Controls.Add(this.tbDescription);
this.Controls.Add(this.pbWindowed);
this.Controls.Add(this.pbDocked);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmSelectMode";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.Text = "Select Default Layout";
((System.ComponentModel.ISupportInitialize)(this.pbWindowed)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbDocked)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
}

1787
frmSelectMode.resx Normal file

File diff suppressed because it is too large Load Diff

386
frmSensorSetup.cs Normal file
View File

@ -0,0 +1,386 @@
using Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmSensorSetup : Form
{
private Button btnSave;
private Class10_settings class10_settings_0;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private DataGridView grid;
private IContainer icontainer_0;
private int int_0;
private Label label3;
private Label label4;
private ToolTip toolTip_0;
private TextBox txtbWarnMax;
private DataGridViewTextBoxColumn Column2;
private IContainer components;
private TextBox txtbWarnMin;
private Label label2;
private Label label5;
private TextBox txtbValueMax;
private TextBox txtbValueMin;
private Label label6;
private Label label1;
private List<int> IndexList;
internal frmSensorSetup()
{
this.InitializeComponent();
}
private void btnSave_Click(object sender, EventArgs e)
{
this.method_2();
}
private void cmbUnit_Leave(object sender, EventArgs e)
{
this.method_2();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmSensorSetup_FormClosed(object sender, FormClosedEventArgs e)
{
}
private void frmSensorSetup_FormClosing(object sender, FormClosingEventArgs e)
{
this.method_2();
this.class10_settings_0.method_15();
}
private void frmSensorSetup_Load(object sender, EventArgs e)
{
this.IndexList = new List<int>();
for (int i=0; i < this.class10_settings_0.int_0; i++)
{
//if (Class19_u.smethod_0((Sensors)i))
//{
this.grid.Rows.Add();
this.IndexList.Add(i);
//}
}
for (int i = 0; i < this.grid.Rows.Count; i++)
{
this.grid.Rows[i].Height = 0x12;
}
this.grid.CellValueNeeded += new DataGridViewCellValueEventHandler(this.grid_CellValueNeeded);
}
private void grid_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e)
{
/*if (e.ColumnIndex == 0)
{
e.Value = ((Sensors) e.RowIndex).ToString();
}
else if (e.ColumnIndex == 1)
{*/
e.Value = this.class10_settings_0.method_13((SensorsX) this.IndexList[e.RowIndex]);
/*}
else if (e.ColumnIndex == 2)
{
e.Value = this.class10_0.method_16((Sensors) e.RowIndex);
}*/
}
private void grid_SelectionChanged(object sender, EventArgs e)
{
if (this.int_0 != this.grid.CurrentCell.RowIndex)
{
this.method_2();
}
this.method_1();
this.int_0 = this.grid.CurrentCell.RowIndex;
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSensorSetup));
this.grid = new System.Windows.Forms.DataGridView();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label4 = new System.Windows.Forms.Label();
this.txtbWarnMax = new System.Windows.Forms.TextBox();
this.txtbWarnMin = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.btnSave = new System.Windows.Forms.Button();
this.toolTip_0 = new System.Windows.Forms.ToolTip(this.components);
this.label5 = new System.Windows.Forms.Label();
this.txtbValueMax = new System.Windows.Forms.TextBox();
this.txtbValueMin = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// grid
//
this.grid.AllowUserToAddRows = false;
this.grid.AllowUserToDeleteRows = false;
this.grid.AllowUserToResizeColumns = false;
this.grid.AllowUserToResizeRows = false;
this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.grid.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.Disable;
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.grid.ColumnHeadersVisible = false;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column2});
this.grid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.grid.GridColor = System.Drawing.Color.Black;
this.grid.Location = new System.Drawing.Point(14, 9);
this.grid.Name = "grid";
this.grid.RowHeadersVisible = false;
this.grid.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.Size = new System.Drawing.Size(149, 219);
this.grid.TabIndex = 0;
this.grid.VirtualMode = true;
this.grid.SelectionChanged += new System.EventHandler(this.grid_SelectionChanged);
//
// Column2
//
this.Column2.FillWeight = 122F;
this.Column2.HeaderText = "Display Name";
this.Column2.Name = "Column2";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(171, 58);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 14);
this.label4.TabIndex = 23;
this.label4.Text = "Max:";
this.toolTip_0.SetToolTip(this.label4, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
//
// txtbWarnMax
//
this.txtbWarnMax.Location = new System.Drawing.Point(209, 55);
this.txtbWarnMax.Name = "txtbWarnMax";
this.txtbWarnMax.Size = new System.Drawing.Size(75, 20);
this.txtbWarnMax.TabIndex = 22;
this.toolTip_0.SetToolTip(this.txtbWarnMax, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
this.txtbWarnMax.Validating += new System.ComponentModel.CancelEventHandler(this.textBox2_Validating);
this.txtbWarnMax.Validated += new System.EventHandler(this.TxtbWarnMin_Validated);
//
// txtbWarnMin
//
this.txtbWarnMin.Location = new System.Drawing.Point(209, 29);
this.txtbWarnMin.Name = "txtbWarnMin";
this.txtbWarnMin.Size = new System.Drawing.Size(75, 20);
this.txtbWarnMin.TabIndex = 21;
this.toolTip_0.SetToolTip(this.txtbWarnMin, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
this.txtbWarnMin.Validating += new System.ComponentModel.CancelEventHandler(this.textBox2_Validating);
this.txtbWarnMin.Validated += new System.EventHandler(this.TxtbWarnMin_Validated);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(169, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 14);
this.label3.TabIndex = 20;
this.label3.Text = "Warnings";
this.toolTip_0.SetToolTip(this.label3, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
//
// btnSave
//
this.btnSave.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Location = new System.Drawing.Point(174, 203);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(110, 25);
this.btnSave.TabIndex = 14;
this.btnSave.Text = "Close";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(171, 141);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(32, 14);
this.label5.TabIndex = 28;
this.label5.Text = "Max:";
this.toolTip_0.SetToolTip(this.label5, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
//
// txtbValueMax
//
this.txtbValueMax.Location = new System.Drawing.Point(209, 138);
this.txtbValueMax.Name = "txtbValueMax";
this.txtbValueMax.Size = new System.Drawing.Size(75, 20);
this.txtbValueMax.TabIndex = 27;
this.toolTip_0.SetToolTip(this.txtbValueMax, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
this.txtbValueMax.Validating += new System.ComponentModel.CancelEventHandler(this.textBox2_Validating);
this.txtbValueMax.Validated += new System.EventHandler(this.TxtbWarnMin_Validated);
//
// txtbValueMin
//
this.txtbValueMin.Location = new System.Drawing.Point(209, 112);
this.txtbValueMin.Name = "txtbValueMin";
this.txtbValueMin.Size = new System.Drawing.Size(75, 20);
this.txtbValueMin.TabIndex = 26;
this.toolTip_0.SetToolTip(this.txtbValueMin, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
this.txtbValueMin.Validating += new System.ComponentModel.CancelEventHandler(this.textBox2_Validating);
this.txtbValueMin.Validated += new System.EventHandler(this.TxtbWarnMin_Validated);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(169, 92);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(74, 14);
this.label6.TabIndex = 25;
this.label6.Text = "Value Range";
this.toolTip_0.SetToolTip(this.label6, "Warning min from this value the background of the cell\r\nwill become orange and wi" +
"ll be red when warning max is reached.");
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(171, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 14);
this.label1.TabIndex = 24;
this.label1.Text = "Min:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(171, 115);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 14);
this.label2.TabIndex = 29;
this.label2.Text = "Min:";
//
// frmSensorSetup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnSave;
this.ClientSize = new System.Drawing.Size(292, 241);
this.Controls.Add(this.label2);
this.Controls.Add(this.label5);
this.Controls.Add(this.txtbValueMax);
this.Controls.Add(this.txtbValueMin);
this.Controls.Add(this.label6);
this.Controls.Add(this.label1);
this.Controls.Add(this.grid);
this.Controls.Add(this.btnSave);
this.Controls.Add(this.label4);
this.Controls.Add(this.txtbWarnMax);
this.Controls.Add(this.txtbWarnMin);
this.Controls.Add(this.label3);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmSensorSetup";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Warning Settings";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmSensorSetup_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmSensorSetup_FormClosed);
this.Load += new System.EventHandler(this.frmSensorSetup_Load);
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
internal void method_0(ref Class18 class18_1, ref Class10_settings class10_1)
{
this.class10_settings_0 = class10_1;
this.class18_0 = class18_1;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void method_1()
{
//if (Class19.smethod_0((Sensors) this.grid.CurrentCell.RowIndex))
//{
//this.txtbWarnMin.Enabled = true;
//this.txtbWarnMax.Enabled = true;
try
{
this.txtbWarnMin.Text = this.class10_settings_0.method_20((SensorsX)this.IndexList[this.grid.CurrentCell.RowIndex]).ToString();
this.txtbWarnMax.Text = this.class10_settings_0.method_22((SensorsX)this.IndexList[this.grid.CurrentCell.RowIndex]).ToString();
this.txtbValueMin.Text = this.class10_settings_0.method_20_Min((SensorsX)this.IndexList[this.grid.CurrentCell.RowIndex]).ToString();
this.txtbValueMax.Text = this.class10_settings_0.method_22_Max((SensorsX)this.IndexList[this.grid.CurrentCell.RowIndex]).ToString();
}
catch { }
//}
}
private void method_2()
{
this.class18_0.method_155("Sensor Settings");
if ((this.txtbWarnMax.Text != string.Empty) && (this.txtbWarnMin.Text != string.Empty))
{
this.class10_settings_0.method_21((SensorsX)this.IndexList[this.int_0], int.Parse(this.txtbWarnMin.Text));
this.class10_settings_0.method_23((SensorsX)this.IndexList[this.int_0], int.Parse(this.txtbWarnMax.Text));
}
if ((this.txtbValueMin.Text != string.Empty) && (this.txtbValueMax.Text != string.Empty))
{
this.class10_settings_0.method_21_Min((SensorsX)this.IndexList[this.int_0], int.Parse(this.txtbValueMin.Text));
this.class10_settings_0.method_23_Max((SensorsX)this.IndexList[this.int_0], int.Parse(this.txtbValueMax.Text));
}
}
private void textBox2_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox) sender;
if (!this.class18_0.method_252(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void TxtbWarnMin_Validated(object sender, EventArgs e)
{
this.method_2();
}
}

1793
frmSensorSetup.resx Normal file

File diff suppressed because it is too large Load Diff

7094
frmSettings.cs Normal file

File diff suppressed because it is too large Load Diff

1817
frmSettings.resx Normal file

File diff suppressed because it is too large Load Diff

509
frmShortKeys.cs Normal file
View File

@ -0,0 +1,509 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class frmShortKeys : Form
{
private ColumnHeader columnHeader_0;
private ColumnHeader columnHeader_1;
private IContainer icontainer_0;
private ListView listView;
private Label label1;
private Label label2;
private CheckBox chk_CTRL;
private Label label3;
private CheckBox chk_ALT;
private CheckBox chk_SHIFT;
private ComboBox comboBox1;
private Button button1;
private TreeView treeView;
private FrmMain frmMain_0;
public frmShortKeys(ref FrmMain frmMain_1)
{
this.InitializeComponent();
label3.Text = "";
this.frmMain_0 = frmMain_1;
for (int i = 0; i < this.frmMain_0.class28_Shortcuts_0.KeysList.Count; i++) this.comboBox1.Items.Add(this.frmMain_0.class28_Shortcuts_0.KeysList[i]);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("General");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("Fuel & Ignition Tables");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("Emulator");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Datalogging");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Datalogging Graphs/Display");
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
"test",
"dfa"}, -1);
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmShortKeys));
this.treeView = new System.Windows.Forms.TreeView();
this.listView = new System.Windows.Forms.ListView();
this.columnHeader_0 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader_1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.chk_CTRL = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.chk_ALT = new System.Windows.Forms.CheckBox();
this.chk_SHIFT = new System.Windows.Forms.CheckBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// treeView
//
this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.treeView.Location = new System.Drawing.Point(14, 61);
this.treeView.Name = "treeView";
treeNode1.Name = "main";
treeNode1.Text = "General";
treeNode2.Name = "table";
treeNode2.Text = "Fuel & Ignition Tables";
treeNode3.Name = "emulator";
treeNode3.Text = "Emulator";
treeNode4.Name = "datalog";
treeNode4.Text = "Datalogging";
treeNode5.Name = "datalogG";
treeNode5.Text = "Datalogging Graphs/Display";
this.treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4,
treeNode5});
this.treeView.ShowRootLines = false;
this.treeView.Size = new System.Drawing.Size(193, 257);
this.treeView.TabIndex = 0;
this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterSelect);
//
// listView
//
this.listView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader_0,
this.columnHeader_1});
this.listView.FullRowSelect = true;
this.listView.GridLines = true;
this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
listViewItem1});
this.listView.Location = new System.Drawing.Point(215, 61);
this.listView.MultiSelect = false;
this.listView.Name = "listView";
this.listView.ShowGroups = false;
this.listView.Size = new System.Drawing.Size(424, 257);
this.listView.TabIndex = 1;
this.listView.UseCompatibleStateImageBehavior = false;
this.listView.View = System.Windows.Forms.View.Details;
this.listView.SelectedIndexChanged += new System.EventHandler(this.ListView_SelectedIndexChanged);
//
// columnHeader_0
//
this.columnHeader_0.Text = "Keys";
this.columnHeader_0.Width = 130;
//
// columnHeader_1
//
this.columnHeader_1.Text = "Description";
this.columnHeader_1.Width = 270;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(123, 14);
this.label1.TabIndex = 2;
this.label1.Text = "Shortcut Description:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 33);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(87, 14);
this.label2.TabIndex = 3;
this.label2.Text = "Shortcut Keys:";
//
// chk_CTRL
//
this.chk_CTRL.AutoSize = true;
this.chk_CTRL.Location = new System.Drawing.Point(160, 32);
this.chk_CTRL.Name = "chk_CTRL";
this.chk_CTRL.Size = new System.Drawing.Size(54, 18);
this.chk_CTRL.TabIndex = 4;
this.chk_CTRL.Text = "CTRL";
this.chk_CTRL.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(160, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(40, 14);
this.label3.TabIndex = 5;
this.label3.Text = "label3";
//
// chk_ALT
//
this.chk_ALT.AutoSize = true;
this.chk_ALT.Location = new System.Drawing.Point(220, 32);
this.chk_ALT.Name = "chk_ALT";
this.chk_ALT.Size = new System.Drawing.Size(46, 18);
this.chk_ALT.TabIndex = 6;
this.chk_ALT.Text = "ALT";
this.chk_ALT.UseVisualStyleBackColor = true;
//
// chk_SHIFT
//
this.chk_SHIFT.AutoSize = true;
this.chk_SHIFT.Location = new System.Drawing.Point(272, 32);
this.chk_SHIFT.Name = "chk_SHIFT";
this.chk_SHIFT.Size = new System.Drawing.Size(57, 18);
this.chk_SHIFT.TabIndex = 7;
this.chk_SHIFT.Text = "SHIFT";
this.chk_SHIFT.UseVisualStyleBackColor = true;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(335, 30);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(209, 22);
this.comboBox1.TabIndex = 8;
//
// button1
//
this.button1.Location = new System.Drawing.Point(565, 29);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(74, 23);
this.button1.TabIndex = 9;
this.button1.Text = "SAVE";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.Button1_Click);
//
// frmShortKeys
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(654, 331);
this.Controls.Add(this.button1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.chk_SHIFT);
this.Controls.Add(this.chk_ALT);
this.Controls.Add(this.label3);
this.Controls.Add(this.chk_CTRL);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.listView);
this.Controls.Add(this.treeView);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmShortKeys";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Shortcut Keys";
this.ResumeLayout(false);
this.PerformLayout();
}
private void treeView_AfterSelect(object sender, TreeViewEventArgs e)
{
switch (e.Node.Name)
{
case "main":
this.listView.Items.Clear();
this.listView.Items.Add("Ctrl + N");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("New Basemap");
this.listView.Items.Add("Ctrl + O");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open File");
this.listView.Items.Add("Ctrl + S");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Save File As");
this.listView.Items.Add("Alt + S");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Save File");
this.listView.Items.Add("Ctrl + Q");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Quit");
this.listView.Items.Add("Ctrl + C");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Copy");
this.listView.Items.Add("Ctrl + V");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Paste");
this.listView.Items.Add("Ctrl + Z");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Undo");
this.listView.Items.Add("Ctrl + Y");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Redo");
this.listView.Items.Add("Ctrl + T");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Tables");
this.listView.Items.Add("Ctrl + P");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Parameters");
this.listView.Items.Add("Ctrl + E");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Error Code");
this.listView.Items.Add("Ctrl + I");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Timing Sync");
this.listView.Items.Add("Ctrl + B");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Boost Table");
this.listView.Items.Add("Ctrl + Q");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open Snapshots List");
this.listView.Items.Add("Ctrl + Alt + T");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open TPS Calibration");
this.listView.Items.Add("Ctrl + K");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Kill Injectors");
this.listView.Items.Add("Ctrl + F");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Kill Fuel Pump (Off)");
ResetKeyValue();
return;
case "table":
this.listView.Items.Clear();
this.listView.Items.Add("F1");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Primary Low Ignition");
this.listView.Items.Add("F2");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Primary High Ignition");
this.listView.Items.Add("F3");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Primary Low Fuel");
this.listView.Items.Add("F4");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Primary High Fuel");
this.listView.Items.Add("Shift + F1");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Secondary Low Ignition");
this.listView.Items.Add("Shift + F2");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Secondary High Ignition");
this.listView.Items.Add("Shift + F3");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Secondary Low Fuel");
this.listView.Items.Add("Shift + F4");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Secondary High Fuel");
this.listView.Items.Add("F5");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show Map Values");
this.listView.Items.Add("F6");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show A/F Target");
this.listView.Items.Add("F7");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show A/F Reading");
this.listView.Items.Add("F8");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show Fuel Difference");
this.listView.Items.Add("F9");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show VE Table");
this.listView.Items.Add("F10");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show Raw Fuel Value");
this.listView.Items.Add("F11");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show Fuel Duty Cycle");
this.listView.Items.Add("F12");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Show Injector Duration");
this.listView.Items.Add("Shift + F5");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Graph 2D View");
this.listView.Items.Add("Shift + F6");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Graph 3D View");
this.listView.Items.Add("Shift + F7");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Graph 2D/3D View - Bellow Table");
this.listView.Items.Add("Shift + F8");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Graph 2D/3D View - Only N/A");
this.listView.Items.Add("Ctrl + Up");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Increase Selected Cells");
this.listView.Items.Add("Ctrl + Down");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Decrease Selected Cells");
this.listView.Items.Add("Ctrl + J");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Adjust Selection");
this.listView.Items.Add("Page Up");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Increase Selected Cells #2");
this.listView.Items.Add("Page Down");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Decrease Selected Cells #2");
this.listView.Items.Add("Ctrl + Shift + G");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Clear Current Selection");
this.listView.Items.Add("Ctrl + Shift + M");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Smooth current selection/map");
this.listView.Items.Add("Ctrl + Shift + R");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Interpolate rows");
this.listView.Items.Add("Ctrl + Shift + C");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Interpolate columns");
this.listView.Items.Add("Ctrl + Shift + I");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Interpolate All X & Y");
this.listView.Items.Add("Shift + Alt + Left");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Increase map size width");
this.listView.Items.Add("Shift + Alt + Right");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Decrease map size width");
this.listView.Items.Add("Alt + M");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Map trail toggle");
this.listView.Items.Add("Ctrl + Alt + C");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Clear all recording");
this.listView.Items.Add("Shift + F10");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Clear live plot");
this.listView.Items.Add("Alt + V");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Follow Vtec");
this.listView.Items.Add("Alt + D");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Follow Secondary Map");
this.listView.Items.Add("2D/3D Editing:");
this.listView.Items.Add("Right Clic + Move");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Select cells in visual mode");
this.listView.Items.Add("Left Clic + Move");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Adjust selected cells in visual mode");
this.listView.Items.Add("Escape");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Press escape to cancel the current dragging");
ResetKeyValue();
return;
case "emulator":
this.listView.Items.Clear();
this.listView.Items.Add("Ctrl + Shift + E");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Connect to emulator");
this.listView.Items.Add("Ctrl + Shift + P");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Upload Rom");
this.listView.Items.Add("Ctrl + Shift + G");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Get Rom");
this.listView.Items.Add("Ctrl + Shift + V");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Verify Rom");
this.listView.Items.Add("Ctrl + Shift + C");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Upload calibration");
this.listView.Items.Add("Ctrl + Shift + T");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Realtime update toggle");
ResetKeyValue();
return;
case "datalog":
this.listView.Items.Clear();
this.listView.Items.Add("Ctrl + Alt + D");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Connect to ecu/datalogging");
this.listView.Items.Add("Ctrl + Alt + L");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Open datalog file");
this.listView.Items.Add("Ctrl + Alt + S");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Save datalog file");
this.listView.Items.Add("Ctrl + Alt + Up");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Play datalog file");
this.listView.Items.Add("Ctrl + Alt + Down");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Pause datalog file");
this.listView.Items.Add("Ctrl + L");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Scroll tru datalog file");
this.listView.Items.Add("Alt + T");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Smart track toggle");
this.listView.Items.Add("Alt + M");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Map trail toggle");
this.listView.Items.Add("Ctrl + D");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Datalog Display");
this.listView.Items.Add("Ctrl + S");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Datalog Data");
this.listView.Items.Add("Ctrl + G");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Datalog Graphs");
ResetKeyValue();
return;
case "datalogG":
this.listView.Items.Clear();
this.listView.Items.Add("Ctrl + Left");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Move datalog cursor left");
this.listView.Items.Add("Ctrl + Right");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Move datalog cursor right");
this.listView.Items.Add("Ctrl + Shift + Left");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Move datalog cursor large step left");
this.listView.Items.Add("Ctrl + Shift + Right");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Move datalog cursor large step right");
this.listView.Items.Add("Ctrl + Shift + Up");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Zoom in");
this.listView.Items.Add("Ctrl + Shift + Down");
this.listView.Items[this.listView.Items.Count - 1].SubItems.Add("Zoom out");
ResetKeyValue();
return;
}
}
private void ResetKeyValue()
{
for (int i = 0; i < this.listView.Items.Count; i++)
{
if (this.listView.Items[i].SubItems.Count > 1)
//if (this.listView.SelectedItems[0].SubItems.Count > 1)
{
if (this.frmMain_0.class10_settings_0.GetKeySettings(this.listView.Items[i].SubItems[1].Text))
//if (this.frmMain_0.class10_settings_0.GetKeySettings(this.listView.SelectedItems[0].SubItems[1].Text))
{
string KeyValue = "";
if (this.frmMain_0.class10_settings_0.Shortcut_PressCTRL) KeyValue += "Ctrl + ";
if (this.frmMain_0.class10_settings_0.Shortcut_PressALT) KeyValue += "Alt + ";
if (this.frmMain_0.class10_settings_0.Shortcut_PressSHIFT) KeyValue += "Shift + ";
KeyValue += this.frmMain_0.class10_settings_0.Shortcut_KeyName;
this.listView.Items[i].SubItems[0].Text = KeyValue;
//this.listView.SelectedItems[0].SubItems[0].Text = KeyValue;
}
}
}
}
private void Button1_Click(object sender, EventArgs e)
{
if (label3.Text != "")
{
string ShortcutString = "";
ShortcutString += this.chk_CTRL.Checked.ToString() + "~";
ShortcutString += this.chk_ALT.Checked.ToString() + "~";
ShortcutString += this.chk_SHIFT.Checked.ToString() + "~";
ShortcutString += this.comboBox1.Text + "~";
ShortcutString += label3.Text;
this.frmMain_0.class10_settings_0.SaveThisShortcuts(ShortcutString);
}
}
private void ListView_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.listView.SelectedItems.Count > 0)
{
if (this.listView.SelectedItems[0].SubItems.Count > 1)
{
string Desc = this.listView.SelectedItems[0].SubItems[1].Text;
for (int i = 0; i < this.frmMain_0.class10_settings_0.ShortcutsKeys.Count; i++)
{
if (this.frmMain_0.class10_settings_0.ShortcutsKeys[i].Contains("~"))
{
string[] SplittedCMD2 = this.frmMain_0.class10_settings_0.ShortcutsKeys[i].Split('~');
if (Desc == SplittedCMD2[4])
{
//find exact string
int ThisIndex = this.comboBox1.FindStringExact(SplittedCMD2[3]);
if (ThisIndex != -1)
{
this.chk_CTRL.Checked = bool.Parse(SplittedCMD2[0]);
this.chk_ALT.Checked = bool.Parse(SplittedCMD2[1]);
this.chk_SHIFT.Checked = bool.Parse(SplittedCMD2[2]);
this.comboBox1.SelectedIndex = ThisIndex;
this.label3.Text = SplittedCMD2[4];
}
else
{
//not founf find possible match
ThisIndex = this.comboBox1.FindString(SplittedCMD2[3]);
}
if (ThisIndex != -1)
{
this.chk_CTRL.Checked = bool.Parse(SplittedCMD2[0]);
this.chk_ALT.Checked = bool.Parse(SplittedCMD2[1]);
this.chk_SHIFT.Checked = bool.Parse(SplittedCMD2[2]);
this.comboBox1.SelectedIndex = ThisIndex;
this.label3.Text = SplittedCMD2[4];
}
i = this.frmMain_0.class10_settings_0.ShortcutsKeys.Count;
}
}
}
}
}
}
}

1787
frmShortKeys.resx Normal file

File diff suppressed because it is too large Load Diff

116
frmUnZIP.cs Normal file
View File

@ -0,0 +1,116 @@
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
internal class frmUnZIP : Form
{
private PictureBox pictureBox1;
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
public frmUnZIP()
{
this.InitializeComponent();
}
public void SetPercent(int Percent)
{
try
{
this.progressBar1.Value = Percent;
this.Refresh();
//Thread.Sleep(10);
if (Percent == 100) this.Close();
}
catch { }
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmUnZIP));
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 159);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(212, 31);
this.label1.TabIndex = 28;
this.label1.Text = "UNZIPPING FILES !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 189);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(212, 10);
this.progressBar1.TabIndex = 29;
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = global::Properties.Resources.unzip;
this.pictureBox1.Location = new System.Drawing.Point(10, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(212, 149);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false;
//
// frmUnZIP
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(232, 209);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmUnZIP";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Updating";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
}

1787
frmUnZIP.resx Normal file

File diff suppressed because it is too large Load Diff

582
frmUploadBaserom.cs Normal file
View File

@ -0,0 +1,582 @@
using Data;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Collections.Generic;
using System.Windows.Forms;
internal class frmUploadBaserom : Form
{
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
private Label label2;
private TextBox textBox1;
private TextBox textBox2;
private Label label3;
private TextBox textBox3;
private Label label4;
private Label label6;
private Panel panel1;
private Panel panel3;
private Button button1;
private TextBox textBox6;
private Label label5;
private ComboBox comboBox2;
private OpenFileDialog openFileDialog1;
private Class18 class18_0;
private string ErrorString = "";
private byte[] FileBytes = new byte[] { };
private string FilePath = "";
private string NewPath = "";
private string string_11_2 = "https://raw.githubusercontent.com/bouletmarc/BMTune_Server/master/";
private string IPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\BMTune\";
private Label label7;
private string FTPSite = "ftp://files.000webhost.com/All/bins/";
public frmUploadBaserom(ref Class18 class18_1)
{
this.InitializeComponent();
class18_0 = class18_1;
button1.Enabled = false;
this.comboBox2.SelectedIndex = 0;
if (!Directory.Exists(IPath)) Directory.CreateDirectory(IPath);
textBox6.Text = "";
label1.Text = "Select a File";
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmUploadBaserom));
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.textBox6 = new System.Windows.Forms.TextBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.label7 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(417, 22);
this.label1.TabIndex = 28;
this.label1.Text = "UPDATING !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 221);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(417, 11);
this.progressBar1.TabIndex = 29;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(58, 14);
this.label2.TabIndex = 31;
this.label2.Text = "Filename:";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(113, 7);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(292, 20);
this.textBox1.TabIndex = 32;
this.textBox1.Text = "DOUBLE CLIC TO SELECT YOUR FILE";
this.textBox1.DoubleClick += new System.EventHandler(this.textBox1_DoubleClick);
//
// textBox2
//
this.textBox2.Enabled = false;
this.textBox2.Location = new System.Drawing.Point(113, 29);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(292, 20);
this.textBox2.TabIndex = 34;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 32);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(73, 14);
this.label3.TabIndex = 33;
this.label3.Text = "Description:";
//
// textBox3
//
this.textBox3.Enabled = false;
this.textBox3.Location = new System.Drawing.Point(113, 51);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(164, 20);
this.textBox3.TabIndex = 36;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 54);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(46, 14);
this.label4.TabIndex = 35;
this.label4.Text = "Owner:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 76);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(78, 14);
this.label6.TabIndex = 38;
this.label6.Text = "Engine Serie:";
//
// panel1
//
this.panel1.Controls.Add(this.textBox6);
this.panel1.Controls.Add(this.comboBox2);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.textBox1);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.textBox2);
this.panel1.Controls.Add(this.textBox3);
this.panel1.Controls.Add(this.label4);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(10, 32);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(417, 122);
this.panel1.TabIndex = 40;
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(113, 97);
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.Size = new System.Drawing.Size(41, 20);
this.textBox6.TabIndex = 41;
this.textBox6.Text = "1.00";
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.Enabled = false;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Customs",
"Serie B",
"Serie D",
"Serie F",
"Serie H"});
this.comboBox2.Location = new System.Drawing.Point(113, 73);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(164, 22);
this.comboBox2.TabIndex = 38;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 100);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(100, 14);
this.label5.TabIndex = 40;
this.label5.Text = "Baserom Version:";
//
// panel3
//
this.panel3.Controls.Add(this.label7);
this.panel3.Controls.Add(this.button1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(10, 160);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(417, 61);
this.panel3.TabIndex = 42;
//
// button1
//
this.button1.Enabled = false;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Blue;
this.button1.Location = new System.Drawing.Point(150, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(127, 28);
this.button1.TabIndex = 0;
this.button1.Text = "Upload File";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// openFileDialog1
//
this.openFileDialog1.DefaultExt = "*.bin";
this.openFileDialog1.Filter = "BMTune Binary|*.bin";
this.openFileDialog1.Title = "Open BMtune baserom (.bin)";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.Red;
this.label7.Location = new System.Drawing.Point(11, 44);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(394, 12);
this.label7.TabIndex = 1;
this.label7.Text = "** NO MORE AVAILABLE, FTP CONNECTION DISABLED SINCE V1.95 **";
//
// frmUploadBaserom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(437, 242);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmUploadBaserom";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Baserom Uploader";
this.Load += new System.EventHandler(this.frmAboutBox_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
/*this.progressBar1.Value = 5;
label1.Text = "Checking Errors";
string ThisError = "";
if (!textBox1.Text.Contains(".bin")) textBox1.Text += ".bin";
if (textBox1.Text == "") ThisError = "Empty Filename";
if (textBox1.Text.Length < 8) ThisError = "Filename too short";
if (textBox1.Text.Length > 40) ThisError = "Filename too long";
if (textBox1.Text.Contains("|")) ThisError = "Filename cannot contain char '|'";
if (textBox2.Text == "") ThisError = "Empty Description";
if (textBox2.Text.Length < 10) ThisError = "Description too short";
if (textBox2.Text.Length > 60) ThisError = "Description too long";
if (textBox2.Text.Contains("|")) ThisError = "Description cannot contain char '|'";
if (textBox3.Text == "") textBox3.Text = "ANONYMOUS";
if (textBox3.Text.Length < 5) ThisError = "Owner name too short";
if (textBox3.Text.Length > 20) ThisError = "Owner name too long";
if (textBox3.Text.Contains("|")) ThisError = "Owner cannot contain char '|'";
if (textBox1.Text.Length > 4 && textBox1.Text.Substring(textBox1.Text.Length - 4) != ".bin") textBox1.Text = textBox1.Text + ".bin";
this.progressBar1.Value = 10;
if (IsFileExistant()) ThisError = "File already exist online";
else if (label1.Text == "Not Connected") ThisError = "Not Connected to internet";
this.progressBar1.Value = 15;
if (ThisError != "")
{
MessageBox.Show(Form.ActiveForm, ThisError, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
label1.Text = "Error Found";
}
else
{
label1.Text = "Uploading";
this.progressBar1.Value = 25;
string FTPList = "";
try
{
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("bmtune", "BNIKs7wx@EuPu$yqwXBa");
client.DownloadFile(FTPSite + "FTPList.txt", IPath + "FTPList.txt");
StreamReader reader = new StreamReader(IPath + "FTPList.txt");
FTPList = reader.ReadToEnd();
reader.Close();
reader.Dispose();
reader = null;
FileInfo info = new FileInfo(IPath + "FTPList.txt");
if (info.Exists) info.Delete();
info = null;
}
catch { }
this.progressBar1.Value = 50;
//Create .bin copy
NewPath = IPath + textBox1.Text;
File.Create(NewPath).Dispose();
File.WriteAllBytes(NewPath, File.ReadAllBytes(FilePath));
//Create description .txt infos
FTPList += textBox1.Text + "|" + textBox2.Text + "|" + textBox3.Text + "|" + comboBox2.Text + "|" + textBox6.Text + Environment.NewLine;
string DescPath = IPath + "FTPList.txt";
StreamWriter writer = new StreamWriter(DescPath, false);
writer.Write(FTPList);
writer.Close();
writer.Dispose();
writer = null;
//send files
SendFTP(NewPath);
this.progressBar1.Value = 75;
SendFTP(DescPath);
FileInfo info2 = new FileInfo(NewPath);
if (info2.Exists) info2.Delete();
info2 = null;
info2 = new FileInfo(DescPath);
if (info2.Exists) info2.Delete();
info2 = null;
if ( label1.Text == "Uploaded") MessageBox.Show(Form.ActiveForm, "File correctly sent!\nAllow some time to the server to upload it", "BMtune", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
this.progressBar1.Value = 0;*/
}
/*bool IsFileExistant()
{
bool ExistOnline = false;
try
{
label1.Text = "Checking Existence";
string TPath = IPath + "FilesList.txt";
WebClient webClient = new WebClient();
webClient.DownloadProgressChanged += delegate (object sender, DownloadProgressChangedEventArgs e) { this.progressBar1.Value = e.ProgressPercentage; };
webClient.DownloadFileAsync(new Uri(string_11_2 + "FilesList.txt"), TPath);
while (webClient.IsBusy) { Application.DoEvents(); }
this.progressBar1.Value = 0;
label1.Text = "";
string[] AllText = File.ReadAllLines(IPath + "FilesList.txt");
if (AllText.Length > 0)
{
for (int i = 0; i < AllText.Length; i++)
{
if (AllText[i].Contains("|"))
{
string[] SplitCMD = AllText[i].Split('|');
if (SplitCMD[0] == textBox1.Text) ExistOnline = true;
}
}
}
}
catch
{
label1.Text = "Not Connected";
}
return ExistOnline;
}
void SendFTP(string FilepathT)
{
try
{
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("bmtune", "BNIKs7wx@EuPu$yqwXBa");
client.UploadFile(FTPSite + Path.GetFileName(FilepathT), FilepathT);
label1.Text = "Uploaded";
}
catch
{
label1.Text = "Can't Upload";
}
}*/
private void CheckCompatibility(string ThisFilePath)
{
try
{
FileBytes = File.ReadAllBytes(ThisFilePath);
if (CanUploadFile())
{
label1.Text = "File Compatible";
FilePath = ThisFilePath;
textBox1.Text = Path.GetFileName(ThisFilePath);
textBox2.Enabled = true;
textBox3.Enabled = true;
comboBox2.Enabled = true;
//button1.Enabled = true;
}
else
{
label1.Text = "File Not Compatible";
textBox1.Text = "DOUBLE CLIC TO SELECT YOUR FILE";
textBox2.Enabled = false;
textBox3.Enabled = false;
comboBox2.Enabled = false;
button1.Enabled = false;
}
}
catch
{
label1.Text = "File Not Compatible";
textBox1.Text = "DOUBLE CLIC TO SELECT YOUR FILE";
textBox2.Enabled = false;
textBox3.Enabled = false;
comboBox2.Enabled = false;
button1.Enabled = false;
}
}
private void textBox1_DoubleClick(object sender, EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
this.progressBar1.Value = 5;
CheckCompatibility(openFileDialog1.FileName);
this.progressBar1.Value = 0;
}
}
public bool CanUploadFile()
{
label1.Text = "Getting Compatibility";
bool CanUpload = false;
ErrorString = "";
if (FileBytes.Length < 32768)
{
ErrorString = "Incomplete baserom";
}
else {
if ((FileBytes[0x7ffaL] == 0x42) && (FileBytes[0x7ffbL] == 0x4d) && (FileBytes[0x7ffcL] == 0x54) && (FileBytes[0x7ffdL] == 0x75) && (FileBytes[0x7ffeL] == 0x6e) && (FileBytes[0x7fffL] == 0x65))
{
if (FileBytes[0x7ff1L] != 0xff)
{
string VStr = ((int)(FileBytes[0x7fefL])).ToString() + ((int)(FileBytes[0x7ff0L])).ToString() + ((int)(FileBytes[0x7ff1L])).ToString();
int RomVersion = int.Parse(VStr);
//unstable baserom
//this.class18_0.LoadBinaryFiles();
if (!this.class18_0.Binary_Files_0.IsStable(RomVersion - 100)) ErrorString = "Unstable baserom";
//this.class18_0.CloseBinaryFiles();
//Get Protection
bool Protected = false;
for (int i = 0; i < 32; i++) if (FileBytes[0x5ea6L + i] != 0xff) Protected = true;
if (Protected) ErrorString = "Protected baserom";
else
{
if (ErrorString == "")
{
textBox6.Text = "1.";
if (RomVersion - 100 < 10) textBox6.Text += "0";
textBox6.Text += (RomVersion - 100).ToString();
ErrorString = "Correct";
}
}
}
else
{
ErrorString = "Free baserom";
}
}
}
//Is Loaded ?
if (ErrorString != "Correct")
{
string ThisError = ErrorString;
if (ErrorString == "") ThisError = GetFileType();
MessageBox.Show(Form.ActiveForm, ThisError, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
CanUpload = true;
}
return CanUpload;
}
private string GetFileType()
{
//0x0210 = 528 ... eCtune=196, P30=71, Gold=137, P72=228, Neptune=16, P28=212
//Get Other Softwares
string Error_Str = "";
if (FileBytes[528] == 0x2e && FileBytes[529] == 0xf9 && FileBytes[530] == 0x7d) Error_Str = "Crome P30 baserom";
else if (FileBytes[528] == 228 && FileBytes[529] == 0xf8 && FileBytes[530] == 0xa2) Error_Str = "Crome P72 baserom";
else if (FileBytes[528] == 212 && FileBytes[529] == 0x1a && FileBytes[530] == 0x02) Error_Str = "Crome P28 baserom";
else if (FileBytes[528] == 137 && FileBytes[529] == 0xc6 && FileBytes[530] == 0xab) Error_Str = "Crome Gold baserom";
else if (FileBytes[528] == 19) Error_Str = "Hondata S200 baserom";
else if (FileBytes[528] == 16 && FileBytes[529] == 0x8a && FileBytes[530] == 0xc4) Error_Str = "Neptune baserom";
if (FileBytes[0x7fef] == 0x65 && FileBytes[0x7ff0] == 43 && FileBytes[0x7ff1] == 0x74 && FileBytes[0x7ff2] == 0xA9) Error_Str = "eCtune baserom";
if (Error_Str == "") Error_Str = "Can't load the file!";
return Error_Str;
}
}

1790
frmUploadBaserom.resx Normal file

File diff suppressed because it is too large Load Diff

106
frmWaiting.cs Normal file
View File

@ -0,0 +1,106 @@
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
internal class frmWaiting : Form
{
private PictureBox pictureBox1;
private Label label1;
public ProgressBar progressBar1;
private IContainer icontainer_0;
public frmWaiting()
{
this.InitializeComponent();
progressBar1.Visible = false;
this.Size = new Size(132, 152);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void frmAboutBox_Load(object sender, EventArgs e)
{
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmWaiting));
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Lucida Sans", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(10, 120);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(112, 31);
this.label1.TabIndex = 28;
this.label1.Text = "Please wait !";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 132);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(112, 10);
this.progressBar1.TabIndex = 29;
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = global::Properties.Resources.Piston_Animation_Small;
this.pictureBox1.Location = new System.Drawing.Point(10, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(112, 110);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false;
//
// frmWaiting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(132, 169);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmWaiting";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Updating";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmAboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
}

1787
frmWaiting.resx Normal file

File diff suppressed because it is too large Load Diff

BIN
mts.dll Normal file

Binary file not shown.

BIN
mtssdk.ocx Normal file

Binary file not shown.

4
packages.config Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ncalc" version="1.3.8" targetFramework="net45" />
</packages>

518
parmAc.cs Normal file
View File

@ -0,0 +1,518 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmAc : UserControl
{
private bool bool_0;
private CheckBox chkAcCut;
private CheckBox chkDisable;
private Class18 class18_0;
private ErrorProvider errorProvider_0;
private GroupBox groupBox2;
private GroupBox groupBox3;
private IContainer icontainer_0;
private Label label1;
private Label label2;
private Label label7;
private Label label8;
private IContainer components;
private GroupBox groupBox1;
private NumericUpDown txtbCutTps;
private NumericUpDown txtbCutRpm;
private NumericUpDown txtbIdleCut;
private NumericUpDown txtbIdleRes;
private Panel panel2;
private NumericUpDown numericUpDown1;
private Label label3;
private Panel panel1;
public parmAc(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_0);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_0);
this.InitializeComponent();
if (this.class18_0.RomVersion < 110)
{
panel2.Visible = false;
}
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void chkAcCut_CheckedChanged(object sender, EventArgs e)
{
if (this.chkAcCut.Checked)
{
this.txtbCutTps.Enabled = true;
this.txtbCutRpm.Enabled = true;
this.numericUpDown1.Enabled = true;
}
else
{
this.txtbCutRpm.Enabled = false;
this.txtbCutTps.Enabled = false;
this.numericUpDown1.Enabled = false;
}
if (!this.bool_0)
{
this.method_1();
this.parmAc_Load(null, null);
}
}
private void chkDisable_CheckedChanged(object sender, EventArgs e)
{
this.method_1();
this.parmAc_Load(null, null);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.chkDisable = new System.Windows.Forms.CheckBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.panel2 = new System.Windows.Forms.Panel();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.label3 = new System.Windows.Forms.Label();
this.txtbCutTps = new System.Windows.Forms.NumericUpDown();
this.txtbCutRpm = new System.Windows.Forms.NumericUpDown();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.chkAcCut = new System.Windows.Forms.CheckBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txtbIdleCut = new System.Windows.Forms.NumericUpDown();
this.txtbIdleRes = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtbCutTps)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtbCutRpm)).BeginInit();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbIdleCut)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtbIdleRes)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// chkDisable
//
this.chkDisable.AutoSize = true;
this.chkDisable.Location = new System.Drawing.Point(16, 19);
this.chkDisable.Name = "chkDisable";
this.chkDisable.Size = new System.Drawing.Size(84, 18);
this.chkDisable.TabIndex = 1;
this.chkDisable.Text = "Disable AC";
this.chkDisable.UseVisualStyleBackColor = true;
this.chkDisable.CheckedChanged += new System.EventHandler(this.chkDisable_CheckedChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.panel2);
this.groupBox3.Controls.Add(this.txtbCutTps);
this.groupBox3.Controls.Add(this.txtbCutRpm);
this.groupBox3.Controls.Add(this.label7);
this.groupBox3.Controls.Add(this.label8);
this.groupBox3.Controls.Add(this.chkAcCut);
this.groupBox3.Location = new System.Drawing.Point(10, 42);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(195, 112);
this.groupBox3.TabIndex = 5;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "AC Cutoff";
//
// panel2
//
this.panel2.Controls.Add(this.numericUpDown1);
this.panel2.Controls.Add(this.label3);
this.panel2.Location = new System.Drawing.Point(1, 83);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(192, 24);
this.panel2.TabIndex = 7;
//
// numericUpDown1
//
this.numericUpDown1.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.numericUpDown1.Location = new System.Drawing.Point(124, 2);
this.numericUpDown1.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(62, 20);
this.numericUpDown1.TabIndex = 12;
this.numericUpDown1.Click += new System.EventHandler(this.txtbIdleCut_Validated);
this.numericUpDown1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbIdleCut_KeyPress);
this.numericUpDown1.Validating += new System.ComponentModel.CancelEventHandler(this.txtbIdleCut_Validating);
this.numericUpDown1.Validated += new System.EventHandler(this.txtbIdleCut_Validated);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(5, 5);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(83, 14);
this.label3.TabIndex = 11;
this.label3.Text = "Above Speed:";
//
// txtbCutTps
//
this.txtbCutTps.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txtbCutTps.Location = new System.Drawing.Point(125, 61);
this.txtbCutTps.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txtbCutTps.Name = "txtbCutTps";
this.txtbCutTps.Size = new System.Drawing.Size(62, 20);
this.txtbCutTps.TabIndex = 10;
this.txtbCutTps.Click += new System.EventHandler(this.txtbIdleCut_Validated);
this.txtbCutTps.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbIdleCut_KeyPress);
this.txtbCutTps.Validating += new System.ComponentModel.CancelEventHandler(this.txtbIdleCut_Validating);
this.txtbCutTps.Validated += new System.EventHandler(this.txtbIdleCut_Validated);
//
// txtbCutRpm
//
this.txtbCutRpm.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txtbCutRpm.Location = new System.Drawing.Point(125, 37);
this.txtbCutRpm.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txtbCutRpm.Name = "txtbCutRpm";
this.txtbCutRpm.Size = new System.Drawing.Size(62, 20);
this.txtbCutRpm.TabIndex = 9;
this.txtbCutRpm.Click += new System.EventHandler(this.txtbIdleCut_Validated);
this.txtbCutRpm.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbIdleCut_KeyPress);
this.txtbCutRpm.Validating += new System.ComponentModel.CancelEventHandler(this.txtbIdleCut_Validating);
this.txtbCutRpm.Validated += new System.EventHandler(this.txtbIdleCut_Validated);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 64);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(68, 14);
this.label7.TabIndex = 7;
this.label7.Text = "Above TPS:";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(6, 42);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(70, 14);
this.label8.TabIndex = 6;
this.label8.Text = "Above RPM:";
//
// chkAcCut
//
this.chkAcCut.AutoSize = true;
this.chkAcCut.Location = new System.Drawing.Point(6, 19);
this.chkAcCut.Name = "chkAcCut";
this.chkAcCut.Size = new System.Drawing.Size(117, 18);
this.chkAcCut.TabIndex = 6;
this.chkAcCut.Text = "Enable AC Cutoff";
this.chkAcCut.UseVisualStyleBackColor = true;
this.chkAcCut.CheckedChanged += new System.EventHandler(this.chkAcCut_CheckedChanged);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.txtbIdleCut);
this.groupBox2.Controls.Add(this.txtbIdleRes);
this.groupBox2.Controls.Add(this.label2);
this.groupBox2.Controls.Add(this.label1);
this.groupBox2.Location = new System.Drawing.Point(10, 160);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(195, 60);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Idle Recovery";
//
// txtbIdleCut
//
this.txtbIdleCut.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txtbIdleCut.Location = new System.Drawing.Point(125, 11);
this.txtbIdleCut.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txtbIdleCut.Name = "txtbIdleCut";
this.txtbIdleCut.Size = new System.Drawing.Size(62, 20);
this.txtbIdleCut.TabIndex = 11;
this.txtbIdleCut.Click += new System.EventHandler(this.txtbIdleCut_Validated);
this.txtbIdleCut.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbIdleCut_KeyPress);
this.txtbIdleCut.Validating += new System.ComponentModel.CancelEventHandler(this.txtbIdleCut_Validating);
this.txtbIdleCut.Validated += new System.EventHandler(this.txtbIdleCut_Validated);
//
// txtbIdleRes
//
this.txtbIdleRes.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txtbIdleRes.Location = new System.Drawing.Point(125, 34);
this.txtbIdleRes.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txtbIdleRes.Name = "txtbIdleRes";
this.txtbIdleRes.Size = new System.Drawing.Size(62, 20);
this.txtbIdleRes.TabIndex = 12;
this.txtbIdleRes.Click += new System.EventHandler(this.txtbIdleCut_Validated);
this.txtbIdleRes.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbIdleCut_KeyPress);
this.txtbIdleRes.Validating += new System.ComponentModel.CancelEventHandler(this.txtbIdleCut_Validating);
this.txtbIdleRes.Validated += new System.EventHandler(this.txtbIdleCut_Validated);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 38);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 14);
this.label2.TabIndex = 1;
this.label2.Text = "Resume Above RPM:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(90, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Cut Below RPM:";
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.chkDisable);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(215, 226);
this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "AC Settings";
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(236, 296);
this.panel1.TabIndex = 7;
//
// parmAc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Name = "parmAc";
this.Size = new System.Drawing.Size(236, 296);
this.Load += new System.EventHandler(this.parmAc_Load);
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtbCutTps)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtbCutRpm)).EndInit();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbIdleCut)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtbIdleRes)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private void method_0()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmAc_Load(null, null);
}
}
private void method_1()
{
if (!this.bool_0)
{
this.class18_0.method_155("AC settings");
if (this.chkAcCut.Checked)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_123, 0xff);
}
else
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_123, 0);
}
this.class18_0.method_151(this.class18_0.class13_u_0.long_124, this.class18_0.method_219(int.Parse(this.txtbCutRpm.Text)));
this.class18_0.method_151(this.class18_0.class13_u_0.long_121, this.class18_0.method_219(int.Parse(this.txtbIdleCut.Text)));
this.class18_0.method_151(this.class18_0.class13_u_0.long_122, this.class18_0.method_219(int.Parse(this.txtbIdleRes.Text)));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_125, this.class18_0.method_228(int.Parse(this.txtbCutTps.Text)));
if (this.chkDisable.Checked)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_77, 0xff);
}
else
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_77, 0);
}
if (this.class18_0.RomVersion < 110)
{
panel2.Visible = false;
}
else
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_475, this.class18_0.method_233(int.Parse(this.numericUpDown1.Text)));
}
this.parmAc_Load(null, null);
this.class18_0.method_153();
}
}
private void parmAc_Load(object sender, EventArgs e)
{
this.bool_0 = true;
this.chkAcCut.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_123) == 0xff;
this.txtbCutRpm.Text = this.class18_0.method_218(this.class18_0.method_152(this.class18_0.class13_u_0.long_124)).ToString();
this.txtbIdleCut.Text = this.class18_0.method_218(this.class18_0.method_152(this.class18_0.class13_u_0.long_121)).ToString();
this.txtbIdleRes.Text = this.class18_0.method_218(this.class18_0.method_152(this.class18_0.class13_u_0.long_122)).ToString();
this.txtbCutTps.Text = this.class18_0.method_198(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_125)).ToString();
this.chkDisable.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_77) == 0xff;
if (this.chkDisable.Checked)
{
this.groupBox2.Enabled = false;
this.groupBox3.Enabled = false;
}
else
{
this.groupBox2.Enabled = true;
this.groupBox3.Enabled = true;
}
if (this.chkAcCut.Checked)
{
this.txtbCutTps.Enabled = true;
this.txtbCutRpm.Enabled = true;
this.numericUpDown1.Enabled = true;
}
else
{
this.txtbCutRpm.Enabled = false;
this.txtbCutTps.Enabled = false;
this.numericUpDown1.Enabled = false;
}
if (this.class18_0.RomVersion < 110)
{
panel2.Visible = false;
}
else
{
this.numericUpDown1.Text = this.class18_0.method_197(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_475)).ToString();
}
this.bool_0 = false;
}
private void txtbIdleCut_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_1();
}
control.Focus();
}
}
private void txtbIdleCut_Validated(object sender, EventArgs e)
{
this.method_1();
}
private void txtbIdleCut_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, integer required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
if (!e.Cancel && ((control.Name == "txtbIdleCut") || (control.Name == "txtbIdleRes")))
{
if (int.Parse(this.txtbIdleCut.Text) >= int.Parse(this.txtbIdleRes.Text))
{
this.errorProvider_0.SetError(control, "Idle cut should be higer then idle resume!");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}
}

123
parmAc.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

539
parmAntiStart.cs Normal file
View File

@ -0,0 +1,539 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmAntiStart : UserControl
{
private bool bool_0;
private Class18 class18_0;
private GroupBox groupBox1;
private GroupBox grp_TPS;
private IContainer icontainer_0;
private Label label2;
private TextBox txt_TPS_Min;
private CheckBox chk_TPS;
private Panel panel1;
private Label label7;
private Label label1;
private GroupBox grp_Input;
private Label label8;
private ComboBox cmb_ACS;
private ComboBox cmb_VTP;
private Label label9;
private ComboBox cmb_PSP;
private Label label12;
private Label label10;
private ComboBox cmb_BKSW;
private ComboBox cmb_SCS;
private Label label11;
private ErrorProvider errorProvider_0;
private IContainer components;
private CheckBox chk_AntiEnable;
private Label label4;
private NumericUpDown txt_RPM;
private TextBox txt_TPS_Max;
public parmAntiStart(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_0);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_0);
this.InitializeComponent();
if (this.class18_0.RomVersion < 104)
{
groupBox1.Enabled = false;
this.label7.Text = "THIS BASEROM VERSION\nDOESN'T INCLUDE ANTITHEFT!";
}
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txt_RPM = new System.Windows.Forms.NumericUpDown();
this.label4 = new System.Windows.Forms.Label();
this.chk_AntiEnable = new System.Windows.Forms.CheckBox();
this.grp_Input = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.cmb_ACS = new System.Windows.Forms.ComboBox();
this.cmb_VTP = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.cmb_PSP = new System.Windows.Forms.ComboBox();
this.label12 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.cmb_BKSW = new System.Windows.Forms.ComboBox();
this.cmb_SCS = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
this.grp_TPS = new System.Windows.Forms.GroupBox();
this.chk_TPS = new System.Windows.Forms.CheckBox();
this.txt_TPS_Max = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.txt_TPS_Min = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txt_RPM)).BeginInit();
this.grp_Input.SuspendLayout();
this.grp_TPS.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txt_RPM);
this.groupBox1.Controls.Add(this.grp_TPS);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.chk_AntiEnable);
this.groupBox1.Controls.Add(this.grp_Input);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(319, 306);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Anti-Theft Protection";
//
// txt_RPM
//
this.txt_RPM.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txt_RPM.Location = new System.Drawing.Point(100, 56);
this.txt_RPM.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txt_RPM.Name = "txt_RPM";
this.txt_RPM.Size = new System.Drawing.Size(75, 20);
this.txt_RPM.TabIndex = 24;
this.txt_RPM.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_RPM_KeyPress);
this.txt_RPM.Validating += new System.ComponentModel.CancelEventHandler(this.txt_RPM_Validating);
this.txt_RPM.Validated += new System.EventHandler(this.txt_RPM_Validated);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(20, 58);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(74, 14);
this.label4.TabIndex = 10;
this.label4.Text = "Limit RPM to:";
//
// chk_AntiEnable
//
this.chk_AntiEnable.AutoSize = true;
this.chk_AntiEnable.Location = new System.Drawing.Point(17, 27);
this.chk_AntiEnable.Name = "chk_AntiEnable";
this.chk_AntiEnable.Size = new System.Drawing.Size(177, 18);
this.chk_AntiEnable.TabIndex = 23;
this.chk_AntiEnable.Text = "Enable Anti-Theft Protection";
this.chk_AntiEnable.UseVisualStyleBackColor = true;
this.chk_AntiEnable.CheckedChanged += new System.EventHandler(this.chk_TPS_CheckedChanged);
//
// grp_Input
//
this.grp_Input.Controls.Add(this.label8);
this.grp_Input.Controls.Add(this.cmb_ACS);
this.grp_Input.Controls.Add(this.cmb_VTP);
this.grp_Input.Controls.Add(this.label9);
this.grp_Input.Controls.Add(this.cmb_PSP);
this.grp_Input.Controls.Add(this.label12);
this.grp_Input.Controls.Add(this.label10);
this.grp_Input.Controls.Add(this.cmb_BKSW);
this.grp_Input.Controls.Add(this.cmb_SCS);
this.grp_Input.Controls.Add(this.label11);
this.grp_Input.Location = new System.Drawing.Point(6, 91);
this.grp_Input.Name = "grp_Input";
this.grp_Input.Size = new System.Drawing.Size(304, 156);
this.grp_Input.TabIndex = 22;
this.grp_Input.TabStop = false;
this.grp_Input.Text = "Inputs Conditions";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(7, 23);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(182, 14);
this.label8.TabIndex = 12;
this.label8.Text = "B5-ACS (Air Conditioning Switch)";
//
// cmb_ACS
//
this.cmb_ACS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_ACS.FormattingEnabled = true;
this.cmb_ACS.Items.AddRange(new object[] {
"Unused",
"On",
"Off"});
this.cmb_ACS.Location = new System.Drawing.Point(216, 19);
this.cmb_ACS.Name = "cmb_ACS";
this.cmb_ACS.Size = new System.Drawing.Size(79, 22);
this.cmb_ACS.TabIndex = 13;
this.cmb_ACS.SelectedIndexChanged += new System.EventHandler(this.cmb_ACS_SelectedIndexChanged);
//
// cmb_VTP
//
this.cmb_VTP.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_VTP.FormattingEnabled = true;
this.cmb_VTP.Items.AddRange(new object[] {
"Unused",
"On",
"Off"});
this.cmb_VTP.Location = new System.Drawing.Point(216, 127);
this.cmb_VTP.Name = "cmb_VTP";
this.cmb_VTP.Size = new System.Drawing.Size(79, 22);
this.cmb_VTP.TabIndex = 21;
this.cmb_VTP.SelectedIndexChanged += new System.EventHandler(this.cmb_ACS_SelectedIndexChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(7, 50);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(181, 14);
this.label9.TabIndex = 14;
this.label9.Text = "B8-PSP (Power Sterring Pressure)";
//
// cmb_PSP
//
this.cmb_PSP.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_PSP.FormattingEnabled = true;
this.cmb_PSP.Items.AddRange(new object[] {
"Unused",
"On",
"Off"});
this.cmb_PSP.Location = new System.Drawing.Point(216, 46);
this.cmb_PSP.Name = "cmb_PSP";
this.cmb_PSP.Size = new System.Drawing.Size(79, 22);
this.cmb_PSP.TabIndex = 15;
this.cmb_PSP.SelectedIndexChanged += new System.EventHandler(this.cmb_ACS_SelectedIndexChanged);
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(7, 130);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(129, 14);
this.label12.TabIndex = 20;
this.label12.Text = "D6-VTP (Vtec Pressure)";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(7, 103);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(197, 14);
this.label10.TabIndex = 16;
this.label10.Text = "D4-SCS (Service Check Connector)";
//
// cmb_BKSW
//
this.cmb_BKSW.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_BKSW.FormattingEnabled = true;
this.cmb_BKSW.Items.AddRange(new object[] {
"Unused",
"On",
"Off"});
this.cmb_BKSW.Location = new System.Drawing.Point(216, 73);
this.cmb_BKSW.Name = "cmb_BKSW";
this.cmb_BKSW.Size = new System.Drawing.Size(79, 22);
this.cmb_BKSW.TabIndex = 17;
this.cmb_BKSW.SelectedIndexChanged += new System.EventHandler(this.cmb_ACS_SelectedIndexChanged);
//
// cmb_SCS
//
this.cmb_SCS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_SCS.FormattingEnabled = true;
this.cmb_SCS.Items.AddRange(new object[] {
"Unused",
"On",
"Off"});
this.cmb_SCS.Location = new System.Drawing.Point(216, 100);
this.cmb_SCS.Name = "cmb_SCS";
this.cmb_SCS.Size = new System.Drawing.Size(79, 22);
this.cmb_SCS.TabIndex = 19;
this.cmb_SCS.SelectedIndexChanged += new System.EventHandler(this.cmb_ACS_SelectedIndexChanged);
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(7, 76);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(134, 14);
this.label11.TabIndex = 18;
this.label11.Text = "D2-BKSW (Brake Switch)";
//
// grp_TPS
//
this.grp_TPS.Controls.Add(this.chk_TPS);
this.grp_TPS.Controls.Add(this.txt_TPS_Max);
this.grp_TPS.Controls.Add(this.label1);
this.grp_TPS.Controls.Add(this.txt_TPS_Min);
this.grp_TPS.Controls.Add(this.label2);
this.grp_TPS.Location = new System.Drawing.Point(200, 19);
this.grp_TPS.Name = "grp_TPS";
this.grp_TPS.Size = new System.Drawing.Size(304, 73);
this.grp_TPS.TabIndex = 2;
this.grp_TPS.TabStop = false;
this.grp_TPS.Text = "TPS Conditions";
this.grp_TPS.Visible = false;
//
// chk_TPS
//
this.chk_TPS.AutoSize = true;
this.chk_TPS.Location = new System.Drawing.Point(13, 20);
this.chk_TPS.Name = "chk_TPS";
this.chk_TPS.Size = new System.Drawing.Size(141, 18);
this.chk_TPS.TabIndex = 8;
this.chk_TPS.Text = "Enable TPS Condition";
this.chk_TPS.UseVisualStyleBackColor = true;
this.chk_TPS.CheckedChanged += new System.EventHandler(this.chk_TPS_CheckedChanged);
//
// txt_TPS_Max
//
this.txt_TPS_Max.Location = new System.Drawing.Point(233, 45);
this.txt_TPS_Max.Name = "txt_TPS_Max";
this.txt_TPS_Max.Size = new System.Drawing.Size(42, 20);
this.txt_TPS_Max.TabIndex = 5;
this.txt_TPS_Max.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtBox_RPM_KeyPress);
this.txt_TPS_Max.Validating += new System.ComponentModel.CancelEventHandler(this.txtBox_RPM_Validating);
this.txt_TPS_Max.Validated += new System.EventHandler(this.txt_RPM_Validated);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(281, 48);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(14, 14);
this.label1.TabIndex = 9;
this.label1.Text = "%";
//
// txt_TPS_Min
//
this.txt_TPS_Min.Location = new System.Drawing.Point(185, 45);
this.txt_TPS_Min.Name = "txt_TPS_Min";
this.txt_TPS_Min.Size = new System.Drawing.Size(42, 20);
this.txt_TPS_Min.TabIndex = 3;
this.txt_TPS_Min.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtBox_RPM_KeyPress);
this.txt_TPS_Min.Validating += new System.ComponentModel.CancelEventHandler(this.txtBox_RPM_Validating);
this.txt_TPS_Min.Validated += new System.EventHandler(this.txt_RPM_Validated);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 48);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(137, 14);
this.label2.TabIndex = 1;
this.label2.Text = "TPS Between (Min/Max):";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.Red;
this.label7.Location = new System.Drawing.Point(63, 257);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(190, 36);
this.label7.TabIndex = 11;
this.label7.Text = "All the conditions are checked\r\nonly once and when the Key is\r\nfirst switched On";
this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(350, 400);
this.panel1.TabIndex = 1;
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// parmAntiStart
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "parmAntiStart";
this.Size = new System.Drawing.Size(350, 400);
this.Load += new System.EventHandler(this.parmAntiStart_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txt_RPM)).EndInit();
this.grp_Input.ResumeLayout(false);
this.grp_Input.PerformLayout();
this.grp_TPS.ResumeLayout(false);
this.grp_TPS.PerformLayout();
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.ResumeLayout(false);
}
private void method_0()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmAntiStart_Load(null, null);
}
}
private void method_6()
{
if (this.class18_0.RomVersion >= 104)
{
if (!this.bool_0)
{
this.class18_0.method_155("Anti-Theft Settings");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_430, (byte)cmb_ACS.SelectedIndex);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_431, (byte)cmb_PSP.SelectedIndex);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_432, (byte)cmb_SCS.SelectedIndex);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_433, (byte)cmb_BKSW.SelectedIndex);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_434, (byte)cmb_VTP.SelectedIndex);
/*if (chk_TPS.Checked) this.class18_0.method_149(this.class18_0.class13_0.long_435, 0xff);
else this.class18_0.method_149(this.class18_0.class13_0.long_435, 0);
this.class18_0.method_149(this.class18_0.class13_0.long_436, this.class18_0.method_228(int.Parse(this.txt_TPS_Min.Text)));
this.class18_0.method_149(this.class18_0.class13_0.long_437, this.class18_0.method_228(int.Parse(this.txt_TPS_Max.Text)));*/
this.class18_0.method_151(this.class18_0.class13_u_0.long_438, this.class18_0.method_219(int.Parse(this.txt_RPM.Text)));
if (chk_AntiEnable.Checked) this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_439, 0xff);
else this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_439, 0);
this.parmAntiStart_Load(null, null);
}
}
}
private void parmAntiStart_Load(object sender, EventArgs e)
{
if (this.class18_0.RomVersion >= 104)
{
this.bool_0 = true;
cmb_ACS.SelectedIndex = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_430);
cmb_PSP.SelectedIndex = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_431);
cmb_SCS.SelectedIndex = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_432);
cmb_BKSW.SelectedIndex = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_433);
cmb_VTP.SelectedIndex = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_434);
/*chk_TPS.Checked = this.class18_0.method_150(this.class18_0.class13_0.long_435) == 0xff;
this.txt_TPS_Min.Text = this.class18_0.method_198(this.class18_0.method_150(this.class18_0.class13_0.long_436)).ToString();
this.txt_TPS_Max.Text = this.class18_0.method_198(this.class18_0.method_150(this.class18_0.class13_0.long_437)).ToString();
this.txt_TPS_Min.Enabled = chk_TPS.Checked;
this.txt_TPS_Max.Enabled = chk_TPS.Checked;*/
chk_AntiEnable.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_439) == 0xff;
this.txt_RPM.Enabled = chk_AntiEnable.Checked;
this.grp_Input.Enabled = chk_AntiEnable.Checked;
//this.grp_TPS.Enabled = chk_AntiEnable.Checked;
this.txt_RPM.Text = this.class18_0.method_218(this.class18_0.method_152(this.class18_0.class13_u_0.long_438)).ToString();
this.bool_0 = false;
}
}
private void cmb_ACS_SelectedIndexChanged(object sender, EventArgs e)
{
method_6();
}
private void chk_TPS_CheckedChanged(object sender, EventArgs e)
{
method_6();
}
private void txt_RPM_Validated(object sender, EventArgs e)
{
method_6();
}
private void txt_RPM_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown)sender;
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, Int positive required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void txt_RPM_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown)sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_6();
}
control.Focus();
}
}
private void txtBox_RPM_Validating(object sender, CancelEventArgs e)
{
TextBox control = (TextBox)sender;
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, Int positive required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
private void txtBox_RPM_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
TextBox control = (TextBox)sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_6();
}
control.Focus();
}
}
}

123
parmAntiStart.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

395
parmBoostCut.cs Normal file
View File

@ -0,0 +1,395 @@
using Controls;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmBoostCut : UserControl
{
private bool bool_0;
private CheckBox chkEnable;
private Class18 class18_0;
private ctrlMapValue ctrlBoostCutCold;
private ctrlMapValue ctrlBoostCutHot;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private Label label1;
private Label label2;
private Label label3;
private IContainer components;
private GroupBox groupBox1;
private Label lblEct;
private Panel panel1;
private CheckBox chkBoostcutOnMil;
private GroupBox grpType;
private RadioButton rb1200;
private Label label7;
private Label label6;
private RadioButton rbCurrent;
private NumericUpDown txtbEct;
public parmBoostCut(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_2);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_2);
this.InitializeComponent();
this.ctrlBoostCutCold.method_0(ref rm);
this.ctrlBoostCutCold.mapValueChangedDelegate_0 += new ctrlMapValue.MapValueChangedDelegate(this.method_1);
this.ctrlBoostCutHot.method_0(ref rm);
this.ctrlBoostCutHot.mapValueChangedDelegate_0 += new ctrlMapValue.MapValueChangedDelegate(this.method_0);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.chkEnable = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.ctrlBoostCutHot = new Controls.ctrlMapValue();
this.ctrlBoostCutCold = new Controls.ctrlMapValue();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.grpType = new System.Windows.Forms.GroupBox();
this.rb1200 = new System.Windows.Forms.RadioButton();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.rbCurrent = new System.Windows.Forms.RadioButton();
this.chkBoostcutOnMil = new System.Windows.Forms.CheckBox();
this.txtbEct = new System.Windows.Forms.NumericUpDown();
this.lblEct = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.groupBox1.SuspendLayout();
this.grpType.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbEct)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// chkEnable
//
this.chkEnable.AutoSize = true;
this.chkEnable.Location = new System.Drawing.Point(17, 20);
this.chkEnable.Name = "chkEnable";
this.chkEnable.Size = new System.Drawing.Size(118, 18);
this.chkEnable.TabIndex = 1;
this.chkEnable.Text = "Enable Boost Cut";
this.chkEnable.UseVisualStyleBackColor = true;
this.chkEnable.CheckedChanged += new System.EventHandler(this.rbCurrent_CheckedChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(14, 129);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(51, 14);
this.label3.TabIndex = 8;
this.label3.Text = "Hot Cut:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(14, 101);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 14);
this.label2.TabIndex = 5;
this.label2.Text = "Cold Cut:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 73);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(84, 14);
this.label1.TabIndex = 3;
this.label1.Text = "Cold/Hot ECT:";
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// ctrlBoostCutHot
//
this.ctrlBoostCutHot.Location = new System.Drawing.Point(111, 125);
this.ctrlBoostCutHot.Name = "ctrlBoostCutHot";
this.ctrlBoostCutHot.rawValue = ((byte)(0));
this.ctrlBoostCutHot.Size = new System.Drawing.Size(135, 23);
this.ctrlBoostCutHot.TabIndex = 9;
//
// ctrlBoostCutCold
//
this.ctrlBoostCutCold.Location = new System.Drawing.Point(111, 98);
this.ctrlBoostCutCold.Name = "ctrlBoostCutCold";
this.ctrlBoostCutCold.rawValue = ((byte)(0));
this.ctrlBoostCutCold.Size = new System.Drawing.Size(135, 23);
this.ctrlBoostCutCold.TabIndex = 8;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.grpType);
this.groupBox1.Controls.Add(this.chkBoostcutOnMil);
this.groupBox1.Controls.Add(this.txtbEct);
this.groupBox1.Controls.Add(this.lblEct);
this.groupBox1.Controls.Add(this.chkEnable);
this.groupBox1.Controls.Add(this.ctrlBoostCutHot);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.ctrlBoostCutCold);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(269, 234);
this.groupBox1.TabIndex = 10;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Boost Cut Settings";
//
// grpType
//
this.grpType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.grpType.Controls.Add(this.rb1200);
this.grpType.Controls.Add(this.label7);
this.grpType.Controls.Add(this.label6);
this.grpType.Controls.Add(this.rbCurrent);
this.grpType.Location = new System.Drawing.Point(6, 162);
this.grpType.Name = "grpType";
this.grpType.Size = new System.Drawing.Size(257, 67);
this.grpType.TabIndex = 27;
this.grpType.TabStop = false;
this.grpType.Text = "Boost Cut RPM Type";
//
// rb1200
//
this.rb1200.AutoSize = true;
this.rb1200.Location = new System.Drawing.Point(132, 43);
this.rb1200.Name = "rb1200";
this.rb1200.Size = new System.Drawing.Size(14, 13);
this.rb1200.TabIndex = 4;
this.rb1200.TabStop = true;
this.rb1200.UseVisualStyleBackColor = true;
this.rb1200.CheckedChanged += new System.EventHandler(this.rbCurrent_CheckedChanged);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 43);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(101, 14);
this.label7.TabIndex = 17;
this.label7.Text = "Limit at 1200RPM:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 21);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(117, 14);
this.label6.TabIndex = 16;
this.label6.Text = "Limit at Current RPM:";
//
// rbCurrent
//
this.rbCurrent.AutoSize = true;
this.rbCurrent.Location = new System.Drawing.Point(132, 21);
this.rbCurrent.Name = "rbCurrent";
this.rbCurrent.Size = new System.Drawing.Size(14, 13);
this.rbCurrent.TabIndex = 3;
this.rbCurrent.TabStop = true;
this.rbCurrent.UseVisualStyleBackColor = true;
this.rbCurrent.CheckedChanged += new System.EventHandler(this.rbCurrent_CheckedChanged);
//
// chkBoostcutOnMil
//
this.chkBoostcutOnMil.AutoSize = true;
this.chkBoostcutOnMil.Location = new System.Drawing.Point(17, 44);
this.chkBoostcutOnMil.Name = "chkBoostcutOnMil";
this.chkBoostcutOnMil.Size = new System.Drawing.Size(238, 18);
this.chkBoostcutOnMil.TabIndex = 26;
this.chkBoostcutOnMil.Text = "Enable Boost Cut if DTC (Check Engine)";
this.chkBoostcutOnMil.UseVisualStyleBackColor = true;
this.chkBoostcutOnMil.CheckedChanged += new System.EventHandler(this.rbCurrent_CheckedChanged);
//
// txtbEct
//
this.txtbEct.Location = new System.Drawing.Point(111, 71);
this.txtbEct.Maximum = new decimal(new int[] {
284,
0,
0,
0});
this.txtbEct.Minimum = new decimal(new int[] {
40,
0,
0,
-2147483648});
this.txtbEct.Name = "txtbEct";
this.txtbEct.Size = new System.Drawing.Size(66, 20);
this.txtbEct.TabIndex = 25;
this.txtbEct.Click += new System.EventHandler(this.txtbEct_Validated);
this.txtbEct.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbEct_KeyPress);
this.txtbEct.Validating += new System.ComponentModel.CancelEventHandler(this.txtbEct_Validating);
this.txtbEct.Validated += new System.EventHandler(this.txtbEct_Validated);
//
// lblEct
//
this.lblEct.AutoSize = true;
this.lblEct.Location = new System.Drawing.Point(183, 73);
this.lblEct.Name = "lblEct";
this.lblEct.Size = new System.Drawing.Size(15, 14);
this.lblEct.TabIndex = 24;
this.lblEct.Text = "C";
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(303, 255);
this.panel1.TabIndex = 11;
//
// parmBoostCut
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "parmBoostCut";
this.Size = new System.Drawing.Size(303, 255);
this.Load += new System.EventHandler(this.parmBoostCut_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.grpType.ResumeLayout(false);
this.grpType.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbEct)).EndInit();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private void method_0(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_156("Boostcut settings", false);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_128, byte_0);
this.class18_0.method_153();
this.parmBoostCut_Load(null, null);
}
}
private void method_1(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_156("Boostcut settings", false);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_127, byte_0);
this.class18_0.method_153();
this.parmBoostCut_Load(null, null);
}
}
private void method_2()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmBoostCut_Load(null, null);
}
}
private void method_3()
{
if (!this.bool_0)
{
this.class18_0.method_156("Boostcut settings", false);
if (this.chkEnable.Checked) this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_126, 0xff);
else this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_126, 0);
if (this.chkBoostcutOnMil.Checked) this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_130, 0xff);
else this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_130, 0);
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_129, this.class18_0.method_230(double.Parse(this.txtbEct.Text)));
if (this.rbCurrent.Checked) this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_131, 0);
else this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_131, 0xff);
this.class18_0.method_153();
this.parmBoostCut_Load(null, null);
}
}
private void parmBoostCut_Load(object sender, EventArgs e)
{
this.bool_0 = true;
this.txtbEct.Text = this.class18_0.method_191(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_129)).ToString();
this.chkBoostcutOnMil.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_130) == 0xff;
this.chkEnable.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_126) == 0xff;
this.ctrlBoostCutCold.rawValue = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_127);
this.ctrlBoostCutHot.rawValue = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_128);
this.txtbEct.Enabled = this.chkEnable.Checked;
this.ctrlBoostCutCold.Enabled = this.chkEnable.Checked;
this.ctrlBoostCutHot.Enabled = this.chkEnable.Checked;
this.chkBoostcutOnMil.Enabled = this.chkEnable.Checked;
this.lblEct.Text = this.class18_0.class10_settings_0.temperatureUnits_0.ToString();
if (this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_131) == 0) this.rbCurrent.Checked = true;
else this.rb1200.Checked = true;
this.bool_0 = false;
}
private void rbCurrent_CheckedChanged(object sender, EventArgs e)
{
if (!this.bool_0)
{
this.method_3();
this.parmBoostCut_Load(null, null);
}
}
private void txtbEct_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_3();
}
control.Focus();
}
}
private void txtbEct_Validated(object sender, EventArgs e)
{
this.method_3();
}
private void txtbEct_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, integer required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}

123
parmBoostCut.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

258
parmBoostMapSensor.cs Normal file
View File

@ -0,0 +1,258 @@
using Controls;
using Data;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmBoostMapSensor : UserControl
{
private bool bool_0;
private Button btnSave;
private Class18 class18_0;
private Controls.ctrlMapSensor ctrlMapSensor;
private ErrorProvider errorProvider_0;
private IContainer icontainer_0;
private int[,] int_0 = new int[10, 2];
private int[] int_1 = new int[0x18];
private int[] int_2 = new int[0x18];
private int int_3;
private int int_4;
private IContainer components;
private GroupBox groupBox1;
private frmBoostTableSetup frmBoostTableSetup_0;
private Panel panel1;
private int int_5 = 2;
internal parmBoostMapSensor(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_1);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_1);
this.InitializeComponent();
this.ctrlMapSensor.method_0(ref this.class18_0);
this.ctrlMapSensor.mapSensorChangedDelegate_0 += new Controls.ctrlMapSensor.MapSensorChangedDelegate(this.method_0);
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void btnSave_Click(object sender, EventArgs e)
{
this.class18_0.method_155("Map Sensor Setting");
if (MessageBox.Show(Form.ActiveForm, "Do you want to reset Map Scalars?", "Map Sensor Settings", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
for (int k = 0; k < 0x18; k++)
{
this.int_1[k] = this.class18_0.method_206(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_6 + k));
this.int_2[k] = this.class18_0.method_206(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_18 + k));
}
this.class18_0.method_151(this.class18_0.class13_u_0.long_0, (long)(this.int_3 + 0x8000));
this.class18_0.method_151(this.class18_0.class13_u_0.long_1, (long)(this.int_4 + 0x8000));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_2, (byte)this.int_5);
for (int m = 0; m < 0x18; m++)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_6 + m, this.class18_0.method_226(this.int_1[m]));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_18 + m, this.class18_0.method_226(this.int_2[m]));
}
}
if (MessageBox.Show(Form.ActiveForm, "Do you want to reset 'Boost options' setting to default? This reset:\n-Boostcut parameters\n-Ign corr. above load (mBar)\n-Openloop above load (mBar)\n-Fuel cut under load (mBar)\n-Vtec above load (mBar)\n-Etc..", "Map Sensor Settings", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_207, this.class18_0.method_226(750));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_53, this.class18_0.method_226(200));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_181, this.class18_0.method_226(0x406));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_127, this.class18_0.method_226(0xdac));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_128, this.class18_0.method_226(0xdac));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_227, this.class18_0.method_226(100));
}
byte num4 = 0;
byte num5 = 0;
num4 = this.class18_0.method_226(0x400);
num5 = 0xff;
byte num3 = (byte)((num5 - num4) / 9);
byte num6 = 0;
double[] numArray = new double[10];
for (int i = 0; i < 10; i++)
{
numArray[i] = Math.Round((double)this.class18_0.method_245(this.class18_0.method_206(num4)), 0);
num4 = (byte)(num4 + num3);
}
for (int j = 0; j <= 10; j++)
{
switch (j)
{
case 0:
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_262 + (j * 2), 0xff);
break;
case 10:
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_262 + (j * 2), 0);
break;
default:
num6 = this.class18_0.method_226(this.class18_0.method_250((float)numArray[9 - j]));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_262 + (j * 2), num6);
break;
}
}
/*if (this.class18_0.method_150(this.class18_0.class13_0.long_75) > 10)
{
if (MessageBox.Show(Form.ActiveForm, "Do you want to reset the boost columns\nscalars with the new map sensor?", "BMTune", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
{
float num12 = -1f;
float num13 = -1f;
float num14 = -1f;
float num15 = -1f;
int num16 = (this.class18_0.class10_0.method_11_GetMAP_ColumnsNumber() - 1) - 10;
num12 = 2f;
num15 = this.class18_0.method_245(this.class18_0.method_206(0xff));
num13 = (num15 - num12) / ((float)num16);
for (int num17 = 10; num17 < this.class18_0.class10_0.method_11_GetMAP_ColumnsNumber(); num17++)
{
if (num14 < 0f) num14 = num12;
this.class18_0.method_171((byte)num17, this.class18_0.method_226(this.class18_0.method_250(num14)), SelectedTable.fuel1_hi);
this.class18_0.method_171((byte)num17, this.class18_0.method_226(this.class18_0.method_250(num14)), SelectedTable.fuel2_hi);
num14 += num13;
}
for (int num18 = this.class18_0.class10_0.method_11_GetMAP_ColumnsNumber(); num18 < this.class18_0.method_33(); num18++)
{
this.class18_0.method_171((byte)num18, 0xff, SelectedTable.fuel1_hi);
this.class18_0.method_171((byte)num18, 0xff, SelectedTable.fuel2_hi);
}
if (MessageBox.Show(Form.ActiveForm, "Do you want to open the boost table tool\nto redo the fuel and ignition tables?", "BMTune", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
{
if (this.frmBoostTableSetup_0 != null)
{
this.frmBoostTableSetup_0.Focus();
}
else
{
this.frmBoostTableSetup_0 = new frmBoostTableSetup();
this.frmBoostTableSetup_0.method_0(ref this.class18_0);
this.frmBoostTableSetup_0.ShowDialog();
this.frmBoostTableSetup_0.Dispose();
this.frmBoostTableSetup_0 = null;
}
}
}
}*/
this.class18_0.method_153();
this.class18_0.method_52();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.btnSave = new System.Windows.Forms.Button();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.ctrlMapSensor = new Controls.ctrlMapSensor();
this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// btnSave
//
this.btnSave.BackColor = System.Drawing.SystemColors.ControlLight;
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Location = new System.Drawing.Point(49, 150);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(87, 25);
this.btnSave.TabIndex = 1;
this.btnSave.Text = "Save";
this.btnSave.UseVisualStyleBackColor = false;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.ctrlMapSensor);
this.groupBox1.Controls.Add(this.btnSave);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(200, 184);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Map Sensor Settings";
//
// ctrlMapSensor
//
this.ctrlMapSensor.Location = new System.Drawing.Point(6, 19);
this.ctrlMapSensor.Name = "ctrlMapSensor";
this.ctrlMapSensor.Size = new System.Drawing.Size(182, 125);
this.ctrlMapSensor.TabIndex = 0;
//
// panel1
//
this.panel1.AutoSize = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(220, 301);
this.panel1.TabIndex = 3;
//
// parmBoostMapSensor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "parmBoostMapSensor";
this.Size = new System.Drawing.Size(220, 301);
this.Load += new System.EventHandler(this.parmBoostMapSensor_Load);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.groupBox1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private void method_0(int int_6, int int_7, int int_8)
{
this.int_3 = int_6;
this.int_4 = int_7;
this.int_5 = int_8;
}
private void method_1()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmBoostMapSensor_Load(null, null);
}
}
private void parmBoostMapSensor_Load(object sender, EventArgs e)
{
this.bool_0 = true;
this.int_3 = (int) (this.class18_0.method_152(this.class18_0.class13_u_0.long_0) - 0x8000L); //Min
this.int_4 = (int) (this.class18_0.method_152(this.class18_0.class13_u_0.long_1) - 0x8000L); //Max
this.int_5 = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_2); //Index
this.ctrlMapSensor.setMapSensor(this.int_3, this.int_4, this.int_5 - 2);
this.bool_0 = false;
}
}

123
parmBoostMapSensor.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

563
parmBstManual.cs Normal file
View File

@ -0,0 +1,563 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmBstManual : UserControl
{
private bool bool_0;
private CheckBox chkFtl;
private CheckBox chkMil;
private Class18 class18_0;
private CtrlInputSelector ctrlInput;
private CtrlOutputSelector ctrlStage2;
private CtrlOutputSelector ctrlStage3;
private CtrlOutputSelector ctrlStage4;
private ErrorProvider errorProvider_0;
private GroupBox groupBox2;
private GroupBox groupBox4;
private GroupBox groupBox5;
private GroupBox groupBox6;
private IContainer icontainer_0;
private IContainer components;
private Label label12;
private Label label10;
private GroupBox groupBox1;
private Label lblVSS;
private Label lblVSS3;
private Label lblVSS2;
private Panel panel1;
private NumericUpDown txtbStage4Vss;
private NumericUpDown txtbStage3Vss;
private NumericUpDown txtbStage2Vss;
private Label label8;
public parmBstManual(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_8);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_8);
this.InitializeComponent();
this.ctrlInput.method_7_Add_CustomInput_To_Selection(true);
this.ctrlInput.method_3_CustomInput("Enable");
this.ctrlInput.method_11_Add_Disabled_In_Selection(true);
this.ctrlInput.method_5(false);
//this.ctrlInput.method_1(0);
this.ctrlInput.method_Input_location(this.class18_0.class13_u_0.long_357);
this.ctrlStage4.method_1(false);
this.ctrlStage4.method_3(false);
this.ctrlStage4.method_7(true);
this.ctrlStage4.method_Output_location(this.class18_0.class13_u_0.long_368);
this.ctrlStage3.method_1(false);
this.ctrlStage3.method_3(false);
this.ctrlStage3.method_7(true);
this.ctrlStage3.method_Output_location(this.class18_0.class13_u_0.long_366);
this.ctrlStage2.method_1(false);
this.ctrlStage2.method_3(false);
this.ctrlStage2.method_7(true);
this.ctrlStage2.method_Output_location(this.class18_0.class13_u_0.long_364);
this.ctrlInput.method_14(ref this.class18_0);
this.ctrlInput.method_12();
this.ctrlInput.delegate34_0 += new CtrlInputSelector.Delegate34(this.method_7);
this.ctrlInput.delegate35_0 += new CtrlInputSelector.Delegate35(this.method_6);
this.ctrlStage2.method_9(ref this.class18_0);
this.ctrlStage2.method_3(false);
this.ctrlStage3.method_8();
this.ctrlStage2.delegate37_0 += new CtrlOutputSelector.Delegate37(this.method_5);
this.ctrlStage2.delegate36_0 += new CtrlOutputSelector.Delegate36(this.method_4);
this.ctrlStage3.method_9(ref this.class18_0);
this.ctrlStage3.method_3(false);
this.ctrlStage3.method_8();
this.ctrlStage3.delegate37_0 += new CtrlOutputSelector.Delegate37(this.method_3);
this.ctrlStage3.delegate36_0 += new CtrlOutputSelector.Delegate36(this.method_2);
this.ctrlStage4.method_9(ref this.class18_0);
this.ctrlStage4.method_3(false);
this.ctrlStage3.method_8();
this.ctrlStage4.delegate37_0 += new CtrlOutputSelector.Delegate37(this.method_1);
this.ctrlStage4.delegate36_0 += new CtrlOutputSelector.Delegate36(this.method_0);
this.groupBox1.Enabled = true;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
private void chkMil_CheckedChanged(object sender, EventArgs e)
{
this.method_9();
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.txtbStage4Vss = new System.Windows.Forms.NumericUpDown();
this.lblVSS3 = new System.Windows.Forms.Label();
this.ctrlStage4 = new CtrlOutputSelector();
this.label12 = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.txtbStage3Vss = new System.Windows.Forms.NumericUpDown();
this.lblVSS2 = new System.Windows.Forms.Label();
this.ctrlStage3 = new CtrlOutputSelector();
this.label10 = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.txtbStage2Vss = new System.Windows.Forms.NumericUpDown();
this.lblVSS = new System.Windows.Forms.Label();
this.ctrlStage2 = new CtrlOutputSelector();
this.label8 = new System.Windows.Forms.Label();
this.chkFtl = new System.Windows.Forms.CheckBox();
this.chkMil = new System.Windows.Forms.CheckBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.ctrlInput = new CtrlInputSelector();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage4Vss)).BeginInit();
this.groupBox5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage3Vss)).BeginInit();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage2Vss)).BeginInit();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox6
//
this.groupBox6.Controls.Add(this.txtbStage4Vss);
this.groupBox6.Controls.Add(this.lblVSS3);
this.groupBox6.Controls.Add(this.ctrlStage4);
this.groupBox6.Controls.Add(this.label12);
this.groupBox6.Location = new System.Drawing.Point(10, 373);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(227, 101);
this.groupBox6.TabIndex = 4;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Fourth Stage";
//
// txtbStage4Vss
//
this.txtbStage4Vss.Location = new System.Drawing.Point(96, 18);
this.txtbStage4Vss.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.txtbStage4Vss.Name = "txtbStage4Vss";
this.txtbStage4Vss.Size = new System.Drawing.Size(52, 20);
this.txtbStage4Vss.TabIndex = 27;
this.txtbStage4Vss.Click += new System.EventHandler(this.txtbRpm_Validated);
this.txtbStage4Vss.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbRpm_KeyPress);
this.txtbStage4Vss.Validating += new System.ComponentModel.CancelEventHandler(this.txtbStage2Vss_Validating);
this.txtbStage4Vss.Validated += new System.EventHandler(this.txtbRpm_Validated);
//
// lblVSS3
//
this.lblVSS3.AutoSize = true;
this.lblVSS3.Location = new System.Drawing.Point(151, 20);
this.lblVSS3.Name = "lblVSS3";
this.lblVSS3.Size = new System.Drawing.Size(29, 14);
this.lblVSS3.TabIndex = 26;
this.lblVSS3.Text = "kmh";
//
// ctrlStage4
//
this.ctrlStage4.Location = new System.Drawing.Point(7, 41);
this.ctrlStage4.Name = "ctrlStage4";
this.ctrlStage4.Size = new System.Drawing.Size(216, 53);
this.ctrlStage4.TabIndex = 0;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(7, 20);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(83, 14);
this.label12.TabIndex = 11;
this.label12.Text = "Above Speed:";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.txtbStage3Vss);
this.groupBox5.Controls.Add(this.lblVSS2);
this.groupBox5.Controls.Add(this.ctrlStage3);
this.groupBox5.Controls.Add(this.label10);
this.groupBox5.Location = new System.Drawing.Point(10, 265);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(227, 101);
this.groupBox5.TabIndex = 3;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Third Stage";
//
// txtbStage3Vss
//
this.txtbStage3Vss.Location = new System.Drawing.Point(96, 18);
this.txtbStage3Vss.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.txtbStage3Vss.Name = "txtbStage3Vss";
this.txtbStage3Vss.Size = new System.Drawing.Size(52, 20);
this.txtbStage3Vss.TabIndex = 26;
this.txtbStage3Vss.Click += new System.EventHandler(this.txtbRpm_Validated);
this.txtbStage3Vss.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbRpm_KeyPress);
this.txtbStage3Vss.Validating += new System.ComponentModel.CancelEventHandler(this.txtbStage2Vss_Validating);
this.txtbStage3Vss.Validated += new System.EventHandler(this.txtbRpm_Validated);
//
// lblVSS2
//
this.lblVSS2.AutoSize = true;
this.lblVSS2.Location = new System.Drawing.Point(154, 20);
this.lblVSS2.Name = "lblVSS2";
this.lblVSS2.Size = new System.Drawing.Size(28, 17);
this.lblVSS2.TabIndex = 25;
this.lblVSS2.Text = "kmh";
this.lblVSS2.UseCompatibleTextRendering = true;
//
// ctrlStage3
//
this.ctrlStage3.Location = new System.Drawing.Point(7, 41);
this.ctrlStage3.Name = "ctrlStage3";
this.ctrlStage3.Size = new System.Drawing.Size(216, 53);
this.ctrlStage3.TabIndex = 0;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(7, 20);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(83, 14);
this.label10.TabIndex = 11;
this.label10.Text = "Above Speed:";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.txtbStage2Vss);
this.groupBox4.Controls.Add(this.lblVSS);
this.groupBox4.Controls.Add(this.ctrlStage2);
this.groupBox4.Controls.Add(this.label8);
this.groupBox4.Location = new System.Drawing.Point(10, 157);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(227, 101);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Second Stage";
//
// txtbStage2Vss
//
this.txtbStage2Vss.Location = new System.Drawing.Point(96, 18);
this.txtbStage2Vss.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.txtbStage2Vss.Name = "txtbStage2Vss";
this.txtbStage2Vss.Size = new System.Drawing.Size(52, 20);
this.txtbStage2Vss.TabIndex = 25;
this.txtbStage2Vss.Click += new System.EventHandler(this.txtbRpm_Validated);
this.txtbStage2Vss.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbRpm_KeyPress);
this.txtbStage2Vss.Validating += new System.ComponentModel.CancelEventHandler(this.txtbStage2Vss_Validating);
this.txtbStage2Vss.Validated += new System.EventHandler(this.txtbRpm_Validated);
//
// lblVSS
//
this.lblVSS.AutoSize = true;
this.lblVSS.Location = new System.Drawing.Point(151, 20);
this.lblVSS.Name = "lblVSS";
this.lblVSS.Size = new System.Drawing.Size(29, 14);
this.lblVSS.TabIndex = 24;
this.lblVSS.Text = "kmh";
//
// ctrlStage2
//
this.ctrlStage2.Location = new System.Drawing.Point(7, 41);
this.ctrlStage2.Name = "ctrlStage2";
this.ctrlStage2.Size = new System.Drawing.Size(216, 53);
this.ctrlStage2.TabIndex = 0;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(7, 20);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(83, 14);
this.label8.TabIndex = 11;
this.label8.Text = "Above Speed:";
//
// chkFtl
//
this.chkFtl.AutoSize = true;
this.chkFtl.Location = new System.Drawing.Point(21, 45);
this.chkFtl.Name = "chkFtl";
this.chkFtl.Size = new System.Drawing.Size(210, 18);
this.chkFtl.TabIndex = 6;
this.chkFtl.Text = "Disable If Ftl/Fts/Boost Cut active";
this.chkFtl.UseVisualStyleBackColor = true;
this.chkFtl.CheckedChanged += new System.EventHandler(this.chkMil_CheckedChanged);
this.chkFtl.Validated += new System.EventHandler(this.parmBstManual_Load);
//
// chkMil
//
this.chkMil.AutoSize = true;
this.chkMil.Location = new System.Drawing.Point(21, 20);
this.chkMil.Name = "chkMil";
this.chkMil.Size = new System.Drawing.Size(129, 18);
this.chkMil.TabIndex = 5;
this.chkMil.Text = "Disable If MIL Code";
this.chkMil.UseVisualStyleBackColor = true;
this.chkMil.CheckedChanged += new System.EventHandler(this.chkMil_CheckedChanged);
this.chkMil.Validated += new System.EventHandler(this.parmBstManual_Load);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.ctrlInput);
this.groupBox2.Location = new System.Drawing.Point(10, 74);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(227, 76);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Activate Input";
//
// ctrlInput
//
this.ctrlInput.Location = new System.Drawing.Point(7, 20);
this.ctrlInput.Name = "ctrlInput";
this.ctrlInput.Size = new System.Drawing.Size(216, 53);
this.ctrlInput.TabIndex = 0;
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.chkMil);
this.groupBox1.Controls.Add(this.groupBox6);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.chkFtl);
this.groupBox1.Controls.Add(this.groupBox4);
this.groupBox1.Controls.Add(this.groupBox5);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(250, 482);
this.groupBox1.TabIndex = 7;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Manual Boost Controller";
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(311, 434);
this.panel1.TabIndex = 8;
//
// parmBstManual
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "parmBstManual";
this.Size = new System.Drawing.Size(311, 434);
this.Load += new System.EventHandler(this.parmBstManual_Load);
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage4Vss)).EndInit();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage3Vss)).EndInit();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbStage2Vss)).EndInit();
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private void method_0(byte byte_0)
{
}
private void method_1(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("Boost Stage 4 output");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_368, byte_0);
this.class18_0.method_153();
}
}
private void method_2(byte byte_0)
{
}
private void method_3(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("Boost Stage 3 output");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_366, byte_0);
this.class18_0.method_153();
}
}
private void method_4(byte byte_0)
{
}
private void method_5(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("Boost Stage 2 output");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_364, byte_0);
this.class18_0.method_153();
}
}
private void method_6(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("Boost Input Invert");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_358, byte_0);
this.class18_0.method_153();
}
}
private void method_7(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("Boost Input");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_357, byte_0);
this.class18_0.method_153();
}
}
private void method_8()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmBstManual_Load(null, null);
}
}
private void method_9()
{
if (!this.bool_0)
{
this.class18_0.method_155("Manual Boost Ctrl settings");
if (this.chkFtl.Checked)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_360, 0xff);
}
else
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_360, 0);
}
if (this.chkMil.Checked)
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_359, 0xff);
}
else
{
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_359, 0);
}
this.class18_0.method_151(this.class18_0.class13_u_0.long_361, this.class18_0.method_219(1000));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_362, this.class18_0.method_228(3));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_363, this.class18_0.method_230(-26.0));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_365, this.class18_0.method_233(int.Parse(this.txtbStage2Vss.Text)));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_367, this.class18_0.method_233(int.Parse(this.txtbStage3Vss.Text)));
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_369, this.class18_0.method_233(int.Parse(this.txtbStage4Vss.Text)));
this.class18_0.method_153();
this.parmBstManual_Load(null, null);
}
}
private void parmBstManual_Load(object sender, EventArgs e)
{
this.bool_0 = true;
this.ctrlInput.method_15(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_357));
this.ctrlInput.method_5(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_358) == 0xff);
this.ctrlStage2.method_10(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_364));
this.ctrlStage3.method_10(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_366));
this.ctrlStage4.method_10(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_368));
this.txtbStage2Vss.Text = this.class18_0.method_197(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_365)).ToString();
this.txtbStage3Vss.Text = this.class18_0.method_197(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_367)).ToString();
this.txtbStage4Vss.Text = this.class18_0.method_197(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_369)).ToString();
this.chkFtl.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_360) == 0xff;
this.chkMil.Checked = this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_359) == 0xff;
this.lblVSS.Text = this.class18_0.class10_settings_0.vssUnits_0.ToString();
this.lblVSS2.Text = this.class18_0.class10_settings_0.vssUnits_0.ToString();
this.lblVSS3.Text = this.class18_0.class10_settings_0.vssUnits_0.ToString();
this.bool_0 = false;
}
private void txtbRpm_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_9();
}
control.Focus();
}
}
private void txtbRpm_Validated(object sender, EventArgs e)
{
this.method_9();
}
private void txtbStage2Vss_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, Int positive required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}

123
parmBstManual.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

269
parmBurnOut.cs Normal file
View File

@ -0,0 +1,269 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmBurnOut : UserControl
{
private bool bool_0;
private Class18 class18_0;
private CtrlInputSelector ctrlInputSelector1;
private ErrorProvider errorProvider_0;
private GroupBox groupBox1;
private HelpProvider helpProvider_0;
private IContainer icontainer_0;
private Label label1;
private Label label2;
private IContainer components;
private NumericUpDown txtbRpm;
private Panel panel1;
public parmBurnOut(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_3);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_3);
this.InitializeComponent();
this.ctrlInputSelector1.method_7_Add_CustomInput_To_Selection(true);
this.ctrlInputSelector1.method_3_CustomInput("Always On");
this.ctrlInputSelector1.method_11_Add_Disabled_In_Selection(false);
this.ctrlInputSelector1.method_5(false);
//this.ctrlInputSelector1.method_1(0);
this.ctrlInputSelector1.method_Input_location(this.class18_0.class13_u_0.long_172);
this.ctrlInputSelector1.method_14(ref this.class18_0);
this.ctrlInputSelector1.method_3_CustomInput("Always on");
this.ctrlInputSelector1.method_7_Add_CustomInput_To_Selection(false);
this.ctrlInputSelector1.method_11_Add_Disabled_In_Selection(true);
//this.ctrlInputSelector1.method_1(5);
this.ctrlInputSelector1.method_12();
this.ctrlInputSelector1.delegate34_0 += new CtrlInputSelector.Delegate34(this.method_1);
this.ctrlInputSelector1.delegate35_0 += new CtrlInputSelector.Delegate35(this.method_0);
this.groupBox1.Enabled = true;
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtbRpm = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.ctrlInputSelector1 = new CtrlInputSelector();
this.errorProvider_0 = new System.Windows.Forms.ErrorProvider(this.components);
this.helpProvider_0 = new System.Windows.Forms.HelpProvider();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbRpm)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txtbRpm);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.ctrlInputSelector1);
this.groupBox1.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(232, 103);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Burnout Control";
//
// txtbRpm
//
this.txtbRpm.Increment = new decimal(new int[] {
50,
0,
0,
0});
this.txtbRpm.Location = new System.Drawing.Point(98, 75);
this.txtbRpm.Maximum = new decimal(new int[] {
11050,
0,
0,
0});
this.txtbRpm.Name = "txtbRpm";
this.txtbRpm.Size = new System.Drawing.Size(74, 20);
this.txtbRpm.TabIndex = 4;
this.txtbRpm.Click += new System.EventHandler(this.txtbRpm_Validated);
this.txtbRpm.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbRpm_KeyPress);
this.txtbRpm.Validating += new System.ComponentModel.CancelEventHandler(this.txtbRpm_Validating);
this.txtbRpm.Validated += new System.EventHandler(this.parmBurnOut_Load);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(178, 77);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(27, 14);
this.label2.TabIndex = 3;
this.label2.Text = "rpm";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 77);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(76, 14);
this.label1.TabIndex = 1;
this.label1.Text = "Burnout rpm:";
//
// ctrlInputSelector1
//
this.ctrlInputSelector1.Location = new System.Drawing.Point(6, 19);
this.ctrlInputSelector1.Name = "ctrlInputSelector1";
this.ctrlInputSelector1.Size = new System.Drawing.Size(220, 49);
this.ctrlInputSelector1.TabIndex = 0;
//
// errorProvider_0
//
this.errorProvider_0.ContainerControl = this;
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(269, 189);
this.panel1.TabIndex = 1;
//
// parmBurnOut
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Name = "parmBurnOut";
this.Size = new System.Drawing.Size(269, 189);
this.Load += new System.EventHandler(this.parmBurnOut_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtbRpm)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider_0)).EndInit();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private void method_0(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("3Step-Burnout input invert");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_171, byte_0);
this.class18_0.method_153();
this.parmBurnOut_Load(null, null);
}
}
private void method_1(byte byte_0)
{
if (!this.bool_0)
{
this.class18_0.method_155("3Step-Burnout input");
this.class18_0.method_149_SetByte(this.class18_0.class13_u_0.long_172, byte_0);
this.class18_0.method_153();
this.parmBurnOut_Load(null, null);
}
}
private void method_2()
{
if (!this.bool_0)
{
this.class18_0.method_155("3Step-Burnout settings");
this.class18_0.method_151(this.class18_0.class13_u_0.long_173, this.class18_0.method_219(int.Parse(this.txtbRpm.Text)));
this.class18_0.method_153();
this.parmBurnOut_Load(null, null);
}
}
private void method_3()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmBurnOut_Load(null, null);
}
}
private void parmBurnOut_Load(object sender, EventArgs e)
{
this.bool_0 = true;
if (this.class18_0.class13_u_0.long_172 != 0L)
{
if (this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_172) != 0)
{
this.txtbRpm.Enabled = true;
}
else
{
this.txtbRpm.Enabled = false;
}
this.txtbRpm.Text = this.class18_0.method_218(this.class18_0.method_152(this.class18_0.class13_u_0.long_173)).ToString();
this.ctrlInputSelector1.method_15(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_172));
this.ctrlInputSelector1.method_5(this.class18_0.GetByteAt(this.class18_0.class13_u_0.long_171) == 0xff);
}
else
{
this.ctrlInputSelector1.Enabled = false;
this.txtbRpm.Enabled = false;
}
this.bool_0 = false;
}
private void txtbRpm_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
NumericUpDown control = (NumericUpDown) sender;
this.groupBox1.Focus();
if (this.errorProvider_0.GetError(control) == string.Empty)
{
this.method_2();
}
control.Focus();
}
}
private void txtbRpm_Validated(object sender, EventArgs e)
{
this.method_2();
}
private void txtbRpm_Validating(object sender, CancelEventArgs e)
{
NumericUpDown control = (NumericUpDown) sender;
if (!this.class18_0.method_256(control.Text.ToString()))
{
this.errorProvider_0.SetError(control, "Invalid input, integer required");
e.Cancel = true;
}
else
{
this.errorProvider_0.SetError(control, "");
}
}
}

126
parmBurnOut.resx Normal file
View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="helpProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>152, 17</value>
</metadata>
</root>

1517
parmCloseLoop.cs Normal file

File diff suppressed because it is too large Load Diff

123
parmCloseLoop.resx Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider_0.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

116
parmComments.cs Normal file
View File

@ -0,0 +1,116 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
internal class parmComments : UserControl
{
private Class18 class18_0;
private GroupBox groupBox1;
private IContainer icontainer_0;
private Panel panel1;
private TextBox txtbComment;
internal parmComments(ref Class18 rm)
{
this.class18_0 = rm;
this.class18_0.delegate55_0 += new Class18.Delegate55(this.method_0);
this.class18_0.delegate58_0 += new Class18.Delegate58(this.method_0);
this.InitializeComponent();
foreach (Control control in base.Controls)
{
float emSize = control.Font.Size * (class18_0.class10_settings_0.scaleRate / 100f);
control.Font = new Font(control.Font.Name, emSize, control.Font.Style, control.Font.Unit);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.icontainer_0 != null))
{
this.icontainer_0.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtbComment = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.txtbComment);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(300, 196);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Comments";
//
// txtbComment
//
this.txtbComment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtbComment.BackColor = System.Drawing.SystemColors.Window;
this.txtbComment.Location = new System.Drawing.Point(20, 31);
this.txtbComment.Multiline = true;
this.txtbComment.Name = "txtbComment";
this.txtbComment.Size = new System.Drawing.Size(259, 144);
this.txtbComment.TabIndex = 1;
this.txtbComment.TextChanged += new System.EventHandler(this.txtbComment_TextChanged);
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(324, 210);
this.panel1.TabIndex = 1;
//
// parmComments
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Lucida Sans", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "parmComments";
this.Size = new System.Drawing.Size(324, 210);
this.Load += new System.EventHandler(this.parmComments_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private void method_0()
{
if (this.class18_0.method_30_HasFileLoadedInBMTune())
{
this.parmComments_Load(null, null);
}
}
private void parmComments_Load(object sender, EventArgs e)
{
this.txtbComment.Text = this.class18_0.method_88_GetComments();
}
private void txtbComment_TextChanged(object sender, EventArgs e)
{
this.class18_0.method_87_SetComments(this.txtbComment.Text);
}
}

120
parmComments.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>