private void btnBuildLibrary_ItemClick(object sender, ItemClickEventArgs e) { frmBrowseFiles browse = new frmBrowseFiles(); browse.Show(); }
private void btnTestFiles_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmBrowseFiles browse = new frmBrowseFiles(); browse.Show(); /*EDC15P_EEPROM eeprom = new EDC15P_EEPROM(); eeprom.LoadFile(@"D:\Prive\Audi\TDI\spare eeprom\spare eeprom.bin"); Console.WriteLine("key: " + eeprom.Key.ToString()); Console.WriteLine("odo: " + eeprom.Mileage.ToString()); Console.WriteLine("vin: " + eeprom.Vin); Console.WriteLine("immo: " + eeprom.Immo); Console.WriteLine("immoact: " + eeprom.ImmoActive.ToString());*/ /* EDC15PTuner tuner = new EDC15PTuner(); tuner.TuneEDC15PFile(Tools.Instance.m_currentfile, Tools.Instance.m_symbols, 400, 170);*/ //D:\Prive\ECU\audi\BinCollection // //ParseDirectory(@"D:\Prive\Audi"); //ParseDirectory(@"D:\Prive\ECU\audi"); /* if (Directory.Exists(@"D:\Prive\Audi\TDI")) { string[] files = Directory.GetFiles(@"D:\Prive\Audi\TDI", "*.bin", SearchOption.AllDirectories); foreach (string file in files) { OpenFile(file); bool found = false; foreach (SymbolHelper sh in Tools.Instance.m_symbols) { if (sh.Varname.StartsWith("SVBL Boost limiter")) { Console.WriteLine("SVBL @" + sh.Flash_start_address.ToString("X8") + " in " + file); found = true; } } if (!found) { Console.WriteLine("No SVBL found in " + file); } } }*/ }