public override void ViewDidUnload() { base.ViewDidUnload(); if (MapViewControl != null) { MapViewControl.MapType = MapKit.MKMapType.Hybrid; MapViewControl.Delegate = null; MapViewControl.RemoveFromSuperview(); MapViewControl.Dispose(); MapViewControl = null; } }
public override void ViewDidUnload() { base.ViewDidUnload(); App.Locator.ModeZone.IsOnEditMode = false; App.Locator.ModeZone.IsActivityFocused = false; if (MapViewControl != null) { MapViewControl.MapType = MapKit.MKMapType.Hybrid; MapViewControl.Delegate = null; MapViewControl.RemoveFromSuperview(); MapViewControl.Dispose(); MapViewControl = null; } }
void ReleaseDesignerOutlets() { if (MapViewControl != null) { MapViewControl.Dispose(); MapViewControl = null; } if (MapZoomInButton != null) { MapZoomInButton.Dispose(); MapZoomInButton = null; } if (MapZoomOutButton != null) { MapZoomOutButton.Dispose(); MapZoomOutButton = null; } }
public void Dispose() { RemoveAllMarkers(); if (_focusOnSeekiosButton != null) { _focusOnSeekiosButton.Dispose(); } if (_focusOnZoneButton != null) { _focusOnZoneButton.Dispose(); } if (_zoomInButton != null) { _zoomInButton.Dispose(); } if (_zoomOutButton != null) { _zoomOutButton.Dispose(); } if (_editZoneButton != null) { _editZoneButton.Dispose(); } if (_undoButton != null) { _undoButton.Dispose(); } if (_accuracyArea != null) { _accuracyArea.Dispose(); } if (_mapDelegate != null) { _mapDelegate.Dispose(); } if (_controller != null) { _controller.Dispose(); } if (MapViewControl != null) { MapViewControl.MapType = MKMapType.Hybrid; MapViewControl.Delegate = null; MapViewControl.RemoveFromSuperview(); MapViewControl = null; MapViewControl.Dispose(); } if (SelectedAnnotation != null) { SelectedAnnotation.Dispose(); } if (SelectedLocationHistory != null) { SelectedLocationHistory.Dispose(); } if (SelectedPointsOfRoute != null) { SelectedPointsOfRoute.Dispose(); } if (RoutePolyline != null) { RoutePolyline.Dispose(); } PointsOfRoute.Clear(); PointsOfRoute = null; }
void ReleaseDesignerOutlets() { if (ArrowImage != null) { ArrowImage.Dispose(); ArrowImage = null; } if (BottomHeadView != null) { BottomHeadView.Dispose(); BottomHeadView = null; } if (BottomView != null) { BottomView.Dispose(); BottomView = null; } if (ChangeMapTypeButton != null) { ChangeMapTypeButton.Dispose(); ChangeMapTypeButton = null; } if (ChronoWaitForStartLabel != null) { ChronoWaitForStartLabel.Dispose(); ChronoWaitForStartLabel = null; } if (DeleteModeButton != null) { DeleteModeButton.Dispose(); DeleteModeButton = null; } if (DisplayTutoButton != null) { DisplayTutoButton.Dispose(); DisplayTutoButton = null; } if (FirstLeftLabel != null) { FirstLeftLabel.Dispose(); FirstLeftLabel = null; } if (FirstRefresh1Image != null) { FirstRefresh1Image.Dispose(); FirstRefresh1Image = null; } if (FirstRightLabel != null) { FirstRightLabel.Dispose(); FirstRightLabel = null; } if (FocusOnSeekiosButton != null) { FocusOnSeekiosButton.Dispose(); FocusOnSeekiosButton = null; } if (FocusOnZoneButton != null) { FocusOnZoneButton.Dispose(); FocusOnZoneButton = null; } if (HistoricButton != null) { HistoricButton.Dispose(); HistoricButton = null; } if (LblRefreshPositionText != null) { LblRefreshPositionText.Dispose(); LblRefreshPositionText = null; } if (MapViewControl != null) { MapViewControl.Dispose(); MapViewControl = null; } if (MapZoomInButton != null) { MapZoomInButton.Dispose(); MapZoomInButton = null; } if (MapZoomOutButton != null) { MapZoomOutButton.Dispose(); MapZoomOutButton = null; } if (ModeImage != null) { ModeImage.Dispose(); ModeImage = null; } if (ModeLabel != null) { ModeLabel.Dispose(); ModeLabel = null; } if (ModePowerSavingImage != null) { ModePowerSavingImage.Dispose(); ModePowerSavingImage = null; } if (RefreshInProgressButton != null) { RefreshInProgressButton.Dispose(); RefreshInProgressButton = null; } if (RefreshPosition != null) { RefreshPosition.Dispose(); RefreshPosition = null; } if (SecondLeftLabel != null) { SecondLeftLabel.Dispose(); SecondLeftLabel = null; } if (SecondRightLabel != null) { SecondRightLabel.Dispose(); SecondRightLabel = null; } if (StepSeekiosLabel != null) { StepSeekiosLabel.Dispose(); StepSeekiosLabel = null; } if (ThirdLeftLabel != null) { ThirdLeftLabel.Dispose(); ThirdLeftLabel = null; } if (ThirdRightLabel != null) { ThirdRightLabel.Dispose(); ThirdRightLabel = null; } if (TimerLabel != null) { TimerLabel.Dispose(); TimerLabel = null; } }
void ReleaseDesignerOutlets() { if (actionSheetDatePicker != null) { actionSheetDatePicker.Dispose(); actionSheetDatePicker = null; } if (ChangeMapTypeButton != null) { ChangeMapTypeButton.Dispose(); ChangeMapTypeButton = null; } if (FocusOnSeekiosButton != null) { FocusOnSeekiosButton.Dispose(); FocusOnSeekiosButton = null; } if (LoadingIndicator != null) { LoadingIndicator.Dispose(); LoadingIndicator = null; } if (LowerDateLabel != null) { LowerDateLabel.Dispose(); LowerDateLabel = null; } if (MapViewControl != null) { MapViewControl.Dispose(); MapViewControl = null; } if (MapZoomInButton != null) { MapZoomInButton.Dispose(); MapZoomInButton = null; } if (MapZoomOutButton != null) { MapZoomOutButton.Dispose(); MapZoomOutButton = null; } if (NextPositionButton != null) { NextPositionButton.Dispose(); NextPositionButton = null; } if (OldDateLabel != null) { OldDateLabel.Dispose(); OldDateLabel = null; } if (PositionLabel != null) { PositionLabel.Dispose(); PositionLabel = null; } if (PreviousPositionButton != null) { PreviousPositionButton.Dispose(); PreviousPositionButton = null; } if (RecentDateLabel != null) { RecentDateLabel.Dispose(); RecentDateLabel = null; } if (Slider != null) { Slider.Dispose(); Slider = null; } if (UpperDateLabel != null) { UpperDateLabel.Dispose(); UpperDateLabel = null; } }
void ReleaseDesignerOutlets() { if (ChangeMapTypeButton != null) { ChangeMapTypeButton.Dispose(); ChangeMapTypeButton = null; } if (FocusOnSeekiosButton != null) { FocusOnSeekiosButton.Dispose(); FocusOnSeekiosButton = null; } if (FocusOnZoneButton != null) { FocusOnZoneButton.Dispose(); FocusOnZoneButton = null; } if (MapViewControl != null) { MapViewControl.Dispose(); MapViewControl = null; } if (MapZoomInButton != null) { MapZoomInButton.Dispose(); MapZoomInButton = null; } if (MapZoomOutButton != null) { MapZoomOutButton.Dispose(); MapZoomOutButton = null; } if (NextButton != null) { NextButton.Dispose(); NextButton = null; } if (NumberOfPointsLabel != null) { NumberOfPointsLabel.Dispose(); NumberOfPointsLabel = null; } if (RefreshInProgressButton != null) { RefreshInProgressButton.Dispose(); RefreshInProgressButton = null; } if (SurfaceLabel != null) { SurfaceLabel.Dispose(); SurfaceLabel = null; } if (TimerLabel != null) { TimerLabel.Dispose(); TimerLabel = null; } if (UndoButton != null) { UndoButton.Dispose(); UndoButton = null; } }