Example #1
0
        private void BtnShotgun_Click(object sender, EventArgs e)
        {
            GameCode  gc    = new GameCode();
            GetAndSet gs    = new GetAndSet();
            var       ammoP = LblAmmoCountPlay.Text;

            if (ammoP == "")
            {
                MessageBox.Show(@"Du måste starta spelet");
            }
            else
            {
                var x = gs.GetPlayerAmmo();

                if (x < 3)
                {
                    NoBullets no = new NoBullets();
                    no.Show();
                }
                else
                {
                    var n = gc.Npc();
                    gc.PlayerShotgunsComputer(n);
                }
            }
        }
Example #2
0
        private void BtnStartGame_Click(object sender, EventArgs e)
        {
            GetAndSet gs = new GetAndSet();

            gs.SetAmmoStartGame();
            gs.SetPointNewGame();
            gs.GetChoosedScore();
        }