You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageBox.Show(App.Current.MainWindow, "Something went wrong. Your plot was not added. Make sure your data is of the right format for the settings you chose.", "Unknown Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
public static void ShowSpecificPlotError(string errorType, Exception error = null, bool shouldExit = false, string errorBlurb = "Something went wrong.")
{
var dlg = new SpecificErrorDialog(errorType, errorBlurb, error);
dlg.Owner = App.Current.MainWindow;
dlg.ShowDialog();
if (shouldExit)
{
App.Current.MainWindow.Close();
}
}
public static void ShowCouldNotParseNumberError(string parameterName, string value)
{
ShowSpecificPlotError("Parsing Error", null, false, $"\"{parameterName}\" had value \"{value}\" which could not be read as a number.");
}
public static void ShowCouldNotParseValueError(string parameterName, string value)
{
ShowSpecificPlotError("Parsing Error", null, false, $"\"{parameterName}\" had value \"{value}\" which was not valid.");