Ejemplo n.º 1
0
        private void _PRINT_MSG(string msg)
        {
            string s = Computer.GetTimeCode4Save_HH_MM_SS_MMM() + " : " + msg + System.Environment.NewLine;

            RICH_MESSAGE_WINDOW.AppendText(s);
            RICH_MESSAGE_WINDOW.ScrollToCaret();
        }
Ejemplo n.º 2
0
        public void InsertMessage(string msg)
        {
            string strTime = string.Format("[{0:00}-{1:00}|{2:00}:{3:00}:{4:00}:{5:000}] ", DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);

            this.Invoke(new MethodInvoker(delegate
            {
                RICH_MESSAGE_WINDOW.AppendText(strTime + msg + System.Environment.NewLine);
                RICH_MESSAGE_WINDOW.ScrollToCaret();
            }));
        }