private void Window_Loaded(object sender, RoutedEventArgs e) { cbSabor.ItemsSource = SaborDAO.ListarSabores(); cbSabor.DisplayMemberPath = "Nome"; cbSabor.SelectedValuePath = "SaborId"; cbTamanho.ItemsSource = TamanhoDAO.ListarTamanhoes(); cbTamanho.DisplayMemberPath = "Nome"; cbTamanho.SelectedValuePath = "TamanhoId"; cbBebida.ItemsSource = BebidaDAO.ListarBebidas(); cbBebida.DisplayMemberPath = "Nome"; cbBebida.SelectedValuePath = "BebidaId"; }
private void Window_Loaded(object sender, RoutedEventArgs e) { dtaTamanhoes.ItemsSource = TamanhoDAO.ListarTamanhoes(); }