public static void HandleStandardError(Exception ex, string Message, bool logMessage = false)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(Message);
            sb.Append(ErrorMethods.GetExceptionMessageInfo(ex));
            if (logMessage)
            {
                DAL.Tools.LoggingTool.addDatabaseLogging("", 0, DAL.Tools.LoggingTool.LogState.medium, ex.Message, Message);
            }

            MessageBox.Show(sb.ToString());
        }
 public static void HandleStandardError(Exception ex)
 {
     MessageBox.Show(ErrorMethods.GetExceptionMessageInfo(ex));
 }