/// <summary> /// Frees the current screen. /// </summary> /// <param name="manipulator">The manipulator.</param> private void FreeCurrentScreen(SceneManipulator manipulator) { foreach (CardPairLogic actCardPair in m_cardPairsOnScreen) { manipulator.Remove(actCardPair); manipulator.RemoveRange(actCardPair.Cards); } for (int loopX = 0; loopX < m_cardMapOnScreen.GetLength(0); loopX++) { for (int loopY = 0; loopY < m_cardMapOnScreen.GetLength(1); loopY++) { m_cardMapOnScreen[loopX, loopY] = null; } } }
protected override void Detach(SceneManipulator manipulator, ViewInformation correspondingView, PerSceneContext context) { manipulator.Remove(context.CubeObject); }
/// <summary> /// Detaches the specified manipulator. /// </summary> /// <param name="manipulator">The manipulator.</param> /// <param name="correspondingView">The corresponding view.</param> /// <param name="context">The context.</param> protected override void Detach(SceneManipulator manipulator, ViewInformation correspondingView, PerSceneContext context) { manipulator.Remove(context.BackgroundPainter); manipulator.RemoveResource(context.BackgroundTextureKey); GraphicsHelper.SafeDispose(ref context.BrushResource); }