public override void ListErrorField() { Debug.Assert(!string.IsNullOrWhiteSpace(ErrorFieldName)); gOut.Write("{0}{1}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Uid"), null), Record.Uid); gOut.WriteLine("{0}{1}{0}{0}{2}{3}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Desc"), null), Record.Desc, ErrorFieldName.Equals("Desc", StringComparison.OrdinalIgnoreCase) ? "" : Environment.NewLine); }
public override void ListErrorField() { Debug.Assert(!string.IsNullOrWhiteSpace(ErrorFieldName)); gOut.Write("{0}{1}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Uid"), null), Record.Uid); if (ErrorFieldName.Equals("Question", StringComparison.OrdinalIgnoreCase)) { gOut.WriteLine("{0}{1}{0}{0}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Question"), null), Record.Question); } else if (ErrorFieldName.Equals("AnswersElement", StringComparison.OrdinalIgnoreCase)) { var i = Index; Buf.SetFormat("{0}{1}", gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Question"), null), Record.Question); gEngine.WordWrap(Buf.ToString(), Buf); var k = Buf.IndexOf(Environment.NewLine); if (k >= 0) { Buf.Length = k--; if (k >= 0) { Buf[k--] = '.'; } if (k >= 0) { Buf[k--] = '.'; } if (k >= 0) { Buf[k--] = '.'; } } gOut.Write("{0}{1}", Environment.NewLine, Buf); gOut.WriteLine("{0}{1}{0}{0}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("AnswersElement"), null), Record.GetAnswers(i)); } }
public override void ListErrorField() { Debug.Assert(!string.IsNullOrWhiteSpace(ErrorFieldName)); gOut.Write("{0}{1}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Uid"), null), Record.Uid); gOut.Write("{0}{1}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Name"), null), Record.Name); if (ErrorFieldName.Equals("Desc", StringComparison.OrdinalIgnoreCase) || ShowDesc) { gOut.WriteLine("{0}{1}{0}{0}{2}", Environment.NewLine, gEngine.BuildPrompt(27, '.', 0, GetPrintedName("Desc"), null), Record.Desc); } if (ErrorFieldName.Equals("IntroStory", StringComparison.OrdinalIgnoreCase)) { gOut.Print("{0}{1}", gEngine.BuildPrompt(27, '.', 0, GetPrintedName("IntroStory"), null), Record.IntroStory); } }