private void OnUnloaded(Screen screen) { Triangle.Dispose(); LayoutRecords.Dispose(); LayoutTop.Dispose(); PlanetStart.Dispose(); AnimationEndGame.Dispose(); Update -= OnUpdate; Paint -= OnPaint; MouseDown -= OnMouseDown; Unloaded -= OnUnloaded; }
private void OnUnloaded(Screen screen) { Update -= OnUpdate; Paint -= OnPaint; MouseDown -= OnMouseDown; Unloaded -= OnUnloaded; LayoutRecords.Dispose(); Planet.Dispose(); Triangle.Dispose(); LabelTouchMe.Dispose(); paint.Dispose(); AnimationEndGame.Dispose(); PaintAnimation.Dispose(); }