示例#1
0
 internal void UpdateScores()
 {
     SuspendLayout();
     if (groupscore != null)
     {
         tlpScores.Controls.Remove(groupscore);
         groupscore.Dispose();
     }
     groupscore = new Models.GroupScore(gameID, Models.Layout.View.BigScreen);
     tlpScores.Controls.Add(groupscore, 0, 0);
     ResumeLayout(false);
     PerformLayout();
 }
示例#2
0
 private void UpdateScores()
 {
     if (scoreBoard != null)
     {
         scoreBoard.UpdateScores();
     }
     if (gamescoreBoard != null)
     {
         gamescoreBoard.UpdateScores();
     }
     SuspendLayout();
     if (groupscore != null)
     {
         tlpScores.Controls.Remove(groupscore);
         groupscore.Dispose();
     }
     groupscore = new Models.GroupScore(game.ID, Models.Layout.View.ControllerEmbed);
     tlpScores.Controls.Add(groupscore, 0, 1);
     ResumeLayout(false);
     PerformLayout();
 }