Exemplo n.º 1
0
        void CompletionHandler(object sender, CalibrationCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                if (View.Window != null)
                {
                    var message = e.Error.UserInfo [NSError.LocalizedDescriptionKey].ToString();
                    new UIAlertView("Unable to calibrate device", message, null, "OK", null).Show();
                    StartRangingAllRegions();
                }
            }
            else
            {
                endViewController = new CalibrationEndViewController(e.MeasurePower);
                NavigationController.PushViewController(endViewController, true);
            }

            inProgress = false;
            calculator = null;
            TableView.ReloadData();
        }
		void CompletionHandler (object sender, CalibrationCompletedEventArgs e)
		{
			if (e.Error != null) {
				if (View.Window != null) {
					var message = e.Error.UserInfo [NSError.LocalizedDescriptionKey].ToString ();
					new UIAlertView ("Unable to calibrate device", message, null, "OK", null).Show ();
					StartRangingAllRegions ();		
				}
			} else {
				endViewController = new CalibrationEndViewController (e.MeasurePower);
				NavigationController.PushViewController (endViewController, true);
			}

			inProgress = false;
			calculator = null;
			TableView.ReloadData ();
		}