Пример #1
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (_rfCardReader != null)
     {
         _rfCardReader.Dispose();
         _rfCardReader = null;
     }
 }
Пример #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (_rfCardReader == null)
     {
         _rfCardReader = new Helpers.RFCardReader(() =>
         {
             this.Frame.Navigate(typeof(MainPage));
         });
     }
 }
Пример #3
0
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        ///
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="GridCS.Common.NavigationHelper.LoadState"/>
        /// and <see cref="GridCS.Common.NavigationHelper.SaveState"/>.
        /// The navigation parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (_rfCardReader == null)
            {
                _rfCardReader = new Helpers.RFCardReader(() =>
                {
                    System.Diagnostics.Debug.WriteLine("read");
                });
            }

            navigationHelper.OnNavigatedTo(e);
        }