Esempio n. 1
0
        public LandingPageRenderer()
        {
            UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Slide);
            RedLaserViewController redLaserVC = new RedLaserViewController();

            MessagingCenter.Subscribe <LandingPage> (this, "RedLaserScan", (sender) => {
                // do something whenever the "Hi" message is sent
                redLaserVC.PrepareToScan();
                PresentViewController(redLaserVC, true, new Action(() => {
//					this.DismissModalViewController(true);
                }));
            });
        }
		public LandingPageRenderer ()
		{
			UIApplication.SharedApplication.SetStatusBarHidden (true, UIStatusBarAnimation.Slide);
			RedLaserViewController redLaserVC = new RedLaserViewController ();

 			MessagingCenter.Subscribe<LandingPage> (this, "RedLaserScan", (sender) => {
				// do something whenever the "Hi" message is sent
				redLaserVC.PrepareToScan ();
				PresentViewController (redLaserVC, true, new Action(()=>{
//					this.DismissModalViewController(true);
				}));
			});
		}