コード例 #1
0
 private void _stopAll()
 {
     LoggingService.Stop();
     AlertService.Stop();
     AppService.Stop();
     RenderingService.Stop();
     GestureService.Stop(this);
 }
コード例 #2
0
        private void _cleanUpAll()
        {
            SettingsPane.GetForCurrentView().CommandsRequested -= _vm.onCommandsRequested;
            //SearchPane.GetForCurrentView().QuerySubmitted -= _vm.onQuerySubmitted;

            RenderingService.Stop();
            GestureService.Stop(this);

            ccDrawingSurfaceBottom.Content = null;
            ccDrawingSurfaceTop.Content    = null;


            _fvm.ChangeState -= _fvm_ChangeState;
            DownloadService.Current.DownloadCountChanged -= Current_DownloadCountChanged;

            Messenger.Default.Unregister <GeneralSystemWideMessage>(this, DoGeneralSystemWideMessageCallback);
            AppService.NetworkConnectionChanged      -= AppService_NetworkConnectionChanged;
            WindowLayoutService.OnWindowLayoutRaised -= WindowLayoutService_OnWindowLayoutRaised;
        }
コード例 #3
0
        private void _cleanUpAll()
        {
            pbMainLoading.IsActive = false;

            ccDrawingSurfaceBottom.Content = null;
            ccDrawingSurfaceTop.Content    = null;

            RenderingService.Unload();

            GestureService.Stop(this);


            SettingsPane.GetForCurrentView().CommandsRequested -= _vm.onCommandsRequested;
            GestureService.OnGestureRaised -= GestureService_OnGestureRaised;
            //SearchPane.GetForCurrentView().QuerySubmitted -= _vm.onQuerySubmitted;

            flickrLoggedInUser.LogoutRequested -= flickrLoggedInUser_LogoutRequested;
            flickrLoggedInUser.UnloadControl();

            flickrPublicFavourites.UnloadControl();
            flickrPromoted.UnloadControl();

            flickrPicture.UnloadControl();
            flickrPictureToolbar.UnloadControl();

            flickrSmallList.UnloadControl();

            _fvm.ChangeState -= _fvm_ChangeState;
            DownloadService.Current.DownloadCountChanged -= Current_DownloadCountChanged;

            //Messenger.Default.Unregister<GeneralSystemWideMessage>(this, DoGeneralSystemWideMessageCallback);

            //_fvm.Unload();

            //_vm = null;
            //_fvm = null;
        }