public override void ViewDidLoad() { base.ViewDidLoad(); _nextButtonGesture = new UITapGestureRecognizer(UpperDateLabel_Click); _previousButtonGesture = new UITapGestureRecognizer(LowerDateLabel_Click); UpperDateLabel.AddGestureRecognizer(_nextButtonGesture); LowerDateLabel.AddGestureRecognizer(_previousButtonGesture); App.Locator.MapAllSeekios.HasRemovedButtonAnnotationView = true; App.Locator.Historic.PropertyChanged += Historic_PropertyChanged; Slider.ValueChanged += OnSliderValueChanged; }
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; } }