Example #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title = "Maps";

            this.btnBasicMap.TouchUpInside += (s, e) => {
                if (this._basicMaps == null)
                {
                    this._basicMaps = new BasicMapScreen();
                }
                this.NavigationController.PushViewController(this._basicMaps, true);
            };

            this.btnMapWithAnnotations.TouchUpInside += (s, e) => {
                if (this._mapWithAnnotations == null)
                {
                    this._mapWithAnnotations = new AnnotatedMapScreen();
                }
                this.NavigationController.PushViewController(this._mapWithAnnotations, true);
            };

            this.btnMapWithOverlay.TouchUpInside += (s, e) => {
                if (this._mapWithOverlay == null)
                {
                    this._mapWithOverlay = new MapWithOverlayScreen();
                }
                this.NavigationController.PushViewController(this._mapWithOverlay, true);
            };
        }
Example #2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			this.Title = "Maps";
			
			this.btnBasicMap.TouchUpInside += (s, e) => {
				if(basicMaps == null)
					basicMaps = new BasicMapScreen();
				this.NavigationController.PushViewController(basicMaps, true);	
			};
			
			this.btnMapWithAnnotations.TouchUpInside += (s, e) => {
				if(mapWithAnnotations == null)
					mapWithAnnotations = new AnnotatedMapScreen();
				this.NavigationController.PushViewController(mapWithAnnotations, true);	
			};
			
			this.btnMapWithOverlay.TouchUpInside += (s, e) => {
				if(mapWithOverlay == null)
					mapWithOverlay = new MapWithOverlayScreen();
				this.NavigationController.PushViewController(mapWithOverlay, true);	
			};
		}