예제 #1
0
 public void Log(string texto)
 {
     if (Tb_Log.Text.Length == 0)
     {
         Tb_Log.Text = DateTime.Now.ToLongTimeString() + $" - {texto}";
     }
     else
     {
         Tb_Log.Text = Tb_Log.Text + Environment.NewLine + DateTime.Now.ToLongTimeString() + $" - {texto}";
     }
     Tb_Log.SelectionStart = Tb_Log.Text.Length;
     Tb_Log.ScrollToCaret();
 }
예제 #2
0
 private void AddLog(string Message)
 {
     Tb_Log.Text = Tb_Log.Text + Message + "\n";
     Tb_Log.ScrollToEnd();
 }