// ReSharper disable UnusedParameter.Local
        private static void OnGetFixtures(object sender, DoWorkEventArgs doWorkEventArgs, Context context)
        // ReSharper restore UnusedParameter.Local
        {
            var fixtures = FootballService.GetFixtures(TeamId);

            if (fixtures == null)
            {
                return;
            }

            var notifications = new Notifications(context);

            notifications.DisplayNotificationIfNextGameIsToday(fixtures);
        }
コード例 #2
0
        // ReSharper disable UnusedParameter.Local
        private void OnGetFixtures(object sender, DoWorkEventArgs doWorkEventArgs, bool forceRefresh = false)
        // ReSharper restore UnusedParameter.Local
        {
            var updater  = new ListViewUpdater(_fixtureList);
            var fixtures = FootballService.GetFixtures(TeamId, forceRefresh);


            if (fixtures != null)
            {
                for (var i = 0; i < fixtures.Count; i++)
                {
                    _fixturesArray[i] = fixtures[i];
                }
                _notifications.DisplayNotificationIfNextGameIsToday(fixtures);
                var alarm = new FixtureAlarmService(this);
                alarm.StartFixtureCheckAlarm();
            }
            updater.Post();
        }