Пример #1
0
 private void ShowInstructions()
 {
     PopupNotificationForm popup = new PopupNotificationForm();
     popup.ShowDialog();
 }
Пример #2
0
 private void PlayerHasWon(Player player)
 {
     PopupNotificationForm popup = new PopupNotificationForm();
     String playerName;
     if (player.IsHuman())
     {
         playerName = this.label1.Text;
     } else
     {
         playerName = this.label2.Text;
     }
     popup.SetText(playerName + " has won!");
     popup.ShowDialog();
 }