/// <summary> /// Event handler that gets called when the movie import is finished. /// </summary> private void MovieImportFinished(object sender, CompletedEventArgs args) { ImportResult result = args.Result; movieImporter = null; Invoke((Action)(() => { btnMovieImportStart.Visible = true; btnMovieImportStop.Visible = false; progressBar.Visible = false; ImportResultsPopup popup = new ImportResultsPopup(result); popup.ShowDialog(); })); }
/// <summary> /// Event handler that gets called when the movie import is finished. /// </summary> private void SessionImportFinished(object sender, CompletedEventArgs args) { ImportResult result = args.Result; sessionImporter = null; Invoke((Action)(() => { btnSelectSessionFile.Visible = true; btnStopSession.Visible = false; progressBar.Visible = false; ImportResultsPopup popup = new ImportResultsPopup(result); popup.ShowDialog(); })); }