protected override void Execute() { AppJournal.Write(GetType().Name + ":" + System.Reflection.MethodBase.GetCurrentMethod(), "Started..."); var reportNo = 0; foreach (var report in ReportTransport.GetNew()) { reportNo++; AppJournal.Write(GetType().Name + ":" + System.Reflection.MethodBase.GetCurrentMethod(), " report NO:" + reportNo); var eventArg = new NewReportEventArg { ReportDocument = report, ReportNo = reportNo }; NewReportEvent?.Invoke(this, eventArg); } }
public void Handle(NewReportEvent message) { ActivateItem(_newReportVM); }