Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            cbProjetos.ItemsSource = ProjetoDAO.ListarProjetos();
            //cbCliente.ItemsSource = ClienteDAO.ListarClientes();
            cbAssinatura.ItemsSource   = UsuarioDAO.ListarUsuarios();
            cbRequisitante.ItemsSource = UsuarioDAO.ListarUsuarios();

            dtCriadoEm.Text = DateTime.Now.ToString();

            cbAssinatura.IsEnabled = ValidaLogin.GerenteLogado;
        }
Exemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            lbUserLogado.Foreground    = new SolidColorBrush(Colors.White);
            lbUserLogado.Content       = ValidaLogin.user;
            btnConfigurações.IsEnabled = ValidaLogin.adminLogado;

            int users    = UsuarioDAO.ListarUsuarios().Count;
            int projetos = ProjetoDAO.ListarProjetos().Count;
            int tarefas  = TarefaDAO.ListarTarefas().Count;

            GraficoUsuarios.Value = users;
            GraficoProjetos.Value = projetos;
            GraficoTarefas.Value  = tarefas;
        }
Exemplo n.º 3
0
 private void DgProjetos_Loaded(object sender, RoutedEventArgs e)
 {
     dgProjetos.ItemsSource = ProjetoDAO.ListarProjetos();
 }
Exemplo n.º 4
0
 public IActionResult Index()
 {
     ViewBag.DataHora = DateTime.Now;
     return(View(_projetoDAO.ListarProjetos()));
 }