private void screenGrabTimer_Tick(object sender, EventArgs e) { tick++; m_BWM.GetScreenshot(); m_BWM.GetColourGrid(); m_BWM.CalculateMoves(); pictureBox1.Image = m_BWM.ColourGrid; }
private void screenGrabTimer_Tick(object sender, EventArgs e) { tick++; m_BWM.GetScreenshot(); m_BWM.GetColourGrid(); //m_BWM.CalculateMoves(); pictureBox1.Image = m_BWM.ColourGrid; //if (tick * screenGrabTimer.Interval == 60000) //{ // screenGrabTimer.Stop(); // tick = 0; // btnStart.Enabled = true; //} }