Exemple #1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            _timer.Stop();

            // ***
            // *** Dispose the pin.
            // ***
            if (_pin != null)
            {
                _pin.Dispose();
                _pin = null;
            }

            // ***
            // *** Set the Dht object reference to null.
            // ***
            _dht = null;

            // ***
            // *** Stop the high CPU usage simulation.
            // ***
            CpuKiller.StopEmulation();

            base.OnNavigatedFrom(e);
        }
Exemple #2
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            _timer.Stop();

            _pin.Dispose();
            _pin = null;

            _dht = null;

            CpuKiller.StopEmulation();

            base.OnNavigatedFrom(e);
        }