Esempio n. 1
0
 private static void safeFlushOfCurrentlyDeferred()
 {
     if (m_ViewModelOfDeferredChange != null && m_PropertyNameOfDeferredChange != null)
     {
         m_ViewModelOfDeferredChange.NotifyPropertyChanged(m_PropertyNameOfDeferredChange);
         m_ViewModelOfDeferredChange    = null;
         m_PropertyNameOfDeferredChange = null;
     }
 }
Esempio n. 2
0
        private static void onDeferringDelayTick(System.Object sender, System.EventArgs e)
        {
            System.Diagnostics.Debug.Assert(m_ViewModelOfDeferredChange != null);
            System.Diagnostics.Debug.Assert(m_PropertyNameOfDeferredChange != null);

            if (m_DeferringTimer.IsEnabled)
            {
                safeFlushOfCurrentlyDeferred();
            }

            m_ViewModelOfDeferredChange    = null;
            m_PropertyNameOfDeferredChange = null;
            m_DeferringTimer.Stop();
        }