Example #1
0
 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;
 }
Example #2
0
 void OnDispose(bool disposing)
 {
     if (this.overlayManager != null)
     {
         this.overlayManager.Dispose();
         this.overlayManager = null;
     }
     if (this.gameCore != null)
     {
         this.gameCore.Dispose();
         this.gameCore = null;
     }
 }
Example #3
0
 public FlagGamePanel()
 {
     InitializeComponent();
     FlagsGameCore.LoadShapefileDataAdapter(ShapefileDataAdapter);
     AppendOverlays();
 }