Пример #1
0
        // methods
        private async Task <bool> LoadRepositoriesAsync()
        {
            LoadStatus = "Loading Speakers...";
            await SpeakerRepository.LoadAsync();

            LoadStatus = "Loading Sessions...";
            await SessionRepository.LoadAsync();

            LoadStatus = "Getting Changes...";
            await ChangeRepository.LoadAsync();

            var changes = ChangeRepository.GetAll();

            if (changes.Count > 0)
            {
                LoadStatus = "Applying Changes...";
                ChangeService.ApplyChanges(changes);
            }

            return(true);
        }