Example #1
0
        private void lbGincana_Click(object sender, EventArgs e)
        {
            Game currentGame = Services.startGame(playerName, "wordsGame");

            FrmWordsGame frmWordsGame = new FrmWordsGame(currentGame);

            this.Visible = false;
            frmWordsGame.ShowDialog(this);
            this.Visible = true;
        }
 public void verifyFoundObjects(int numFoundObjects)
 {
     if (this.currentGame.NumberFoundObjects == numFoundObjects)
     {
         //para sortear as palavras e nao ficar repetindo sempre a ultima;
         String playerName         = this.currentGame.PlayerName;
         String gameName           = this.currentGame.GameName;
         int    numberFoundObjects = this.currentGame.NumberFoundObjects;
         this.currentGame = ServicesBrincAR.Services.startGame(playerName, gameName);
         this.currentGame.NumberFoundObjects = numberFoundObjects;
         FrmWordsGame frmWordsGame = new FrmWordsGame(this.currentGame);
         this.Visible = false;
         frmWordsGame.ShowDialog(this);
         this.Visible = true;
     }
 }