Example #1
0
        /// <summary>
        /// 向UI显示输出检测过程信息
        /// </summary>
        /// <param name="message"> 消息内容 </param>
        /// <param name="success"> 是否为检测成功的消息</param>
        internal void TextOutput(string message, bool success = true)
        {
            if (success)
            {
                ResultShowTextBox.AppendText("------- " + message + Environment.NewLine + Environment.NewLine);
            }
            else  //检测失败时
            {
                ResultShowTextBox.AppendText("x x x x " + message + Environment.NewLine + Environment.NewLine);
                ErrorContainer.AddErrorInfo(message + Environment.NewLine + Environment.NewLine);
            }


            System.Threading.Thread.Sleep(500);
        }