private void ListRutinas() { try { RutinaDataGrid.ItemsSource = rutina.GetAll(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void ListRutinas() { try { DataGrid dataGrid = new DataGrid { ItemsSource = rutina.GetAll() }; LUNESItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "LUNES"); MARTESItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "MARTES"); MIERCOLESItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "MIERCOLES"); JUEVESItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "JUEVES"); VIERNESItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "VIERNES"); SABADOItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "SABADO"); DOMINGOItemsControl.ItemsSource = rutina.FindByClienteDia(CustomerCache.Id.ToString(), "DOMINGO"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }