예제 #1
0
 /// <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();
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 /// <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();
 }