예제 #1
0
파일: Start.cs 프로젝트: tomkap93/Saper
        private void next_b_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(nick_tb.Text))
            {
                MessageBox.Show("Nick nie został wpisany.", "Bląd", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                Player player = new Player(nick_tb.Text);
                Saper  board  = new Saper(player);

                this.Visible = false;
            }
        }
예제 #2
0
 public SettingsBoard(Saper saper, Board board)
 {
     InitializeComponent();
     this.board = board;
     this.saper = saper;
 }