private void inicializaObjetos() { string nomeFuncao = "geraBoletos.Boletos.inicializaObjetos"; try { if (debitos == null) { debitos = new CarSystem.Debitos.Debito(CarSystem.Tipos.tipoEmissao.Producao, dados); } if (cliente == null) { cliente = new CarSystem.Cliente(dados); } if (boletos == null) { boletos = new CarSystem.Boletos.Boleto(dados); } } catch (Exception ex) { MessageBox.Show("(" + nomeFuncao + ")" + ex.Message); } }
public CSTech() { InitializeComponent(); carregaComboPesquisa(); if (Environment.UserName.ToLower() == "carlos.pieren") // { textEmail.Text = "*****@*****.**"; } boletos = new CarSystem.Boletos.Boleto(CarSystem.Tipos.nomeBanco.Santander, oFuncoes.dados); }