예제 #1
0
        internal static GISResponse ProcessErrorResponse(string errorMessage, string requestXml, string responseXml)
        {
            GISResponse response = new GISResponse();
            response._lastRequest = requestXml;
            response._lastResponse = responseXml;
            response._hasError = true;
            response._errorMessage = errorMessage;

            return response;
        }
예제 #2
0
        internal void RaiseMapResponse(GISResponse response)
        {
            Controller.RequestProcessing = false;

            try
            {
                if (!response.HasError && response is GISImageResponse)
                {
                    GISLayerInfo tempLayer;
                    GISImageResponse iresponse = response as GISImageResponse;

                    foreach (GISLayerInfo info in iresponse.Layers)
                    {
                        if (!ActiveService.FindLayer(info._name, out tempLayer))
                        {
                            ActiveService._baseLayers.Add(info);
                            ActiveService._activeLayers.Add(info);
                        }
                    }
                }

                if (OnMapRequestComplete != null)
                {
                    OnMapRequestComplete(response);
                }
            }
            catch { }
        }
예제 #3
0
        internal void RaiseIdentifyResponse(GISResponse response)
        {
            Controller.RequestProcessing = false;

            try
            {
                if (OnIdentifyRequestComplete != null)
                {
                    OnIdentifyRequestComplete(response);
                }
            }
            catch { }
        }
예제 #4
0
        internal void RaiseErrorResponse(GISResponse errorResponse)
        {
            Controller.RequestProcessing = false;

            if (OnRequestError != null)
            {
                OnRequestError(errorResponse);
            }
        }