/// <summary> /// Adds an error to the list of errors, if the advisory only is set to true, the error will only be added to the console /// and wont count towards the error count /// </summary> /// <param name="error">The message for the error</param> /// <param name="advisoryonly">Is this only a warning?</param> private void AddError(string error, bool advisoryonly = false) { if (!advisoryonly) { Errors.Add(error); } ProgressTextBox.AppendText(error + "\r\n"); }
private void UpdateLog(string text) { Dispatcher.BeginInvoke(new Action <string>(delegate(string delegateText) { if (!string.IsNullOrEmpty(delegateText)) { logString.Append(delegateText); logString.Append("\r\n"); ProgressTextBox.Text = logString.ToString(); ProgressTextBox.ScrollToEnd(); } }), text); }
private void ProgressTextBox_OnTextChanged(object sender, TextChangedEventArgs e) { ProgressTextBox.ScrollToEnd(); }