public void ProgramFlash(string flashfile, T5CANLib.ECUType type) { _prohibitRead = true; Thread.Sleep(100); _tcan.UpgradeECU(flashfile, T5CANLib.FileType.BinaryFile, type); _prohibitRead = false; }
void _tcan_onCanInfo(object sender, T5CANLib.CanInfoEventArgs e) { if (onCanBusInfo != null) { onCanBusInfo(this, new CanInfoEventArgs(e.Info)); } }
void _tcan_onReadProgress(object sender, T5CANLib.ReadProgressEventArgs e) { // cast read progress event if (onReadDataFromECU != null) { onReadDataFromECU(this, new ProgressEventArgs(e.Percentage, 0, 0)); } }
void OnWriteProgress(object sender, T5CANLib.WriteProgressEventArgs e) { if (onWriteDataToECU != null) { onWriteDataToECU(this, new ProgressEventArgs(e.Percentage, 0, 0)); } }