Exemplo n.º 1
0
 private void dlgScoreboard_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     dlgScoreboard = null;
 }
Exemplo n.º 2
0
        private void CreateOrActivateScoreboard()
        {
            if (dlgScoreboard != null)
            {
                dlgScoreboard.WindowState = FormWindowState.Normal;
                dlgScoreboard.Activate();
                return;
            }

            dlgScoreboard = new PlayerScore(GameFramework);
            dlgScoreboard.SetupGame();
            dlgScoreboard.Closing += dlgScoreboard_Closing;
            dlgScoreboard.Show(this);
        }