コード例 #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
ファイル: ForView.cs プロジェクト: Railgun-it/Assisticant
        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);
            }
        }