private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     OpenFileDialog openFileDialog = new OpenFileDialog();
     openFileDialog.Filter = "txt文件|*.txt|所有文件(*.*)|*.*";
     if (openFileDialog.ShowDialog() == true)
     {
         SettleSoundFile SoundFile = new SettleSoundFile(openFileDialog.FileName);//整理声速剖面文件
         SVPd = SoundFile.SVPd;
         SVPc = SoundFile.SVPc;
         filepathbox.Text = openFileDialog.FileName;
     }
 }
Esempio n. 2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "txt文件|*.txt|所有文件(*.*)|*.*";
            if (openFileDialog.ShowDialog() == true)
            {
                SettleSoundFile SoundFile = new SettleSoundFile(openFileDialog.FileName);//整理声速剖面文件
                SVPd             = SoundFile.SVPd;
                SVPc             = SoundFile.SVPc;
                filepathbox.Text = openFileDialog.FileName;
            }
        }