Exemple #1
0
 // GET DATA
 //------------------------------------------------------------------------------------------------------------
 private void ObterDados()
 {
     try
     {
         // --- Ampulheta ON
         Cursor.Current         = Cursors.WaitCursor;
         list                   = classTitular.convertFrom(bBLL.GetTitularList());
         bindList.DataSource    = list;
         dgvListagem.DataSource = bindList;
     }
     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;
     }
 }
Exemple #2
0
 // GET DATA
 //------------------------------------------------------------------------------------------------------------
 private void ObterDados(object sender, EventArgs e)
 {
     try
     {
         // --- Ampulheta ON
         Cursor.Current = Cursors.WaitCursor;
         DespesaBLL dBLL = new DespesaBLL();
         listTitular = dBLL.GetTitularList(true);
         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;
     }
 }