Пример #1
0
        private void button_run_Click(object sender, EventArgs e)
        {
            string dirPath = this.textBox_dir.Text;
            string staPath = this.textBox_outPath.Text;

            IBerFile berFile = BerFileFactory.Create(dirPath, berFileType);

            berFile.Save(staPath);

            this.textBox_gen.Text = berFile.ToString();

            Geo.Utils.FormUtil.ShowIfOpenDirMessageBox(Path.GetDirectoryName(staPath));
        }
Пример #2
0
        private void button_merge_Click(object sender, EventArgs e)
        {
            Gnsser.Interoperation.Bernese.IBerFile fileC = BerFileFactory.Merge(this.textBox_A.Text, this.textBox_B.Text, berFileType);

            this.textBox_C.Text = fileC.ToString();
            //Save to File.
            string staPath = this.textBox_mergePath.Text;

            File.WriteAllText(staPath, fileC.ToString());
            string msg = String.Format("合并完成,是否打开 {0} ?",
                                       Path.GetDirectoryName(staPath));

            Geo.Utils.FormUtil.ShowIfOpenDirMessageBox(Path.GetDirectoryName(staPath), msg);
        }