Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        private void btnImportarAvulsos_Click(object sender, EventArgs e)
        {
            var lServico = new ImportacaoFundosServico();

            lServico.ImportacaoAvulsaANBIMA();
        }