private void btnBuscaPlayersVip_Click(object sender, EventArgs e) { _businessOperations = new BusinessOperations(); try { List <PlayersVip> playersVips = _businessOperations.BusinessGetPlayersVipByFilter(new PlayersVipFilter { PlayerNome = txtBuscaNomePlayerVip.Text.Trim(), PlayerNick = txtBuscaNickPlayerVip.Text.Trim(), PlayerDataInclusaoSLOTVipInicial = dtpBuscaDataCadastroPlayerVipInicial.Value, PlayerDataInclusaoSLOTVipFinal = dtpBuscaDataCadastroPlayerVipFinal.Value, PlayerAtivo = rdbBuscaPlayerVipAtivoSim.Checked, PlayerEhAdmin = rdbBuscaPlayerVipEhAdminSim.Checked, PlayerDiasVIP = string.IsNullOrEmpty(txtBuscaQtdDiasPlayerVip.Text.Trim()) == true ? short.MinValue : Convert.ToInt16(txtBuscaQtdDiasPlayerVip.Text.Trim()) }); if (playersVips != null) { CarregarDadosNoGridFiltro(playersVips); } else { MessageBox.Show("Nenhum Player Víp encontrado na base de dados baseado nas informações deste formulário", "Sem registros!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); gridBuscaRegistroFiltro.Rows.Clear(); } } catch (Exception ex) { MessageBox.Show("Erro ao consultar os Player's Vip na base de dados: " + ex.Message, "Erro!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }