示例#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);
            }
        }
示例#2
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);
            }
        }