private void CarregaComboFormaPagamentoTipo() { Retorno objRetorno; using (var objBLL = new FormaPagamento()) { objRetorno = objBLL.RetornaListaFormaPagamentoTipo(); } if (objRetorno.intCodigoErro == 0) { arrFormaPagamentoTipo = (List <tbFormaPagamentoTipo>)objRetorno.objRetorno; } else { MessageBox.Show(objRetorno.strMsgErro, "Atenção", MessageBoxButton.OK, Util.GetMessageImage(objRetorno.intCodigoErro)); } }