void CreateGameCore(List <string> countriesNames) { this.gameCore = new FlagsGameCore(countriesNames); this.gameCore.ScoreChanged += GameCoreScoreChanged; this.gameCore.CountryChanged += GameCoreCountryChanged; this.gameCore.ChoiseAnswer += GameCoreChoiseAnswer; this.gameCore.GameOver += GameCoreGameOver; }
void OnDispose(bool disposing) { if (this.overlayManager != null) { this.overlayManager.Dispose(); this.overlayManager = null; } if (this.gameCore != null) { this.gameCore.Dispose(); this.gameCore = null; } }
public FlagGamePanel() { InitializeComponent(); FlagsGameCore.LoadShapefileDataAdapter(ShapefileDataAdapter); AppendOverlays(); }