private void openToolStripMenuItem_Click(object sender, EventArgs e) { using (var dialog = new OpenFileDialog()) { dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + @"\FLIR"; dialog.Filter = FileFilter; if (dialog.ShowDialog() != DialogResult.OK) { return; } var playback = new PlaybackForm(dialog.FileName); playback.Show(); } }
void _recorder_SelectedFileMouseDoubleClick(object sender, SelectedFileEventArgs e) { var playback = new PlaybackForm(e.FilePath); playback.Show(); }