コード例 #1
0
        public SmartLearningApplication(ISharedSmartLearningNavigator navigator, TaskScheduler uiTaskScheduler = null)
            : base(uiTaskScheduler)
        {
            // Services that have a platform-specific implementation, such as the navigator,
            // are instantiated in a platform-specific project and passed to this application
            // as a cross-platform interface.
            _navigator = navigator;


            // subscribe to app wide unhandled exceptions so that we can log them.
            AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException;
        }
コード例 #2
0
ファイル: AppDelegate.cs プロジェクト: mnguye2s/cleverbook
 public static SmartLearningApplication EnsureSmartLearningApplication(ISharedSmartLearningNavigator navigator)
 {
     return(SmartLearningApplication.Instance ?? new SmartLearningApplication(navigator));
 }