private void timerProgres_Tick(object sender, EventArgs e) { if (tekrar == 1) { button3.Enabled = false; button2.Enabled = false; tm.Value += 20; if (tm.Value >= 100) { timerProgres.Stop(); kk frm = new kk(); frm.Show(); this.Hide(); } menu = 0; } else if (menu == 1) { button3.Enabled = false; button2.Enabled = false; tm.Value += 20; if (tm.Value >= 100) { timerProgres.Stop(); Menü frm2 = new Menü(); frm2.Show(); this.Hide(); } tekrar = 0; } }
private void button1_Click(object sender, EventArgs e) { neSecti = Menü.secim; if (neSecti == "bilgisayar") { kk frm = new kk(); this.Hide(); frm.Show(); } else if (neSecti == "yapay") { Bilgisayara_Karşı frm = new Bilgisayara_Karşı(); this.Hide(); frm.Show(); } }