Example #1
0
        public void Carregar()
        {
            BuscarAtendenteBusiness dados = new BuscarAtendenteBusiness();

            lbxListaUser.DataSource    = dados.Buscar();
            lbxListaUser.DisplayMember = "Nome";
        }
Example #2
0
 public frmConsultarDemRH()
 {
     InitializeComponent();
     try
     {
         BuscarAtendenteBusiness bc         = new BuscarAtendenteBusiness();
         List <DTOUser>          Atendentes = bc.BuscarDemitidos();
         int quant = bc.QuantidadeDeDemitidos();
         lblQuant.Text           = quant.ToString();
         gvAtendentes.DataSource = Atendentes;
     }
     catch
     {
         MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public frmConsultaRH()
 {
     InitializeComponent();
     txt1.Focus();
     try
     {
         BuscarAtendenteBusiness bc         = new BuscarAtendenteBusiness();
         List <DTOUser>          Atendentes = bc.Buscar();
         int quant = bc.Quantidade();
         lblQuant.Text           = quant.ToString();
         gvAtendentes.DataSource = Atendentes;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }