private void LoadData() { ((ColumnSeries)mcChart.Series[0]).ItemsSource = logic.GetSymptomaticStatistic(new ReportBindingModel { DateFrom = datePickerFrom.SelectedDate, DateTo = datePickerTo.SelectedDate, DoctorId = id }); ((ColumnSeries)mcChart.Series[1]).ItemsSource = logic.GetDrugCourseStatistic(new ReportBindingModel { DateFrom = datePickerFrom.SelectedDate, DateTo = datePickerTo.SelectedDate, DoctorId = id }); ((ColumnSeries)mcChartAll.Series[0]).ItemsSource = logic.GetSymptomaticStatistic(new ReportBindingModel { DateFrom = datePickerFrom.SelectedDate, DateTo = datePickerTo.SelectedDate, DoctorId = 0 }); ((ColumnSeries)mcChartAll.Series[1]).ItemsSource = logic.GetDrugCourseStatistic(new ReportBindingModel { DateFrom = datePickerFrom.SelectedDate, DateTo = datePickerTo.SelectedDate, DoctorId = 0 }); }