private void Reset(ChartType chartType) { if (modelChart != null) { modelChart = null; } factory = CreateFactory(chartType); controller = factory.CreateController(); }