Exemplo n.º 1
0
        public virtual async void SimulateTask()
        {
            PlotForm.SetProgressBar(pictBoxSize.Width);
            PlotForm.SetEnabled(false);
            InitTaskHandles();
            await Task.Run(() => { doTaskWork(); });

            PlotForm.SetEnabled(true);
            PlotForm.EndGenerate();
        }
Exemplo n.º 2
0
 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();
 }