protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { { shape?.Dispose(); shape = null; ResignActiveNotification?.Dispose(); ResignActiveNotification = null; FirstTapInitiatedAction = null; Timer?.Stop(); Timer?.Dispose(); Timer = null; } } }