예제 #1
0
        //记录日志
        private void write_log(String msg)
        {
            String time = DateTime.Now.ToLocalTime().ToString();

            Log_Box.AppendText(Environment.NewLine + "[" + time + "] " + msg);
            Log_Box.ScrollToCaret();
        }
예제 #2
0
 private void Log_Box_TextChanged(object sender, EventArgs e)    //将日志区滑至底端
 {
     Log_Box.SelectionStart = Log_Box.Text.Length;
     Log_Box.ScrollToCaret();
 }