using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MeterVision.FreeAi
{
    /// <summary>
    /// AI运行日志类
    /// </summary>
    public class FreeAiLog
    {
        //private StringBuilder sbAiLog = new StringBuilder();
        //private StringBuilder sbMcuLog = new StringBuilder();
        //识别时候的运行日志(AI日志+MCU日志)
        private StringBuilder sbRunLog = new StringBuilder();

        //public RichTextBox richTextBox { get; set; }

        public FreeAiLog()
        {
            sbRunLog.Clear();
        }


        //输出并记录日志
        public void appendln_mcuLog(String message)
        {
            sbRunLog.Append(message + "\n");
        }

        //public void appendln_mcuLog(String message,RichTextBox richTextBox)
        //{
        //    sbRunLog.Append(message + "\n");
        //    richTextBox.AppendText(message + "\n");
        //}

        //public void appendln_mcLog(String message,TextBox textBox)
        //{
        //    sbRunLog.Append(message);
        //    textBox.AppendText(message);
        //}

        //输出并记录日志
        public void append_mcuLog(String message)
        {
            sbRunLog.Append(message + "\n");
        }

        //public void append_mcuLog(String message, RichTextBox richTextBox)
        //{
        //    sbRunLog.Append(message + "\n");
        //    richTextBox.AppendText(message + "\n");
        //}

        //public void append_mcLog(String message, TextBox textBox)
        //{
        //    sbRunLog.Append(message);
        //    textBox.AppendText(message);
        //}
        //////////////////////////////////////////////////////
    }
}
