示例#1
0
        private void UpdateGrid()
        {
            dgvList.DataSource  = Funcionario.GetAllFuncionarios();
            cbSeccao.DataSource = Seccao.GetAllSeccoes();

            //Default Seccao Search
            cbSeccaoSearch.Items.Clear();
            cbSeccaoSearch.Items.Add("Todos");
            foreach (DataRow row in Seccao.GetAllSeccoes().Rows)
            {
                cbSeccaoSearch.Items.Add(row[1]);
            }
            cbSeccaoSearch.SelectedIndex = 0;
        }
示例#2
0
 private void UpdateGrid()
 {
     dgvList.DataSource = Seccao.GetAllSeccoes();
 }