private void PopulateEvents()
        {
            Cursor = Cursors.WaitCursor;
            var formattedEvents = FormattedEvent.ToFormattedEvents(dataSource.GetEvents(startDate.Value, endDate.Value, null /* country */));

            Cursor        = Cursors.Default;
            updatingUiNow = true;
            Array.Reverse(formattedEvents);
            events.DataSource = formattedEvents;
            if (events.Items.Count > 0)
            {
                events.SelectedIndex = 0;
            }
            PopulateCategories();
            PopulateRunners();
            updatingUiNow = false;
        }
예제 #2
0
        private void PopulateEvents()
        {
            WebServices s = new WebServices();

            Cursor = Cursors.WaitCursor;
            FormattedEvent[] events = FormattedEvent.ToFormattedEvents(s.GetEvents(startDate.Value, endDate.Value));
            Cursor        = Cursors.Default;
            updatingUiNow = true;
            Array.Reverse(events);
            winSplitsEvents.DataSource = events;
            if (winSplitsEvents.Items.Count > 0)
            {
                winSplitsEvents.SelectedIndex = 0;
            }
            PopulateCategories();
            PopulateRunners();
            updatingUiNow = false;
        }