예제 #1
0
 private void screenGrabTimer_Tick(object sender, EventArgs e)
 {
     tick++;
     m_BWM.GetScreenshot();
     m_BWM.GetColourGrid();
     m_BWM.CalculateMoves();
     pictureBox1.Image = m_BWM.ColourGrid;
 }
예제 #2
0
 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;
     //}
 }