private void SetupDatabase()
        {
            var drillsRepository = new DrillsRepository();
            var eventsRepository = new EventRepository();

            drillsRepository.SetupInitialData();
            eventsRepository.SetupInitialData();
        }
        public void LoadData()
        {
            IsBusy = true;

            Scheduler.NewThread.Schedule(() =>
                                             {
                                                 SetupDatabase();

                                                 var repo = new EventRepository();
                                                 IList<EventDto> eventDtos = new List<EventDto>();
                                                 switch (DashboardViewState)
                                                 {
                                                    case DashboardViewState.ShowAll:
                                                    eventDtos = repo.All();
                                                    break;

                                                    case DashboardViewState.ShowActive:
                                                    eventDtos = repo.Open();
                                                    break;

                                                    case DashboardViewState.ShowCompleted:
                                                    eventDtos = repo.Completed();
                                                    break;
                                                 }

                                                 var events = new ObservableCollection<Event>(eventDtos.Select(x => new Event(x)).ToList());

                                                 HandleLoadDataCallback(events);
                                             });
        }