Пример #1
0
 public void SavePosition(AjustPositionInfo info)
 {
     if (Path == null)
         return;
     if (PosFile == null)
     {
         PosFile = new PingFile(ProjectName, "pos");
         PosFile.SetPath(new DirectoryInfo(Path));
         PosFile.Create(info.raw.PingNum);
         PosFile.Write(info.SavePackage());
         return;
     }
     if (PosFile.PingID != info.raw.PingNum) //新的ping号
     {
         PosFile.Close();
         PosFile.Create(info.raw.PingNum);
     }
     PosFile.Write(info.SavePackage());
 }
 public void SavePosition(AjustPositionInfo ajInfo)
 {
     TraceFile.Instance.SavePosition(ajInfo);
 }