private void OnAddChartCommandExecuted() { if (!this.addUserDefinedBurnDownController.AddChart()) { return; } List <BudgetBucket> buckets = this.addUserDefinedBurnDownController.SelectedBuckets.ToList(); BurnDownChartAnalyserResult result = this.chartsService.CreateNewCustomAggregateChart( this.statement, this.budget, buckets, this.ledgerBook, this.beginDate, this.addUserDefinedBurnDownController.ChartTitle); BucketBurnDownController newChart = BuildBucketBurnDownController(result); ChartControllers.Insert(0, newChart); }
private void OnRemoveChartCommandExecuted() { ChartControllers.Remove(SelectedChart); this.chartsService.RemoveCustomChart(SelectedChart.ChartTitle); }