/// <summary>
 /// Shows the selected request parameters on the list view.
 /// </summary>
 /// <param name="histSessionsReq">
 /// Historical sessions request
 /// </param>
 private void DumpRequestParams(FakeCQG.CQGHistoricalSessionsRequest histSessionsReq)
 {
     lblRPSymbol.Text     = histSessionsReq.Symbol.ToString();
     lblRPType.Text       = histSessionsReq.Type.ToString();
     lblRPRangeStart.Text = GetValueAsString(histSessionsReq.RangeStart, true);
     lblRPRangeEnd.Text   = GetValueAsString(histSessionsReq.RangeEnd, true);
 }
        /// <summary>
        /// This event is fired when the historical sessions are resolved or
        /// when some error has occurred during the historical sessions request processing.
        /// </summary>
        /// <param name="sessColl">
        /// Reference to resolved CQGSessionsCollection
        /// </param>
        /// <param name="request">
        /// Reference to CQGHistoricalSessionsRequest
        /// </param>
        /// <param name="cqg_error">
        /// CQGError object describing the last error occurred during the historical sessions
        /// request processing or Nothing/Invalid_Error in case of no error.
        /// CQGCEL.IsValid(Invalid_Error) returns False.
        /// </param>
        private void CEL_HistoricalSessionsResolved(FakeCQG.CQGSessionsCollection sessColl,
                                                    FakeCQG.CQGHistoricalSessionsRequest request,
                                                    FakeCQG.CQGError error)
        {
            string status = (error != null) ? "Failed" : "Succeeded";

            // clear all records
            ClearRecords();

            if (error != null)
            {
                lblError.Text = error.Description;
            }

            lblStatus.Text = status;

            // Dump all data
            DumpAllData(sessColl);
        }