private void button3_Click(object sender, EventArgs e)
        {
            CoordForm frm = new CoordForm();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                int XBlock      = frm.x / 64;
                int YBlock      = frm.y / 64;
                int BlockNumber = XBlock * 64 + YBlock;
                enumerator = facet.blockfiles.First;
                for (int i = BlockNumber; i >= 0; i--)
                {
                    if (enumerator.Next == null)
                    {
                        break;
                    }
                    enumerator = enumerator.Next;
                }
                DisplayGrid();
            }
        }
Beispiel #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     CoordForm frm = new CoordForm();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         int XBlock = frm.x/64;
         int YBlock = frm.y/64;
         int BlockNumber=XBlock*64+YBlock;
         enumerator = facet.blockfiles.First;
         for (int i = BlockNumber; i >= 0; i--)
         {
             if (enumerator.Next == null)
                 break;
             enumerator = enumerator.Next;
         }
         DisplayGrid();
     }
 }