private void RefreshErrorList(StatusErrorEventArgs args) { ListViewItem newError = new ListViewItem(new string[] { args.Key, args.FriendlyMessage }); newError.Tag = args; ErrorListView.Items.Add(newError); }
private void StatusMessaging_StatusError(StatusErrorEventArgs args) { if (!this.IsDisposed) { _StatusErrors.Add(args); InvokeHelper.BeginInvoke(this, "RefreshErrorList", new object[] { args }); } }
private void StatusMessaging_StatusError(StatusErrorEventArgs args) { if (!this.IsDisposed && this.Visible) { _StatusErrors.Add(args); Invoke((RefreshErrorListDelegate)RefreshErrorList, args); //InvokeHelper.BeginInvoke(this, "RefreshErrorList", new object[] { args }); } }
private void StatusMessaging_StatusError(StatusErrorEventArgs args) { statusErrors.Add(args); ErrorData.ItemsSource = statusErrors; SwitchToErrorTab(); }
public ErrorReport(StatusErrorEventArgs errorToDisplay) { InitializeComponent(); _errorToDisplay = errorToDisplay; }