Пример #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);
        }
Пример #2
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);
		}
Пример #3
0
			public LocationManagerDelegate(CheckLocation ctrl)
			{
				this.ctrl = ctrl;
			}
Пример #4
0
 public LocationManagerDelegate(CheckLocation ctrl)
 {
     this.ctrl = ctrl;
 }