void ResponseTrapEvent(RequestTrapEventEventArgs e)
        {
            try
            {
                if (HttpTrap.Instance.TrapResponses)
                {
                    bool autoScroll = _requestsList.DisableAutoScroll;
                    ///disable autoscroll in the grid
                    _requestsList.DisableAutoScroll = true;

                    RequestTrapForm form = new RequestTrapForm(e.TvReqInfo.RequestLine, true);

                    //show the form modal, this will freeze the current thread and prevent the request from being sent
                    form.ShowDialog();
                    _requestsList.DisableAutoScroll = autoScroll;
                    //unlock the proxy thread
                    e.HttpRespInfo.ProcessResponse(TrafficViewer.Instance.TrafficViewerFile.LoadResponseData(e.TvReqInfo.Id));
                }
            }
            finally
            {
                e.ReqLock.Set();
            }
        }
        void RequestTrapEvent(RequestTrapEventEventArgs e)
        {
            try
            {
                //check one more time
                if (HttpTrap.Instance.TrapRequests)
                {
                    bool autoScroll = _requestsList.DisableAutoScroll;
                    //disable autoscroll in the grid
                    _requestsList.DisableAutoScroll = true;

                    RequestTrapForm form = new RequestTrapForm(e.TvReqInfo.RequestLine, false);

                    //show the form modal, this will freeze the current thread and prevent the request from being sent
                    form.ShowDialog();
                    //unlock the proxy thread
                    _requestsList.DisableAutoScroll = autoScroll;
                }
            }
            finally
            {
                e.ReqLock.Set();
            }
        }