private void GetOptions() { if (!m_optionsRefreshInProgress) { m_optionsRefreshInProgress = true; m_optionsDataForm.ItemsSource = null; m_riaContext.SIPDialplanOptions.Clear(); m_riaContext.Load <SIPDialplanOption>(m_riaContext.GetSIPDialplanOptionsQuery().Where(x => x.DialPlanID == m_dialPlan.ID), LoadBehavior.RefreshCurrent, OptionsLoaded, null); } }