private void ShowBatches() { query.ShowBatches().ForEach(x => { Console.WriteLine("{0}, {1}, {2}", x.Date, x.NameOfRecipe, x.SumOfPreparedBatches); }); }
public void LoadBatches(DataGrid dataGrid) { dataGrid.ItemsSource = batchQuery.ShowBatches(); }