private async Task InitializeAsync() { IEnumerable <ApiKeyEntity> entities = await _shellService.GetAllActiveEntities(); Entities = new BindableCollection <ApiKeyEntity>(entities); int activeEntityId = Settings.Default.ActiveEntity; if (activeEntityId != 0) { ApiKeyEntity entity = Entities.Single(e => e.Id == activeEntityId); if (entity != null) { ApplicationHelper.ActiveEntity = entity; } } StatusMessage = "Initializing data..."; await IoC.Get <EveStaticDataRepository>().Initialize; StatusMessage = "Initializing modules..."; await _moduleService.InitialiseAsync(); StatusMessage = "Ready"; }