Esempio n. 1
0
        //*****************************************************************************************

        public void WRITE_LOG(string msg, string Tag)
        {
            string strTimeCode = CSupport.TIME_GetTimeCode_MD_HMS_MS();
            string temp        = strTimeCode + " : " + Tag + " " + msg + System.Environment.NewLine;
            string HeaderCut   = temp;

            m_msg.Append(temp);

            this.UIThread(delegate
            {
                if (CHK_00_ALL.Checked == true)
                {
                    HeaderCut = _RemoveHeaders(temp);
                    RICH_MESSAGE.AppendText(HeaderCut);
                    RICH_MESSAGE.ScrollToCaret();
                }
                else if (CHK_00_ALL.Checked == false)
                {
                    System.Threading.Thread thr = new Thread(delegate() { UpdatePrintContents(m_msg, RICH_MESSAGE, m_listCheckBox); });
                    thr.IsBackground            = true;
                    thr.Start();
                }
            });

            if (poolManager.GetActivation() == false)
            {
                poolManager.SetActivation(true);
            }

            PATH_BASE_LOG_FILE = CSupport.GetBaseLogFileName();
            string PathLogFile = CSupport.GetFullLogFileName(PATH_BASE_FOLDER, PATH_BASE_LOG_FILE);

            CThreadPoolData thrFather = new CThreadPoolData(PathLogFile, temp, m_workIndexer++);

            ThreadPool.QueueUserWorkItem(new WaitCallback(Thread_Worker), thrFather);
        }
Esempio n. 2
0
 private void _PRINT_MESSAGE(string strMessage)
 {
     RICH_MESSAGE.AppendText(strMessage + System.Environment.NewLine);
     RICH_MESSAGE.ScrollToCaret();
 }