void rosterFileLoaderThread_DoWork(object sender, DoWorkEventArgs e) { try { model = new EditorModel(filePathToLoad, this, bigendian, Mad19); } catch (ApplicationException err) { model = null; ExceptionDialog.Show(err); } if (model != null) { manager.model = model; manager.InitDB(); model.InitColleges(manager); } }
public static void Show(Exception e) { ExceptionDialog dialog = new ExceptionDialog(e); dialog.ShowDialog(); }