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(); }
private void AddLog(string Message) { Tb_Log.Text = Tb_Log.Text + Message + "\n"; Tb_Log.ScrollToEnd(); }