// Spela igen knappen private void button1_Click(object sender, EventArgs e) { GameBoardForm SpelaIgen = new GameBoardForm(this.startForm); SpelaIgen.Show(); this.Close(); }
private void startaOmSpeletToolStripMenuItem_Click(object sender, EventArgs e) { GameBoardForm frm = new GameBoardForm(this.startForm); frm.Show(); this.Close(); }
public ResultForm(GameBoardForm board) { this.startForm = board.startForm; this.game = board.Game; InitializeComponent(); this.winner_label.Text = game.Winner.Name + " har vunnit!"; this.winner_label.ForeColor = game.Winner.Color; GenerateLables(); }
// Öppna spelplanen(GameBoardForm) private void btn_starta_Click(object sender, EventArgs e) { getSettings(); GameBoardForm frm = new GameBoardForm(this); frm.Show(); this.Hide(); }
private bool open = false; //sant om kortet är öppet, alltså visar sin symbol och inte baksidebilden public MemoryCardControl(GameBoardForm form) { InitializeComponent(); this.gameBoardForm = form; this.thinkTimer = form.thinkTimer; this.cardTimer = form.cardTimer; this.game = form.Game; this.Data = new MemoryCard(); // this.Size = new System.Drawing.Size(80, 80); this.SizeMode = PictureBoxSizeMode.StretchImage; }