Exemplo n.º 1
0
        private void Button0_Click(object sender, EventArgs e)
        {
            numb.Text = clik.ToString();
            int position = Convert.ToInt16(((Button)sender).Tag);

            game.Change(position, ref clik);
            game.Shift(position);
            refresh();
            if (game.Check_Numbers())
            {
                on = true;
                Close();

                /*MessageBox.Show("Victory");
                 * start_game();*/
            }
            // MessageBox.Show(position.ToString());
        }