示例#1
0
        static public bool DecompressD(string formFileOrDirectory, string toDirectory, bool isDeleSource, bool overwrite)
        {
            DecompressRinexer de = new DecompressRinexer();

            de.DecompressFileOrDirectory(formFileOrDirectory, toDirectory, isDeleSource, overwrite);
            return(true);
        }
示例#2
0
        private void DecomposeRinex(string sourseDir, string rinexDir, bool delSourse)
        {
            if (!Directory.Exists(rinexDir))
            {
                Directory.CreateDirectory(rinexDir);
            }

            string[] files = Directory.GetFiles(sourseDir, "*.**d");
            if (this.ProgressBar != null)
            {
                this.ProgressBar.InitProcess(files.Length);
            }

            Geo.Utils.DecompressRinexer de = new Geo.Utils.DecompressRinexer(Setting.PathOfCrx2rnx);
            foreach (var item in files)
            {
                if (IsCancelProcessing)
                {
                    break;
                }

                try
                {
                    de.Decompress(item, rinexDir);
                    if (delSourse)
                    {
                        File.Delete(item);
                    }

                    ShowInfo("总进度 " + (allCountProcess) + "/" + allCount + " 解压Rinex " + item);

                    PerformStep();
                }
                catch (Exception ex)
                {
                    string msg = "解压Rinex出错了:" + ex.Message + "\r\n";
                    ShowInfo(msg);
                    if (!ignoreError)
                    {
                        if (FormUtil.ShowYesNoMessageBox(msg + "是否继续?")
                            == System.Windows.Forms.DialogResult.No)
                        {
                            break;
                        }
                    }
                }
            }
        }
示例#3
0
 public void Init(string ExePath)
 {
     this.ExePath = ExePath;
     de           = new Geo.Utils.DecompressRinexer(ExePath);
 }