/// <summary>
    /// Initializes the texts.
    /// </summary>
    private void InitializeTexts()
    {
        try
        {
            ThreadName = Thread.CurrentThread.Name.IsNullOrEmpty()
        ? Environment.CurrentManagedThreadId == 1
          ? "Main"
          : $"ID = {Environment.CurrentManagedThreadId}"
        : Thread.CurrentThread.Name;
            try
            {
                Message = Instance.Message;
            }
            catch
            {
                Message = "Relayed Exception.";
            }

            FullText = $"Exception: {TypeText}{Globals.NL}" +
                       $"Module: {ModuleName}{Globals.NL}" +
                       $"Thread: {ThreadName}{Globals.NL}" +
                       $"Message: {Globals.NL}" +
                       Message.Indent(DebugManager.MarginSize);

            try
            {
                if (DebugManager.UseStack)
                {
                    FullText += Globals.NL +
                                $"Stack Exception: {Globals.NL}" +
                                $"{ExceptionStackList.AsMultiLine().Indent(DebugManager.MarginSize)}{Globals.NL}" +
                                $"Stack Thread: {Globals.NL}" +
                                ThreadStackList.AsMultiLine().Indent(DebugManager.MarginSize);
                }
            }
            catch
            {
            }

            ReadableText = $"{Message}{Globals.NL2}" +
                           $"Type: {TypeText}{Globals.NL}" +
                           $"Module: {ModuleName}{Globals.NL}" +
                           $"Thread: {ThreadName}";

            if (DebugManager.UseStack)
            {
                ReadableText += Globals.NL +
                                $"File: {FileName}{Globals.NL}" +
                                $"Method: {Namespace}.{ClassName}.{MethodName}{Globals.NL}" +
                                $"Line: {LineNumber}";
            }

            SingleLineText = ReadableText.Replace(Globals.NL2, " | ")
                             .Replace(Globals.NL, " | ")
                             .Replace("  ", string.Empty);
        }
        catch
        {
        }
    }
    /// <summary>
    /// Initializes the texts.
    /// </summary>
    private void InitializeTexts()
    {
        try
        {
            ThreadName = Thread.CurrentThread.Name.IsNullOrEmpty()
                   ? Thread.CurrentThread.ManagedThreadId == 1
                     ? "Main"
                     : "ID = " + Thread.CurrentThread.ManagedThreadId.ToString()
                   : Thread.CurrentThread.Name;

            try
            {
                Message = Instance.Message;
            }
            catch
            {
                Message = "Relayed Exception.";
            }

            FullText = "Exception: " + TypeText + Globals.NL +
                       "Module: " + ModuleName + Globals.NL +
                       "Thread: " + ThreadName + Globals.NL +
                       "Message: " + Globals.NL +
                       Message.Indent(DebugManager.MarginSize);

            try
            {
                if (DebugManager.UseStack)
                {
                    FullText += Globals.NL +
                                "Stack Exception: " + Globals.NL +
                                ExceptionStackList.AsMultiLine().Indent(DebugManager.MarginSize) + Globals.NL +
                                "Stack Thread: " + Globals.NL +
                                ThreadStackList.AsMultiLine().Indent(DebugManager.MarginSize);
                }
            }
            catch
            {
            }

            ReadableText = Message + Globals.NL2 +
                           "Type: " + TypeText + Globals.NL +
                           "Module: " + ModuleName + Globals.NL +
                           "Thread: " + ThreadName;

            if (DebugManager.UseStack)
            {
                ReadableText += Globals.NL +
                                "File: " + FileName + Globals.NL +
                                "Method: " + Namespace + "." + ClassName + "." + MethodName + Globals.NL +
                                "Line: " + LineNumber;
            }

            SingleLineText = ReadableText.Replace(Globals.NL2, " | ")
                             .Replace(Globals.NL, " | ")
                             .Replace("  ", string.Empty);
        }
        catch
        {
        }
    }