internal override void PerformNavigationStateChangeTasks( bool isNavigationInitiator, bool playNavigatingSound, NavigationStateChange state) { // Do not play sounds or start and stop the globe on when navigations // occur because the progress page is merely an enhanced visual experience // during the actual navigation to the application. Conceptually it should // appear as something that happens during navigation and not a series of // discrete navigations. // We do need to ensure that the Stop and Refresh buttons are in the correct state // while downloading the app. if (isNavigationInitiator && state == NavigationStateChange.Completed) { UpdateBrowserCommands(); } }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods // It would be nice to make this FamANDAssem (protected and internal) if c# supported it internal virtual void PerformNavigationStateChangeTasks( bool isNavigationInitiator, bool playNavigatingSound, NavigationStateChange state) { if (isNavigationInitiator) { switch (state) { case NavigationStateChange.Navigating: ChangeBrowserDownloadState(true); if (playNavigatingSound) { PlaySound(SOUND_NAVIGATING); } break; case NavigationStateChange.Completed: PlaySound(SOUND_COMPLETE_NAVIGATION); ChangeBrowserDownloadState(false); UpdateBrowserCommands(); break; case NavigationStateChange.Stopped: ChangeBrowserDownloadState(false); break; } } }