Exemplo n.º 1
0
 private void משחקחדשToolStripMenuItem_Click(object sender, EventArgs e)
 {
     g   = CreateGraphics();
     p   = new Point(50, 50);
     pic = Image.FromFile("55.png");
     g.DrawImage(pic, p);
     b = new Board1();
     b.DrawBoard(g);  // g עבור כל תא אם לא ריק מצייר
     turn        = 1; // שחור
     i           = 0; j = 0;
     label5.Text = "2";
     label6.Text = "2";
 }
Exemplo n.º 2
0
 private void משחקחדשToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     label5.Text = 2.ToString();
     label6.Text = 2.ToString();
     g           = CreateGraphics();
     p           = new Point(50, 50);
     pic         = Image.FromFile("55.png");
     g.DrawImage(pic, p);//מצייר לוח
     b = new Board1();
     b.DrawBoard(g);
     turn = 1;// שחור
     i    = 0; j = 0;
 }