/// <summary> /// Creates a new tile for the <paramref name="feed"/> and queues it for adding on the <see cref="_tileListCatalog"/>. /// </summary> private void QueueCatalogTile(Feed feed) { if (string.IsNullOrEmpty(feed.UriString) || feed.Name == null) { return; } try { var appEntry = AppList.GetEntry(feed.Uri); var status = (appEntry == null) ? AppStatus.Candidate : ((appEntry.AccessPoints == null) ? AppStatus.Added : AppStatus.Integrated); var tile = _tileListCatalog.QueueNewTile(feed.Uri, feed.Name, status, _iconStore, _machineWide); tile.Feed = feed; } #region Error handling catch (InvalidOperationException) { Log.Warn(string.Format(Resources.IgnoringDuplicateAppListEntry, feed.Uri)); } #endregion }