Ejemplo n.º 1
0
 /// <summary>
 /// Adds a performer
 /// </summary>
 /// <param name="performer">Performer to add</param>
 public void Add(ChartPerformer performer)
 {
     if (performer == this)
     {
         throw new Exception();
     }
     if (performer.parent != null)
     {
         throw new Exception();
     }
     children.Add(performer);
     performer.parent = this;
     foreach (ISeries s in painters.Keys)
     {
         performer.AddSeries(s, painters[s]);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes a performer
 /// </summary>
 /// <param name="performer">Performer to remove</param>
 public void Remove(ChartPerformer performer)
 {
     children.Remove(performer);
 }