public void ClearComplexCharts() { int plotCount = PlotsToShow.Count; for (int i = 0; i < plotCount; i++) { PlotCheckItem plotCheckItem = PlotsToShow.Last(); plotCheckItem.Detach(); PlotsToShow.Remove(plotCheckItem); } }
public void RemoveComplexChart(ComplexChart complexChart) { foreach (PlotCheckItem plotCheckItem in PlotsToShow) { if (plotCheckItem.ComplexChart == complexChart) { plotCheckItem.Detach(); PlotsToShow.Remove(plotCheckItem); break; } } }