/// <summary> /// Show the error message. /// </summary> /// <param name="type"> /// The error type. /// </param> /// <param name="e"> /// The exception. /// </param> private void ShowError(ErrorType type, Exception e) { // Fehlermeldung beim öffnen der Datei MessageBox.Show("Error Source = " + type.ToString() + Environment.NewLine + Environment.NewLine + EnvironmentInfo.GetAllInformation(e), Application.ProductName); // Exception behavior Application.Exit(); }