Пример #1
0
 public static void Initialize()
 {
     // Ensure that the UpdateScheduler has the ability to run delegates
     // on the UI thread.
     if (_mainDispatcher == null)
     {
         _mainDispatcher = Deployment.Current.Dispatcher;
     }
     UpdateScheduler.Initialize(RunOnUIThread);
     FloatingTimeZone.Initialize(RunOnUIThread);
 }
Пример #2
0
        public static void Initialize()
        {
            // Ensure that the UpdateScheduler has the ability to run delegates
            // on the UI thread.
            if (_mainDispatcher == null)
            {
#if WPF
                _mainDispatcher = Dispatcher.CurrentDispatcher;
#endif
#if UNIVERSAL
                _mainDispatcher = Window.Current.Dispatcher;
#endif
                UpdateScheduler.Initialize(RunOnUIThread);
                FloatingTimeZone.Initialize(RunOnUIThread);
            }
        }