private void Read() { string crdPath = this.textBox_crdPath.Text; string velPath = this.textBox_velPath.Text; if (!File.Exists(crdPath) || !File.Exists(velPath)) { FormUtil.ShowFileNotExistBox(crdPath + "\r\n" + velPath); return; } oldCrdFile = CrdFile.Read(crdPath); velFile = VelFile.Read(velPath); Bind(); }
private void Read() { string path = this.textBox_Path.Text; if (!File.Exists(path)) { FormUtil.ShowFileNotExistBox(path); return; } file = VelFile.Read(path); this.textBox_info.Text = "基准:" + file.Datum + "\r\n" + "历元:" + file.Epoch; this.bindingSource1.DataSource = file.Items; }
private void button_merge_Click(object sender, EventArgs e) { if (this.openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { VelFile fileB = VelFile.Read(this.openFileDialog1.FileName); file.Merge(fileB); this.bindingSource1.DataSource = file.Items; this.bindingSource1.ResetBindings(false); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }