コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: BerVelViewForm.cs プロジェクト: yxw027/GNSSer
        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;
        }
コード例 #3
0
ファイル: BerVelViewForm.cs プロジェクト: yxw027/GNSSer
 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);
         }
     }
 }