public ScreenMap (ScreenController ctrl, Thing t) { this.ctrl = ctrl; this.engine = ctrl.Engine; this.thing = t; // OS specific details if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) { // Code that uses features from Xamarin.iOS 7.0 this.EdgesForExtendedLayout = UIRectEdge.None; } // Create URLTileLayers osmLayer = UrlTileLayer.FromUrlConstructor ( (uint x, uint y, uint zoom) => { string url = String.Format("http://a.tile.openstreetmap.org/{0}/{1}/{2}.png", zoom, x, y); return NSUrl.FromString(url); } ); osmLayer.ZIndex = 0; ocmLayer = UrlTileLayer.FromUrlConstructor ( (uint x, uint y, uint zoom) => { string url = String.Format("http://c.tile.opencyclemap.org/cycle/{0}/{1}/{2}.png", zoom, x, y); return NSUrl.FromString(url); } ); ocmLayer.ZIndex = 0; }
public ScreenDetail (ScreenController ctrl, UIObject obj) : base () { this.ctrl = ctrl; this.activeObject = obj; // OS specific details if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) { // Code that uses features from Xamarin.iOS 7.0 this.EdgesForExtendedLayout = UIRectEdge.None; } }
public ScreenMain (ScreenController ctrl) : base() { this.ctrl = ctrl; this.engine = ctrl.Engine; // OS specific details if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) { // Code that uses features from Xamarin.iOS 7.0 this.EdgesForExtendedLayout = UIRectEdge.None; this.ExtendedLayoutIncludesOpaqueBars = false; } }
public CheckLocation (ScreenController sc, CLLocationManager lm) : base() { ctrl = sc; locationManager = lm; // OS specific details if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) { // Code that uses features from Xamarin.iOS 7.0 this.EdgesForExtendedLayout = UIRectEdge.None; } lm.Delegate = new LocationManagerDelegate (this); }
public ScreenList (ScreenController ctrl, ScreenType screen) : base() { this.ctrl = ctrl; this.engine = ctrl.Engine; this.type = screen; // Create source for table view screenListSource = new ScreenListSource(this, ctrl, screen); // OS specific details if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) { // Code that uses features from Xamarin.iOS 7.0 this.EdgesForExtendedLayout = UIRectEdge.None; } }
public MainScreenSource(ScreenMain owner, ScreenController ctrl) { this.owner = owner; this.ctrl = ctrl; }
void Start(Cartridge cart, Boolean restore = false) { UIApplication.SharedApplication.IdleTimerDisabled = true; // Create main screen handler screenCtrl = new ScreenController(this, cart, restore); // Set as new navigation controll window.RootViewController = screenCtrl; }
public void CartStop() { if (screenCtrl != null) { window.RootViewController = navCartSelect; screenCtrl.Dispose (); screenCtrl = null; } UIApplication.SharedApplication.IdleTimerDisabled = false; }
public LocationManagerDelegate(ScreenController ctrl) { this.ctrl = ctrl; }
public ScreenListSource(ScreenList owner, ScreenController ctrl, ScreenType screen) { this.owner = owner; this.ctrl = ctrl; this.screen = screen; }