public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title      = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager();

            nearableManager.RangedNearable += (sender, e) => {
                Nearable = e.Nearable;
                UpdateStats();
            };

            nearableManager.EnteredIdentifierRegion += (sender, e) =>
            {
                if (enterSwitch.On)
                {
                    LabelNotification.Text = "Enter region: " + e.Identifier;

                    var notification = new UILocalNotification();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
                }
            };

            nearableManager.ExitedIdentifierRegion += (sender, e) =>
            {
                if (exitSwitch.On)
                {
                    LabelNotification.Text = "Exit region: " + e.Identifier;
                    var notification = new UILocalNotification();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
                }
            };
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            this.Title = "Nearable: " + Nearable.Identifier;
            nearableManager = new NearableManager ();

            nearableManager.RangedNearable += (sender, e) => {
                Nearable = e.Nearable;
                UpdateStats ();
            };

            nearableManager.EnteredIdentifierRegion += (sender, e) =>
            {
                if (enterSwitch.On) {
                    LabelNotification.Text = "Enter region: " + e.Identifier;

                    var notification = new UILocalNotification ();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow (notification);
                }
            };

            nearableManager.ExitedIdentifierRegion += (sender, e) =>
            {
                if (exitSwitch.On) {
                    LabelNotification.Text = "Exit region: " + e.Identifier;
                    var notification = new UILocalNotification ();
                    notification.AlertBody = LabelNotification.Text;

                    UIApplication.SharedApplication.PresentLocalNotificationNow (notification);
                }
            };
        }