protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { MessagingCenter.Unsubscribe <Page, AlertArguments>(this, "Xamarin.SendAlert"); MessagingCenter.Unsubscribe <Page, bool>(this, "Xamarin.BusySet"); MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, "Xamarin.ShowActionSheet"); SetPage(null); _internalNaviframe.Unrealize(); } _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { if (Forms.UseMessagingCenter) { MessagingCenter.Unsubscribe <Page, AlertArguments>(this, Page.AlertSignalName); MessagingCenter.Unsubscribe <Page, bool>(this, Page.BusySetSignalName); MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, Page.ActionSheetSignalName); MessagingCenter.Unsubscribe <Page, PromptArguments>(this, Page.PromptSignalName); } SetPage(null); _internalNaviframe.Unrealize(); } _disposed = true; }
protected override void Dispose(bool disposing) { if (_navi != null) { _navi.Unrealize(); _navi = null; } if (_box != null) { _box.Unrealize(); _box = null; } if (_tpage != null) { _tpage.Selected -= OnCurrentPageChanged; _tpage.Unrealize(); _tpage = null; } base.Dispose(disposing); }