コード例 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (App.skin.IsLight)
     {
         Guide.set_IsScreenSaverEnabled(false);
         if (PhoneApplicationService.get_Current().get_ApplicationIdleDetectionMode() == 1)
         {
             PhoneApplicationService.get_Current().set_ApplicationIdleDetectionMode(0);
         }
     }
     base.set_Foreground(new SolidColorBrush(App.skin.FontColor));
 }
コード例 #2
0
 public App()
 {
     base.add_UnhandledException(new EventHandler <ApplicationUnhandledExceptionEventArgs>(this, this.Application_UnhandledException));
     this.InitializeComponent();
     this.InitializePhoneApplication();
     if (Debugger.get_IsAttached())
     {
         Application.get_Current().get_Host().get_Settings().set_EnableFrameRateCounter(true);
         PhoneApplicationService.get_Current().set_UserIdleDetectionMode(1);
     }
     skin  = new SettRule();
     marks = MarkList.Load();
 }
コード例 #3
0
ファイル: App.cs プロジェクト: thangk48cc/VietTV
 public App()
 {
     base.add_UnhandledException(new EventHandler <ApplicationUnhandledExceptionEventArgs>(this, App.Application_UnhandledException));
     this.InitializeComponent();
     this.InitializePhoneApplication();
     this.InitializeLanguage();
     this.LoadFavorite();
     if (IsolatedStorageFile.GetUserStoreForApplication().FileExists("rm.txt"))
     {
         App.sttRemove = true;
     }
     if (Debugger.get_IsAttached())
     {
         Application.get_Current().get_Host().get_Settings().set_EnableFrameRateCounter(true);
         PhoneApplicationService.get_Current().set_UserIdleDetectionMode(1);
     }
 }