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