示例#1
0
 public void ClearGrid()
 {
     if (Running)
     {
         return;
     }
     CurrentGrid.Clear();
     OriginGrains.Clear();
     NextGrid.Clear();
     Iteration = 1;
 }
 public void ClearGrid()
 {
     if (Running)
     {
         return;
     }
     CurrentGrid.Clear();
     Solver.Clear();
     OriginGrains.Clear();
     CurrentBitmap = new Bitmap(Grid.SizeX * Zoom, Grid.SizeY * Zoom, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
 }
示例#3
0
        public void ResizeGrid(int sizeX, int sizeY)
        {
            if (Running)
            {
                return;
            }

            CurrentGrid.Resize(sizeX, sizeY);
            OriginGrains.Clear();
            NextGrid.Resize(sizeX, sizeY);
        }