private void button_merge_Click(object sender, EventArgs e) { SinexFile fileMerged = null; foreach (var item in this.textBox_pathes.Lines) { SinexFile file = SinexReader.Read(item); if (fileMerged == null) { fileMerged = file; } else { fileMerged = SinexMerger.Merge(fileMerged, file, this.checkBox_eraseNonCoord.Checked); } } if (checkBox_showresult.Checked) { this.textBox_result.Text = fileMerged.ToString(); } File.WriteAllText(this.textBox_savepath.Text, fileMerged.ToString()); Geo.Utils.FormUtil.ShowIfOpenDirMessageBox(this.textBox_savepath.Text); }
private void button_merge_Click(object sender, EventArgs e) { SinexFile a = SinexReader.ParseText(this.textBox_A.Text); SinexFile b = SinexReader.ParseText(this.textBox_B.Text); SinexFile c = SinexMerger.Merge(a, b); if (checkBox_show.Checked) { this.textBox_C.Text = c.ToString(); } File.WriteAllText(this.textBox_mergePath.Text, c.ToString()); Geo.Utils.FormUtil.ShowIfOpenDirMessageBox(this.textBox_mergePath.Text); }