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); }
public void ResizeGrid(int sizeX, int sizeY) { if (Running) { return; } CurrentGrid.Resize(sizeX, sizeY); OriginGrains.Clear(); NextGrid.Resize(sizeX, sizeY); }