Example #1
0
 /// <summary>
 /// Makes the UI controls reflect the current state of the control
 /// </summary>
 private void UpdateUIControls()
 {
     btnAddFavorite.Enabled = !CurrentFavorites.Contains(this.Channel);
     btnClear.Enabled       = CurrentFavorites.Count > 0;
     btnScan.Enabled        = btnClear.Enabled;
     cbInterval.Enabled     = btnClear.Enabled;
 }
Example #2
0
 /// <summary>
 /// Returns true if the given channel is a favorite.
 /// </summary>
 /// <param name="channel">channel to check</param>
 /// <returns>Returns true if the logical channel is a favorite, false if not.</returns>
 public bool IsFavorite(Channel channel)
 {
     return(CurrentFavorites.Contains(channel));
 }