コード例 #1
0
        private void ExtinctSpeciesCallback(IAsyncResult asyncResult)
        {
            try
            {
                _pendingAsyncResult     = null;
                _speciesDataSet         = _service.EndGetExtinctSpecies(asyncResult);
                _cacheDate              = DateTime.Now;
                _retrievingData.Visible = false;
            }
            catch
            {
                if (!_connectionCancelled)
                {
                    _retrievingData.Text = "There was a problem getting species list from server.";
                }
                return;
            }

            this.Invalidate();
        }