Пример #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;
        }