private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "ASTERIX Analyser Raw|*.raw"; openFileDialog1.InitialDirectory = "Application.StartupPath"; openFileDialog1.Title = "Open File to Read"; if (openFileDialog1.ShowDialog() != DialogResult.Cancel) { ResetDataBuffers(); MainASTERIXDataStorage.ResetAllData(); ProgressForm = new FileReadProgress(); ProgressForm.Show(); backgroundWorkerLoadData.RunWorkerAsync(openFileDialog1.FileName); } }