private void button1_Click(object sender, EventArgs e) { List <string> Erros = new List <string>(); List <Model.Financa> financas = FiltroService.setFiltro(comboBox1.Text, chkPago.Checked, textBox3.Text, textBox1.Text, textBox2.Text, dateTimePicker1.Value, dateTimePicker2.Value, (string)comboBox5.SelectedItem, ((Conta)comboBox2.SelectedItem).Id, ((CategoriaDespesa)comboBox3.SelectedItem).Id, ((CategoriaReceita)comboBox4.SelectedItem).Id, (string)comboBox5.SelectedItem == "Receita", ftrCatDespesa.Checked, ftrCatReceita.Checked, ftrConta.Checked, ftrDescricao.Checked, ftrPago.Checked, ftrReferĂȘncias.Checked, ftrTipo.Checked, ftrVencimento.Checked, out Erros); form.filterGrid(financas); this.Close(); }