void ReleaseDesignerOutlets() { if (StackLayout != null) { StackLayout.Dispose(); StackLayout = null; } if (Viewer != null) { Viewer.Dispose(); Viewer = null; } }
protected override void Dispose(bool disposing) { if (tb != null && !tb.IsDisposed) { tb.Dispose(); } if (table != null && !table.IsDisposed) { table.Dispose(); } if (stack != null && !stack.IsDisposed) { stack.Dispose(); } base.Dispose(disposing); }