public void AddPrimitive(IChartDrawable primitive) { Primitives.Add(primitive); if (primitive is IDateDrawable) this.rangeList.Add(primitive as IDateDrawable); else this.simplePrimitives.Add(primitive); }