Ejemplo n.º 1
0
 // GET DATA
 //------------------------------------------------------------------------------------------------------------
 private void ObterDados()
 {
     try
     {
         // --- Ampulheta ON
         Cursor.Current         = Cursors.WaitCursor;
         listConta              = cBLL.GetListConta("", Convert.ToBoolean(cmbAtivo.SelectedValue), false);
         dgvListagem.DataSource = listConta;
     }
     catch (Exception ex)
     {
         AbrirDialog("Uma exceção ocorreu ao Obter os Dados da listagem..." + "\n" +
                     ex.Message, "Exceção", DialogType.OK, DialogIcon.Exclamation);
     }
     finally
     {
         // --- Ampulheta OFF
         Cursor.Current = Cursors.Default;
     }
 }
 // GET DATA
 //------------------------------------------------------------------------------------------------------------
 private void ObterDados(object sender, EventArgs e)
 {
     try
     {
         // --- Ampulheta ON
         Cursor.Current = Cursors.WaitCursor;
         ContaBLL cBLL = new ContaBLL();
         listConta = cBLL.GetListConta("", true, _semOperadoras);
         PreencheListagem();
     }
     catch (Exception ex)
     {
         AbrirDialog("Uma exceção ocorreu ao Obter os Dados da listagem..." + "\n" +
                     ex.Message, "Exceção", DialogType.OK, DialogIcon.Exclamation);
     }
     finally
     {
         // --- Ampulheta OFF
         Cursor.Current = Cursors.Default;
     }
 }