private void Form1_Load(object sender, EventArgs e) { btnMorTm.Enabled = false; ts = new Taslar(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { TahtaOlustur.tht.pt.Controls["pcs" + i + j].Enabled = false; TahtaOlustur.tht.pt.Controls["pcb" + i + j].Enabled = true; } } }
public Taslar() { tsThis = this; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { beyazTas(x, y, i, j); siyahTas(v, z, i, j); v += 50; x += 50; } y += 50; z += 50; x = 0; v = 250; } }
private void btnRestart_Click(object sender, EventArgs e) { ts = new Taslar(); }