예제 #1
0
        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);
        }
예제 #2
0
 private void OnRemoveChartCommandExecuted()
 {
     ChartControllers.Remove(SelectedChart);
     this.chartsService.RemoveCustomChart(SelectedChart.ChartTitle);
 }