/// <summary> /// Removes a channel from the CurrentFavorites collection /// </summary> /// <param name="channel">channel to remove</param> public void Remove(Channel channel) { RemoveThumbmnnail(GetThumbnailAt(CurrentFavorites.IndexOf(channel))); CurrentFavorites.Remove(channel); UpdateUIControls(); }
/// <summary> /// Updates the snapshot for a given channel. /// Does nothing if the channel does not exist. /// Does nothing if the snapshot is null. /// </summary> /// <param name="channel">channel to update</param> /// <param name="snapshot">new snapshot to display</param> public void UpdateSnapshot(Channel channel, Snapshot snapshot) { if (snapshot == null) { return; } FavoriteChannelThumbnail t = GetThumbnailAt(CurrentFavorites.IndexOf(channel)); if (t != null) { t.Image = snapshot.DIBBitmap; } }