private void btnAplicar_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(txbNomeFilial.Text) && !string.IsNullOrWhiteSpace(txbCidadeFilial.Text) && !string.IsNullOrWhiteSpace(txbLogradouroFilial.Text) && !string.IsNullOrWhiteSpace(txbTelefoneFilial.Text)) { ConManager.EditarFilial(this.getGridViewID(), txbNomeFilial.Text, txbCidadeFilial.Text, txbLogradouroFilial.Text, txbTelefoneFilial.Text); this.Close(); } else { MessageBox.Show("Por favor preencha os campos acima!"); } }