public void SaveGPS(GPSInfo gpsInfo) { if (Path==null) return; if (GpsFile == null) { GpsFile = new ADFile("GPS","dat"); GpsFile.SetFileSizeLimit(GPSFileSize); GpsFile.SetPath(new DirectoryInfo(Path)); GpsFile.Create(); } if (GpsFile.Write(gpsInfo.SavePackage()) == 0) throw new Exception("创建GPS文件失败!"); }
public void SaveGPS(GPSInfo gpsInfo) { TraceFile.Instance.SaveGPS(gpsInfo); }