Ejemplo n.º 1
0
        public void CMDprintError(string value)
        {
            string log = string.Format("[{0}][Error]{1}\r\n", DateTime.Now.ToLongTimeString(), value);

            try
            {
                CmdrichTextBox.AppendText(log);
            }
            catch (Exception e)
            {
                this.Invoke(new Action(delegate
                {
                    CmdrichTextBox.AppendText(log);
                }));
            }
        }