private void zorToolStripMenuItem_Click(object sender, EventArgs e) { MayinTarlası oyun = new MayinTarlası(16, 30, 99); oyun.alan = this; oyun.ButonOlustur(); timer1_Tick(sender, e); etkisizOlsun(); }
private void button1_Click(object sender, EventArgs e) { etkisizOlsun(); int sayi1 = Convert.ToInt32(numericUpDown1.Value); int sayi2 = Convert.ToInt32(numericUpDown2.Value); int sayi3 = Convert.ToInt32(numericUpDown3.Value); MayinTarlası oyun = new MayinTarlası(sayi1, sayi2, sayi3); oyun.alan = this; oyun.ButonOlustur(); timer1_Tick(sender, e); }