Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            content.Unload();
            boardView.Dispose();

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
        protected override void UnloadContent()
        {
            content.Unload();

            using (IEnumerator <KeyValuePair <string, GameState> > list = gameStates.GetEnumerator())
            {
                while (list.MoveNext())
                {
                    list.Current.Value.Dispose();
                }
            }

            base.UnloadContent();
        }