Esempio n. 1
0
        public ScreenController(AppDelegate appDelegate, Cartridge cart, Boolean restore)
        {
            // Save for later use
            this.appDelegate = appDelegate;
            this.cart        = cart;
            this.restore     = restore;

            // Set color of NavigationBar and NavigationButtons (TintColor)
            if (new Version(UIDevice.CurrentDevice.SystemVersion) >= new Version(7, 0))
            {
                NavigationBar.SetBackgroundImage(Images.BlueTop, UIBarMetrics.Default);
            }
            else
            {
                NavigationBar.SetBackgroundImage(Images.Blue, UIBarMetrics.Default);
            }

            // Create Location Manager
            locationManager = new CLLocationManager();
            locationManager.DesiredAccuracy = CLLocation.AccurracyBestForNavigation;
            if (CLLocationManager.LocationServicesEnabled)
            {
                locationManager.StartUpdatingLocation();
            }

            // Now check, if location is accurate enough
            checkLocation = new CheckLocation(this, locationManager);
            PushViewController(checkLocation, true);
        }
		public ScreenController (AppDelegate appDelegate, Cartridge cart, Boolean restore)
		{
			// Save for later use
			this.appDelegate = appDelegate;
			this.cart = cart;
			this.restore = restore;

			// Set color of NavigationBar and NavigationButtons (TintColor)
			if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) 
				NavigationBar.SetBackgroundImage (Images.BlueTop, UIBarMetrics.Default);
			else
				NavigationBar.SetBackgroundImage (Images.Blue, UIBarMetrics.Default);

			// Create Location Manager
			locationManager = new CLLocationManager ();
			locationManager.DesiredAccuracy = CLLocation.AccurracyBestForNavigation;
			if (CLLocationManager.LocationServicesEnabled) {
				locationManager.StartUpdatingLocation ();
			}

			// Now check, if location is accurate enough
			checkLocation = new CheckLocation(this, locationManager);
			PushViewController (checkLocation, true);
		}
Esempio n. 3
0
			public LocationManagerDelegate(CheckLocation ctrl)
			{
				this.ctrl = ctrl;
			}
Esempio n. 4
0
 public LocationManagerDelegate(CheckLocation ctrl)
 {
     this.ctrl = ctrl;
 }