private void getPecuarista() { try { pecuaristaBindingSource.DataSource = wbclient.GetAllPecuaristaCompraGado(); Pecuarista opecuarista = pecuaristaBindingSource.Current as Pecuarista; } catch (Exception ex) { MetroFramework.MetroMessageBox.Show(this, ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } }