public void ClearChart() { using (_chartUpdater.UpdateTransaction(Chart)) { ChartEditorPresenter.RemoveDataRepositories(_dataRepositories); _dataRepositories.Clear(); } }
private void removeSimulation(IndividualSimulation simulation) { var repo = DataRepositoryFor(simulation); if (repo == null) { return; } _repositoryCache.Remove(repo); ChartEditorPresenter.RemoveDataRepositories(new [] { repo }); Chart.RemoveSimulation(simulation); }
public void ClearChart() { using (_chartUpdater.UpdateTransaction(Chart)) { ChartEditorPresenter.RemoveDataRepositories(_dataRepositories); _dataRepositories.Each(repository => { Chart.RemoveCurvesForDataRepository(repository); }); _dataRepositories.Clear(); } }