protected override void Dispose(bool disposing) { try { if (disposing) { RightBarButtonItem?.Dispose(); RightBarButtonItem = null; foreach (var gesture in HeaderTapGestureRecognizers) { gesture?.Dispose(); } HeaderTapGestureRecognizers.Clear(); ReleaseDesignerOutlets(); } } catch (Exception ex) { Console.WriteLine($"Error while disposing TabBarController {ex}"); } finally { base.Dispose(disposing); } }
protected override void Dispose(bool disposing) { if (disposing) { _barButtonItem.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing && _TodayButton != null) { _TodayButton.Dispose(); _TodayButton = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (_rightButton != null) { _rightButton.Dispose(); _rightButton = null; } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (_backButton != null) { _backButton.Dispose(); _backButton = null; } if (_shareViewController != null) { _shareViewController.Dispose(); _shareViewController = null; } }
public override void ViewDidDisappear(bool animated) { base.ViewDidDisappear(animated); keyboardUpToken?.Dispose(); keyboardDownToken?.Dispose(); saveButton?.Dispose(); ads.AdLoaded -= AddAdBanner_Event; saveButton.Dispose(); SearchButton.TouchUpInside -= SearchButton_Clicked; }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _postMenuItem.Dispose(); _postIndicatorItem.Dispose(); _closeButton.Dispose(); Avatar.Dispose(); _postingIndicator.Dispose(); _source.Dispose(); } }
protected override void Dispose(bool disposing) { if (picker != null) { picker.Dispose(); picker = null; } if (done != null) { done.Dispose(); done = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (NavigationBarLabel != null) { NavigationBarLabel.Dispose(); NavigationBarLabel = null; } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (printButtonItem != null) { printButtonItem.Dispose(); printButtonItem = null; } if (details != null) { details.Dispose(); details = null; } }
protected override void Dispose(bool disposing) { if (disposing) { if (_NextButton != null) { _NextButton.Dispose(); _NextButton = null; } if (_PrevButton != null) { _PrevButton.Dispose(); _PrevButton = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (_Spacer != null) { _Spacer.Dispose(); _Spacer = null; } if (_DoneButton != null) { _DoneButton.Dispose(); _DoneButton = null; } } base.Dispose(disposing); }
public void DoneTapped(object sender, EventArgs e) { doneItem.Clicked -= DoneTapped; doneItem.Action = null; doneItem.Dispose(); doneItem = null; //noticing some memory being hung onto here, so explicitly disposing var navController = PresentedViewController as UINavigationController; var presentationController = navController.PresentationController; var presentedController = presentationController.PresentedViewController; DismissViewController(true, () => { navController.TopViewController.NavigationItem.RightBarButtonItem = null; //presentedController.PopoverPresentationController.Delegate = null; presentedController.PopoverPresentationController.Dispose(); presentedController.Dispose(); presentedController = null; presentationController.Delegate = null; presentationController.WeakDelegate = null; ((UIPopoverPresentationController)presentationController).SourceView = new UIButton(); presentationController.Dispose(); presentationController = null; navController.SetViewControllers(null, false); navController.Dispose(); navController = null; }); }
protected override void Dispose(bool disposing) { #if false if (timePicker != null) { timePicker.Dispose(); timePicker = null; } if (editTime != null) { editTime.Dispose(); editTime = null; } #endif if (cancel != null) { cancel.Dispose(); cancel = null; } if (done != null) { done.Dispose(); done = null; } if (picker != null) { picker.Dispose(); picker = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (_backButton != null) { _backButton.Dispose(); _backButton = null; } if (tabTopMovieRentals != null) { tabTopMovieRentals.Dispose(); tabTopMovieRentals = null; } if (tabTopMovies != null) { tabTopMovies.Dispose(); tabTopMovies = null; } if (tabTopMusicVideos != null) { tabTopMusicVideos.Dispose(); tabTopMusicVideos = null; } }
protected override void Dispose(bool disposing) { ThumbChanged = null; gvc = null; scrollView.Dispose (); tgv.Dispose (); go = null; blend.Dispose (); longPressGesture.Dispose (); doubletap.Dispose (); this.ZoomTagging = null; this.taglistButton = null; taglistButton.Dispose (); AssignPictureButton.Dispose (); iv.Dispose (); buttons = null; tagMyZoomedObject = null; base.Dispose (disposing); }