Пример #1
0
        private void GetAllPecuarista()
        {
            try
            {
                WebServiceMarfrigSoapClient webpec = new WebServiceMarfrigSoapClient();
                pecuaristaBindingSource.DataSource = webpec.GetAllPecuarista();

                Pecuarista oPecurista = pecuaristaBindingSource.Current as Pecuarista;
            }
            catch (Exception ex)
            {
                MetroFramework.MetroMessageBox.Show(this, ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }