Esempio n. 1
0
 private void dlgScoreboard_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     dlgScoreboard = null;
 }
Esempio 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);
        }