public FractalPair(Fractal mandelbrot, Fractal julia, Fractal.FractalType activeFractal, Program.FractalsToRender fractalsToRender, int screenshotCount)
 {
     this.mandelbrot       = mandelbrot;
     this.julia            = julia;
     this.activeFractal    = activeFractal;
     this.fractalsToRender = fractalsToRender;
     this.screenshotCount  = screenshotCount;
 }
        public static void Save(Fractal mandelbrot, Fractal julia, Fractal.FractalType fractaltype, Program.FractalsToRender fractalsToRender, int screenshotCount)
        {
            FractalPair pair = new FractalPair(mandelbrot, julia, fractaltype, fractalsToRender, screenshotCount);

            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
            using (BufferedStream stream = new BufferedStream(new FileStream(dir + settingsfile, FileMode.Create, FileAccess.Write, FileShare.None))) {
                IFormatter formatter = new BinaryFormatter();
                formatter.Serialize(stream, pair);
            }
        }