public void OpenDatFile(string path) { if (!DatHelper.TestFile(path) || dispatcher.Ecu.IsStarted) { return; } var oldDatFile = dispatcher.DatFile; if (!dispatcher.OpenDatFile(path)) { return; } var newDatFile = dispatcher.DatFile; PrepareOpenedDatFile(oldDatFile, newDatFile); }
public bool OpenDatFile(string path) { if (!DatHelper.TestFile(path)) { return(false); } DatFile = new DatFile(path); if (calibrLogger != null) { calibrLogger.Close(); } calibrLogger = new CalibrLogger(DatFile, Ecu); return(true); }