private void btnImportarTodos_Click(object sender, EventArgs e) { var lServico = new ImportacaoFundosServico(); var lLista = RetornaCodigoAnbima(); foreach (string CodigoAnbima in lLista) { DateTime lDataInicial = DateTime.Now.AddYears(-5);// DateTime.Parse(txtDate.Text); lServico.ImportarDadosFundos(CodigoAnbima, lDataInicial); } }
private void btnImportacao_Click(object sender, EventArgs e) { try { var lServico = new ImportacaoFundosServico(); lServico.ThreadImportacaoAnbima(null, false); } catch (Exception ex) { MessageBox.Show(ex.Message, "Erro encontrado", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnImportar_Click(object sender, EventArgs e) { List <string> ListaFundos = new List <string>(); var lServico = new ImportacaoFundosServico(); if (txtCodigoAnbima.Text.Equals(string.Empty)) { MessageBox.Show("Codigo Anbima inválido"); } else { string CodigoAnbima = txtCodigoAnbima.Text; DateTime lDataInicial = DateTime.Now.AddYears(-5);// DateTime.Parse(txtDate.Text); lServico.ImportarDadosFundos(CodigoAnbima, lDataInicial); } }
private void btnImportarAvulsos_Click(object sender, EventArgs e) { var lServico = new ImportacaoFundosServico(); lServico.ImportacaoAvulsaANBIMA(); }