private void GenerateStart()
        {
            var sc   = new SemiConductor(x, t);
            var path = @"C:\Users\Vosming\source\repos\Zad2\Values.txt";

            string[] data = new string[5];
            data[0] = "GaInAs";
            data[1] = $"Calculated Values for Temperature = {t}K, and X fraction of {x}";
            data[2] = $"Energy_C = {sc.Energy_C()}eV | Energy_HH = {sc.Energy_HH()}eV | Energy_LH = {sc.Energy_LH()}eV | Energy_SH = {sc.Energy_SH()}eV";
            data[3] = $"e mass = {sc.Mass_e()} | HH mass = {sc.Mass_HH()} | LH mass = {sc.Mass_LH()} | Delta SO = {sc.DeltaSO()}";
            data[4] = $"Energy Gap of GaAsIn {sc.Energy_Gap()}eV | GaAs {sc.Energy_Gap_GaAs()}eV | InAs {sc.Energy_Gap_InAs()}eV";

            System.IO.File.WriteAllLines(path, data);

            InterpolationPlotModel.Series.Clear();
            InterpolationPlotModel.Series.Add(new FunctionSeries(y => sc.Energy_Gap_Function(y, t), 0, 1, 0.005));
            InterpolationPlotModel.InvalidatePlot(true);
        }
        private void GenerateSaveInterpolation()
        {
            var sc   = new SemiConductor(x, t);
            var path = @"C:\Users\Vosming\source\repos\Zad2\InterpolationValues.txt";

            string[] data = new string[102];
            data[0] = "X_Fraction;Energy_Gap";
            double counter = 0;
            int    line    = 1;

            while (counter < 1.01)
            {
                data[line] = $"{counter};{sc.Energy_Gap_Function(counter,t)}";
                counter    = counter + 0.01;
                line       = line + 1;
            }

            System.IO.File.WriteAllLines(path, data);
        }