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; } }
public SettingsBoard(Saper saper, Board board) { InitializeComponent(); this.board = board; this.saper = saper; }