/// <summary> /// Funkcja zapisująca stan gry i wynik /// </summary> private void SaveGameState() { AppMemory appMemory = new AppMemory(); appMemory.SaveGameState(_game.GetGameBoard(), _calculate.GlobalResult); }
/// <summary> /// Czyszczenie Pamięci. /// </summary> private void ClearMemory() { ControlPanel controlClear = new ControlPanel(); Game gameClear = new Game(controlClear); CardImage[] cardImage = gameClear.RandNewCards(); AppMemory appMemory = new AppMemory(); appMemory.SaveGameState(gameClear.GetGameBoard(), 0); }