public void ClearChart()
 {
     using (_chartUpdater.UpdateTransaction(Chart))
     {
         ChartEditorPresenter.RemoveDataRepositories(_dataRepositories);
         _dataRepositories.Clear();
     }
 }
示例#2
0
        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();
     }
 }