private void _archiveService_MessageReported(object sender, MessageReportedEventArgs e) { LogService.GroupMessage("analysis", e.Message); if (e.IsStatusMessage) { App.Current.Dispatcher.BeginInvoke((Action)(() => ProgressMessage = e.Message.Trim())); } }
private void ManagementSession_FatalErrorReported(object sender, MessageReportedEventArgs e) { Wizard.TryInvoke((Action)(() => { State = SessionStatusType.Error; var ex = new OpenVPNException(e.Message); StateDescription = ex.ToString(); throw ex; })); }
private void _modAnalyzerService_MessageReported(object sender, MessageReportedEventArgs e) { App.Current.Dispatcher.BeginInvoke((Action)(() => { Log += e.Message + Environment.NewLine; if (!string.IsNullOrWhiteSpace(e.Message)) { LogService.GroupMessage("analysis", e.Message); } if (e.IsStatusMessage) { ProgressMessage = e.Message.Trim(); } })); }
private void BackgroundProgress(object sender, ProgressChangedEventArgs e) { MessageReportedEventArgs eventArgs = e.UserState as MessageReportedEventArgs; MessageReported?.Invoke(this, eventArgs); }
private void ModDump_MessageReported(object sender, MessageReportedEventArgs e) { _backgroundWorker.ReportMessage(e.Message, e.IsStatusMessage); }