private void Init() { if (_apiKey == null) { _apiKey = ApiKey.LoadCached(); if (_apiKey == null) { return; } } if (_api == null) { _api = new ApiUtils(_apiKey); } _appCache = Config.Instance().Cache; _cachedAppsView = _appCache.AppsByPlatform() .Select(entry => new KeyValuePair <BuildTarget, Views.EditableApp>(entry.Key, new Views.EditableApp(entry.Key, _api, entry.Value))) .ToDictionary(entry => entry.Key, entry => entry.Value); }