void Destroy() { if (_rootView != null) { UnhookEvents(); _viewPager.RemoveOnPageChangeListener(this); var adapter = _viewPager.Adapter; _viewPager.Adapter = null; adapter.Dispose(); _tablayout.LayoutChange -= OnTabLayoutChange; _toolbarAppearanceTracker.Dispose(); _tabLayoutAppearanceTracker.Dispose(); _toolbarTracker.Dispose(); _tablayout.Dispose(); _toolbar.Dispose(); _viewPager.Dispose(); _rootView.Dispose(); } _toolbarAppearanceTracker = null; _tabLayoutAppearanceTracker = null; _toolbarTracker = null; _tablayout = null; _toolbar = null; _viewPager = null; _rootView = null; }
void ReleaseDesignerOutlets() { if (ArchiveButton != null) { ArchiveButton.Dispose(); ArchiveButton = null; } if (InboxTableView != null) { InboxTableView.Dispose(); InboxTableView = null; } if (MarkAsReadButton != null) { MarkAsReadButton.Dispose(); MarkAsReadButton = null; } if (Toolbar != null) { Toolbar.Dispose(); Toolbar = null; } if (ToolbarBottom != null) { ToolbarBottom.Dispose(); ToolbarBottom = null; } }
void ReleaseDesignerOutlets() { if (Toolbar != null) { Toolbar.Dispose(); Toolbar = null; } if (OverlayLayer != null) { OverlayLayer.Dispose(); OverlayLayer = null; } if (SplitView != null) { SplitView.Dispose(); SplitView = null; } if (RomListSplitView != null) { RomListSplitView.Dispose(); RomListSplitView = null; } if (MenuLayoutSplitView != null) { MenuLayoutSplitView.Dispose(); MenuLayoutSplitView = null; } }
public override void OnDestroy() { _topNavigationView?.Dispose(); _actionMenuItem?.Dispose(); base.OnDestroy(); }
void ReleaseDesignerOutlets() { if (Category != null) { Category.Dispose(); Category = null; } if (Details != null) { Details.Dispose(); Details = null; } if (DetailView != null) { DetailView.Dispose(); DetailView = null; } if (HeaderHeight != null) { HeaderHeight.Dispose(); HeaderHeight = null; } if (Loader != null) { Loader.Dispose(); Loader = null; } if (MessageIcon != null) { MessageIcon.Dispose(); MessageIcon = null; } if (ReceiptDate != null) { ReceiptDate.Dispose(); ReceiptDate = null; } if (RichContentView != null) { RichContentView.Dispose(); RichContentView = null; } if (Sender != null) { Sender.Dispose(); Sender = null; } if (Subject != null) { Subject.Dispose(); Subject = null; } if (TextView != null) { TextView.Dispose(); TextView = null; } if (Toolbar != null) { Toolbar.Dispose(); Toolbar = null; } if (ToolbarBottom != null) { ToolbarBottom.Dispose(); ToolbarBottom = null; } if (TransitionButton != null) { TransitionButton.Dispose(); TransitionButton = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }
public void Dispose() { MainPanel.Dispose(); Toolbar.Dispose(); }