Esempio n. 1
0
        private void AddOutputs(string line, OutputLevel level)
        {
            if (!string.IsNullOrEmpty(tbOutputs.Text))
            {
                tbOutputs.Text += "\r\n";
            }

            if (level == OutputLevel.None)
            {
                tbOutputs.Text = tbOutputs.Text + line;
            }
            else
            {
                tbOutputs.Text = tbOutputs.Text + " [" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + "] [" + level.ToString() + "] " + line;
            }
        }