private void GetSIPAccounts(int offset, int count) { if (!m_sipAccountsPanelRefreshInProgress) { m_sipAccountsPanelRefreshInProgress = true; m_riaContext.SIPAccounts.Clear(); var query = m_riaContext.GetSIPAccountsQuery().OrderBy(x => x.SIPUsername).Skip(offset).Take(count); query.IncludeTotalCount = true; m_riaContext.Load(query, LoadBehavior.RefreshCurrent, GetSIPAccountsCompleted, null); } else { LogActivityMessage_External(MessageLevelsEnum.Warn, "A SIP accounts refresh is already in progress."); } }