Example #1
0
 public void SaveSonarSetting(SonarConfig scConfig)
 {
     if (SonarSetting == null)
     {
         var MyExecPath = System.IO.Path.GetDirectoryName(
             System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);
         MyExecPath  += "SonarConfig";
         SonarSetting = new FileStream(MyExecPath, FileMode.OpenOrCreate);
     }
     SonarSetting.Write(scConfig.SavePackage(), 0, 288);
 }
Example #2
0
 public void Close()
 {
     Path = null;
     if (GpsFile != null)
     {
         GpsFile.Close();
     }
     if (PoseFile != null)
     {
         PoseFile.Close();
     }
     if (ADFile != null)
     {
         ADFile.Close();
     }
     if (PosFile != null)
     {
         PosFile.Close();
     }
     if (SonarSetting != null)
     {
         SonarSetting.Close();
     }
 }