Exemplo n.º 1
0
        private void BtnBasla_Click(object sender, EventArgs e)
        {
            if (txtIsim.Text != string.Empty && (rdElf.Checked == true || rdInsan.Checked == true || rdOrk.Checked == true) && (rdWizard.Checked == true || rdArcher.Checked == true || rdWarrior.Checked == true))
            {
                //MessageBox.Show("Test");
                isim  = txtIsim.Text.ToString();
                Irk   = Irksecim(irk);
                Sinif = SinifSecim(sinif);

                AnaEkran ana = new AnaEkran();
                this.Hide();
                ana.Show();
            }
        }
Exemplo n.º 2
0
        private void AnaEkran_KeyDown(object sender, KeyEventArgs e)
        {
            AnaEkran frm = new AnaEkran();

            if (e.KeyCode == Keys.Up && (pbMobGif.Top - pcCharGif.Top <= -140))
            {
                pbZemin.Top  += 10;
                btnBasla.Top += 10;
                pbMobGif.Top += 10;
                if (pcCharGif.Top <= btnBasla.Bottom)
                {
                    btnBasla.Visible = true;
                    pbMobGif.Visible = true;
                    frm.KeyPreview   = false;
                    dusmanolusturma();
                }
            }
        }