public virtual async void SimulateTask() { PlotForm.SetProgressBar(pictBoxSize.Width); PlotForm.SetEnabled(false); InitTaskHandles(); await Task.Run(() => { doTaskWork(); }); PlotForm.SetEnabled(true); PlotForm.EndGenerate(); }
private void FractalCompletedGIF() { fractalPlotter.CreateGif = false; gifCreater.Create(1, gifFilename); xMin = currXmin; xMax = currXmax; yMin = currYmin; yMax = currYmax; PlotForm.SetEnabled(true); PlotForm.EndGenerate(); Reset();//includes SimulateTask(); }