Esempio n. 1
0
 public void AddSubscribers(Subscriber[] subscribers)
 {
     foreach (Subscriber subscriber in subscribers)
     {
         AddSubscriber(subscriber);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public Subscriber[] GetSubscribers()
 {
     ElementList nl = SelectElements(typeof(Subscriber));
     Subscriber[] subscribers = new Subscriber[nl.Count];
     int i = 0;
     foreach (Element e in nl)
     {
         subscribers[i] = (Subscriber) e;
         i++;
     }
     return subscribers;
 }
Esempio n. 3
0
 /// <summary>
 /// Add a Subscriber
 /// </summary>
 /// <param name="subscriber">the Subscriber to add</param>
 /// <returns></returns>
 public Subscriber AddSubscriber(Subscriber subscriber)
 {
     AddChild(subscriber);
     return subscriber;
 }
Esempio n. 4
0
 /// <summary>
 /// Add a Subscriber
 /// </summary>
 /// <returns></returns>
 public Subscriber AddSubscriber()
 {
     Subscriber subscriber = new Subscriber();
     AddChild(subscriber);
     return subscriber;
 }