private void Log(string message, LogLevel level) { Color color; switch (level) { case LogLevel.Info: color = Color.Green; break; case LogLevel.Warning: color = Color.DarkOrange; break; case LogLevel.Error: color = Color.Red; break; case LogLevel.Critical: color = Color.Brown; break; case LogLevel.Default: color = Color.Black; break; default: color = Color.Black; break; } DebugTextBox.AppendText(message, color); }
public Task ShowMessage(string msg) { //await Task.Run(() =>{ }); DebugTextBox.AppendText("\n" + msg + "\n"); return(null); }
public void OnDebugOutput(string arg) { // AppendText() is much faster than data binding. DebugTextBox.AppendText(arg); DebugTextBox.CaretIndex = DebugTextBox.Text.Length; DebugTextBox.ScrollToEnd(); }
public void _Write(string text) { DebugTextBox.Dispatcher.InvokeAsync( new Action(() => { DebugTextBox.AppendText(text); DebugTextBox.ScrollToEnd(); }) ); }
public void DisplayDebug() { foreach (string oneItem in JerkHub.Ptr2Debug.DebugLineItemsList) { DebugTextBox.AppendText(oneItem); } // ptr2FormObj.DebugTextBox.Text = debugTextToDate DebugTextBox.Select(); DebugTextBox.Refresh(); }
public void Logout(string str) { DebugTextBox.AppendText("\n" + "[" + DateTime.Now.ToLongTimeString() + "]" + str); DebugTextBox.ScrollToEnd(); }
private void DebugLine(string text) { //DebugTextBox.Text += text + Environment.NewLine; DebugTextBox.AppendText(text); }
private void AppendDebugLine(string line) { DebugTextBox.AppendText(line + "\r\n"); }