private void GetCDRsCountCompleted(object sender, GetCDRsCountCompletedEventArgs e)
 {
     if (IsUnauthorised(e.Error))
     {
         SessionExpired();
     }
     else if (GetCDRsCountComplete != null)
     {
         GetCDRsCountComplete(e);
     }
 }
        private void GetCDRsCountComplete(GetCDRsCountCompletedEventArgs e)
        {
            try
            {
                m_sipCDRsPanel.AssetListTotal = e.Result;
                LogActivityMessage_External(MessageLevelsEnum.Info, e.Result + " CDRs found.");
                m_persistor.GetCDRsAsync(m_sipCDRsWhere, m_sipCDRsPanelOffset, m_sipCDRsPanelCount);
            }
            catch (Exception excp)
            {
                string excpMessage = (excp.InnerException != null) ? excp.InnerException.Message : excp.Message;
                LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error retrieving the number of SIP CDRs. " + excpMessage);

                m_sipCDRsPanelRefreshInProgress = false;
            }
        }
 private void GetCDRsCountCompleted(object sender, GetCDRsCountCompletedEventArgs e) {
     if (IsUnauthorised(e.Error)) {
         SessionExpired();
     }
     else if (GetCDRsCountComplete != null) {
         GetCDRsCountComplete(e);
     }
 }