protected override void Dispose(bool disposing) { if (disposing) { _dlgView.Destroy(); _dlgView.BindingContext = null; _dlgView.Parent = null; _dlgView = null; _contentView.Touch -= _contentView_Touch; _contentView.SetOnKeyListener(null); if (!_renderer.View.IsDisposed()) { _renderer.View.Dispose(); } _contentView.Dispose(); _contentView = null; _renderer.Dispose(); _renderer = null; _extraDialog = null; OnceInitializeAction = null; } base.Dispose(disposing); }
public ReusableDialog(DialogView view) { _dlgView = view; _extraDialog = Dialog.Instance as DialogImplementation; // Because the process can't be executed until application completely loads, // set the action here to execute later on. OnceInitializeAction = Initialize; }