Esempio n. 1
0
        public GraKolkoIKrzyzyk()
        {
            InitializeComponent();
            gra = new Gra();

            ZmienStanMacierzy(false);
        }
Esempio n. 2
0
        private void WyzerujGre()
        {
            ZmienStanMacierzy(false);
            gra                 = new Gra();
            koniecGry           = false;
            startButton.Enabled = true;
            startButton.Text    = "START";

            button1.BackColor = domyslnyKolor;
            button1.UseVisualStyleBackColor = true;
            button1.Text = "";

            button2.BackColor = domyslnyKolor;
            button2.Text      = "";
            button2.UseVisualStyleBackColor = true;

            button3.BackColor = domyslnyKolor;
            button3.Text      = "";
            button3.UseVisualStyleBackColor = true;

            button4.BackColor = domyslnyKolor;
            button4.Text      = "";
            button4.UseVisualStyleBackColor = true;

            button5.BackColor = domyslnyKolor;
            button5.Text      = "";
            button5.UseVisualStyleBackColor = true;

            button6.BackColor = domyslnyKolor;
            button6.Text      = "";
            button6.UseVisualStyleBackColor = true;

            button7.BackColor = domyslnyKolor;
            button7.Text      = "";
            button7.UseVisualStyleBackColor = true;

            button8.BackColor = domyslnyKolor;
            button8.Text      = "";
            button8.UseVisualStyleBackColor = true;

            button9.BackColor = domyslnyKolor;
            button9.Text      = "";
            button9.UseVisualStyleBackColor = true;
        }