예제 #1
0
 void ReleaseDesignerOutlets()
 {
     if (btnBoston != null)
     {
         btnBoston.Dispose();
         btnBoston = null;
     }
     if (btnLondon != null)
     {
         btnLondon.Dispose();
         btnLondon = null;
     }
     if (btnSanFran != null)
     {
         btnSanFran.Dispose();
         btnSanFran = null;
     }
     if (btnSingapore != null)
     {
         btnSingapore.Dispose();
         btnSingapore = null;
     }
     if (map != null)
     {
         map.Dispose();
         map = null;
     }
 }
		void ReleaseDesignerOutlets ()
		{
			if (mapView != null) {
				mapView.Dispose ();
				mapView = null;
			}
		}
 void ReleaseDesignerOutlets()
 {
     if (MyMap != null) {
         MyMap.Dispose ();
         MyMap = null;
     }
 }
예제 #4
0
        public override void DidSelectAnnotationView(MapKit.MKMapView mapView, MapKit.MKAnnotationView view)
        {
            selected = view.Annotation as MapKit.MKPointAnnotation;

            if (selected != null)
            {
                mapView.SetRegion(new MapKit.MKCoordinateRegion(new CoreLocation.CLLocationCoordinate2D(selected.Coordinate.Latitude, selected.Coordinate.Longitude), new MapKit.MKCoordinateSpan(30, 30)), true);

                foreach (var cell in tableView.VisibleCells)
                {
                    if (selected.Title == cell.TextLabel.Text)
                    {
                        //tableView.SelectRow(tablerow,true,0 );
                        cell.Selected = true;

                        //cell.Accesory
                    }
                    else
                    {
                        cell.Selected = false;
                    }
                }
            }

            //Foundation.NSIndexPath tablerow = new Foundation.NSIndexPath();
            //tablerow=
            //tableSource.FindRow(selected.Title);
            //tableView.SelectRow(tablerow,true,0 );

            //UITableViewDataSource.SectionIndex
        }
예제 #5
0
 void ReleaseDesignerOutlets()
 {
     if (AccountLatitude != null)
     {
         AccountLatitude.Dispose();
         AccountLatitude = null;
     }
     if (AccountLongitude != null)
     {
         AccountLongitude.Dispose();
         AccountLongitude = null;
     }
     if (AccountName != null)
     {
         AccountName.Dispose();
         AccountName = null;
     }
     if (CurrentLatitude != null)
     {
         CurrentLatitude.Dispose();
         CurrentLatitude = null;
     }
     if (CurrentLongitude != null)
     {
         CurrentLongitude.Dispose();
         CurrentLongitude = null;
     }
     if (mapView != null)
     {
         mapView.Dispose();
         mapView = null;
     }
 }
		void ReleaseDesignerOutlets ()
		{
			if (map != null) {
				map.Dispose ();
				map = null;
			}
		}
예제 #7
0
        void ReleaseDesignerOutlets()
        {
            if (LocationTableView != null)
            {
                LocationTableView.Dispose();
                LocationTableView = null;
            }

            if (DateColumn != null)
            {
                DateColumn.Dispose();
                DateColumn = null;
            }

            if (LocationColumn != null)
            {
                LocationColumn.Dispose();
                LocationColumn = null;
            }

            if (mainMapView != null)
            {
                mainMapView.Dispose();
                mainMapView = null;
            }
        }
		void ReleaseDesignerOutlets ()
		{
			if (storemap != null) {
				storemap.Dispose ();
				storemap = null;
			}
		}
예제 #9
0
 void ReleaseDesignerOutlets()
 {
     if (AddrText != null)
     {
         AddrText.Dispose();
         AddrText = null;
     }
     if (button != null)
     {
         button.Dispose();
         button = null;
     }
     if (LatitudeText != null)
     {
         LatitudeText.Dispose();
         LatitudeText = null;
     }
     if (LongitudeText != null)
     {
         LongitudeText.Dispose();
         LongitudeText = null;
     }
     if (map != null)
     {
         map.Dispose();
         map = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (DestinationMapView != null)
            {
                DestinationMapView.Dispose();
                DestinationMapView = null;
            }

            if (PackageNameTextField != null)
            {
                PackageNameTextField.Dispose();
                PackageNameTextField = null;
            }

            if (SaveBarButtonItem != null)
            {
                SaveBarButtonItem.Dispose();
                SaveBarButtonItem = null;
            }

            if (SourceMapView != null)
            {
                SourceMapView.Dispose();
                SourceMapView = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (mapView1 != null)
     {
         mapView1.Dispose();
         mapView1 = null;
     }
 }
예제 #12
0
 void ReleaseDesignerOutlets()
 {
     if (MapViewControl != null)
     {
         MapViewControl.Dispose();
         MapViewControl = null;
     }
 }
예제 #13
0
 void ReleaseDesignerOutlets()
 {
     if (myMapView != null)
     {
         myMapView.Dispose();
         myMapView = null;
     }
 }
예제 #14
0
 void ReleaseDesignerOutlets()
 {
     if (Mapview != null)
     {
         Mapview.Dispose();
         Mapview = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (Mapa != null)
     {
         Mapa.Dispose();
         Mapa = null;
     }
 }
예제 #16
0
 void ReleaseDesignerOutlets()
 {
     if (mapa != null)
     {
         mapa.Dispose();
         mapa = null;
     }
 }
예제 #17
0
 void ReleaseDesignerOutlets()
 {
     if (_mapView != null)
     {
         _mapView.Dispose();
         _mapView = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (locationMapView != null)
     {
         locationMapView.Dispose();
         locationMapView = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (MyMap != null)
     {
         MyMap.Dispose();
         MyMap = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (allMapView != null)
     {
         allMapView.Dispose();
         allMapView = null;
     }
 }
예제 #21
0
 void ReleaseDesignerOutlets()
 {
     if (MapViewPlaces != null)
     {
         MapViewPlaces.Dispose();
         MapViewPlaces = null;
     }
 }
예제 #22
0
 public CheckInLocationMapCell(NSString cellId)
     : base(UITableViewCellStyle.Default, cellId)
 {
     if (mapView == null)
     {
         mapView = new MapKit.MKMapView(new CoreGraphics.CGRect(0, 0, Frame.Width, 200));
         Add(mapView);
     }
 }
예제 #23
0
 public CheckInLocationMapCell(NSString cellId)
     : base(UITableViewCellStyle.Default, cellId)
 {
     if (mapView == null)
     {
         mapView = new MapKit.MKMapView(new CoreGraphics.CGRect(0, 0, Frame.Width, 200));
         Add(mapView);
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (btnOpenMaps != null)
            {
                btnOpenMaps.Dispose();
                btnOpenMaps = null;
            }

            if (lblAddress != null)
            {
                lblAddress.Dispose();
                lblAddress = null;
            }

            if (lblDate != null)
            {
                lblDate.Dispose();
                lblDate = null;
            }

            if (lblDescription != null)
            {
                lblDescription.Dispose();
                lblDescription = null;
            }

            if (lblEmail != null)
            {
                lblEmail.Dispose();
                lblEmail = null;
            }

            if (lblPayment != null)
            {
                lblPayment.Dispose();
                lblPayment = null;
            }

            if (lblPhone != null)
            {
                lblPhone.Dispose();
                lblPhone = null;
            }

            if (lblTitle != null)
            {
                lblTitle.Dispose();
                lblTitle = null;
            }

            if (mapView != null)
            {
                mapView.Dispose();
                mapView = null;
            }
        }
		void ReleaseDesignerOutlets ()
		{
			if (divider != null) {
				divider.Dispose ();
				divider = null;
			}
			if (mapView != null) {
				mapView.Dispose ();
				mapView = null;
			}
		}
		void ReleaseDesignerOutlets ()
		{
			if (MapSegmentedButtons != null) {
				MapSegmentedButtons.Dispose ();
				MapSegmentedButtons = null;
			}
			if (MapView != null) {
				MapView.Dispose ();
				MapView = null;
			}
		}
        void ReleaseDesignerOutlets()
        {
            if (MapStepper != null) {
                MapStepper.Dispose ();
                MapStepper = null;
            }

            if (PostingMapView != null) {
                PostingMapView.Dispose ();
                PostingMapView = null;
            }
        }
예제 #28
0
 void ReleaseDesignerOutlets()
 {
     if (divider != null)
     {
         divider.Dispose();
         divider = null;
     }
     if (mapView != null)
     {
         mapView.Dispose();
         mapView = null;
     }
 }
예제 #29
0
 void ReleaseDesignerOutlets()
 {
     if (Label_MapCaption != null)
     {
         Label_MapCaption.Dispose();
         Label_MapCaption = null;
     }
     if (Map_Map != null)
     {
         Map_Map.Dispose();
         Map_Map = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (Description != null)
            {
                Description.Dispose();
                Description = null;
            }

            if (MyMap != null)
            {
                MyMap.Dispose();
                MyMap = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (btnHome != null)
            {
                btnHome.Dispose();
                btnHome = null;
            }

            if (mapView != null)
            {
                mapView.Dispose();
                mapView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (LoadingRing != null)
            {
                LoadingRing.Dispose();
                LoadingRing = null;
            }

            if (MapPosition != null)
            {
                MapPosition.Dispose();
                MapPosition = null;
            }
        }
예제 #33
0
        void ReleaseDesignerOutlets()
        {
            if (btnBack != null)
            {
                btnBack.Dispose();
                btnBack = null;
            }

            if (viewMap != null)
            {
                viewMap.Dispose();
                viewMap = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CollectionView != null)
            {
                CollectionView.Dispose();
                CollectionView = null;
            }

            if (btnCamera != null)
            {
                btnCamera.Dispose();
                btnCamera = null;
            }

            if (btnClock != null)
            {
                btnClock.Dispose();
                btnClock = null;
            }

            if (btnMicrophone != null)
            {
                btnMicrophone.Dispose();
                btnMicrophone = null;
            }

            if (btnNote != null)
            {
                btnNote.Dispose();
                btnNote = null;
            }

            if (btnPencil != null)
            {
                btnPencil.Dispose();
                btnPencil = null;
            }

            if (btnTag != null)
            {
                btnTag.Dispose();
                btnTag = null;
            }

            if (map != null)
            {
                map.Dispose();
                map = null;
            }
        }
예제 #35
0
        void ReleaseDesignerOutlets()
        {
            if (initPoint != null)
            {
                initPoint.Dispose();
                initPoint = null;
            }

            if (map != null)
            {
                map.Dispose();
                map = null;
            }
        }
예제 #36
0
        void ReleaseDesignerOutlets()
        {
            if (myMapView != null)
            {
                myMapView.Dispose();
                myMapView = null;
            }

            if (Button != null)
            {
                Button.Dispose();
                Button = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (MapStepper != null)
            {
                MapStepper.Dispose();
                MapStepper = null;
            }

            if (PostingMapView != null)
            {
                PostingMapView.Dispose();
                PostingMapView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (RangeMapView != null)
            {
                RangeMapView.Dispose();
                RangeMapView = null;
            }
        }
		void ReleaseDesignerOutlets ()
		{
			if (checkinTable != null) {
				checkinTable.Dispose ();
				checkinTable = null;
			}

			if (mapView != null) {
				mapView.Dispose ();
				mapView = null;
			}

			if (lblUserCheckins != null) {
				lblUserCheckins.Dispose ();
				lblUserCheckins = null;
			}
		}
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			this.flexGrid.AutoGenerateColumns = false;
			this.flexGrid.IsReadOnly = true;

			GridColumn id = new GridColumn {
				Binding = "Id",
				Header = "ID",
				Width = 1,
				WidthType = GridColumnWidth.Star
			}, first = new GridColumn {
				Binding = "FirstName",
				Header = "First Name",
				Width = 2,
				WidthType = GridColumnWidth.Star
			}, second = new GridColumn {
				Binding = "LastName",
				Header = "Last Name",
				Width = 2,
				WidthType = GridColumnWidth.Star
			};

			this.flexGrid.Columns.Add (id);
			this.flexGrid.Columns.Add (first);
			this.flexGrid.Columns.Add (second);

			this.flexGrid.ItemsSource = Customer.GetCustomerList(100);

			this.flexGrid.ColumnHeaderFont = UIFont.BoldSystemFontOfSize (this.flexGrid.Font.PointSize);
			this.flexGrid.DetailProvider.DetailVisibilityMode = Xuni.iOS.FlexGrid.GridDetailVisibilityMode.ExpandSingle;


			this.flexGrid.DetailProvider.DetailCellCreating += (Xuni.iOS.FlexGrid.FlexGridDetailProvider sender, Xuni.iOS.FlexGrid.GridRow row) => {
				MapKit.MKMapView mapView = new MapKit.MKMapView();
				mapView.UserInteractionEnabled = false;

				CoreLocation.CLGeocoder geocoder = new CoreLocation.CLGeocoder();


				geocoder.GeocodeAddress(((Customer)row.DataItem).City, (CoreLocation.CLPlacemark[] placemarks, NSError error) => {
					CoreLocation.CLPlacemark placemark = placemarks[placemarks.Length-1];
					float spanX = 0.0725f;
					float spanY = 0.0725f;
					MapKit.MKCoordinateRegion region = new MapKit.MKCoordinateRegion();
					region.Center.Latitude = placemark.Location.Coordinate.Latitude;
					region.Center.Longitude = placemark.Location.Coordinate.Longitude;
					region.Span = new MapKit.MKCoordinateSpan(spanX, spanY);
					mapView.SetRegion(region, false);
				});

				return mapView;
			};


			this.flexGrid.DetailProvider.GridRowHeaderLoading += (Xuni.iOS.FlexGrid.FlexGridDetailProvider sender, Xuni.iOS.FlexGrid.GridRow row, UIButton DefaultButton) => {
				DefaultButton = new UIButton(UIButtonType.Custom);
				DefaultButton.SetImage(new UIImage("Images/show"), UIControlState.Normal);
				DefaultButton.SetImage(new UIImage("Images/hide"), UIControlState.Selected);
				return DefaultButton;
			};
		}
 void ReleaseDesignerOutlets()
 {
     if (AccountLatitude != null) {
         AccountLatitude.Dispose ();
         AccountLatitude = null;
     }
     if (AccountLongitude != null) {
         AccountLongitude.Dispose ();
         AccountLongitude = null;
     }
     if (AccountName != null) {
         AccountName.Dispose ();
         AccountName = null;
     }
     if (CurrentLatitude != null) {
         CurrentLatitude.Dispose ();
         CurrentLatitude = null;
     }
     if (CurrentLongitude != null) {
         CurrentLongitude.Dispose ();
         CurrentLongitude = null;
     }
     if (mapView != null) {
         mapView.Dispose ();
         mapView = null;
     }
 }