Esempio n. 1
0
 // Code to execute when the application is activated (brought to foreground)
 // This code will not execute when the application is first launched
 private void Application_Activated(object sender, ActivatedEventArgs e)
 {
     Utils.IsLightTheme();
     _currentModel          = PhoneApplicationService.Current.State["CurrentModel"] as MainViewModel;
     _explorerViewModel     = PhoneApplicationService.Current.State["ExplorerModel"] as ExplorerViewModel;
     _multiInstallViewModel = PhoneApplicationService.Current.State["MultiInstallModel"] as MultiInstallViewModel;
     if (_multiInstallViewModel != null)
     {
         _multiInstallViewModel.Preload(_multiInstallViewModel.Xaps, true);
     }
 }
Esempio n. 2
0
 // Code to execute when the application is activated (brought to foreground)
 // This code will not execute when the application is first launched
 private void Application_Activated(object sender, ActivatedEventArgs e)
 {
     Utils.IsLightTheme();
     _currentModel = PhoneApplicationService.Current.State["CurrentModel"] as MainViewModel;
     _explorerViewModel = PhoneApplicationService.Current.State["ExplorerModel"] as ExplorerViewModel;
     _multiInstallViewModel = PhoneApplicationService.Current.State["MultiInstallModel"] as MultiInstallViewModel;
     if (_multiInstallViewModel != null)
         _multiInstallViewModel.Preload(_multiInstallViewModel.Xaps, true);
 }