示例#1
0
        // Spela igen knappen
        private void button1_Click(object sender, EventArgs e)
        {
            GameBoardForm SpelaIgen = new GameBoardForm(this.startForm);

            SpelaIgen.Show();
            this.Close();
        }
示例#2
0
        private void startaOmSpeletToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GameBoardForm frm = new GameBoardForm(this.startForm);

            frm.Show();
            this.Close();
        }
示例#3
0
 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();
 }
示例#4
0
        // Öppna spelplanen(GameBoardForm)
        private void btn_starta_Click(object sender, EventArgs e)
        {
            getSettings();

            GameBoardForm frm = new GameBoardForm(this);

            frm.Show();
            this.Hide();
        }
示例#5
0
        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;
        }