VirtualPhotonics / Vts.Gui.Wpf

WPF Application using the Vts library
Other
3 stars 0 forks source link

Monte Carlo panel: Invalid input logs error but GUI spins and does not return #13

Closed hayakawa16 closed 6 years ago

hayakawa16 commented 6 years ago

When the user loads "infile_ellip_FluenceOfRhoAndZ.txt" and then selects Continuous Absorption Weighting, the textbox puts out an error indicating an invalid combination of infile settings as it should, however the GUI spins and does not return.

hayakawa16 commented 6 years ago

MonteCarloSolverViewModel has a main "try" to validate and run a simulation. Within this try if the input validation determines that the input is invalid, a "return" occurs, however the GUI was left in a indefinite state. Added a "finally" to the "try" that Stops the MainWindow. User must "Cancel" simulation in order to try to run again so added to the log message that a cancel is needed.