예제 #1
0
        private void GetRoutes(int offset, int count)
        {
            if (!m_routesPanelRefreshInProgress)
            {
                m_routesPanelRefreshInProgress = true;

                m_riaContext.SIPDialplanRoutes.Clear();

                var routesQuery = m_riaContext.GetSIPDialplanRoutesQuery().Where(x => x.DialPlanID == m_dialPlan.ID).OrderBy(x => x.RouteName).Skip(offset).Take(count);
                routesQuery.IncludeTotalCount = true;
                m_riaContext.Load <SIPDialplanRoute>(routesQuery, LoadBehavior.RefreshCurrent, RoutesLoaded, null);
            }
        }