private void BuildSysInfo()
 {
     _stringBuilder.AppendLine("[System Info]").AppendLine();
     _stringBuilder.Append(SysInfoResultMapper.CreateStringList(_sysInfoResults));
     ExceptionReporterExtensions.AppendDottedLine(_stringBuilder);
     _stringBuilder.AppendLine();
 }
示例#2
0
        private TreeNode CreateSysInfoTree()
        {
            var rootNode = new TreeNode("System");

            foreach (var sysInfoResult in _presenter.GetSysInfoResults())
            {
                SysInfoResultMapper.AddTreeViewNode(rootNode, sysInfoResult);
            }

            return(rootNode);
        }
示例#3
0
 private void BuildSysInfo()
 {
     try
     {
         _stringBuilder.AppendLine("[System Info]").AppendLine();
         _stringBuilder.Append(SysInfoResultMapper.CreateStringList(_sysInfoResults));
         ExceptionReporterExtensions.AppendDottedLine(_stringBuilder).AppendLine();
     }
     catch
     {
         _stringBuilder.AppendLine("Can't get system information");
         ExceptionReporterExtensions.AppendDottedLine(_stringBuilder).AppendLine();
     }
 }
 private void BuildSysInfo()
 {
     _stringBuilder.AppendLine("[System Info]").AppendLine();
     _stringBuilder.Append(SysInfoResultMapper.CreateStringList(_sysInfoResults));
     _stringBuilder.AppendDottedLine().AppendLine();
 }