private void btnDates_Click(object sender, EventArgs e)
 {
     StatisticsAnnouncementDates lStatistics = new StatisticsAnnouncementDates((Int32)edtYearStart.Value, (Int32)edtYearEnd.Value);
     DoCalculate(lStatistics);
     if (lStatistics.StrangeAnnouncements.Count > 0)
     {
         Invoke(new Action(() => RoyalGazetteViewer.ShowGazetteDialog(lStatistics.StrangeAnnouncements,false)));
     }
 }
示例#2
0
        private void btnDates_Click(object sender, EventArgs e)
        {
            StatisticsAnnouncementDates statistics = new StatisticsAnnouncementDates((Int32)edtYearStart.Value, (Int32)edtYearEnd.Value);

            DoCalculate(statistics);
            if (statistics.StrangeAnnouncements.Any())
            {
                // Invoke(new Action(() => RoyalGazetteViewer.ShowGazetteDialog(statistics.StrangeAnnouncements, false)));
            }
        }