private void Editar(object objParam) { if (objParam != null) { Retorno objRetorno; using (var objBLL = new Fornecedores()) { objRetorno = objBLL.RetornaFornecedor((int)objParam, null); } if (objRetorno.intCodigoErro == 0) { objFornecedor = (tbFornecedor)objRetorno.objRetorno; base.enStatusTelaAtual = enStatusTela.EmInclusaoOuAlteracao; } else { MessageBox.Show(objRetorno.strMsgErro, "Atenção", MessageBoxButton.OK, Util.GetMessageImage(objRetorno.intCodigoErro)); } } }