Example #1
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("OnNavigatedFrom Exit Calibration Page");
     if (sdkLib != null)
     {
         sdkLib.firePenDataEvent -= OnPenDataHandlerAsync;
         sdkLib.setCalirationMode(false);
     }
 }
Example #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("OnNavigatedTo Enter Calibration Page");


            sdkLib = rootPage.GetEBeam();
            if (sdkLib != null)
            {
                sdkLib.setCalirationMode(true);

                sdkLib.firePenDataEvent += OnPenDataHandlerAsync;
            }
        }
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("OnNavigatedTo Enter Calibration Page");


            sdkLib = rootPage.GetEBeam();
            if (sdkLib != null)
            {
                sdkLib.setCalirationMode(true);
                if (sdkLib.getStationPosition() == eBeamSDKLib.DIRECTION_LEFT)
                {
                    LeftSide.IsChecked = true;
                }
                else
                {
                    RightSide.IsChecked = true;
                }
                sdkLib.firePenDataEvent += OnPenDataHandlerAsync;
            }
        }