void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (DateDisplayView != null) { DateDisplayView.Dispose(); DateDisplayView = null; } if (ExerciseHistoryContainer != null) { ExerciseHistoryContainer.Dispose(); ExerciseHistoryContainer = null; } if (NavBar != null) { NavBar.Dispose(); NavBar = null; } if (NavigateNext != null) { NavigateNext.Dispose(); NavigateNext = null; } if (NavigatePrevious != null) { NavigatePrevious.Dispose(); NavigatePrevious = null; } if (SelectedDateLabel != null) { SelectedDateLabel.Dispose(); SelectedDateLabel = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); _historyDate = _historyDate ?? DateTime.Now.Date; DateDisplayView.BackgroundColor = Colors.MainBackgroundColor; SelectedDateLabel.TextColor = Colors.PrimaryColor; BackButton.TintColor = UIColor.White; NavigatePrevious.Image = NavigatePrevious.Image.ApplyTheme(Colors.InteractableTextColor); var backGestureRecognizer = new UITapGestureRecognizer(RegressDate); NavigatePrevious.UserInteractionEnabled = true; NavigatePrevious.AddGestureRecognizer(backGestureRecognizer); NavigateNext.Image = NavigateNext.Image.ApplyTheme(Colors.InteractableTextColor); var nextGestureRecognizer = new UITapGestureRecognizer(AdvanceDate); NavigateNext.UserInteractionEnabled = true; NavigateNext.AddGestureRecognizer(nextGestureRecognizer); }