/// <summary> /// Renames a subscription. /// </summary> /// <param name="subscription">A <see cref="Subscription"/>.</param> /// <param name="name">The new name.</param> public void Rename(Subscription subscription, string name) { subscription.Name = name; SubscriptionsStorage.Instance.Save(); }
/// <summary> /// Adds a subscription. /// </summary> /// <param name="subscription">A <see cref="Subscription"/>.</param> protected void Add(Subscription subscription) { SubscriptionsStorage.Instance.Subscriptions.Add(subscription); SubscriptionsStorage.Instance.Save(); }
/// <summary> /// Removes a subscription. /// </summary> /// <param name="subscription">A <see cref="Subscription"/>.</param> public void Remove(Subscription subscription) { SubscriptionsStorage.Instance.Subscriptions.Remove(subscription); SubscriptionsStorage.Instance.Save(); }