Пример #1
0
        private void CarregarGrid()
        {
            TarefaDAO tarefaDao = new TarefaDAO();
            DataTable dataTable = tarefaDao.GetTarefas();

            dgvAgenda.DataSource = dataTable;
            dgvAgenda.Refresh();
            statusStrip.Items[0].Text = tarefaDao.ContarTarefas() + " tarefa(s)";
        }