Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //Carregar os dados de adms
            cboAdms.ItemsSource = AdministracaoHorarioDAO.Listar();
            //cboAdms.DisplayMemberPath = "Nome";
            cboAdms.SelectedValuePath = "Id";

            //Carregar os dados de niveis
            cboNiveis.ItemsSource = NivelDAO.Listar();
            //cboNiveis.DisplayMemberPath = "Nome";
            cboNiveis.SelectedValuePath = "Id";
        }
Пример #2
0
 public IActionResult Cadastrar()
 {
     ViewBag.AdministracaoHorarios = new SelectList(_administracaohorarioDAO.Listar(), "Id", "TotalAulas");
     ViewBag.Niveis = new SelectList(_nivelDAO.Listar(), "Id", "Nome");
     return(View());
 }