コード例 #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;
 }