예제 #1
0
        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);
            }
        }
예제 #2
0
 public void Handle(NewReportEvent message)
 {
     ActivateItem(_newReportVM);
 }